/* Douse website. Framing: autopilot/docs/landing-page-references.md. Colours are the app's own (Palette.swift). */
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ink: #0F2430;          /* DousePalette.ink */
  --ink2: #39525C;         /* ink2, 7.6:1 on white */
  --water: #1D7A8C;
  --water-text: #176B7B;
  --water-wash: #E3F2F5;
  --sky: #BFE5FF;          /* skyFreshTop */
  --dawn: #FFEBD9;         /* skyFreshBottom */
  --coin-wash: #FFF6D6;
  --mint-wash: #E6F7F1;
  --mint-deep: #11785A;
  --line: #E6EFF1;
  --page: #FFFFFF;
  --focus: #0B6E99;
  --display: "Bricolage", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, sans-serif;
  --radius-pill: 999px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.6 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--water-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

/* Top bar: brand, pill nav, one pill CTA */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--wrap); margin: 0 auto; padding: 14px 16px; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 20px var(--display); letter-spacing: -.02em; min-height: 44px; }
.brand img { border-radius: 9px; }
.nav { display: none; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); color: var(--ink2); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a:hover { background: var(--water-wash); color: var(--ink); }
@media (min-width: 820px) { .nav { display: flex; } }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill);
  font: 600 15px var(--body); text-decoration: none; white-space: nowrap; transition: transform .15s ease, background-color .15s ease; }
.pill:active { transform: scale(.98); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #1B3A49; color: #fff; }
.pill-quiet { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.pill-quiet:hover { border-color: var(--water); color: var(--ink); }
.pill-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }

/* Hero: one soft aura from the app's sky, a centered light headline, the real phones */
.hero { position: relative; isolation: isolate; text-align: center; padding: 56px 16px 0; overflow-x: clip; }
.aura { position: absolute; z-index: -2; left: 50%; top: -40px; width: min(1100px, 160vw); aspect-ratio: 1.25; transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(38% 34% at 38% 38%, var(--sky) 0%, transparent 70%),
    radial-gradient(36% 32% at 64% 44%, var(--dawn) 0%, transparent 72%),
    radial-gradient(26% 22% at 52% 62%, rgba(29,122,140,.16) 0%, transparent 72%);
  filter: blur(36px); }
.aura-small { top: -120px; width: min(760px, 150vw); opacity: .8; }
/* The one orchestrated moment: the smoggy sky clears on load, as Douse's sky does while you stay quit. */
.haze { position: absolute; z-index: -1; inset: -40px -50vw 30% -50vw; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 30%, rgba(150,140,130,.30), rgba(150,140,130,0) 75%);
  animation: clear 2.2s .2s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes clear { to { opacity: 0; } }

.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.85); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink2); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-deep); }
.hero h1 { font-weight: 500; font-size: clamp(38px, 7.4vw, 72px); line-height: 1.04; letter-spacing: -.035em; }
.lede { max-width: 34em; margin: 20px auto 0; font-size: clamp(16px, 2.1vw, 19px); color: var(--ink2); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 0; }

.phones { display: flex; justify-content: center; align-items: flex-start; margin: 52px auto 0; max-width: 820px; }
.phone { margin: 0; padding: 7px; background: #0F2430; border-radius: 44px; box-shadow: 0 40px 70px -40px rgba(15,36,48,.55), 0 2px 0 rgba(255,255,255,.25) inset; }
.phone img { border-radius: 37px; }
.phone-main { width: min(300px, 64vw); position: relative; z-index: 2; }
.phone-side { width: min(250px, 30vw); opacity: .96; display: none; margin-top: 70px; }
.phone-side:first-child { transform: translateX(34px) rotate(-5deg); }
.phone-side:last-child { transform: translateX(-34px) rotate(5deg); }
@media (min-width: 640px) { .phone-side { display: block; } }
/* Fade the phones into the page, as the references crop their devices. */
.phones { -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); max-height: 560px; overflow: hidden; }

/* Sections: centered heading with a one-line sub */
.section { max-width: var(--wrap); margin: 0 auto; padding: 88px 16px 0; }
.section > h2, .page-head h1 { text-align: center; font-weight: 500; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; letter-spacing: -.03em; }
.sub { text-align: center; color: var(--ink2); margin: 12px auto 0; max-width: 36em; }

.cards { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border-radius: 28px; padding: 22px 22px 26px; }
.card-water { background: var(--water-wash); }
.card-coin { background: var(--coin-wash); }
.card-mint { background: var(--mint-wash); }
.card .shot { height: 250px; overflow: hidden; border-radius: 20px 20px 0 0; margin: 0 18px 22px; background: #fff;
  box-shadow: 0 18px 30px -24px rgba(15,36,48,.5); }
.card .shot img { width: 100%; }
.card h3 { font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.card p { margin: 8px 0 0; color: var(--ink2); }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.15fr .85fr; } }
.split h2 { font-weight: 500; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; letter-spacing: -.03em; }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.points li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink2); }
.points strong { color: var(--ink); display: block; font-weight: 600; margin-bottom: 2px; }
.phone-solo { width: min(300px, 74vw); justify-self: center; }

/* FAQ: two columns of quiet accordions */
.qa-grid { display: grid; gap: 10px; margin-top: 36px; align-items: start; }
@media (min-width: 820px) { .qa-grid { grid-template-columns: 1fr 1fr; } }
.qa-col { display: grid; gap: 10px; }
.qa { background: #F7FAFB; border: 1px solid var(--line); border-radius: 18px; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 14px 20px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 22px var(--body); color: var(--ink2); transition: transform .2s ease; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0; padding: 0 20px 18px; color: var(--ink2); }

.get { position: relative; isolation: isolate; text-align: center; padding-bottom: 24px; overflow-x: clip; }
.get-icon { margin: 0 auto 20px; border-radius: 22px; box-shadow: 0 20px 40px -24px rgba(15,36,48,.6); }
.soon { margin: 16px auto 0; font-weight: 600; color: var(--ink2); }

/* Support and legal pages */
.page-head { position: relative; isolation: isolate; text-align: center; padding: 56px 16px 0; overflow-x: clip; }
.page-head .pill { margin-top: 26px; }
.prose { max-width: 720px; }
.prose h2 { font-weight: 600; font-size: 26px; letter-spacing: -.02em; margin: 40px 0 8px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-weight: 600; font-size: 19px; margin: 28px 0 4px; }
.prose p { margin: 0 0 14px; color: var(--ink2); }
.legal .meta { margin: 0 0 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; display: grid; gap: 8px; }
.legal .meta div { display: grid; gap: 2px; }
@media (min-width: 640px) { .legal .meta div { grid-template-columns: 170px 1fr; gap: 12px; } }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; color: var(--ink2); }
.legal a { overflow-wrap: anywhere; }

/* Footer */
.foot { max-width: var(--wrap); margin: 96px auto 0; padding: 32px 16px 40px; border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand img { border-radius: 11px; }
.foot-brand strong { display: block; font: 700 18px var(--display); }
.foot-brand span { color: var(--ink2); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; }
.foot-links a:hover { color: var(--water-text); text-decoration: underline; }
.foot-note { color: var(--ink2); font-size: 14px; margin: 14px 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .haze { animation: none; opacity: 0; }
  .pill, .qa summary::after { transition: none; }
}
