/* The website's stylesheet for every page the build generates (prices, legal, support, delete-account, the /i/ and
   /a/ pages) and the /es/ landing's shared bits. The Fawnzee look (docs/design/fawnzee-look.md; the app's tokens in
   src/constants/theme.ts): cream ground, deep indigo ink, hot pink, 2 px ink outlines with solid offset shadows, one
   chunky grotesque (Bricolage Grotesque, self-hosted from fonts/: nothing loads from another site, security audit
   row 7). Light and dark follow the device. */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/bricolage-grotesque-500.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/bricolage-grotesque-700.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/bricolage-grotesque-800.woff2') format('woff2'); }

:root {
  --ground: #FFF4D6;
  --card: #FFFFFF;
  --ink: #1B1035;
  --ink-2: #4A3F6B;
  --pink: #E0116F;
  --on-pink: #FFFFFF;
  --pink-text: #C40F61;
  --turquoise: #3CC8C0;
  --yellow: #FFC72C;
  --orange: #FF7A1A;
  --purple: #8F6BFF;
  --on-bright: #1B1035;
  --outline: #1B1035;
  --shadow: #1B1035;
  --inverse: #1B1035;
  --on-inverse: #FFF4D6;
  --ink-on-dark: #D9D2F0;
  --divider: #E9D9A8;
  --fawn: #C98450;
  --mark-ear: #F2B6A0;
  --mark-muzzle: #F6E3CF;
  --mark-eye: #1B1035;
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #15101F;
    --card: #221A33;
    --ink: #F5F1FF;
    --ink-2: #C9BFE3;
    --pink: #FF3D8B;
    --on-pink: #15101F;
    --pink-text: #FF7AB0;
    --turquoise: #2EB5AE;
    --orange: #FF8A3D;
    --purple: #A58BFF;
    --outline: #F5F1FF;
    --shadow: #000000;
    --inverse: #2E2448;
    --on-inverse: #F5F1FF;
    --divider: #3A2F52;
    --fawn: #D9965F;
  }
}

/* Bilingual pages (/i/, /a/): elements carry lang="en" or lang="es"; the other language is hidden. */
html[lang="en"] [lang="es"]:not(.keep),
html[lang="es"] [lang="en"]:not(.keep) { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 500 1.0625rem/1.6 var(--font); overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--pink-text); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--pink-text); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 980px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 28px; } }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--ink); color: var(--ground); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* The outline and offset shadow (the signature) */
.card { background: var(--card); border: 2px solid var(--outline); border-radius: 20px; box-shadow: 5px 5px 0 var(--shadow); padding: 20px; }
.quiet { background: var(--card); border: 2px solid var(--outline); border-radius: 18px; padding: 18px; }
ul.quiet, ol.quiet { padding-left: 2.2em; }

/* Header */
.site-header { border-bottom: 2px solid var(--outline); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; min-height: 44px; }
.brand .mark { width: 40px; height: 40px; flex: none; border: 2px solid var(--outline); border-radius: 50%; background: var(--card); padding: 3px; }
.site-nav { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink); font-weight: 700; text-decoration: none; }
.site-nav a:hover { background: var(--card); }
.site-nav a[aria-current="page"] { color: var(--pink-text); }
.site-nav .lang-link { border: 2px solid var(--outline); }

/* Banners */
.banner { border: 2px solid var(--outline); border-radius: 14px; background: var(--yellow); color: var(--on-bright); padding: 12px 16px; font-weight: 700; }
.banner p + p { margin-top: 4px; font-weight: 500; }
.banner-wrap { margin-top: 18px; }

/* Page body */
main { display: block; padding-block: 28px 64px; }
.crumbs { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .95rem; color: var(--ink-2); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-text); }
.lead { margin-top: 14px; font-size: 1.2rem; color: var(--ink-2); max-width: 42rem; }
.updated { margin-top: 10px; font-size: .9rem; color: var(--ink-2); }
section { margin-top: 36px; }
section > h2 { margin-bottom: 14px; }
.banner + .crumbs, .banner + h1 { margin-top: 18px; }
.stack > * + * { margin-top: 12px; }
.prose { max-width: 44rem; }
.prose p + p { margin-top: 12px; }

/* The price figure */
.stat { margin-top: 24px; display: grid; gap: 6px; }
.stat-label { font-weight: 700; color: var(--ink-2); }
.stat-figure { font-size: clamp(2.6rem, 2rem + 4vw, 4.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--pink-text); }
.stat-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border: 2px solid var(--outline); border-radius: 999px; background: var(--yellow); color: var(--on-bright); font-weight: 800; font-size: .92rem; }
.chip.turquoise { background: var(--turquoise); }
.basis { margin-top: 14px; font-size: .95rem; color: var(--ink-2); }

/* Lists of links (hubs, related pages) */
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .links.cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .links.cols3 { grid-template-columns: repeat(3, 1fr); } }
.links a.row { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 2px solid var(--outline); border-radius: 18px; box-shadow: 4px 4px 0 var(--shadow); padding: 14px 16px; min-height: 44px; }
.links a.row:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.links .row strong { display: block; font-weight: 800; font-size: 1.1rem; }
.links .row span { display: block; color: var(--ink-2); font-size: .95rem; }
.links .row .price { color: var(--pink-text); font-weight: 800; }
.inline-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spaced { margin-top: 10px; }
.space { margin-top: 24px; }
.space-sm { margin-top: 18px; }
.inline-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--outline); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 700; text-decoration: none; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 820px) { .steps.row3 { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; background: var(--card); border: 2px solid var(--outline); border-radius: 18px; padding: 16px 16px 16px 60px; min-height: 64px; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--outline); background: var(--yellow); color: var(--on-bright); font-weight: 800; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px;
  border: 2px solid var(--outline); border-radius: 999px; box-shadow: 4px 4px 0 var(--shadow);
  background: var(--pink); color: var(--on-pink); font: 800 1.05rem/1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
.btn.secondary { background: var(--card); color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.cta { margin-top: 36px; background: var(--pink); color: var(--on-pink); border: 2px solid var(--outline); border-radius: 22px; box-shadow: 6px 6px 0 var(--shadow); padding: 24px 20px; }
.cta h2 { color: var(--on-pink); }
.cta .store { margin-top: 18px; }
.store-soon { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border: 2px solid var(--outline); border-radius: 14px; background: var(--inverse); color: var(--on-inverse); font-weight: 800; }
.store-badge img { display: block; height: 48px; width: auto; }

/* The invite code */
.code { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.code-value { font-size: clamp(2rem, 1.6rem + 3vw, 3rem); font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; user-select: all; -webkit-user-select: all; }
.toast-line { min-height: 1.6em; margin-top: 8px; font-weight: 700; color: var(--ink-2); }

/* Legal documents */
.legal { max-width: 46rem; }
.legal h2 { margin-top: 32px; font-size: 1.4rem; }
.legal h3 { margin-top: 22px; }
.legal p, .legal ul, .legal ol { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 1.4em; }
.legal li + li { margin-top: 6px; }
.legal blockquote { margin: 14px 0 0; padding: 12px 16px; border-left: 4px solid var(--pink); background: var(--card); border-radius: 0 12px 12px 0; }
.legal-meta { margin-top: 10px; color: var(--ink-2); font-size: .95rem; }

/* Footer */
.site-footer { border-top: 2px solid var(--outline); padding-block: 32px 48px; color: var(--ink-2); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 22px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.site-footer ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.site-footer a { color: var(--ink); display: inline-flex; align-items: center; min-height: 36px; }
.site-footer .brand { font-size: 1.15rem; }
.site-footer .brand .mark { width: 34px; height: 34px; }
.site-footer p { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .links a.row:hover { transform: none; }
}
