/* Lingways landing design: the home page and the Features page (public/features/). One section per screen on a deep
   night ground; the nine chapter colours carry the colour; ivory cards are the light counterpoint. Sizes come from the
   seven-step scale in type.css, colours from palette.css; the header and footer are the shared ones in shell.css.
   Text follows four kinds: names 20/600 full contrast, main content 16/500 full, descriptions 16/400 soft, labels
   14/500 soft (sentence case); every soft colour keeps 7:1 on its ground. The type matrix explains it. */
:root {
  --night: #0b1420;      /* the page */
  --raised: #232f3c;     /* panels on the night */
  --rule: #2e3c4b;       /* hairlines */
  --land: #26323f;       /* map land */
  --ink: #1b2530;        /* text on ivory */
  --ink-soft: #3f4c59;   /* soft text on ivory: 7.6:1 */
  --soft: var(--grey);   /* soft text on the night */
  --soft-raised: #bcc2c9;
  --read: #86aeff; --keep: #b4a1ff; --play: #ffaa66; --talk: #5ed6a8; --path: #8dbbd9;
  --guide: #e6c36a; --studio: #f3a0c4; --market: #8fdce5; --wallet: #c9d66b;
  --text: var(--font);
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --frame: 1128px;
  --bar: 64px;           /* the shared header */
  --screen: calc(100svh - var(--bar) - env(safe-area-inset-top, 0px));
}
@media (max-width: 700px) { :root { --bar: 0px; } }   /* on a phone the header scrolls away */
/* the shared .btn has a fixed height; these pills size to their text */
.lw .btn { height: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body.lw { background: var(--night); color: var(--ivory); font: 400 var(--t-body)/1.6 var(--text); }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: calc(var(--frame) + 32px); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }

/* one section, one screen: each fills the screen under the bar and centres what it holds */
.screen { min-height: var(--screen); display: grid; align-content: center; padding-block: 48px; scroll-snap-align: start; position: relative; }
.head { text-align: center; display: grid; justify-items: center; gap: 12px; max-width: 760px; margin: 0 auto 36px; }
.head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; line-height: 1.1; }
.head p { margin: 0; color: var(--grey); max-width: 40em; }

/* pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--text); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--ivory); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-dark { background: var(--raised); color: var(--ivory); border-color: var(--rule); }
.btn-dark:hover { background: #2a3847; }
.btn-ink { background: var(--ink); color: var(--ivory); }
.btn svg { width: 16px; height: 16px; flex: none; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.more:hover { border-color: var(--ivory); }


/* the hook: one line, nothing else */
.hook { text-align: center; }
.hook h1 { font-size: clamp(44px, 8.4vw, 112px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; max-width: 12ch; margin: 0 auto; }
.hook h1 span { display: block; background: linear-gradient(90deg, var(--read), var(--keep) 40%, var(--studio) 70%, var(--play)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.down { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--grey); border: 1px solid var(--rule); text-decoration: none; }
.down svg { width: 18px; height: 18px; }
.down:hover { color: var(--ivory); border-color: var(--grey); }

/* phones that play their screens, with a tap mark where the app was tapped */
.phone { height: min(62svh, 600px); aspect-ratio: 410 / 864; max-width: 100%; border-radius: 40px; padding: 9px; background: #070d15; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px #2e3c4b; flex: none; }
.frames { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--deep); }
.f { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.f.rest { opacity: 1; }
.run .f.rest { opacity: 0; }
.run .f.on { opacity: 1; }
.tap { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(241, 238, 231, .24); box-shadow: 0 0 0 2px rgba(241, 238, 231, .8); opacity: 0; pointer-events: none; }
.tap.go { animation: press .8s ease-out; }
@keyframes press { 0% { opacity: 0; transform: scale(1.7); } 35% { opacity: 1; transform: scale(1); } 60% { opacity: 1; transform: scale(.82); } 100% { opacity: 0; transform: scale(1); } }
.shot { margin: 0; display: grid; justify-items: center; gap: 12px; }
.shot figcaption { font: 500 13px/1.4 var(--mono); letter-spacing: .04em; color: var(--grey); text-align: center; min-height: 2.8em; max-width: 30ch; }

/* what it does: the list on the left, a phone on a tinted stage on the right */
.does { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.tabs { display: grid; margin: 0; padding: 0; list-style: none; }
.tab { border-bottom: 1px solid var(--rule); }
.tab button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 4px; cursor: pointer; font: 600 19px/1.3 var(--display); letter-spacing: -0.01em; color: var(--ivory); }
.tab button:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
.dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); font: 600 13px/1 var(--mono); flex: none; }
.tab p { margin: -4px 0 14px 46px; color: var(--grey); font-size: 15px; max-width: 32em; }
.tab[aria-current="true"] button { color: var(--c); }
.tab:not([aria-current="true"]) p { display: none; }
.does-side { display: grid; gap: 22px; }
/* the phone is the frame: no panel around it (owner, 2026-11-30) */
.stage { display: grid; place-items: center; }
@media (max-width: 900px) {
  .does { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .stage { order: -1; }
  .stage .phone { height: min(48svh, 460px); }
  .tab button { padding: 10px 4px; font-size: 17px; }
}

/* the offer: three ivory cards, the last one lifted */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.card { background: var(--ivory); color: var(--ink); border-radius: 22px; padding: 26px; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; }
.card .step { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.card h3 { font-size: 23px; font-weight: 700; }
.card .big { font: 800 38px/1 var(--display); letter-spacing: -0.03em; }
.card .big small { font: 500 14px/1 var(--text); letter-spacing: 0; color: var(--ink-soft); margin-left: 6px; }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15px; color: var(--ink-soft); align-content: start; }
.card li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.card li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: color-mix(in srgb, var(--c) 30%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2530' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.card .btn { width: 100%; margin-top: 8px; }
.card.lift { background: linear-gradient(160deg, #fff7ec 0%, var(--ivory) 55%); box-shadow: 0 0 0 2px var(--play), 0 28px 60px rgba(255, 170, 102, .18); }
.tag { justify-self: start; padding: 5px 10px; border-radius: 999px; font: 600 12px/1 var(--text); background: color-mix(in srgb, var(--c) 28%, #fff); color: var(--ink); }
.deadline { text-align: center; margin: 26px 0 0; color: var(--grey); font-size: 15px; }
.deadline b { color: var(--ivory); font-weight: 600; }

/* sideways rows on a phone: cards and tiles swipe instead of stacking past the screen */
@media (max-width: 900px) {
  .swipe { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 10px; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding-inline: var(--gutter-l) var(--gutter-r); scrollbar-width: thin; }
  .swipe > * { scroll-snap-align: center; }
  .hint { display: block !important; }
}
.hint { display: none; text-align: center; margin: 12px 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; color: var(--grey); }

/* the film */
.film { position: relative; border-radius: 28px; overflow: hidden; min-height: min(60svh, 560px); background:
  radial-gradient(60% 80% at 15% 20%, rgba(134, 174, 255, .55), transparent 60%),
  radial-gradient(50% 70% at 85% 30%, rgba(243, 160, 196, .45), transparent 60%),
  radial-gradient(60% 70% at 60% 100%, rgba(255, 170, 102, .45), transparent 60%), var(--deep);
  border: 1px solid var(--rule); display: grid; place-items: center; text-align: center; }
.film .inner { display: grid; justify-items: center; gap: 16px; padding: 24px; }
.film blockquote { margin: 0; font: 700 clamp(26px, 3.6vw, 44px)/1.15 var(--display); letter-spacing: -0.02em; max-width: 18ch; }
.film blockquote em { font-style: normal; color: var(--ink); background: var(--ivory); padding: 0 .2em; border-radius: 6px; }
.play { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); color: var(--ink); text-decoration: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.play svg { width: 28px; height: 28px; margin-left: 4px; }
.film p { margin: 0; color: var(--ivory); opacity: .85; font-size: 15px; max-width: 36em; }

/* the five Spanishes: each tile opens with its map */
.voices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.voice { background: var(--slate); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; display: grid; align-content: start; }
.voice .map { position: relative; background: radial-gradient(80% 90% at 50% 40%, color-mix(in srgb, var(--c) 10%, var(--deep)), var(--deep)); border-bottom: 1px solid var(--rule); }
.voice .map svg { display: block; width: 100%; height: auto; }
.voice .map .land path { fill: var(--land); stroke: var(--deep); stroke-width: .6; }
.voice .map .land path.on { fill: var(--c); stroke: color-mix(in srgb, var(--c) 60%, var(--deep)); }
.voice .map .ring { fill: none; stroke: var(--ivory); stroke-width: 1.2; opacity: .7; }
.voice .map .city { fill: var(--ivory); }
.voice .map small { position: absolute; left: 10px; bottom: 8px; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ivory); background: rgba(11, 20, 32, .7); padding: 4px 6px; border-radius: 6px; }
.voice .words { padding: 16px 18px 18px; display: grid; gap: 8px; }
.voice b { font: 700 17px/1.25 var(--display); display: flex; align-items: center; gap: 8px; }
.voice b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.voice .where { font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.voice q { font: 500 16px/1.4 var(--text); color: var(--ivory); quotes: "“" "”"; }
.voice .en-line { font-size: 14px; color: var(--grey); }

/* questions */
.faq { max-width: 820px; margin: 0 auto; width: 100%; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 4px; font: 600 18px/1.35 var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 11px; height: 11px; flex: none; border-right: 2px solid var(--grey); border-bottom: 2px solid var(--grey); transform: rotate(45deg) translateY(-4px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq details[open] summary { color: var(--sky); }
.faq details p { margin: -4px 4px 18px; color: var(--grey); max-width: 46em; }

/* closing call: a bright sky made of the chapter colours */
.close { text-align: center; background:
  radial-gradient(40% 60% at 20% 30%, rgba(134, 174, 255, .9), transparent 70%),
  radial-gradient(40% 60% at 80% 25%, rgba(180, 161, 255, .85), transparent 70%),
  radial-gradient(45% 60% at 50% 100%, rgba(255, 170, 102, .8), transparent 70%),
  radial-gradient(35% 50% at 90% 90%, rgba(94, 214, 168, .7), transparent 70%), #5b74b8; }
.close .wrap { display: grid; justify-items: center; gap: 24px; }
.close .pair { width: min(320px, 70vw); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%); }
.close h2 { font-size: clamp(38px, 6vw, 76px); font-weight: 800; line-height: 1.02; color: #fff; text-shadow: 0 2px 30px rgba(11, 20, 32, .25); }
.close p { margin: 0; color: #fff; font-size: 17px; }


/* features page: an index of the nine chapters, then one chapter per screen */
.index h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; text-align: center; }
.index p.lead { text-align: center; color: var(--grey); max-width: 36em; margin: 18px auto 34px; }
.ch-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; }
.ch-index a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--slate); border: 1px solid var(--rule); text-decoration: none; font: 600 17px/1.2 var(--display); transition: border-color .15s ease, transform .15s ease; }
.ch-index a:hover { border-color: var(--c); transform: translateY(-1px); }
.ch-index a small { color: var(--grey); font: 400 14px/1.3 var(--text); display: block; margin-top: 3px; }
@media (max-width: 760px) { .ch-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ch-index a { padding: 12px 14px; font-size: 15px; } .ch-index a small { display: none; } }
.ch { background: radial-gradient(70% 80% at var(--x, 80%) 40%, color-mix(in srgb, var(--c) 16%, var(--night)) 0%, var(--night) 70%); }
/* the headline, points and links share one column, the reading width the points always had (owner, 2026-11-30) */
.ch .wrap { display: grid; grid-template-columns: minmax(0, 34rem) auto; justify-content: center; gap: 56px 120px; align-items: center; }
.ch.flip { --x: 20%; }
.ch.flip .shot { order: -1; }
.ch.flip .wrap { grid-template-columns: auto minmax(0, 34rem); }
.ch .label { display: inline-flex; align-items: center; gap: 12px; font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.ch h2 { font-size: clamp(32px, 4.2vw, 56px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; margin-top: 16px; }
.ch ul.points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.ch ul.points li { display: grid; grid-template-columns: 10px 1fr; gap: 14px; color: var(--grey); font-size: 17px; }
.ch ul.points li::before { content: ""; width: 8px; height: 8px; margin-top: 10px; border-radius: 3px; background: var(--c); }
.ch ul.points em { font-style: normal; color: var(--ivory); }
.ch .lead-in { color: var(--grey); margin: 22px 0 0; }
.ch .lead-in em { font-style: italic; color: var(--ivory); }
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.guides li { padding: 10px 12px; border-radius: 12px; background: var(--slate); border: 1px solid var(--rule); font-size: 14px; color: var(--grey); }
.guides li b { display: block; color: var(--ivory); font: 600 15px/1.3 var(--display); }
.next { margin-top: 28px; display: inline-flex; }
/* the Features phones as large as the screen allows, so the app's own words can be read */
.ch .phone { height: min(72svh, 680px); }
@media (max-width: 900px) {
  .ch .wrap, .ch.flip .wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ch.flip .shot { order: 0; }
  .ch .shot { order: 2; }
  .ch .phone { height: min(50svh, 470px); }
  .ch h2 { font-size: 30px; margin-top: 10px; }
  .ch ul.points { margin-top: 14px; gap: 8px; }
  .ch ul.points li { font-size: 15px; }
  .ch ul.points li:nth-child(n+3) { display: none; }
  .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guides li:nth-child(n+5) { display: none; }
  .ch .lead-in { display: none; }
  .next { display: none; }
}


/* the five Spanishes: the heading centred above the tiles; each tile carries its own map */
.dialect-head { margin-bottom: 28px; }

/* the speech bubble on each map: a phrase locals would recognise, its tail on the city */
.say .bubble, .say .tail { fill: var(--ivory); }
.say text { fill: var(--ink); font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; text-anchor: middle; dominant-baseline: central; }
.voice .map .say .bubble, .voice .map .say .tail { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }

/* the feature switcher must fit one screen: a shorter phone, tighter rows */
#features.screen { padding-block: 28px; }
#features .head h2 { font-size: clamp(26px, 3vw, 38px); }
#features .does-side { gap: 16px; }
#features .tab button { padding: 11px 4px; font-size: 18px; }
#features .tab p { margin-bottom: 10px; font-size: 14.5px; }
#features .stage .phone { height: min(calc(100svh - 64px - 150px), 560px); }
#features .shot { gap: 8px; }
#features .shot figcaption { min-height: 2.6em; }
.more svg { width: 16px; height: 16px; flex: none; }
#features .stage .phone { height: min(calc(100svh - 64px - 210px), 540px); }

/* phones: each section kept to about one screen */
@media (max-width: 900px) {
  .dialect-head { margin-bottom: 16px; }
  /* the switcher: headline, a row of feature pills, the phone, the link */
  .does { display: flex; flex-direction: column; gap: 14px; }
  .does-side { display: contents; }
  .does-side .head { order: 1; }
  .tabs { order: 2; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding-inline: var(--gutter-l) var(--gutter-r); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { border: 0; flex: none; }
  .tab p { display: none; }
  #features .tab button { padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--slate); border: 1px solid var(--rule); font-size: 15px; gap: 8px; }
  #features .tab[aria-current="true"] button { border-color: var(--c); }
  .tab .dot { width: 24px; height: 24px; font-size: 12px; }
  .stage { order: 3; }
  .does-side .more { order: 4; justify-self: center; align-self: center; }
  #features .stage .phone { height: min(46svh, 440px); }
  /* bigger than one screen's share, so the app's words stay readable; the part may run past one screen */
  .ch .phone { height: min(72svh, 640px); }
}
@media (max-width: 900px) {
  .voices.swipe, .cards.swipe { grid-template-columns: none; grid-auto-columns: min(80vw, 320px); }
  .voice:last-child { grid-column: auto; }
}
/* a section's one column never grows to fit a sideways row */
.screen { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
  .does { min-width: 0; width: 100%; }
  .does .tabs { align-self: stretch; min-width: 0; width: auto; max-width: none; flex: none; }
  .does .stage, .does .head, .does .more { min-width: 0; max-width: 100%; }
}

/* the opening: the waving pair, the chip, the hook line and the three pills, all on one screen; Spanish words drift
   in the dark around them */
.hook { overflow: hidden; padding-block: 24px; }
.hook .wrap { position: relative; display: grid; justify-items: center; gap: 18px; }
.hook h1 { font-size: clamp(40px, 5.8vw, 84px); max-width: 15ch; }
.drift { position: absolute; inset: 0; pointer-events: none; font: 500 14px/1 var(--mono); }
.drift span { position: absolute; color: var(--c); opacity: .22; white-space: nowrap; }
.hook .pair { width: min(260px, 60vw); filter: drop-shadow(0 24px 48px rgba(134, 174, 255, .18)); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: var(--raised); border: 1px solid var(--rule); font: 500 13px/1.3 var(--text); color: var(--ivory); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--talk); box-shadow: 0 0 0 4px rgba(94, 214, 168, .16); flex: none; }
.stack { display: grid; gap: 10px; width: min(100%, 360px); }
.stack .btn { width: 100%; min-height: 50px; }
.fine { font-size: 13px; color: var(--grey); margin: 0; }
.fine a { text-underline-offset: 3px; }
@media (max-width: 640px) { .drift span { opacity: .13; } .hook .pair { width: min(200px, 54vw); } .hook .wrap { gap: 14px; } .stack .btn { min-height: 46px; } }
.hook .pair, .close .pair { height: auto; }
@media (min-width: 641px) { .hook .pair { width: min(340px, 60vw); } }

/* the drifting words: five typefaces, many sizes and tilts, each floating slowly on its own beat */
.drift span { font-size: var(--s, 14px); opacity: var(--o, .3); transform: rotate(var(--r, 0deg)); animation: drift var(--d, 9s) ease-in-out infinite alternate; line-height: 1; }
.drift .w-serif { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 600; }
.drift .w-hand { font-family: "Caveat", "Comic Sans MS", cursive; font-weight: 600; font-size: calc(var(--s, 14px) * 1.35); }
.drift .w-mono { font-family: var(--mono); font-weight: 500; }
.drift .w-bold { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
.drift .w-light { font-family: var(--display); font-weight: 300; letter-spacing: .02em; }
@keyframes drift { from { transform: translateY(-5px) rotate(var(--r, 0deg)); } to { transform: translateY(6px) rotate(calc(var(--r, 0deg) * -0.4)); } }
@media (max-width: 640px) { .drift span { opacity: calc(var(--o, .3) * .5); font-size: calc(var(--s, 14px) * .8); } }
/* a few words highlighted, like a word just tapped in the app: a marker stroke in the word's colour behind it */
.drift span.hi { opacity: .95; color: var(--ink); padding: .08em .32em .14em; border-radius: .28em; background: linear-gradient(100deg, color-mix(in srgb, var(--c) 92%, #fff) 0%, var(--c) 100%); box-shadow: 0 6px 20px color-mix(in srgb, var(--c) 30%, transparent); }
@media (max-width: 640px) { .drift span.hi { opacity: .55; } }
@media (max-width: 640px) { .drift span.hi { opacity: .3; } }
/* a smaller hook line (owner, 2026-11-30) */
.hook h1 { font-size: clamp(34px, 4.4vw, 62px); max-width: 16ch; }
/* the hook on exactly two lines at every width: each line kept whole, the size following the screen's width */
.hook h1 { max-width: none; font-size: clamp(22px, 6vw, 62px); }
.hook h1 > span { display: block; white-space: nowrap; }
.hook h1 .l1 { background: none; color: var(--ivory); -webkit-background-clip: border-box; background-clip: border-box; }

/* ===== the type scale (owner, 2026-11-30): seven steps, set last so they win over the rules above =====
   Display 56/26 · Heading 40/24 · Figure 32/22 · Title 20/18 · Lead 18/16 · Body 16 · Small 14 (computer/phone).
   Weights 700 headings, 600 labels and buttons, 400 reading; the mono labels stay at 500, the heaviest DM Mono has.
   Nothing below 14 px. The floating words and the map bubbles stay outside the scale on purpose. */

/* Display: the hook and the Features page title */
.hook h1, .index h1 { font-size: var(--t-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.hook h1 { max-width: none; }

/* Heading: every section, every chapter, the closing headline */
.head h2, #features .head h2, .ch h2, .close h2 { font-size: var(--t-heading); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }

/* Figure: the offer numbers and the film quote */
.card .big, .film blockquote { font-size: var(--t-figure); font-weight: 700; line-height: 1.1; }
.card .big small { font-size: var(--t-small); }

/* Title */
.card h3, .faq summary, .voice b, .ch-index a, .tab button, #features .tab button { font-size: var(--t-title); font-weight: 600; line-height: 1.3; }
@media (max-width: 900px) { #features .tab button { font-size: var(--t-body); } }

/* Lead */
.head p, .index p.lead { font-size: var(--t-lead); line-height: 1.55; }

/* Body */
.ch ul.points li, .faq details p, .close p, .voice q, .card li, .card ul, .film p, .more, .next, .ch .lead-in { font-size: var(--t-body); line-height: 1.6; }
.voice q { font-weight: 400; }
.btn, .stack .btn, .card .btn { font-size: var(--t-body); font-weight: 600; }
.guides li b { font-size: var(--t-body); font-weight: 600; }
@media (max-width: 900px) { .ch ul.points li { font-size: var(--t-body); } }

/* Small: 14 px, the floor */
.tab p, #features .tab p, .voice .en-line, .ch-index a small, .guides li, .fine, .hook .fine, .deadline,
.chip { font-size: var(--t-small); font-weight: 600; }
.shot figcaption, #features .shot figcaption { font: 400 var(--t-small)/1.45 var(--mono); }
.eyebrow, .card .step, .ch .label { font-size: var(--t-small); font-weight: 500; }
.eyebrow, .card .step, .ch .label { letter-spacing: .12em; }
.tag { font-size: var(--t-small); }
/* the two map lines lose their capitals so 14 px still fits */
.voice .where { font: 400 var(--t-small)/1.4 var(--text); letter-spacing: 0; text-transform: none; }
.voice .map small { font: 600 var(--t-small)/1 var(--text); letter-spacing: 0; text-transform: none; }
@media (max-width: 640px) { .chip { text-align: center; border-radius: 18px; justify-content: center; } }

/* offer cards, after the reference's pricing cards: a name and a one-line description, a large price with its unit,
   "Everything in step N, plus:", plain checks, full-width buttons at the foot. Reading text at full ink and weight 500,
   secondary lines in a grey that keeps 7:1 on ivory, generous space between the four blocks. */
.cards { gap: 24px; }
.card { padding: 32px 30px 28px; gap: 0; grid-template-rows: auto auto auto auto 1fr auto; border-radius: 24px; }
.card-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.card h3 { font-size: var(--t-title); font-weight: 600; letter-spacing: -0.01em; }
.card .step { font: 500 var(--t-small)/1.3 var(--text); letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.card .desc { margin: 8px 0 0; font-size: var(--t-body); line-height: 1.5; color: #3f4c59; }
.card .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; margin-top: 32px; }
.card .big { font-size: var(--t-figure); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.card .per { font-size: var(--t-body); color: #3f4c59; }
.card .tag { margin-left: auto; align-self: center; padding: 6px 12px; border-radius: 999px; font: 600 var(--t-small)/1 var(--text); color: #7a3a06; background: #ffe3cc; }
.card .plus { margin: 28px 0 0; font-size: var(--t-body); color: #3f4c59; }
.card ul { margin: 14px 0 0; gap: 14px; font-size: var(--t-body); line-height: 1.45; color: var(--ink); font-weight: 500; }
.card .price + ul { margin-top: 28px; }
.card li { grid-template-columns: 20px 1fr; gap: 12px; }
.card li::before { width: 20px; height: 20px; margin-top: 1px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2530' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; }
.card .btn { margin-top: 32px; min-height: 52px; font-weight: 600; }
.card.lift { background: var(--ivory); box-shadow: 0 0 0 2px var(--play), 0 28px 60px rgba(255, 170, 102, .16); }
/* the cards as columns: the button always at the foot, never stretched; the price rows line up across the three */
.card { display: flex; flex-direction: column; }
.card .step { margin-bottom: 6px; }
.card-top { align-items: center; }
.card .tag { margin-left: 0; }
.card .desc { min-height: 3em; }
.card .btn { margin-top: auto; }
.card ul { margin-bottom: 32px; }
@media (max-width: 900px) { .card { padding: 26px 24px 24px; } .card .desc { min-height: 0; } .card .price { margin-top: 22px; } .card .plus, .card .price + ul { margin-top: 20px; } .card ul { gap: 10px; margin-bottom: 24px; } }
/* the step line on every card is one row of the same height, with the tag at its right on the third */
.steprow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; margin-bottom: 6px; }
.steprow .step { margin: 0; }

/* ===== one convention everywhere (owner, 2026-11-30), after the reference's pricing cards =====
   Names and titles: 20, weight 600, full contrast. Main content (list items, quotes): 16, weight 500, full contrast.
   Descriptions and answers: 16, weight 400, soft colour. Labels: 14, weight 500, soft colour, sentence case.
   Soft colours keep at least 7:1 on their ground: grey on the night and slate, a lighter grey on raised panels,
   slate grey on ivory. Plain ticks, no tinted circles. Generous space between blocks. */
:root { --soft: var(--grey); --soft-raised: #bcc2c9; --ink-soft: #3f4c59; }

/* labels: small, soft, sentence case, in the reading face */
.eyebrow, .card .step, .voice .where { font: 500 var(--t-small)/1.4 var(--text); letter-spacing: 0; text-transform: none; color: var(--soft); }
/* the offer cards are ivory: their step labels take the slate grey made for ivory, not the night's grey (7.6:1) */
.card .step { color: var(--ink-soft); }
.ch .label { font: 500 var(--t-small)/1.4 var(--text); letter-spacing: 0; text-transform: none; color: var(--c); }
.shot figcaption, #features .shot figcaption { font: 400 var(--t-small)/1.45 var(--text); color: var(--soft); }
.voice .map small { font: 500 var(--t-small)/1 var(--text); }

/* names and titles */
.tab button, #features .tab button, .faq summary, .voice b, .ch-index a, .card h3 { font-weight: 600; }
.guides li b { font-weight: 600; color: var(--ivory); }

/* main content at full contrast, weight 500 */
.voice q { font-size: var(--t-body); font-weight: 500; color: var(--ivory); }
.ch ul.points li { color: var(--ivory); font-weight: 500; grid-template-columns: 20px 1fr; gap: 12px; }
.ch ul.points em { color: var(--c); }
.ch ul.points li::before { width: 20px; height: 20px; margin-top: 2px; border-radius: 0; background: var(--c);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* descriptions and answers: 16, weight 400, soft */
.tab p, #features .tab p, .voice .en-line, .ch-index a small, .faq details p, .ch .lead-in, .head p, .index p.lead { color: var(--soft); font-weight: 400; }
.tab p, #features .tab p, .voice .en-line, .ch-index a small { font-size: var(--t-body); line-height: 1.5; }

/* space between blocks */
.head { margin-bottom: 44px; gap: 14px; }
#features .does-side { gap: 20px; }
.tab button, #features .tab button { padding: 14px 4px; }
.tab p, #features .tab p { margin: -2px 0 16px 46px; }
.voice .words { padding: 22px 22px 24px; gap: 10px; }
.voice .en-line { margin-top: 2px; }
.faq summary { padding: 22px 4px; }
.faq details p { margin: -6px 4px 22px; }
.ch-index { gap: 14px; }
.ch-index a { padding: 20px 22px; gap: 14px; align-items: flex-start; }
.ch-index a small { margin-top: 6px; }
.ch ul.points { gap: 16px; margin-top: 28px; }
.guides li { padding: 14px 16px; }
@media (max-width: 900px) {
  .head { margin-bottom: 24px; }
  .tab button, #features .tab button { padding: 8px 14px 8px 8px; }
  .voice .words { padding: 18px 18px 20px; }
  .ch-index a { padding: 14px 16px; }
  .ch ul.points { gap: 10px; margin-top: 16px; }
}
#offer .head { margin-bottom: 32px; }
#offer .card .price { margin-top: 28px; }

/* one language at a time: shell.css hides .es; these keep the hidden one hidden however a rule above sets display */
html:not([lang="es"]) .es, html[lang="es"] .en { display: none !important; }
html[lang="es"] .es { display: revert; }
/* blocks with an English and a Spanish version keep their own layout (revert would make them plain blocks) */
html[lang="es"] .voices.es { display: grid; }
/* the hook's two lines: the first in ivory, the second in the gradient; in Spanish the longer second line sets a
   smaller size on a phone so both lines still fit */
.hook h1 .l1 span { background: none; color: var(--ivory); -webkit-background-clip: border-box; background-clip: border-box; }
.hook h1 > span:last-child > span { display: inline; }
html[lang="es"] .hook h1 { font-size: clamp(20px, 4.67vw, 56px); }
/* the film: the real video, 16:9 on a computer, the portrait cut on a phone (build.py swaps it) */
/* the film, framed as on the live site: the video at its own shape (16:9, portrait 9:16 on a phone) with 18 px
   corners and a hairline; its width comes from the height it may take, so no black bars appear */
.film { display: block; aspect-ratio: 16 / 9; width: min(100%, calc(58svh * 16 / 9)); height: auto; min-height: 0; max-height: none;
  margin: 0 auto; padding: 0; border-radius: 18px; overflow: hidden; background: #000; place-items: initial;
  box-shadow: 0 0 0 1px var(--rule), 0 40px 80px -40px rgba(0, 0, 0, .8); }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
@media (max-width: 700px) { .film { aspect-ratio: 9 / 16; width: min(100%, calc(62svh * 9 / 16)); } }
.film-note { margin: 18px auto 0; max-width: 46em; text-align: center; color: var(--soft); font-size: var(--t-body); }
/* a way to join right after the film: on a phone the header has scrolled away and the hook has no buttons */
.film-join { margin: 20px 0 0; text-align: center; }
/* the guides on the Features page: name on its own line */
.guides li b { display: block; }

/* Phone: the two-row header (about 120px) scrolls away, so the hook fills the rest of the first screen,
   and the floating words keep to the bands above and below the text, clear of the headline and the small print. */
@media (max-width: 700px) {
  .hook.screen { min-height: calc(100svh - 120px - env(safe-area-inset-top, 0px)); padding-block: 24px; }
  .drift .ph-off { display: none; }
  /* the hook's three buttons take the first screen on a phone (owner, 2026-11-30): the header's Join pill stays */
  .hook .stack { display: none; }
}

/* Phone: the chapter chips are two to a row, so their names step down to the body size to fit "Marketplace" */
@media (max-width: 760px) { .ch-index a { font-size: var(--t-body); min-width: 0; } }

/* Features index: the nine parts as a flow (owner, 2026-11-30). Where Spanish comes from -> what happens to it -> what
   comes along; every part links to its chapter, and four ways in sit under the map. */
.flow { display: grid; grid-template-columns: minmax(0, 1.25fr) 132px minmax(0, 1fr) minmax(0, .9fr); gap: 0 20px; align-items: start; max-width: var(--frame); margin: 8px auto 0; }
.flow-step { margin: 0 0 12px; font: 500 var(--t-small)/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.flow .nodes { display: grid; gap: 10px; }
.flow .nodes.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flow .node { position: relative; display: grid; gap: 4px; padding: 14px 16px 14px 34px; border-radius: 16px; background: var(--raised); border: 1px solid var(--rule); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.flow .node::before { content: ""; position: absolute; left: 16px; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.flow .node:hover { border-color: var(--c); transform: translateY(-1px); }
.flow .node b { font: 600 var(--t-title)/1.25 var(--display); color: var(--ivory); }
.flow .node small { font: 400 var(--t-small)/1.4 var(--text); color: var(--soft-raised); }
.flow .chain .node:not(:last-child)::after { content: ""; position: absolute; left: 20px; bottom: -11px; width: 2px; height: 10px; background: var(--rule); }
.flow-arrow { align-self: center; display: grid; justify-items: center; gap: 6px; margin: 0; padding-top: 28px; text-align: center; font: 500 var(--t-small)/1.35 var(--text); color: var(--soft); }
.flow-arrow svg { width: 40px; height: 22px; color: var(--ivory); }
.flow-loop { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 500 var(--t-small)/1.4 var(--text); color: var(--soft); text-decoration: none; }
.flow-loop svg { width: 18px; height: 18px; flex: none; color: var(--path); }
.flow-loop:hover { color: var(--ivory); }
.flow .along { padding-left: 20px; border-left: 1px dashed var(--rule); }
.starts { max-width: var(--frame); margin: 36px auto 0; }
.start-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.start-row a { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--rule); text-decoration: none; color: var(--soft); font: 400 var(--t-small)/1.4 var(--text); }
.start-row a b { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--t-body)/1.3 var(--text); color: var(--ivory); }
.start-row a b svg { width: 14px; height: 14px; color: var(--c); flex: none; }
.start-row a:hover { border-color: var(--c); }
@media (max-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow-arrow { padding: 10px 0 14px; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; text-align: left; }
  .flow-arrow svg { transform: rotate(90deg); width: 22px; order: -1; }
  .flow .along { padding: 18px 0 0; margin-top: 18px; border-left: 0; border-top: 1px dashed var(--rule); }
  .flow .along .nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow .node { padding: 12px 12px 12px 30px; }
  .flow .node::before { left: 13px; top: 19px; }
  .flow .chain .node:not(:last-child)::after { left: 17px; }
}
