/* Duckaby site — self-hosted fonts, no third-party requests. Berry/plum brand, glossy, AA contrast. */
@font-face { font-family: 'Fraunces'; src: url(assets/fonts/fraunces-latin-full-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(assets/fonts/nunito-latin-wght-normal.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; }
:root {
  --bg: #fff8f3; --surface: #ffffff; --ink: #1e1a2b; --ink-2: #4a4560; --line: #ecdfe4;
  --primary: #b93f65; --primary-ink: #ffffff; --primary-soft: #ffe6ec; --plum: #2a1236;
  --mesh: radial-gradient(60% 45% at 8% 0%, #ffd6e4 0%, transparent 70%), radial-gradient(55% 40% at 100% 12%, #fff0c2 0%, transparent 70%), radial-gradient(60% 45% at 0% 80%, #efe4ff 0%, transparent 70%);
  --glass: rgba(255, 255, 255, .82); --rim: rgba(255, 255, 255, .6);
  --shadow: 0 14px 34px -18px rgba(150, 50, 90, .35), 0 2px 6px -2px rgba(80, 40, 70, .08);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14131a; --surface: #1d1c26; --ink: #efedf5; --ink-2: #c3c0d2; --line: #2e2c3b;
    --primary: #f4a3b5; --primary-ink: #3a1420; --primary-soft: #3a2029;
    --mesh: radial-gradient(60% 45% at 8% 0%, #4a1f3c 0%, transparent 70%), radial-gradient(55% 40% at 100% 12%, #3b2a12 0%, transparent 70%), radial-gradient(60% 45% at 0% 80%, #2b1f4d 0%, transparent 70%);
    --glass: rgba(29, 28, 38, .85); --rim: rgba(255, 255, 255, .08); --shadow: 0 16px 36px -18px rgba(0, 0, 0, .7); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 'Nunito', system-ui, sans-serif; color: var(--ink); background: var(--mesh), var(--bg); background-attachment: fixed; overflow-x: hidden; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; line-height: 1.1; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 9vw, 3.8rem); margin: .3em 0; }
h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin: 1.4em 0 .4em; }
h3 { font-size: 1.2rem; margin: 1em 0 .3em; }
a { color: var(--primary); text-underline-offset: 3px; }
img { max-width: 100%; }

/* ---- layout ---- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.prose { max-width: 720px; }
.section { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.section-head .lead { margin-left: auto; margin-right: auto; }
.page-hero { padding: 36px 0 8px; }
.page-hero .lead { max-width: 640px; }

/* ---- header / nav ---- */
header.top { position: sticky; top: 0; z-index: 20; background: var(--bg); box-shadow: 0 10px 18px -16px rgba(40, 10, 30, .55); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
header.top nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
header.top nav a { font-weight: 700; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); }
header.top nav a:hover, header.top nav a:focus-visible { color: var(--primary); background: var(--primary-soft); }
header.top nav a.btn { color: var(--primary-ink); margin-left: 4px; }
header.top nav a.btn:hover, header.top nav a.btn:focus-visible { color: var(--primary-ink); }
@media (max-width: 640px) {
  header.top .wrap { min-height: 56px; }
  header.top nav { width: 100%; justify-content: center; order: 3; padding: 6px 0 10px; border-top: 1px solid var(--line); }
  header.top nav a { padding: 8px; font-size: .92rem; }
}

/* ---- hero ---- */
.hero { padding: 40px 0 16px; position: relative; }
.hero-grid { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 24px; } }
.eyebrow { display: inline-block; background: var(--primary); color: var(--primary-ink); font-weight: 800; border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.hero-art { position: relative; display: flex; justify-content: center; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; z-index: 0; }
.blob.b1 { width: 260px; height: 260px; background: radial-gradient(circle at 35% 30%, #ffd6e4, transparent 70%); top: -40px; left: -30px; }
.blob.b2 { width: 220px; height: 220px; background: radial-gradient(circle at 60% 40%, #fff0c2, transparent 70%); bottom: -20px; right: -20px; }
.blob.b3 { width: 180px; height: 180px; background: radial-gradient(circle at 50% 50%, #efe4ff, transparent 70%); top: 40%; right: 30px; }
@media (prefers-reduced-motion: no-preference) { .blob { animation: drift 14s ease-in-out infinite alternate; } .blob.b2 { animation-duration: 18s; } .blob.b3 { animation-duration: 22s; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(10px, -14px) scale(1.06); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-note { margin-top: 14px; }

/* ---- phone mockup ---- */
.phone { position: relative; z-index: 1; width: 240px; max-width: 62vw; border-radius: 42px; padding: 12px; background: linear-gradient(160deg, #2a1236, #1b0c22); box-shadow: 0 30px 60px -24px rgba(30, 10, 40, .55), inset 0 0 0 2px rgba(255,255,255,.06); }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 34%; height: 18px; border-radius: 999px; background: rgba(0,0,0,.55); z-index: 2; }
.phone img, .phone .phone-screen { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 32px; background: var(--surface); }
.phone.sm { width: 170px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border-radius: 16px; font: inherit; font-weight: 800; text-decoration: none; border: 0; cursor: pointer;
  background-color: var(--primary); color: var(--primary-ink);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .06) 48%, rgba(0, 0, 0, .06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 10px 22px -10px var(--primary);
  transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[aria-disabled="true"] { opacity: .75; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; }
.btn.ghost { background-color: transparent; background-image: none; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---- cards / grid ---- */
.card { background: var(--glass); border: 1px solid var(--rim); border-radius: var(--radius); padding: 20px; box-shadow: inset 0 1px 0 var(--rim), var(--shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.shot { width: 100%; max-width: 360px; height: auto; border-radius: 22px; display: block; margin: 0 auto; box-shadow: var(--shadow); }

/* ---- timeline ---- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li { background: var(--glass); border: 1px solid var(--rim); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); position: relative; }
.timeline .t-when { display: inline-block; font-weight: 800; color: var(--primary); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
@media (min-width: 780px) {
  .timeline { counter-reset: step; }
  .timeline li::before { content: counter(step); counter-increment: step; position: absolute; top: -14px; left: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .85rem; box-shadow: 0 6px 14px -6px rgba(150,50,90,.6); }
}

/* ---- feature rows ---- */
.feature-row { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; padding: 20px 0; }
@media (min-width: 820px) { .feature-row { grid-template-columns: .8fr 1.2fr; } .feature-row.flip { grid-template-columns: 1.2fr .8fr; } .feature-row.flip > .feature-media { order: 2; } .feature-row.flip > .feature-text { order: 1; } }
.feature-media { display: flex; justify-content: center; }
.feature-text h3 { font-size: clamp(1.3rem, 3.6vw, 1.7rem); margin-top: 0; }

/* ---- icon tiles ---- */
.icon-tile { background: var(--glass); border: 1px solid var(--rim); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-align: left; }
.icon-tile svg { width: 34px; height: 34px; color: var(--primary); margin-bottom: 10px; }
.icon-tile h3 { margin-top: 0; }
.icon-tile p { margin-bottom: 0; color: var(--ink-2); }

/* ---- check list ---- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 6px; background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); }
.check-list li::after { content: "✓"; position: absolute; left: 4px; top: -.05em; color: var(--primary); font-weight: 800; font-size: .8rem; }

/* ---- compare table ---- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-table { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--surface); }
.compare-table th, .compare-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--primary-soft); font-family: 'Fraunces', serif; }
.yes, .no, .partial { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.yes::before { content: "✓"; color: #157a4a; }
.no::before { content: "✕"; color: #b93f3f; }
.partial::before { content: "~"; color: #a5760a; }
@media (prefers-color-scheme: dark) { .yes::before { color: #6fe3a6; } .no::before { color: #f4a3a3; } .partial::before { color: #f0c96a; } }

/* ---- faq accordion ---- */
details.faq { background: var(--glass); border: 1px solid var(--rim); border-radius: 16px; padding: 4px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
details.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); transition: transform .15s ease; flex-shrink: 0; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 0 0 16px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { details.faq summary::after { transition: none; } }

/* ---- callout ---- */
.callout { background: var(--primary-soft); border: 1px solid var(--rim); border-radius: 16px; padding: 14px 18px; color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }

/* ---- reveal-on-scroll (opt-in via motion.js) ---- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- misc shared bits ---- */
.price { font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 700; }
.soon { font-size: .8rem; font-weight: 800; background: var(--primary); color: var(--primary-ink); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
label { display: block; font-weight: 700; margin: 10px 0 4px; }
input[type=email] { width: 100%; min-height: 48px; font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ink-2); background: var(--surface); color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 12px 0; }
legend { font-weight: 700; }
.opt { display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 6px 0; }
.opt input { width: 22px; height: 22px; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
footer.site { margin-top: 48px; padding: 40px 0 44px; border-top: 1px solid var(--line); }
footer.site .foot-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: 24px; }
@media (min-width: 720px) { footer.site .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
footer.site h3 { font-size: 1rem; margin: 0 0 10px; }
footer.site nav { display: flex; flex-direction: column; gap: 8px; }
footer.site a { display: inline-block; }
footer .brand { margin-bottom: 8px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
code { word-break: break-all; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---- utilities ---- */
.center-text { text-align: center; }
.teaser-card { max-width: 820px; margin: 0 auto; padding: 32px; }
.teaser-card .section-head { margin-bottom: 16px; }
.feature-note { max-width: 320px; }
.cta-link { margin-top: 20px; }
