/* Chickadee marketing site — shared styles. Colours and type follow the app
   (theme/theme.ts): Fraunces for headlines, Inter for everything else, the
   prompt colourways as pastel grounds with a dark ink of the same hue. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/fraunces.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400 500; font-display: swap; src: url('/assets/fonts/fraunces-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/inter.woff2') format('woff2'); }

:root {
  --ink: #1F1B17;
  --body: #5A5047;
  --soft: #6B6158;
  --accent: #8A5326;
  --accent-hover: #5C3518;
  --paper: #F7F4EF;
  --cream: #FBF8F1;
  --control: #F1F0EE;
  --gold-bg: #F3E9CE;
  --gold-line: #E8D6A6;
  --gold-ink: #6F5A20;
  --gold-mark: #B8901F;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, p { overflow-wrap: break-word; }
.serif { font-family: 'Fraunces', Georgia, serif; }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1160px; margin: 0 auto; }

/* Prompt colourways: ground, well, badge, ink, muted. */
.peach{--bg:hsl(22 49% 88%);--well:hsl(22 49% 84%);--badge:hsl(22 49% 78%);--ink-c:hsl(22 40% 16%);--muted:hsl(22 24% 32%)}
.honey{--bg:hsl(42 58% 88%);--well:hsl(42 58% 84%);--badge:hsl(42 58% 78%);--ink-c:hsl(42 40% 16%);--muted:hsl(42 24% 32%)}
.rose{--bg:hsl(352 41% 88%);--well:hsl(352 41% 84%);--badge:hsl(352 41% 78%);--ink-c:hsl(352 40% 16%);--muted:hsl(352 24% 32%)}
.dusk{--bg:hsl(215 36% 88%);--well:hsl(215 36% 84%);--badge:hsl(215 36% 78%);--ink-c:hsl(215 36% 16%);--muted:hsl(215 24% 32%)}
.mint{--bg:hsl(140 32% 88%);--well:hsl(140 32% 84%);--badge:hsl(140 32% 78%);--ink-c:hsl(140 32% 16%);--muted:hsl(140 24% 32%)}
.sage{--bg:hsl(95 34% 88%);--well:hsl(95 34% 84%);--badge:hsl(95 34% 78%);--ink-c:hsl(95 34% 16%);--muted:hsl(95 24% 32%)}
.orchid{--bg:hsl(315 32% 88%);--well:hsl(315 32% 84%);--badge:hsl(315 32% 78%);--ink-c:hsl(315 32% 16%);--muted:hsl(315 24% 32%)}
.gold{--bg:hsl(44 60% 88%);--well:hsl(44 60% 84%);--badge:hsl(44 60% 78%);--ink-c:hsl(44 40% 16%);--muted:hsl(44 24% 32%)}
.lav{--bg:hsl(265 31% 88%);--well:hsl(265 31% 84%);--badge:hsl(265 31% 78%);--ink-c:hsl(265 31% 16%);--muted:hsl(265 24% 32%)}
.coral{--bg:hsl(6 48% 88%);--well:hsl(6 48% 84%);--badge:hsl(6 48% 78%);--ink-c:hsl(6 40% 16%);--muted:hsl(6 24% 32%)}
.teal{--bg:hsl(185 36% 88%);--well:hsl(185 36% 84%);--badge:hsl(185 36% 78%);--ink-c:hsl(185 36% 16%);--muted:hsl(185 24% 32%)}
.peri{--bg:hsl(230 36% 88%);--well:hsl(230 36% 84%);--badge:hsl(230 36% 78%);--ink-c:hsl(230 36% 16%);--muted:hsl(230 24% 32%)}
.tang{--bg:hsl(28 60% 88%);--well:hsl(28 60% 84%);--badge:hsl(28 60% 78%);--ink-c:hsl(28 40% 16%);--muted:hsl(28 24% 32%)}
.euc{--bg:hsl(155 32% 88%);--well:hsl(155 32% 84%);--badge:hsl(155 32% 78%);--ink-c:hsl(155 32% 16%);--muted:hsl(155 24% 32%)}
.lilac{--bg:hsl(280 27% 88%);--well:hsl(280 27% 84%);--badge:hsl(280 27% 78%);--ink-c:hsl(280 27% 16%);--muted:hsl(280 24% 32%)}
.cw { background: var(--bg); color: var(--ink-c); }
.well { background: var(--well); }
.badge { background: var(--badge); color: var(--ink-c); display: inline-flex; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; }
.muted { color: var(--muted); }
.inkbg, .site-nav a.inkbg { background: var(--ink-c); color: var(--bg); }

/* Header + footer */
.site-header { max-width: 1160px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; flex-wrap: wrap; }
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.pill { display: inline-block; background: var(--ink); color: #FFFFFF !important; text-decoration: none !important; padding: 11px 18px; border-radius: 999px; font-weight: 600; }
.pill:hover { color: #FFFFFF; opacity: 0.9; }
.pill-lg { padding: 16px 28px; font-size: 16px; }
.pill-light { background: var(--cream); color: var(--ink) !important; border: 1px solid rgba(31,27,23,0.12); }
.site-footer { max-width: 1160px; margin: 0 auto; padding: 32px 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--soft); }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .serif { font-size: 18px; color: var(--ink); }

/* Chips — choice buttons. Picked state comes from aria-pressed. */
.chip { height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--control); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; font-weight: 600; }
.chip-outline { background: #FFFFFF; border: 1px solid rgba(31,27,23,0.14); }
.chip-outline[aria-pressed="true"] { border-color: var(--ink); }
.chip-glass { background: rgba(255,255,255,0.55); color: var(--ink-c); font-size: 15px; padding: 0 18px; }
.chip-glass[aria-pressed="true"] { background: var(--ink-c); color: var(--bg); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Waitlist box: [data-wants] picks the copy, [data-sent] swaps form for thanks. */
.when-early, .when-launch { display: none; }
[data-wants="early"] .when-early, [data-wants="launch"] .when-launch { display: revert; }
[data-wants="early"] span.when-early, [data-wants="launch"] span.when-launch { display: inline; }
.thanks { display: none; }
[data-sent="true"] .thanks { display: block; }
[data-sent="true"] .ask { display: none; }
.field { flex: 1 1 220px; min-width: 0; height: 52px; border-radius: 999px; border: 1px solid rgba(31,27,23,0.14); background: #FFFFFF; padding: 0 20px; font: inherit; font-size: 16px; color: var(--ink); }
.submit { height: 52px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--ink); color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.submit[disabled] { opacity: 0.6; cursor: progress; }
.form-error { color: #9B2C1F; font-size: 14px; margin: 10px 4px 0; }
.form-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.share-link { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* Headings used across pages */
.h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(32px, 4vw, 48px); line-height: 1.06; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 14px; }
.lede { font-size: 18px; line-height: 1.55; color: var(--body); margin: 0; }
.tick { flex: none; }

/* A: the fanned deck stacks on a phone */
@media (max-width: 720px) {
  .fan { height: auto !important; }
  .fan > div { position: relative !important; left: auto !important; top: auto !important; right: auto !important; transform: none !important; width: auto !important; margin-bottom: 16px; }
}

/* Pricing */
[data-billing="yearly"] .when-monthly, [data-billing="monthly"] .when-yearly { display: none; }
table { border-collapse: collapse; width: 100%; min-width: 620px; }
th, td { text-align: left; padding: 15px 16px; border-bottom: 1px solid rgba(31,27,23,0.08); font-size: 15px; vertical-align: top; }
td + td, th + th { width: 24%; }
.grp td { background: var(--paper); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); border-bottom: 0; }
details summary { cursor: pointer; }
.billing { display: inline-flex; background: var(--control); border-radius: 999px; padding: 4px; }
.billing button { height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: transparent; color: var(--body); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.billing button[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(31,27,23,0.12); }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 32px 24px 96px; font-size: 17px; line-height: 1.65; color: #3A332C; }
.legal h1 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin: 16px 0 8px; }
.legal h2 { font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 500; color: var(--ink); margin: 44px 0 8px; }
.legal h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 28px 0 4px; }
.legal .updated { color: var(--soft); font-size: 15px; margin: 0 0 32px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
@media (max-width: 560px) { .site-nav a[data-wide] { display: none; } .site-header { flex-wrap: nowrap; } .site-nav .pill, .site-nav .inkbg { padding: 10px 14px !important; font-size: 14px; } }
