/* Sartor website, waitlist and legal pages: shared styles.
   Follows design/prototypes/sartor-landing-page.dc.html (and sartor-terms / sartor-privacy for the
   legal pages): its sizes, weights, spacing and colours, written as classes because the site's
   Content-Security-Policy allows no inline style (web/vercel.json). Plain static CSS, no build step,
   no script. The fonts are the app's own OFL files, served from this site (fonts/, D-45): nothing
   loads from another host. "Sartor" appears here as content only (CLAUDE.md). */

/* The app's variable fonts, cut to the Latin range and compressed to WOFF2 (about 95 KB for both,
   down from 2 MB of TTF). No italic face: nothing on the site is set in italic. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Variable.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/Jost-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --ivory: #EFEAE0;          /* page background */
  --surface: #F4EFE7;        /* cards on ivory */
  --surface-2: #FCFAF5;      /* raised card, app screen rows */
  --ink: #1B1712;
  --ink-72: rgba(27, 23, 18, 0.72);
  --ink-70: rgba(27, 23, 18, 0.7);
  --ink-62: rgba(27, 23, 18, 0.62);
  --ink-60: rgba(27, 23, 18, 0.6);
  --ink-55: rgba(27, 23, 18, 0.55);
  --ink-50: rgba(27, 23, 18, 0.5);
  --ink-66: rgba(27, 23, 18, 0.66);   /* the lightest grey for small text: 4.5:1 or more on ivory (D-11) */
  --hairline: rgba(27, 23, 18, 0.1);
  --hairline-soft: rgba(27, 23, 18, 0.08);
  --bronze: #A9814E;         /* large numerals and serif display only: 2.95:1 on ivory */
  --bronze-text: #7A5C33;    /* small bronze text and links on ivory, AA (D-11 wins over the palette) */
  --bronze-text-hover: #5C4526;
  --gold: #C9A876;           /* accent on dark panels */
  --cream: #F4EFE7;          /* text on dark panels */
  --cream-70: rgba(244, 239, 231, 0.7);
  --cream-68: rgba(244, 239, 231, 0.68);
  --cream-65: rgba(244, 239, 231, 0.65);
  --cream-60: rgba(244, 239, 231, 0.6);
  --cream-50: rgba(244, 239, 231, 0.5);
  --cream-35: rgba(244, 239, 231, 0.35);
  --hero-grad: radial-gradient(120% 90% at 50% 0%, #2A2419 0%, #16120C 60%, #0D0B07 100%);
  --cta-grad: radial-gradient(120% 140% at 50% 0%, #2A2419 0%, #16120C 60%, #0D0B07 100%);
  --promise-grad: linear-gradient(165deg, #2A2419 0%, #16120C 70%, #0D0B07 100%);

  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
}

body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: var(--bronze-text); text-decoration: none; }
a:hover { color: var(--bronze-text-hover); }
:focus-visible { outline: 2px solid var(--bronze-text); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
/* No font-smoothing override: the design sets none, and "antialiased" draws both faces visibly
   lighter on a Mac than the design does. */
h1, h2 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
.card-name { font-weight: 400; }
img { display: block; max-width: 100%; }

.kicker { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--bronze-text); font-weight: 500; }
.seal {
  width: 34px; height: 34px; flex: none; border: 1px solid rgba(201, 168, 118, 0.6); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 17px; color: var(--gold); line-height: 1;
}
.seal-lg { width: 46px; height: 46px; font-size: 21px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; color: var(--cream); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 30px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--sans); font-size: 15.5px; font-weight: 500; line-height: 1; cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-ghost { padding: 0 26px; font-size: 15px; font-weight: 400; border-color: var(--cream-35); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream-70); color: var(--cream); }
.btn-dark { height: 50px; padding: 0 28px; font-size: 14.5px; background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #2E2820; color: var(--cream); }
.btn-nav { height: 40px; padding: 0 22px; font-size: 13.5px; background: var(--ink); color: var(--cream); }
.btn-nav:hover { background: #2E2820; color: var(--cream); }

/* ---- Nav (sticky, frosted ivory) ---- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(239, 234, 224, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-soft);
}
/* The design's banded rows (nav, hero, promise, footer) are 1180px of content plus their padding;
   its boxed sections (how it works, ateliers, the final panel) are 1180px including it. */
.nav-inner {
  max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark { font-family: var(--serif); font-size: 21px; letter-spacing: 5px; color: var(--ink); font-weight: 400; line-height: 1; }
.wordmark:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13.5px; }
.nav-links a { color: var(--ink-70); }
.nav-links a:hover { color: var(--ink); }

/* ---- Language menu (D-76): the design's pill (globe, code, caret) and its panel, a check on the
   current language. A <details>, so it opens without a script and with the keyboard; each row is a
   link to the same page in that language. ---- */
.nav-end { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang-btn {
  height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(27, 23, 18, 0.2);
  display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1; color: var(--ink);
  cursor: pointer; list-style: none; user-select: none; -webkit-user-select: none;
}
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn::marker { content: ""; }
.lang-btn:hover, .lang[open] > .lang-btn { border-color: rgba(27, 23, 18, 0.45); }
.lang-btn:focus-visible { outline: 2px solid var(--bronze-text); outline-offset: 2px; }
.lang-globe { flex: none; }
.lang-caret { font-size: 9px; opacity: 0.6; }
.lang-list {
  position: absolute; top: 48px; right: 0; z-index: 50; margin: 0; padding: 6px; list-style: none;
  min-width: 150px; display: flex; flex-direction: column;
  background: var(--surface-2); border: 1px solid rgba(27, 23, 18, 0.12); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(27, 23, 18, 0.14);
}
.nav-links .lang-list a, .lang-list a {
  padding: 9px 12px; border-radius: 9px; font-size: 13.5px; line-height: 1.3; white-space: nowrap;
  display: flex; justify-content: space-between; gap: 12px; color: var(--ink);
}
.nav-links .lang-list a:hover, .lang-list a:hover, .lang-list a:focus-visible { background: rgba(27, 23, 18, 0.06); color: var(--ink); }
.lang-check { color: var(--bronze-text); }
.footer-note { font-size: 12px; line-height: 1.6; color: var(--ink-66); }

/* Japanese: the site's two fonts have no Japanese glyphs, so Japanese text falls through to the
   visitor's own system fonts (none is downloaded); Latin letters and figures keep the site's fonts. */
:root:lang(ja) {
  --serif: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans: "Jost", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
}
:lang(ja) { line-break: strict; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
/* German compounds: hyphenated where the line needs it, and never wider than the screen. */
:lang(de) { hyphens: auto; -webkit-hyphens: auto; }
/* Names and controls never break: the wordmark, the buttons, the language pill, and a brand name
   in running text (<span class="nohy">), which German would otherwise hyphenate ("SAR-TOR"). */
.wordmark, .btn, .lang-btn { hyphens: manual; -webkit-hyphens: manual; white-space: nowrap; }
.nohy { hyphens: manual; -webkit-hyphens: manual; }
body { overflow-wrap: break-word; }

/* ---- Hero ---- */
.hero { background: var(--hero-grad); color: var(--cream); overflow: hidden; }
.hero-inner {
  max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto; padding: 84px var(--gutter) 0;
  display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; justify-content: center;
}
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 26px; padding-bottom: 96px; }
.hero-mark { display: flex; align-items: center; gap: 10px; }
.hero-eyebrow { font-size: 11px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }
.hero h1 { font-size: clamp(42px, 5.4vw, 66px); line-height: 1.06; color: var(--cream); }
.hero-sub { font-size: 16.5px; line-height: 1.65; color: var(--cream-68); max-width: 480px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 10px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--cream); }
.stat-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cream-60); }
/* Upper-cased, German "Maße" would read "MASSE" (mass): its stat labels keep their own case. */
:lang(de) .stat-label { text-transform: none; }

/* The phone the hero draws: an app screen in HTML, cut off by the band's lower edge. */
.phone-wrap { flex: 0 0 auto; display: flex; justify-content: center; }
.phone {
  width: 319px; background: #0B0905; /* the design's 296px content box, plus its padding and border */ border: 1.5px solid rgba(201, 168, 118, 0.35); border-bottom: none;
  border-radius: 44px 44px 0 0; padding: 10px 10px 0; box-shadow: 0 -20px 80px rgba(201, 168, 118, 0.12);
}
.screen {
  background: var(--surface); border-radius: 34px 34px 0 0; overflow: hidden; height: 560px;
  padding: 46px 18px 0; display: flex; flex-direction: column; gap: 12px; color: var(--ink);
}
.scr-top { display: flex; justify-content: space-between; align-items: center; }
.scr-hello { font-size: 10px; color: var(--ink-55); }
.scr-title { font-family: var(--serif); font-size: 21px; line-height: 1.2; color: var(--ink); }
.scr-round {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(27, 23, 18, 0.15); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.scr-search {
  height: 36px; border-radius: 999px; background: rgba(27, 23, 18, 0.06); display: flex; align-items: center;
  gap: 7px; padding: 0 14px; font-size: 11px; color: rgba(27, 23, 18, 0.45);
}
.scr-tiles { display: flex; gap: 8px; }
.scr-tile {
  flex: 1; height: 78px; border-radius: 13px; padding: 10px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.scr-tile-suits { background: linear-gradient(160deg, #2E2820, #16120C); }
.scr-tile-dresses { background: linear-gradient(160deg, #8B6D57, #5C4536); }
.scr-tile-name { font-family: var(--serif); font-size: 15px; line-height: 1.2; color: var(--cream); }
.scr-tile-sub { font-size: 9px; color: var(--gold); }
.scr-tile-dresses .scr-tile-sub { color: #EBD9BE; }
.scr-label { font-size: 9px; letter-spacing: 2px; color: var(--bronze-text); font-weight: 500; padding-top: 4px; text-transform: uppercase; }
.scr-rows { display: flex; flex-direction: column; gap: 8px; }
.scr-row {
  background: var(--surface-2); border: 1px solid var(--hairline-soft); border-radius: 13px; padding: 10px;
  display: flex; gap: 9px; align-items: center;
}
.scr-mono {
  width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); line-height: 1; font-variant-numeric: lining-nums;
}
.scr-mono-dark { border-radius: 10px; background: #16120C; color: var(--gold); font-size: 17px; letter-spacing: 0.5px; }
.scr-mono-ring { border-radius: 50%; background: var(--surface-2); border: 1px solid var(--ink); color: var(--ink); font-size: 13px; }
.scr-mono-warm { border-radius: 10px; background: linear-gradient(140deg, #8B6D57, #5C4536); color: #EBD9BE; font-size: 16px; }
.scr-row-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.scr-row-head { display: flex; gap: 5px; align-items: center; }
.scr-row-name { font-size: 11px; font-weight: 500; }
.scr-pill { font-size: 7.5px; color: var(--bronze-text); border: 1px solid rgba(169, 129, 78, 0.4); border-radius: 999px; padding: 1px 5px; text-transform: uppercase; white-space: nowrap; }
.scr-row-meta { font-size: 9.5px; color: var(--ink-55); }

/* ---- Boxed sections ---- */
.section { max-width: 1180px; margin: 0 auto; width: 100%; padding: 72px var(--gutter); }
.section-how { padding: 96px var(--gutter) 40px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.section h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding-top: 40px; }
.step {
  background: var(--surface); border: 1px solid var(--hairline-soft); border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.step-num { font-family: var(--serif); font-size: 30px; line-height: 1.2; color: var(--bronze); }
.step h3 { font-size: 17px; font-weight: 500; line-height: 1.4; }
.step p { font-size: 14px; line-height: 1.65; color: var(--ink-62); text-wrap: pretty; }

.ateliers-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ateliers-blurb { font-size: 13.5px; color: var(--ink-66); max-width: 330px; line-height: 1.6; text-wrap: pretty; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding-top: 40px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card-photo { height: 340px; width: 100%; border-radius: 20px; object-fit: cover; background: #E6E0D4; }
.card-text { display: flex; flex-direction: column; gap: 3px; padding: 0 4px; }
.card-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-name { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.badge {
  font-size: 10px; color: var(--bronze-text); border: 1px solid rgba(169, 129, 78, 0.4);
  border-radius: 999px; padding: 1px 8px; text-transform: uppercase; white-space: nowrap; line-height: 1.5;
}
.card-meta { font-size: 13px; line-height: 1.5; color: var(--ink-66); }

/* ---- Promise (dark band) ---- */
.promise { background: var(--promise-grad); color: var(--cream); }
.promise-inner {
  max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto; padding: 88px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
}
.promise-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.promise .kicker { color: var(--gold); }
.promise h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; color: var(--cream); }
.promise-sub { font-size: 15.5px; line-height: 1.7; color: var(--cream-68); max-width: 480px; text-wrap: pretty; }
.promise-grid { flex: 1 1 340px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promise-card { border: 1px solid rgba(201, 168, 118, 0.25); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.promise-value { font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--gold); }
.promise-label { font-size: 12.5px; line-height: 1.5; color: var(--cream-60); }

/* ---- Final panel with the waitlist ---- */
.section-cta { padding: 40px var(--gutter) 96px; }
.cta {
  background: var(--cta-grad); border-radius: 28px; padding: 72px 28px; color: var(--cream);
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.cta h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.1; color: var(--cream); max-width: 560px; }
.cta-sub { font-size: 15px; line-height: 1.65; color: var(--cream-65); max-width: 440px; text-wrap: pretty; }

/* The waitlist (D-72): the form's markup is fixed (web/check.sh); only its look is here. */
.waitlist { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.waitlist-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.waitlist-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.waitlist-input {
  flex: 1 1 240px; min-width: 0; height: 54px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid var(--cream-35); background: rgba(244, 239, 231, 0.06);
  color: var(--cream); font-family: var(--sans); font-size: 16px; /* 16px or more: iOS Safari zooms the page on a smaller field */
}
.waitlist-input::placeholder { color: var(--cream-50); }
.waitlist-input:focus { outline: none; border-color: var(--gold); }
.waitlist .btn { flex: 0 0 auto; }
.waitlist-note { font-size: 12.5px; line-height: 1.6; color: var(--cream-60); text-wrap: pretty; padding-top: 4px; }
.waitlist-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.waitlist-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--hairline); }
.footer-inner {
  max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto; padding: 36px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.footer-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer .wordmark { font-size: 18px; letter-spacing: 4px; }
.footer-entity { font-size: 12px; line-height: 1.6; color: var(--ink-66); max-width: 640px; }
.footer-entity a { color: var(--ink-66); text-decoration: underline; text-underline-offset: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 12.5px; }
.footer-links a { color: var(--ink-66); }
.footer-links a:hover { color: var(--ink); }

/* ---- Legal and waitlist pages (sartor-terms / sartor-privacy prototypes: an 820px column) ---- */
.narrow .nav-inner, .narrow .footer-inner { max-width: calc(820px + 2 * var(--gutter)); }
.narrow .nav-links { gap: 24px; }
.narrow .footer-inner { padding: 30px var(--gutter); gap: 16px; }
.wrap-legal { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.legal-main { padding: 72px 0 96px; }
.legal-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.legal-head h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; }
.legal-meta { font-size: 13.5px; color: var(--ink-66); }
.legal-section { display: flex; flex-direction: column; gap: 8px; margin-bottom: 36px; }
.legal-section h2 { font-size: 24px; line-height: 1.25; }
.legal-section p, .legal-section ul, .legal-section ol { font-size: 15px; line-height: 1.75; color: var(--ink-72); text-wrap: pretty; margin: 0; }
.legal-section ul, .legal-section ol { padding-left: 20px; }
.legal-section li { margin-bottom: 6px; }
.legal-section strong { font-weight: 500; color: var(--ink); }
.legal-section a { text-decoration: underline; text-underline-offset: 2px; }

.wl-main { padding: 72px 0 96px; }
.wl-card {
  background: var(--surface); border: 1px solid var(--hairline-soft); border-radius: 20px; padding: 44px 36px;
  display: flex; flex-direction: column; gap: 14px;
}
.wl-card h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; }
.wl-card p { font-size: 15px; line-height: 1.75; color: var(--ink-72); text-wrap: pretty; }
.wl-card .wl-small { font-size: 13.5px; color: var(--ink-66); }
.wl-card a { text-decoration: underline; text-underline-offset: 2px; }
.wl-form { margin: 6px 0; }

/* ---- A store page (D-79, G4; rendered by api/storefront.js): the home page's section, cards and
   final panel, with the atelier's own words beside its picture. ---- */
.store-head { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.store-intro { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.store-intro h1 { font-size: clamp(38px, 4.8vw, 58px); line-height: 1.08; }
.store-founded { font-size: 14px; color: var(--ink-66); }
.store-text { font-size: 15.5px; line-height: 1.75; color: var(--ink-72); white-space: pre-line; text-wrap: pretty; max-width: 560px; }
.store-hero { flex: 1 1 360px; min-width: 0; height: 420px; }
.store-gallery { padding-top: 0; }
.store-gallery .cards { padding-top: 0; }

/* ---- Phone widths ---- */
@media (max-width: 760px) {
  .nav-links-main { display: none; }
}
@media (max-width: 560px) {
  /* The design keeps its 28px gutter and its paddings on a phone; only the long rows change. */
  /* The bar holds the wordmark, the language pill and the button: tighter, so the three fit. */
  .nav-inner { gap: 12px; }
  .nav-end { gap: 8px; }
  .btn-nav { padding: 0 16px; }
  .lang-btn { padding: 0 12px; }
  .narrow .nav-links { gap: 16px; font-size: 13px; }
  .wl-card { padding: 32px 22px; }
}
@media (max-width: 400px) {
  /* The language pill keeps its globe and caret; the code is in its accessible name. */
  .lang-btn { padding: 0 11px; gap: 5px; }
  .lang-code { display: none; }
  .wordmark { letter-spacing: 4px; }
  /* "Join the waitlist" is wider than the design's "Get the app": narrower sides keep the pair on one row. */
  .hero-actions .btn { padding: 0 18px; }
}
@media (max-width: 340px) {
  /* 320 px (an iPhone SE with Display Zoom): the bar's three still fit inside the gutter. */
  .nav-inner { gap: 8px; }
  .nav-end { gap: 6px; }
  .btn-nav { padding: 0 11px; font-size: 12px; }
  .lang-btn { padding: 0 8px; gap: 4px; }
  .wordmark { letter-spacing: 3px; }
}
@media (max-width: 380px) {
  .promise-grid { grid-template-columns: 1fr; }
  .phone { width: 300px; }
}
