/* SEYAselect website, layout "Chapters" (the user's choice of 2026-11-12). The colours, the font and the small parts
 * (buttons, segments, pills, hairlines) are the app's workspace (style.css there); the presentation is the one light
 * section (what the client receives). No inline styles anywhere: the CSP allows none. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #111216;
  --panel: #16171c;
  --surface: #1c1d23;
  --raise: #2a2b33;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #e9e9ec;
  --soft: #c9cad2;
  --dim: #9a9ba6;
  --faint: #7c7d88;
  --accent: #E9A23B;
  --accent-dark: #d29235;
  --on-accent: #23201a;
  --signal: #3457D1;
  --link: #5276f0;
  --red: #e6735f;
  --green: #6cc08f;
  --paper: #f7f7f5;
  --ink: #1d1e22;
  --ink-dim: #5f6069;
  --ink-line: rgba(0, 0, 0, .09);
  --head-h: 64px;
  --index-h: 52px;
  --pad: 40px;
  --r: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-wrap: pretty;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.022em; line-height: 1.1; text-wrap: balance; }
img, video { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #7593f5; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; }
.skip:focus { left: 16px; background: var(--text); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.placeholder { color: var(--accent); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--dim); }
.num { font-size: 13px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--dim); }

/* Buttons: the app's amber button and its quiet neighbour */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 8px;
  font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 500; }
.btn-ghost:hover { background: var(--raise); color: var(--text); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Segments, as "Grid | List" in the editor */
.seg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 3px; border-radius: 8px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 5px; background: none; font-size: 13px; font-weight: 500; color: var(--dim); cursor: pointer; transition: color .2s, background-color .2s; }
.seg button:hover { color: var(--text); }
.seg button.on, .seg button[aria-pressed="true"] { background: var(--raise); color: var(--text); }

/* Header: over the hero without a ground, solid with a hairline once the page moves (site.js) */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--head-h);
  border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled {
  background: rgba(17, 18, 22, .86); border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
}
/* the menu runs across the whole window: the logo at the far left, "Apply for the beta" at the far right (the user's wish of 2026-11-12) */
.site-header .wrap { max-width: none; }
.header-row { display: flex; align-items: center; gap: 36px; height: 100%; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { height: 21px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a, .header-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--soft); font-size: 14px; font-weight: 500; transition: color .2s;
}
.nav a:hover, .header-link:hover { color: #fff; }
.header-spacer { flex: 1; }
.header-row .btn { min-height: 38px; }

/* Hero: the photo on the right, fading into the ground where the words stand; the four steps at its foot */
.hero {
  position: relative; display: grid; grid-template-rows: 1fr auto; isolation: isolate; overflow: hidden;
  min-height: clamp(660px, 100vh, 940px);
}
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; z-index: -1; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 46%); mask-image: linear-gradient(90deg, transparent 0, #000 46%);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 18, 22, .55) 0, rgba(17, 18, 22, 0) 22%, rgba(17, 18, 22, 0) 58%, var(--bg) 100%);
}
/* the words and the steps under them stand about 100 px further left than the page's column (the user's wish of 2026-11-12),
 * never closer to the edge than the logo; the steps reach as far to the right, like the menu */
.hero-words, .hero-foot { width: 100%; max-width: none; padding-left: max(var(--pad), calc((100% - 1240px) / 2 + var(--pad) - 100px)); }
.hero-foot { padding-right: max(var(--pad), calc((100% - 1240px) / 2 + var(--pad) - 100px)); }
.hero-words { align-self: center; padding-top: calc(var(--head-h) + 96px); padding-bottom: 48px; }
.hero-words > * { max-width: 600px; }
.hero .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero-words > h1 { max-width: 760px; }
.hero h1 { margin: 18px 0 22px; font-size: clamp(42px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.035em; }
.hero-lead { margin-bottom: 30px; font-size: 18px; color: var(--soft); max-width: 50ch; }
.hero-join { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; padding: 26px 0 60px; border-top: 1px solid var(--line-2); }
.step-title { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.steps li > p:last-child { font-size: 14px; color: var(--dim); }
/* The tab at the foot of the hero, as in the app's presentation mode (.hero-tab there): a tab of the section
 * below that reaches up, just a chevron, leading on to the features. It rises a little under the pointer; on
 * load the page peeks up by 44 px for a moment, the tab with it (.hero-peek, site.js). */
.hero-tab {
  position: absolute; left: 50%; bottom: 0; z-index: 2; margin-left: -44px;
  display: flex; align-items: center; justify-content: center;
  width: 88px; height: 30px; background: var(--bg); color: var(--dim);
  border-radius: 12px 12px 0 0; box-shadow: 0 -2px 12px rgba(0, 0, 0, .12);
  transition: height .2s ease, color .15s;
}
.hero-tab:hover, .hero-tab:focus-visible { height: 38px; color: var(--text); }
.hero-tab .ico { stroke-width: 2; }
main { transition: transform .4s ease; }
.hero-peek main { transform: translateY(-44px); }

/* Waitlist forms (web/inc/waitlist.php): the field with its button, the two checks below */
.join { display: flex; flex-direction: column; gap: 10px; }
.join .field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.join-row { display: flex; gap: 8px; flex-wrap: wrap; }
.join input[type="email"] {
  flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 8px; background: rgba(22, 23, 28, .85); color: var(--text);
  font: inherit; font-size: 16px;
}
.join input[type="email"]::placeholder { color: var(--faint); }
.join input[type="email"]:focus { outline: 2px solid var(--signal); outline-offset: -1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--dim); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 10px 14px; border-radius: 8px; background: var(--surface); font-size: 14px; font-weight: 600; }
.form-msg.is-ok { color: var(--green); }
.form-msg.is-err { color: var(--red); }

/* Features: the intro, the index that stays under the header while the chapters pass (scroll spy in site.js) */
/* 80 px more room above the index on wide screens (the user's sandbox of 2026-11-12) */
.intro { padding: 120px 0 136px; text-align: center; }
.intro h2 { max-width: 16ch; margin: 14px auto 16px; font-size: clamp(34px, 3.6vw, 52px); }
.intro p:last-child { max-width: 54ch; margin: 0 auto; color: var(--dim); }
.index {
  position: sticky; top: var(--head-h); z-index: 40;
  background: rgba(17, 18, 22, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.index .wrap { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.index a {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--index-h); font-size: 14px; font-weight: 500; color: var(--dim); transition: color .2s;
}
.index a:hover, .index a.on { color: var(--text); }
.index .ico { width: 16px; height: 16px; transition: color .2s; }
.index a.on .ico { color: var(--accent); }
.index a::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.index a.on::after { transform: none; }

/* A chapter: its words stay in place while the clip plays beside them, reaching out towards the window's edge */
.chapter, .present { scroll-margin-top: var(--index-h); }
/* the clip in the page's column, beside the words; every second chapter has it on the left */
.chapter .wrap { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 72px; padding-top: 112px; padding-bottom: 112px; }
.chapter.is-flipped .wrap { grid-template-columns: minmax(0, 1fr) 372px; }
.chapter.is-flipped .chapter-words { order: 2; }
.chapter-words { position: sticky; top: calc(var(--head-h) + var(--index-h) + 48px); align-self: start; }
.chapter h2 { margin: 10px 0 18px; font-size: clamp(30px, 2.9vw, 42px); }
.chapter-text { font-size: 17px; color: var(--soft); }
.chap-list { margin-top: 30px; border-bottom: 1px solid var(--line); }
.chap-list button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 2px;
  border: 0; border-top: 1px solid var(--line); background: none;
  font-size: 14px; color: var(--dim); text-align: left; cursor: pointer; transition: color .2s;
}
.chap-list button::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: background-color .2s; }
.chap-list button:hover, .chap-list button.on { color: var(--text); }
.chap-list button.on::before { background: var(--accent); }
.chap-list time { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chapter-media { align-self: center; }
/* a recording of the app in its frame, with a hairline of progress (site.js) */
.frame { position: relative; overflow: hidden; border-radius: var(--r); background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, .7); }
.frame video { width: 100%; background: var(--panel); }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .06); pointer-events: none; }
.bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
html:not(.js) .bar { display: none; }

/* The light table: cards like the app's, with its marks as the client's dark theme draws them (style.css there, "card_pills_html"):
 * the heart and below it the flag as small pills at the top right of the image, shown while the pointer is on the card and while
 * they are on (the empty ones take no room meanwhile, so what is set starts at the top; touch screens always show them); the
 * heart toggles the favourite, the flag opens the app's flag menu (No flag, Red, Yellow, Green, Final, then Rejected); a
 * rejected card is greyed out without its marks and tags, "Reactivate" at the top right brings it back. */
.lighttable { padding: 96px 0 104px; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.table-head { display: flex; align-items: flex-end; gap: 24px 48px; margin-bottom: 30px; }
.table-head h2 { max-width: 24ch; margin-right: auto; font-size: clamp(28px, 2.6vw, 38px); }
.table-head p { max-width: 38ch; font-size: 15px; color: var(--dim); }
.tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; padding: 10px; border-radius: var(--r); background: var(--bg);
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s;
}
.tile:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.tile-img { position: relative; overflow: hidden; border-radius: 4px; background: var(--surface); }
.tile-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: filter .3s, opacity .3s; }
.tile-name { display: block; padding: 9px 0 1px; overflow: hidden; font-size: 12.5px; color: var(--dim); white-space: nowrap; text-overflow: ellipsis; }
.tile-pills { position: absolute; top: 6px; right: 6px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 2px 7px; margin: 0;
  border: 1px solid #3a3b44; border-radius: 8px; background: #1c1d23; color: var(--dim);
  font: inherit; font-size: 13px; line-height: 14px; cursor: pointer;
}
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill-fav:hover, .pill-fav.is-on { color: var(--red); }
.pill-fav.is-on svg, .pill-flag.is-on svg { fill: currentColor; }
.pill-flag:hover { color: #fff; }
.tile[data-flag="red"] .pill-flag.is-on { color: var(--red); }
.tile[data-flag="yellow"] .pill-flag.is-on { color: #f6d24f; }
.tile[data-flag="green"] .pill-flag.is-on { color: var(--green); }
.tile[data-flag="black"] .pill-flag.is-on { color: #f2f2f2; }
.pill-final { display: none; font-size: 12px; font-weight: 700; }
.tile[data-flag="black"] .pill-flag.is-on .pill-final { display: inline; }
.pill-reactivate { display: none; font-size: 12px; font-weight: 600; color: var(--soft); }
.pill-reactivate:hover { color: #fff; border-color: #55565f; }
@media (hover: hover) {
  .tile .pill-fav:not(.is-on), .tile .pill-flag:not(.is-on) { display: none; }
  .tile:hover .pill-fav, .tile:hover .pill-flag, .tile:has(:focus-visible) .pill-fav, .tile:has(:focus-visible) .pill-flag,
  .tile.is-menu-open .pill-fav, .tile.is-menu-open .pill-flag { display: inline-flex; }
}
.tile.is-rejected .tile-img img { filter: grayscale(1); opacity: .3; }
.tile.is-rejected .pill-fav, .tile.is-rejected .pill-flag, .tile.is-rejected .tile-tags { display: none !important; }
.tile.is-rejected:hover .pill-reactivate, .tile.is-rejected:focus-within .pill-reactivate { display: inline-flex; }
@media (hover: none) { .tile.is-rejected .pill-reactivate { display: inline-flex; } }
/* the app's tags at the bottom right: file type and version */
.tile-tags { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; pointer-events: none; }
.tile-tag {
  display: inline-flex; align-items: center; height: 20px; padding: 2px 7px; border: 1px solid #3a3b44; border-radius: 4px;
  background: #1c1d23; font-size: 12px; font-weight: 700; line-height: 14px; letter-spacing: .05em; color: #dcdde3;
}
.tile-tag.is-version { letter-spacing: 0; }
/* the app's flag menu, opened under the flag (site.js places it) */
.flag-menu {
  position: fixed; z-index: 70; min-width: 160px; padding: 6px;
  border: 1px solid #3a3b44; border-radius: 12px; background: #1c1d23; box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.flag-menu[hidden] { display: none; }
.flag-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--text); font-size: 14px; text-align: left; cursor: pointer;
}
.flag-menu button:hover, .flag-menu button.is-current { background: #2a2b32; }
.flag-menu button.is-current { font-weight: 700; }
.flag-menu svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flag-menu [data-flag="none"] svg, .flag-menu [data-reject] svg { fill: none; color: var(--dim); }
.flag-menu [data-flag="red"] svg { color: var(--red); }
.flag-menu [data-flag="yellow"] svg { color: #f6d24f; }
.flag-menu [data-flag="green"] svg { color: var(--green); }
.flag-menu [data-flag="black"] svg { color: #f2f2f2; }
.flag-menu hr { margin: 6px -6px; border: 0; border-top: 1px solid #3a3b44; }
/* the search text of the app's Export */
.searchbar {
  display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap;
  margin-top: 12px; padding: 12px 12px 12px 18px; border-radius: var(--r); background: var(--bg);
}
.search-label { font-size: 14px; color: var(--dim); white-space: nowrap; }
.search-text { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; color: var(--text); }
.search-text.is-empty { font-weight: 400; color: var(--faint); }
.search-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-apps { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.search-apps button, .copy-btn {
  min-height: 32px; padding: 0 12px; border: 0; border-radius: 5px; background: none;
  font-size: 13px; font-weight: 500; color: var(--dim); cursor: pointer; transition: background-color .2s, color .2s;
}
.search-apps button:hover { color: var(--text); }
.search-apps button[aria-pressed="true"] { background: var(--raise); color: var(--text); }
.copy-btn { min-height: 38px; padding: 0 14px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.copy-btn:hover:not(:disabled) { background: var(--raise); }
.copy-btn:disabled { opacity: .4; cursor: default; }

/* Presentation: the one light section, what the client receives */
.present { padding: 120px 0 128px; background: var(--paper); color: var(--ink); }
.present-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.present .num { color: #a8690f; }
.present h2 { margin: 10px 0 18px; font-size: clamp(34px, 3.6vw, 52px); }
.present .chapter-text { color: var(--ink-dim); }
.present .seg { margin-top: 26px; background: #ececea; box-shadow: none; }
.present .seg button { color: var(--ink-dim); }
.present .seg button:hover { color: var(--ink); }
.present .seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.present-wide { padding: 0 var(--pad); }
.present .frame { max-width: 1360px; margin: 0 auto; background: #fff; box-shadow: 0 0 0 1px var(--ink-line), 0 40px 80px -40px rgba(0, 0, 0, .28); }
.present .frame video { background: #fff; }
.present .bar { background: rgba(0, 0, 0, .06); }
.present :focus-visible { outline-color: var(--signal); }

/* Plain sections, the deep ones on the panel's ground */
.section { padding: 120px 0; }
.section-deep { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2, .split-words h2 { font-size: clamp(32px, 3.4vw, 48px); }
.section-head .eyebrow + h2, .split-words .eyebrow + h2 { margin-top: 12px; }
.section-head h2 + p, .split-words h2 + p { margin-top: 18px; font-size: 17px; color: var(--soft); }
.section-title { margin-bottom: 56px; font-size: clamp(32px, 3.4vw, 48px); }
/* the beta: three framed cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .3s; }
.card:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.card h3 { font-size: 19px; }
.card p { line-height: 1.55; color: var(--soft); }
/* "SEYAselect in short": two rows of three, hairlines between them */
.keypoint-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.keypoint { display: flex; flex-direction: column; gap: 10px; padding: 32px 32px 34px; border-bottom: 1px solid var(--line); }
.keypoint:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.keypoint:nth-child(3n+1) { padding-left: 0; }
.keypoint .ico { width: 22px; height: 22px; margin-bottom: 10px; color: var(--accent); stroke-width: 1.5; }
.keypoint h3 { font-size: 17px; letter-spacing: -.01em; }
.keypoint p { font-size: 15px; line-height: 1.6; color: var(--dim); }
#beta .btn { margin-top: 40px; }

/* The words on the left stay while the list on the right passes: "What sets it apart", the Questions */
.split .wrap { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 72px; }
.split-words { position: sticky; top: calc(var(--head-h) + 56px); align-self: start; }
.rows li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .ico { width: 20px; height: 20px; margin-top: 4px; color: var(--accent); }
.rows h3 { font-size: 22px; }
.rows p { grid-column: 2; max-width: 60ch; color: var(--dim); }

/* Pricing (web/inc/plans.php): the period switch, a card per plan offered with every limit and feature (the rows a
 * subgrid, so each line stands at the same height in every card), the scholarship and one-time lines below */
.price-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.period { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.period[hidden] { display: none; }
.period button {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 5px; background: none;
  font-size: 14px; font-weight: 500; color: var(--dim); cursor: pointer; transition: background-color .2s, color .2s;
}
.period button span { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--accent); }
.period button:hover { color: var(--text); }
.period button[aria-pressed="true"] { background: var(--raise); color: var(--text); }
.currency-pick { margin-left: auto; }
.currency-pick[hidden] { display: none; }
.currency-pick select {
  appearance: none; -webkit-appearance: none; width: 260px; max-width: 100%; min-height: 42px; padding: 0 40px 0 14px; text-overflow: ellipsis;
  border: 0; border-radius: 8px; background-color: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' fill='none' stroke='%239a9ba6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.currency-pick select:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-amount { font-size: 38px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.plan-per { font-size: 13px; color: var(--dim); }
.plan-yes { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan-no { width: 16px; text-align: center; flex: none; color: var(--faint); }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; }
.plan-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-cols-1 { grid-template-columns: minmax(0, 420px); }
.plan {
  /* as many rows as a card can have (10 + at most 40 features, PLAN_FEATURE_MAX), so the number of features may change on the
   * platform's "Plans" page: the rows a card does not fill are empty and take no room */
  display: grid; grid-row: span 50; grid-template-rows: subgrid; gap: 0; padding: 26px;
  border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s;
}
.plan:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.plan.is-featured { box-shadow: inset 0 0 0 1px var(--accent); }
.plan h3 { margin-bottom: 10px; font-size: 22px; }
.plan-for { margin-bottom: 10px; font-size: 14px; line-height: 1.55; color: var(--dim); text-wrap: balance; }
.plan .plan-price { margin-top: 8px; }
.plan .plan-per { margin: 4px 0 16px; }
.plan-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.plan-limit { justify-content: space-between; }
.plan-limit.is-first { border-top: 1px solid var(--line); }
.plan-limit strong { color: var(--text); font-weight: 600; text-align: right; }
.plan-plus { margin: 20px 0 6px; font-size: 13px; font-weight: 500; color: var(--dim); }
.plan-feature { border-bottom: 0; padding: 5px 0; color: var(--text); line-height: 1.35; }
.plan-feature.is-off { color: var(--faint); }
.plan-btn { margin-top: 20px; align-self: end; }
.one-time {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px 40px; align-items: center;
  margin-top: 16px; padding: 22px 26px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line);
}
.one-time h3 { margin-bottom: 6px; font-size: 19px; }
.one-time p { font-size: 15px; line-height: 1.55; color: var(--dim); }
.one-time .plan-amount { font-size: 26px; color: var(--text); }

/* Closing call */
.closing { padding: 120px 0; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.closing h2 { font-size: clamp(34px, 3.6vw, 52px); }
.closing .join { width: 100%; max-width: 480px; text-align: left; }
.closing .join input[type="email"] { background: var(--bg); }

/* Questions */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 10px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--dim); transition: transform .3s var(--ease); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { max-width: 64ch; padding-bottom: 22px; font-size: 16px; line-height: 1.6; color: var(--dim); }
.faq details p.placeholder { color: var(--accent); }
/* the note under the questions that some features depend on the plan */
.plan-note { margin-top: 28px; font-size: 13px; line-height: 1.6; color: var(--dim); }
.plan-note a { color: var(--text); }
.plan-note a:hover { color: var(--accent); }

/* Footer */
.site-footer { padding: 40px 0 44px; background: var(--panel); border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; justify-content: space-between; }
.footer-logo { display: flex; align-items: center; min-height: 44px; }
.footer-logo img { height: 18px; width: auto; }
.footer-nav { display: flex; gap: 4px 26px; flex-wrap: wrap; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); font-size: 13px; }
.footer-nav a:hover { color: #fff; }
.footer-legal { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--faint); }
/* the flag emoji, or on Windows its picture (flag.js) */
.footer-flag img { display: inline; width: auto; height: .8em; vertical-align: -.05em; border-radius: 1px; }

/* Text pages */
.text-page { padding: calc(var(--head-h) + 88px) 0 120px; }
.signup-form { margin-top: 28px; }
.text-wrap { max-width: 800px; }
.text-page h1 { margin-bottom: 20px; font-size: clamp(38px, 5vw, 60px); letter-spacing: -.03em; }
.text-lead { margin-bottom: 56px; font-size: 19px; color: var(--soft); }
.prose h2 { margin: 44px 0 12px; font-size: 23px; letter-spacing: -.01em; }
.prose h3 { margin: 28px 0 10px; font-size: 18px; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.65; color: var(--soft); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; margin: 12px 0 0; list-style: disc; }
.prose li + li { margin-top: 4px; }
.prose ul + p, .prose .table-wrap + p { margin-top: 14px; }
.prose address { font-style: normal; font-size: 17px; line-height: 1.7; color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }
.table-wrap { margin: 16px 0 0; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.prose td { color: var(--soft); }
.prose .notice { padding: 16px 20px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--accent); font-size: 15px; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 12px 32px; margin: 0; font-size: 17px; }
.contact-list dt { color: var(--dim); }
.contact-list dd { margin: 0; }

/* Motion: things rise in gently as they come into view (site.js adds .in). Without the script, or with
 * "reduce motion", everything simply stands there. */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-1 { transition-delay: .08s; }
.js .rv-2 { transition-delay: .16s; }
.js .tile { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 30ms + .2s); }
.js .lighttable.in .tile { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .tile { opacity: 1; transform: none; transition: none; }
  .tile-img img, .index a::after { transition: none; }
}

/* Narrow windows */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .chapter .wrap, .split .wrap { grid-template-columns: 320px minmax(0, 1fr); gap: 48px; }
  .chapter.is-flipped .wrap { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .header-row { gap: 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
  .intro { padding: 96px 0 40px; }
  /* the index no longer stays: a grid of the six under the intro */
  .index { position: static; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .index .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .index a { flex-direction: column; gap: 8px; height: auto; padding: 18px 8px; text-align: center; font-size: 13px; }
  .index a:nth-child(n+4) { border-top: 1px solid var(--line); }
  .index a::after { display: none; }
  .chapter, .present { scroll-margin-top: 0; }
  .chapter .wrap, .chapter.is-flipped .wrap, .split .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 72px; padding-bottom: 72px; }
  .chapter.is-flipped .chapter-words { order: 0; }
  .split .wrap { padding-top: 0; padding-bottom: 0; }
  .chapter-words, .split-words { position: static; }
  .table-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tile { padding: 6px; border-radius: 8px; }
  .tile-name { font-size: 11px; padding-top: 6px; }
  .keypoint-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keypoint:nth-child(n) { padding: 28px 28px 30px; border-right: 0; }
  .keypoint:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 96px 0; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .one-time { grid-template-columns: minmax(0, 1fr) auto; }
  .one-time > div { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --pad: 20px; --head-h: 60px; }
  .logo img { height: 18px; }
  .header-link { display: none; }
  .hero-lead { font-size: 17px; }
  .hero h1 { margin: 14px 0 18px; }
  .intro { padding: 80px 0 32px; }
  .index .wrap { padding: 0; }
  .chapter .wrap { padding-top: 56px; padding-bottom: 56px; gap: 28px; }
  .chapter h2 { font-size: 28px; }
  .chapter-text { font-size: 16px; }
  /* the chapters as small pills that wrap */
  .chap-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; border: 0; }
  .chap-list button { width: auto; min-height: 36px; padding: 0 12px; gap: 8px; border: 0; border-radius: 999px; background: var(--surface); font-size: 13px; }
  .chap-list time { display: none; }
  .frame { border-radius: 8px; }
  .lighttable { padding: 72px 0; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .tile-name { display: none; }
  .tile-pills { top: 4px; right: 4px; gap: 4px; }
  .tile-tags { right: 4px; bottom: 4px; }
  .searchbar { padding: 14px; }
  .search-tools { width: 100%; justify-content: space-between; }
  .present { padding: 80px 0 72px; }
  .present .seg { margin-top: 20px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 36px; }
  .rows h3 { font-size: 19px; }
  .rows li { grid-template-columns: 24px minmax(0, 1fr); gap: 6px 14px; padding: 22px 0; }
  .section-title { margin-bottom: 36px; }
  .keypoint-grid { grid-template-columns: minmax(0, 1fr); }
  .keypoint:nth-child(n), .keypoint:nth-child(odd) { padding: 24px 0; border-right: 0; }
  .closing { padding: 80px 0; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .plan { grid-row: auto; grid-template-rows: none; }
  .period { display: flex; width: 100%; }
  .period button { flex: 1; padding: 6px 8px; line-height: 1.25; }
  .period button span { display: block; margin: 0; }
  .currency-pick, .currency-pick select { width: 100%; }
  .text-page { padding: calc(var(--head-h) + 56px) 0 88px; }
  .contact-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .contact-list dd { margin-bottom: 14px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .index .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .index a:nth-child(odd) { border-right: 1px solid var(--line); }
}

/* Phones and upright screens: the words on the dark ground, the image below them (beside them the face would be cut) */
@media (max-width: 760px), (max-aspect-ratio: 5/4) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-words { order: 1; padding-top: calc(var(--head-h) + 56px); padding-bottom: 8px; }
  .hero-photo { position: relative; order: 2; width: 100%; height: clamp(360px, 70vw, 640px); margin-top: -40px; }
  .hero-photo img {
    object-position: 62% 40%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%);
  }
  .hero-photo::after { background: linear-gradient(0deg, var(--bg) 0, rgba(17, 18, 22, 0) 22%); }
  .hero-foot { order: 3; margin-top: -40px; }
}
