/* Loaf website styles. Palette and type follow the Loaf teaser (Fraunces + Inter). */

:root {
  --cream: #F6EADB;
  --paper: #FBF6EE;
  --white: #FFFDF9;
  --ink: #3A2414;
  --ink-muted: #8A5A33;      /* 5.4:1 on paper */
  --crust: #B8702E;          /* decorative / large text only */
  --crust-deep: #A45E22;     /* text-safe crust, 4.6:1 on paper */
  --golden: #E3A54F;
  --golden-soft: #F4D9AE;
  --night: #1B2340;
  --night-raised: #252E52;
  --night-text: #F6EADB;
  --night-muted: #C9BFB3;    /* 8.5:1 on night */
  --error: #A1261B;
  --line: rgba(58, 36, 20, 0.12);
  --line-strong: rgba(58, 36, 20, 0.2);
  --shadow-sm: 0 1px 2px rgba(58, 36, 20, 0.06), 0 4px 14px -6px rgba(58, 36, 20, 0.12);
  --shadow-md: 0 1px 2px rgba(58, 36, 20, 0.06), 0 22px 44px -22px rgba(58, 36, 20, 0.38);
  --shadow-lg: 0 2px 4px rgba(58, 36, 20, 0.05), 0 40px 80px -36px rgba(58, 36, 20, 0.5);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --max: 1120px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 20px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, .display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
p, li { text-wrap: pretty; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
strong { font-weight: 650; }
a { color: var(--crust-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--crust); outline-offset: 3px; }
::selection { background: var(--golden-soft); color: var(--ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: 12px; z-index: 10;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none; transform: translateY(-160%);
}
.skip-link:focus { transform: none; color: var(--paper); }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(40px, 6.5vw, 80px); }
.section--tight { padding-block: clamp(28px, 4.5vw, 52px); }
.section-head { max-width: 640px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 12px; font-size: clamp(2rem, 5vw, 3.25rem); }
.section-head .lead { margin-top: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--crust-deep);
}
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.6; color: var(--ink-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 10px 22px -12px rgba(58, 36, 20, 0.7); }
.btn-primary:hover { background: #50331E; color: var(--paper); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-secondary:hover { background: var(--cream); color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn[disabled] { cursor: default; }

/* ---------- Header & footer ---------- */
.site-header { padding-block: 14px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark {
  font-family: var(--font-display); font-weight: 650; font-size: 1.875rem; line-height: 1;
  letter-spacing: -0.035em; color: var(--ink); text-decoration: none;
  padding-block: 4px;
}
.wordmark:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: none; padding: 8px 12px; border-radius: 999px;
  color: var(--ink); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
}
.nav-link:hover { background: rgba(58, 36, 20, 0.06); color: var(--ink); }
.site-nav .btn { margin-left: 6px; }
@media (min-width: 820px) { .nav-link { display: inline-flex; } }

.site-footer { padding-block: 48px 40px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 22px; }
.footer-brand p { margin-top: 6px; color: var(--ink-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0; list-style: none; }
.footer-links a { color: var(--ink); font-weight: 550; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-fine { font-size: 0.8125rem; line-height: 1.55; color: var(--ink-muted); }
.footer-fine p + p { margin-top: 4px; }
@media (min-width: 820px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer-fine { grid-column: 1 / -1; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(20px, 4vw, 48px); padding-bottom: clamp(24px, 4vw, 48px); overflow-x: clip; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 56px; }
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 11px; border-radius: 999px;
  background: rgba(255, 253, 249, 0.75); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.875rem; font-weight: 600; color: var(--ink);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--golden); box-shadow: 0 0 0 4px rgba(227, 165, 79, 0.25); }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 7.4vw, 4.6rem);
  line-height: 1.01;
  letter-spacing: -0.03em;
}
.hero h1 .accent { display: block; color: var(--crust-deep); }
.hero .lead { margin-top: 20px; max-width: 32em; }
.hero-meta { margin-top: 18px; font-size: 0.875rem; color: var(--ink-muted); }
.hero-meta span + span::before { content: "·"; margin: 0 8px; color: var(--crust); }

.hero-media { position: relative; width: 100%; max-width: 540px; justify-self: center; }
.hero-media::before {
  content: ""; position: absolute; z-index: -1; inset: 6% 4% -2%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(227, 165, 79, 0.32), rgba(227, 165, 79, 0));
  filter: blur(18px);
}
.video-card {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl);
  background: #ECE4D8;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-toggle {
  position: absolute; right: 14px; bottom: 14px;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(251, 246, 238, 0.86); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px -6px rgba(58, 36, 20, 0.45);
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out);
}
.video-toggle:hover { background: var(--white); }
.video-toggle[hidden] { display: none; }
.video-toggle .icon-play { display: none; }
.video-toggle[data-state="paused"] .icon-play { display: block; }
.video-toggle[data-state="paused"] .icon-pause { display: none; }
.media-caption { margin-top: 16px; font-size: 0.875rem; color: var(--ink-muted); text-align: center; text-wrap: balance; }

/* ---------- Waitlist form ---------- */
.waitlist { margin-top: 28px; max-width: 520px; }
.waitlist-row { display: flex; flex-direction: column; gap: 10px; }
.input {
  width: 100%; min-width: 0; min-height: 52px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--white); color: var(--ink);
  font: inherit; font-size: 1rem; /* 16px keeps iOS from zooming */
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: #8A6A50; opacity: 1; }
.input:hover { border-color: rgba(58, 36, 20, 0.32); }
.input[aria-invalid="true"] { border-color: var(--error); }
.waitlist .btn { width: 100%; }
@media (min-width: 480px) {
  .waitlist-row {
    flex-direction: row; gap: 6px; padding: 6px;
    border-radius: 999px; background: var(--white);
    box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line-strong);
    transition: box-shadow 0.2s ease;
  }
  .waitlist-row:focus-within { box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(58, 36, 20, 0.36), 0 0 0 4px rgba(227, 165, 79, 0.28); }
  .waitlist-row .input { min-height: 48px; padding: 0 16px; border: 0; background: transparent; box-shadow: none; }
  .waitlist-row .input:focus-visible { outline: none; }
  .waitlist-row:has(.input[aria-invalid="true"]) { box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--error); }
  .waitlist .btn { width: auto; min-height: 48px; flex: none; }
}
.btn .spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.is-busy .btn .spinner { display: inline-block; }
.is-busy .btn { cursor: progress; }
@media (prefers-reduced-motion: no-preference) {
  .is-busy .btn .spinner { animation: spin 0.8s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin-top: 12px; font-size: 0.9375rem; font-weight: 550; line-height: 1.45; }
.form-status:empty { margin: 0; } /* stays in the accessibility tree so the first message is announced */
.form-status[data-tone="error"] { color: var(--error); }
.form-status[data-tone="info"] {
  padding: 12px 16px; border-radius: 16px; background: var(--cream); color: var(--ink);
}
.form-note { margin-top: 12px; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-muted); }
.form-note a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.waitlist-success {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 28px; max-width: 520px; padding: 18px 20px;
  border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(227, 165, 79, 0.55);
}
.waitlist-success[hidden] { display: none; }
.waitlist-success:focus { outline: none; }
.waitlist-success:focus-visible { outline: 3px solid var(--crust); outline-offset: 3px; }
.success-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--golden); color: var(--ink); }
.success-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.waitlist-success p + p { margin-top: 2px; color: var(--ink-muted); }

/* ---------- How it works (night band) ---------- */
.night-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 55% at 100% 100%, rgba(227, 165, 79, 0.2), rgba(227, 165, 79, 0) 70%),
    radial-gradient(60% 50% at 0% 0%, rgba(120, 136, 200, 0.18), rgba(120, 136, 200, 0) 70%),
    var(--night);
  color: var(--night-text);
}
.night-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.7;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 14%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 21% 6%, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 37% 11%, #FFE7C2 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 52% 4%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 66% 13%, #fff 50%, transparent 52%),
    radial-gradient(1.1px 1.1px at 78% 7%, #fff 50%, transparent 52%),
    radial-gradient(1.7px 1.7px at 91% 16%, #FFE7C2 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 96% 3%, #fff 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 3% 38%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 98% 42%, #fff 50%, transparent 52%);
}
.night-band .eyebrow { color: var(--golden); }
.night-band h2 { color: #FFF7EC; }
.night-band .lead { color: var(--night-muted); }
.moon { width: 16px; height: 16px; color: var(--golden); }

.steps { display: grid; gap: 36px; margin-top: 44px; padding: 0; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.step { position: relative; }
.step-figure {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: var(--radius); background: var(--night-raised);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.step-figure img { width: 100%; height: 100%; object-fit: cover; }
.step-num {
  position: absolute; top: 12px; left: 12px;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(27, 35, 64, 0.82); color: var(--golden);
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 650;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(227, 165, 79, 0.45);
}
.step h3 { margin-top: 20px; font-size: clamp(1.375rem, 2.2vw, 1.625rem); color: #FFF7EC; }
.step p { margin-top: 8px; color: var(--night-muted); }
.step strong { color: var(--night-text); }

/* ---------- Results ---------- */
.results { display: grid; gap: 14px; margin-top: 40px; padding: 0; list-style: none; }
.result {
  display: grid; grid-template-columns: minmax(0, 104px) minmax(0, 1fr); gap: 16px; align-items: center; align-content: start;
  padding: 12px; border-radius: var(--radius-lg);
  background: var(--white); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.result img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; background: var(--cream); }
.result h3 { font-size: 1.5rem; }
.rule {
  display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 10px;
  font-size: 0.8125rem; font-weight: 650; line-height: 1.5;
  background: var(--cream); color: var(--ink);
}
.result-desc { margin-top: 8px; color: var(--ink-muted); font-size: 0.9375rem; line-height: 1.5; }
.result--golden { box-shadow: var(--shadow-md), inset 0 0 0 1.5px rgba(227, 165, 79, 0.65); background: linear-gradient(180deg, #FFF6E6, var(--white) 60%); }
.result--golden .rule { background: var(--golden); }
@media (min-width: 768px) {
  .results { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .result { grid-template-columns: minmax(0, 1fr); align-items: start; padding: 14px 14px 26px; }
  .result-body { padding-inline: 8px; }
  .result h3 { margin-top: 6px; font-size: 1.75rem; }
}

/* ---------- Bakery features ---------- */
.features { display: grid; gap: 14px; margin-top: 36px; padding: 0; list-style: none; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 18px; border-radius: var(--radius-lg); background: var(--cream); }
.feature-icon { grid-row: span 2; }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--paper); color: var(--crust-deep); box-shadow: inset 0 0 0 1px var(--line); }
.feature h3 { margin-top: 1px; font-size: 1.25rem; }
@media (min-width: 640px) {
  .feature { display: block; padding: 22px; }
  .feature h3 { margin-top: 16px; }
}
.feature p { margin-top: 6px; color: var(--ink-muted); font-size: 0.9375rem; line-height: 1.55; }

/* ---------- Coats & Loaf Pro ---------- */
.coats-grid { display: grid; gap: 16px; margin-top: 36px; }
.coats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; }
@media (min-width: 640px) { .coats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.coat {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 26px 12px 20px; border-radius: var(--radius);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
}
.coat-img { display: block; width: 100%; max-width: 190px; height: auto; margin: -6px auto 2px; }
.coat-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; line-height: 1.2; }
.coat-tag { margin-top: -6px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.coat-tag--pro { color: var(--crust-deep); }

.pro-card {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(227, 165, 79, 0.28), rgba(227, 165, 79, 0) 70%),
    var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-md);
}
.pro-title { font-size: 2rem; color: #FFF7EC; }
.pro-card .pro-sub { margin-top: 6px; color: #E2CDB3; }
.plans { display: grid; gap: 8px; padding: 0; list-style: none; }
.plan {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 16px; background: rgba(251, 246, 238, 0.08);
  box-shadow: inset 0 0 0 1px rgba(251, 246, 238, 0.12);
}
.plan strong { font-weight: 650; color: #FFF7EC; }
.plan span { font-size: 0.875rem; color: #E2CDB3; }
.plan--highlight { box-shadow: inset 0 0 0 1.5px rgba(227, 165, 79, 0.75); }
.plan--highlight span { color: var(--golden-soft); }
.pro-note { font-size: 0.8125rem; line-height: 1.5; color: #D9C3A8; }
@media (min-width: 860px) {
  .pro-card { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr); align-items: center; gap: 20px 40px; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan { flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; }
  .pro-note { grid-column: 1 / -1; }
}

/* ---------- Made by hand ---------- */
.handmade {
  position: relative; max-width: 860px; margin-inline: auto; text-align: center;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: radial-gradient(80% 70% at 50% 0%, rgba(227, 165, 79, 0.18), rgba(227, 165, 79, 0) 70%), var(--cream);
}
.handmade h2 { margin-top: 14px; font-size: clamp(1.625rem, 3.6vw, 2.5rem); line-height: 1.15; }
.handmade .lead { margin-top: 16px; }
.signature { margin-top: 18px; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--crust-deep); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative; display: block; padding: 20px 44px 20px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--crust-deep); border-bottom: 2px solid var(--crust-deep);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-item summary:focus-visible { outline-offset: 2px; border-radius: 8px; }
.faq-answer { padding: 0 0 22px; color: var(--ink-muted); }
.faq-answer p + p { margin-top: 10px; }
.faq-more { margin-top: 24px; font-weight: 600; }

/* ---------- Closing CTA ---------- */
.cta {
  text-align: center; padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: radial-gradient(70% 90% at 50% 0%, rgba(227, 165, 79, 0.26), rgba(227, 165, 79, 0) 70%), var(--cream);
}
.cta h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.cta .lead { margin: 14px auto 0; max-width: 34em; text-wrap: balance; }
.cta .waitlist, .cta .waitlist-success { margin-inline: auto; text-align: left; }
.cta .form-note { text-align: center; }

/* ---------- Documents (privacy, terms, support) ---------- */
.doc { max-width: 760px; margin-inline: auto; padding-top: clamp(20px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 96px); }
.doc h1 { margin-top: 14px; font-size: clamp(2.25rem, 6vw, 3.5rem); }
.doc-meta { margin-top: 14px; color: var(--ink-muted); font-size: 0.9375rem; }
.doc-intro { margin-top: 20px; font-size: 1.0625rem; }
.doc h2 { margin-top: 52px; font-size: clamp(1.5rem, 3vw, 1.875rem); scroll-margin-top: 20px; }
.doc h3 { margin-top: 30px; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.4; }
.doc p, .doc ul, .doc ol, .doc dl { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--crust); }
.doc a { overflow-wrap: anywhere; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875em; padding: 0.1em 0.4em; border-radius: 6px; background: var(--cream); }
.doc-card { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--cream); }
.doc-card h2 { margin-top: 0; font-size: 1.375rem; }
.doc-card ul { margin-top: 12px; }
.doc-card--alert { background: var(--white); box-shadow: inset 0 0 0 1.5px rgba(184, 112, 46, 0.45); }
.toc { margin-top: 28px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a {
  display: inline-flex; padding: 7px 13px; border-radius: 999px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink); font-size: 0.875rem; font-weight: 550; text-decoration: none;
}
.toc a:hover { background: var(--cream); }
.processors { margin-top: 18px; display: grid; gap: 12px; padding: 0; list-style: none; }
.processors li { margin: 0; padding: 18px 20px; border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.processors dl { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr); gap: 6px 14px; margin-top: 10px; font-size: 0.9375rem; }
.processors dt { color: var(--ink-muted); }
.processors dd { margin: 0; }
.processors h3 { margin-top: 0; }
@media (max-width: 479px) { .processors dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .processors dd + dt { margin-top: 8px; } }
.contact-card {
  display: grid; gap: 14px; margin-top: 28px; padding: 24px; border-radius: var(--radius-lg);
  background: radial-gradient(80% 90% at 100% 0%, rgba(227, 165, 79, 0.22), rgba(227, 165, 79, 0) 70%), var(--cream);
}
.doc .contact-card > *, .doc .toc li + li { margin-top: 0; }
.doc .toc, .doc .processors { padding-left: 0; }
.contact-card .btn { justify-self: start; }
.steps-list li::marker { font-weight: 650; color: var(--crust-deep); }
.result-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.result-list li { margin: 0 !important; padding: 14px 16px; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.result-list strong { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.result-list .rule { margin: 0 0 0 8px; vertical-align: 2px; }

/* ---------- 404 ---------- */
.not-found { display: grid; justify-items: center; gap: 18px; text-align: center; padding-block: clamp(32px, 8vw, 96px); }
.not-found img { width: min(260px, 70%); aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-md); }
.not-found h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
.not-found .lead { max-width: 30em; }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ---------- Language switch & Korean pages ---------- */
.lang-switch {
  display: inline-flex; align-items: center; min-height: 28px; margin-left: 10px; padding: 0 12px;
  border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink); font-size: 0.8125rem; font-weight: 600; line-height: 1; text-decoration: none; vertical-align: middle;
}
.lang-switch:hover { background: var(--cream); color: var(--ink); }
/* Fraunces and Inter have no Hangul: Korean falls back to a Gothic face; break lines between words. */
html:lang(ko) { --font-display: "Fraunces", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
.doc:lang(ko) { line-height: 1.75; }
.doc:lang(ko) h1, .doc:lang(ko) h2 { line-height: 1.3; letter-spacing: -0.01em; }
.doc:lang(ko) .eyebrow { letter-spacing: 0.02em; }
.officer {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px;
  padding: 18px 20px; border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
}
.officer dt { color: var(--ink-muted); }
.officer dd { margin: 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on .reveal { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--delay, 0s); }
  .reveal-on .reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
