/* Casa website
   Visual direction from the Casa App Store design (Claude Design project
   "Casa app store marketing"): alternating terracotta and cream panels,
   DM Serif Display headlines, Figtree text, phones in a dark bezel.
   Colours follow the Casa theme in the app (Casa/Theme/Theme.swift). */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/DMSerifDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/DMSerifDisplay-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --ink: #2e2620;
  --muted: #6b6156;
  --faint: #857869;
  --paper: #f5ecdc;
  --cream-top: #f9f1e2;
  --cream-bottom: #e8dbc2;
  --surface: #fffdf8;
  --card: #f9f2ea;
  --line: rgba(46, 38, 32, 0.1);
  --line-strong: rgba(46, 38, 32, 0.18);
  --shadow: rgba(56, 36, 22, 0.14);

  /* Brand terracotta. --accent fills and large type; --accent-text is the
     darker step used for small text so it keeps AA contrast on cream. */
  --accent: #c2562f;
  --accent-text: #a8492a;
  --accent-soft: #f6e7e2;
  --on-accent: #ffffff;

  /* Terracotta panels: a touch deeper than the App Store art so cream body
     text on them passes AA at web sizes. */
  --terra-top: #b8502b;
  --terra-bottom: #9c3f1c;
  --on-terra: #fdf6ea;
  --on-terra-muted: rgba(253, 246, 234, 0.88);
  --on-terra-faint: rgba(253, 246, 234, 0.78);

  --bezel: #1a140f;
  --amber-ink: #865d1e;
  --amber-soft: #f7e8c9;

  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "DM Serif Display", ui-serif, Georgia, "Times New Roman", serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --gutter: 16px;
  --max: 1160px;
  --prose: 700px;
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ede5d8;
    --muted: #b3a697;
    --faint: #968a7d;
    --paper: #211c16;
    --cream-top: #282219;
    --cream-bottom: #191410;
    --surface: #2b241d;
    --card: #2b241d;
    --line: rgba(245, 236, 220, 0.12);
    --line-strong: rgba(245, 236, 220, 0.22);
    --shadow: rgba(0, 0, 0, 0.45);
    --accent: #d97350;
    --accent-text: #e08463;
    --accent-soft: #3c2a23;
    --on-accent: #2e2620;
    --terra-top: #9a3f1d;
    --terra-bottom: #6f2c13;
    --amber-ink: #dfa851;
    --amber-soft: #3b2f1a;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
p + p { margin-top: 1em; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The small uppercase label above every headline, as in the App Store art. */
.eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Panels ---------- */

.panel-cream {
  background: linear-gradient(180deg, var(--cream-top) 0%, var(--cream-bottom) 100%);
}

.panel-terra {
  --text-muted: var(--on-terra-muted);
  --text-faint: var(--on-terra-faint);
  background: linear-gradient(180deg, var(--terra-top) 0%, var(--terra-bottom) 100%);
  color: var(--on-terra);
}
.panel-terra .eyebrow { color: var(--on-terra-faint); }
.panel-terra .lede,
.panel-terra .detail { color: var(--on-terra-muted); }
.panel-terra a { color: var(--on-terra); }
.panel-terra :focus-visible { outline-color: var(--on-terra); }

.panel-ink {
  background: var(--bezel);
  color: #f5ecdc;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream-top) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}
.brand:hover { color: var(--ink); }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 1px 2px var(--shadow), 0 0 0 1px var(--line);
}

.site-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { background: var(--line); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent-text); }

/* The brand already links home, so the narrowest phones drop "Features". */
.nav-optional { display: none; }
@media (min-width: 420px) {
  .nav-optional { display: block; }
}

@media (min-width: 640px) {
  .site-nav ul { gap: 4px; }
  .site-nav a { padding: 8px 14px; font-size: 1rem; }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.button svg { width: 20px; height: 20px; }
.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.button-primary:hover { background: var(--accent-text); color: var(--on-accent); transform: translateY(-1px); }
.button-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.button-secondary:hover { color: var(--ink); border-color: var(--ink); }

/* Pre-launch App Store button. Swap for Apple's official badge once Casa is live. */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 24px 10px 18px;
  border-radius: 16px;
  background: var(--bezel);
  color: #fdf6ea;
  text-decoration: none;
  line-height: 1.15;
}
.appstore:hover { color: #fdf6ea; }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.78;
}
.appstore strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
}
.panel-terra .appstore {
  background: var(--on-terra);
  color: var(--terra-bottom);
}
.panel-terra .appstore:hover { color: var(--terra-bottom); }
@media (prefers-color-scheme: dark) {
  .panel-terra .appstore { color: #6f2c13; }
  .panel-terra .appstore:hover { color: #6f2c13; }
}

/* ---------- Phone ---------- */

/* A phone in the App Store art's dark bezel. --w sets the width; everything
   else is proportional to it. */
.phone {
  --w: clamp(250px, 74vw, 340px);
  width: var(--w);
  margin: 0;
  padding: calc(var(--w) * 0.026);
  border-radius: calc(var(--w) * 0.145);
  background: var(--bezel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -30px rgba(40, 16, 4, 0.55),
    0 18px 36px -20px rgba(40, 16, 4, 0.4);
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 644 / 1400;
  border-radius: calc(var(--w) * 0.12);
  background: var(--cream-top);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 48px;
  padding-top: 56px;
}
.hero-copy { max-width: 36rem; }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(3rem, 10vw, 5.4rem);
  line-height: 1.02;
}
.hero .lede {
  margin-top: 22px;
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 34px;
}
.hero-note {
  color: var(--on-terra-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* The phone rises out of the bottom edge of the panel. */
.hero-media {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: clamp(440px, 118vw, 560px);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
    padding-top: 0;
  }
  .hero-copy { padding-block: 96px; }
  .hero-media {
    align-self: end;
    height: 640px;
    padding-top: 64px;
  }
  .hero .phone { --w: 340px; }
}

/* ---------- Statement ---------- */

.statement {
  padding-block: 88px;
  background: var(--cream-top);
  text-align: center;
}
.statement p {
  max-width: 24em;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.6vw, 2.7rem);
  line-height: 1.22;
  text-wrap: balance;
}
.statement em {
  font-style: italic;
  color: var(--accent-text);
}

/* ---------- Showcase rows ---------- */

.showcase {
  overflow: hidden;
}
.showcase-grid {
  display: grid;
  gap: 40px;
  padding-top: 72px;
}
.showcase-copy { max-width: 32rem; }
.showcase h2 {
  font-size: clamp(2.4rem, 7.5vw, 3.9rem);
}
.showcase .lede {
  margin-top: 18px;
  color: var(--text-muted, var(--muted));
  font-size: clamp(1.15rem, 2.6vw, 1.3rem);
  line-height: 1.5;
}
.showcase .detail {
  margin-top: 16px;
  color: var(--text-muted, var(--muted));
}

.showcase-media {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: clamp(420px, 112vw, 540px);
  overflow: hidden;
}

@media (min-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    padding-top: 0;
  }
  .showcase-copy { padding-block: 88px; }
  .showcase-media {
    align-self: end;
    height: 600px;
    padding-top: 72px;
  }
  .showcase .phone { --w: 320px; }
  .showcase-flip .showcase-copy { order: 2; }
  .showcase-flip .showcase-media { order: 1; }
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ticks svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.22em;
  color: var(--accent);
}
.panel-terra .ticks svg { color: var(--on-terra); }

/* ---------- Highlights ---------- */

.section { padding-block: 88px; }

.section-head {
  max-width: 40rem;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.15rem;
}

.highlights {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .highlights { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 1000px) {
  .highlights { grid-template-columns: repeat(3, 1fr); }
}

.highlight {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.highlight-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}
.highlight-icon svg { width: 24px; height: 24px; }
.highlight h3 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}
.highlight p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.975rem;
}
.highlight .req {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-ink);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Privacy ---------- */

.privacy-band { padding-block: 88px; }
.privacy-band .eyebrow { color: #e3a184; }
.privacy-band h2 {
  max-width: 14em;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}
.privacy-band .lede {
  max-width: 36em;
  margin-top: 16px;
  color: rgba(245, 236, 220, 0.8);
  font-size: 1.15rem;
}
.privacy-points {
  display: grid;
  gap: 24px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .privacy-points { grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
}
.privacy-points li {
  display: flex;
  gap: 16px;
}
.privacy-points svg {
  width: 28px;
  height: 28px;
  flex: none;
  color: #e3a184;
}
.privacy-points strong {
  display: block;
  font-weight: 600;
}
.privacy-points span {
  display: block;
  margin-top: 3px;
  color: rgba(245, 236, 220, 0.74);
  font-size: 0.975rem;
}
.privacy-band .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  color: #f5ecdc;
  font-weight: 600;
}
.privacy-band .more:hover { color: #fff; text-decoration-thickness: 2px; }
.privacy-band .more svg { width: 18px; height: 18px; }
.privacy-band :focus-visible { outline-color: #f5ecdc; }

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  gap: 20px;
}
@media (min-width: 880px) {
  .pricing { grid-template-columns: 1.1fr 0.9fr; gap: 28px; }
}

.price-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -32px var(--shadow);
}
@media (min-width: 720px) {
  .price-card { padding: 44px; }
}
.price-card h3 { font-size: 2.3rem; }
.price-card .trial {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.price-card > p {
  margin-top: 16px;
  color: var(--muted);
}

.promise {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--line-strong);
}
@media (min-width: 720px) {
  .promise { padding: 44px; }
}
.promise h3 { font-size: 1.8rem; }
.promise p {
  margin-top: 12px;
  color: var(--muted);
}

/* ---------- Closing ---------- */

.closing {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding-block: 96px;
  text-align: center;
}
.closing img {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 18px 36px -16px rgba(40, 16, 4, 0.6);
}
.closing h2 { font-size: clamp(2.4rem, 7vw, 3.8rem); }
.closing p {
  max-width: 30em;
  color: var(--on-terra-muted);
  font-size: 1.15rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 44px 52px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.925rem;
}
.footer-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}
.footer-brand .brand { font-size: 1.4rem; }
.footer-brand .brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-brand p { margin-top: 10px; max-width: 26em; }
.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-block;
  padding-block: 6px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent-text); }
.footer-fine {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.825rem;
  line-height: 1.5;
}
.footer-fine p + p { margin-top: 6px; }

/* ---------- Document pages (privacy, terms, support) ---------- */

.doc-hero {
  padding-block: 64px 48px;
}
.doc-hero .container,
.doc-body .container {
  max-width: calc(var(--prose) + var(--gutter) * 2);
}
.doc-hero h1 {
  font-size: clamp(2.8rem, 9vw, 4.2rem);
}
.doc-hero .lede {
  margin-top: 16px;
  color: var(--on-terra-muted);
  font-size: 1.2rem;
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 22px;
  color: var(--on-terra-faint);
  font-size: 0.9rem;
}

.doc-body {
  padding-block: 48px 72px;
}

.summary {
  margin-bottom: 40px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
@media (min-width: 640px) {
  .summary { padding: 28px 32px; }
}
.summary h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}
.summary .ticks { margin-top: 16px; }

.toc {
  margin-bottom: 44px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
}
.toc h2 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  margin: 12px 0 0;
  padding-left: 1.4em;
  font-size: 0.975rem;
}
@media (min-width: 640px) {
  .toc ol { columns: 2; column-gap: 32px; }
}
.toc li { break-inside: avoid; padding-block: 2px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent-text); text-decoration: underline; }

.prose h2 {
  margin-top: 52px;
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 4.5vw, 2.1rem);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}
.prose p,
.prose ul,
.prose ol { margin: 0 0 1em; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; }
.prose .callout {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
}
.prose .callout p:last-child { margin-bottom: 0; }
.prose .caps { font-size: 0.95rem; }

/* Support */

.contact-card {
  display: grid;
  gap: 18px;
  margin-bottom: 52px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -32px var(--shadow);
}
@media (min-width: 640px) {
  .contact-card {
    grid-template-columns: auto 1fr;
    align-items: start;
    padding: 36px;
    gap: 24px;
  }
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-icon svg { width: 32px; height: 32px; }
.contact-card h2 { font-size: 1.9rem; }
.contact-card p {
  margin-top: 8px;
  color: var(--muted);
}
.contact-card .button { margin-top: 18px; }
.contact-card .email {
  display: block;
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}
.contact-card .email a { font-weight: 600; }

.faq-group + .faq-group { margin-top: 44px; }
.faq-group > h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 4.5vw, 2.1rem);
}

.faq {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq summary svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 0; }
.faq .answer {
  padding: 0 22px 20px;
  color: var(--muted);
}
.faq .answer p + p,
.faq .answer p + ol,
.faq .answer p + ul,
.faq .answer ol + p,
.faq .answer ul + p { margin-top: 0.8em; }
.faq .answer ol,
.faq .answer ul { margin: 0; padding-left: 1.3em; }
.faq .answer li + li { margin-top: 0.3em; }
.faq .answer strong { color: var(--ink); font-weight: 600; }

/* 404 */

.not-found {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-block: 112px;
  text-align: center;
}
.not-found img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 18px 36px -16px rgba(40, 16, 4, 0.6);
}
.not-found h1 { font-size: clamp(2.6rem, 8vw, 3.8rem); }
.not-found p { color: var(--on-terra-muted); max-width: 28em; font-size: 1.15rem; }
.not-found .hero-actions { justify-content: center; margin-top: 8px; }
.not-found .button-secondary {
  background: transparent;
  border-color: var(--on-terra-faint);
  color: var(--on-terra);
}
.not-found .button-secondary:hover { border-color: var(--on-terra); color: var(--on-terra); }
.not-found .button-primary {
  background: var(--on-terra);
  color: var(--terra-bottom);
}
