/* 叫人 JiaoRen landing: hand-designed (not template output). Dark is the brand's native theme, CNY vermilion and gold are the accents.
   Tokens in three layers: palette (raw colours) -> semantic (what a colour means) -> components (never raw hex).
   Fonts are self-hosted: Plus Jakarta Sans (latin) and a Noto Serif SC subset of the heading glyphs (both SIL OFL, see assets/fonts). */

@font-face {
  font-family: "JR Jakarta";
  src: url("assets/fonts/plusjakarta-latin.woff2?v=153fc85b") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JR Serif";
  src: url("assets/fonts/noto-serif-sc-display.woff2?v=f9099552") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* palette */
  --p-ink-950: #0a0809;
  --p-ink-900: #120e0f;
  --p-ink-800: #1b1517;
  --p-ink-700: #2a2123;
  --p-ink-paper: #25160f;
  --p-cream-50: #f8f1e4;
  --p-cream-100: #f1e6d1;
  --p-cream-300: #cdbfa9;
  --p-cream-600: #5a4a3b;
  --p-gold-200: #f6dca2;
  --p-gold-300: #ecc77a;
  --p-gold-500: #c9943a;
  --p-red-400: #e0594d;
  --p-red-500: #c0322a;
  --p-red-600: #9c1f1a;
  --p-red-700: #7a1612;
  --p-red-900: #3d0b0a;

  /* semantic */
  --bg: var(--p-ink-950);
  --surface: var(--p-ink-900);
  --surface-raised: var(--p-ink-800);
  --text: var(--p-cream-50);
  --text-muted: var(--p-cream-300);
  --line: rgba(236, 199, 122, 0.16);
  --line-strong: rgba(236, 199, 122, 0.4);
  --accent: var(--p-gold-300);
  --accent-deep: var(--p-gold-500);
  --seal: var(--p-red-500);
  --paper: var(--p-cream-100);
  --paper-card: #fbf6ea;
  --on-paper: var(--p-ink-paper);
  --on-paper-muted: var(--p-cream-600);
  --on-paper-line: rgba(122, 22, 18, 0.18);
  --on-paper-accent: var(--p-red-600);
  --focus: var(--p-gold-300);

  --font-sans: "JR Jakarta", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  --font-serif: "JR Serif", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;

  --wrap: 72.5rem;
  --gutter: 1.25rem;
  --radius: 1.25rem;
  --section: clamp(4rem, 9vw, 7.5rem);
}
/* The English page (/JiaoRen/en): the serif subset only holds the Chinese heading glyphs, so Latin headings use Plus Jakarta
   (its unicode-range is Latin only) and every Chinese glyph still falls through to the seal serif. */
html:lang(en) { --font-serif: "JR Jakarta", "JR Serif", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif; }
html:lang(en) .serif:not(:lang(zh)) { letter-spacing: -0.012em; }
html:lang(en) h1 { font-size: clamp(2.6rem, 5.6vw + 0.4rem, 4.9rem); letter-spacing: -0.025em; }
html:lang(en) .eyebrow { letter-spacing: 0.14em; text-transform: uppercase; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  font-weight: 450;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
b { font-weight: 800; }
.serif { font-family: var(--font-serif); font-weight: 800; letter-spacing: 0.01em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 0.25rem; }
.skip { position: absolute; left: 0.75rem; top: -4rem; z-index: 50; padding: 0.6rem 1rem; background: var(--p-cream-50); color: var(--p-ink-950); border-radius: 0.5rem; font-weight: 700; }
.skip:focus { top: 0.75rem; }
.br-wide { display: none; }
@media (min-width: 900px) { .br-wide { display: inline; } .br-narrow { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 3rem; padding: 0.7em 1.45em; border-radius: 999px;
  font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-lg { min-height: 3.4rem; padding-inline: 1.8em; font-size: 1.0625rem; }
.btn-sm { min-height: 2.5rem; padding: 0.45em 1.15em; font-size: 0.9375rem; }
.btn-gold { background: linear-gradient(135deg, var(--p-gold-300), var(--p-gold-500)); color: #1a1205; box-shadow: 0 6px 22px rgba(201, 148, 58, 0.28); }
.btn-gold:hover { background: linear-gradient(135deg, var(--p-gold-200), var(--p-gold-300)); }
.btn-ghost { border-color: var(--line-strong); color: var(--accent); }
.btn-ghost:hover { background: rgba(236, 199, 122, 0.1); }
.play-glyph { flex: none; }
.cta-row .btn { max-width: 100%; }
.cta-row-center { justify-content: center; margin-top: 0; }
.closing .btn-ghost { color: var(--text); border-color: rgba(248, 241, 228, 0.55); }
.closing .btn-ghost:hover { background: rgba(248, 241, 228, 0.12); }
.foot-legal { margin: 1rem 0 0; font-size: 0.8125rem; color: var(--text-muted); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 8, 9, 0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-bar { display: flex; align-items: center; gap: 1.5rem; min-height: 4.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.brand-name { font-family: var(--font-serif); font-weight: 900; font-size: 1.35rem; letter-spacing: 0.04em; color: var(--accent); }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-muted); }
.brand-name, .brand-sub { white-space: nowrap; }
.brand-words { display: inline-flex; align-items: center; gap: 0.6rem; }
/* the 叫人 seal mark (assets/brand/brand-mark.svg?v=84a481d3; written by scripts/brand_assets.mjs, never edited here) */
.mark { display: inline-block; flex: none; width: 2.25rem; height: 2.25rem; background: url("assets/brand/brand-mark.svg?v=84a481d3") center / contain no-repeat; }
.mark-sm { width: 1.6rem; height: 1.6rem; }
.top-nav { display: none; gap: 1.6rem; font-size: 0.9375rem; font-weight: 600; }
.top-nav a { text-decoration: none; color: var(--text-muted); padding: 0.4rem 0; }
.top-nav a:hover { color: var(--accent); }
@media (min-width: 900px) { .top-nav { display: flex; } .brand { margin-right: 0; } .top-bar { justify-content: space-between; } }
/* English nav labels are wider: the nav joins the bar only when it fits beside the brand, the switch and the Play button */
@media (min-width: 900px) and (max-width: 1099px) { html:lang(en) .top-nav { display: none; } html:lang(en) .brand { margin-right: auto; } }
.top-actions { display: flex; align-items: center; gap: 0.75rem; }
/* the language link (rendered by FE landing_i18n.mjs as a.lang-switch): a plain link to the other page, labelled in its language */
.lang-switch {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 0.95rem; border: 1.5px solid var(--line-strong); border-radius: 999px;
  font-size: 0.875rem; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; color: var(--accent);
}
.lang-switch:hover { background: rgba(236, 199, 122, 0.1); }
/* phones: the brand keeps its mark and 叫人, the latin sub-name gives its room to the language link */
@media (max-width: 479px) { .brand-sub { display: none; } .top-bar { gap: 0.6rem; } .top-actions { gap: 0.45rem; } .lang-switch { padding-inline: 0.7rem; } }
/* the English page keeps the latin name on phones, stacked under 叫人 (no extra width): an English reader sees "JiaoRen" */
@media (max-width: 479px) {
  html:lang(en) .brand-words { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  html:lang(en) .brand-name { font-size: 1.2rem; line-height: 1.1; }
  html:lang(en) .brand-sub { display: block; font-size: 0.6rem; letter-spacing: 0.22em; line-height: 1; }
}
@media (max-width: 359px) {
  .top-bar .mark { width: 2rem; height: 2rem; }
  .top-bar .btn-sm { padding-inline: 0.8em; font-size: 0.875rem; } .top-bar .btn-sm .play-glyph { display: none; }
  .lang-switch { padding-inline: 0.55rem; font-size: 0.8125rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 62% at 84% 6%, rgba(192, 50, 42, 0.46), transparent 70%),
    radial-gradient(48% 52% at 4% 96%, rgba(201, 148, 58, 0.2), transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(236, 199, 122, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 199, 122, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 70% at 82% 18%, #000, transparent 76%);
  mask-image: radial-gradient(70% 70% at 82% 18%, #000, transparent 76%);
}
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); } }

.eyebrow { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.28em; color: var(--accent); margin-bottom: 1.1rem; }
.eyebrow-red { color: var(--on-paper-accent); }
.family .eyebrow-red { color: var(--p-red-400); }
h1 { font-size: clamp(2.9rem, 7.4vw + 0.4rem, 6rem); line-height: 1.06; font-weight: 900; letter-spacing: 0; text-wrap: balance; }
.stamp {
  display: inline-block; margin-inline: 0.05em; padding: 0 0.13em; border-radius: 0.13em;
  background: var(--seal); color: var(--text); transform: rotate(-4deg);
  box-shadow: inset 0 0 0 0.045em rgba(248, 241, 228, 0.5), 0 0.12em 0.4em rgba(192, 50, 42, 0.45);
}
.lede { margin-top: 1.5rem; max-width: 30em; font-size: clamp(1.0625rem, 1.5vw + 0.7rem, 1.3125rem); line-height: 1.85; color: var(--text-muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.facts { display: flex; flex-wrap: wrap; gap: 1.5rem clamp(1.5rem, 3.5vw, 3rem); margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 0.15rem; }
.facts .num { font-family: var(--font-sans); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.1; color: var(--accent); }
.facts .num.serif { font-family: var(--font-serif); font-weight: 900; }
.facts span { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
.facts .num { white-space: nowrap; }
.facts li { align-content: start; }
/* phones: the three facts stay one row (the third one's note wraps under its own figure) */
@media (max-width: 479px) {
  .facts { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 1rem 0.9rem; }
  .facts .num { font-size: 1.6rem; }
}
@media (max-width: 359px) { .facts li:last-child { grid-column: 1 / -1; } } /* the narrowest phones: the third fact gets its own row */
/* the closing mark of the headline sits against the stamp (Jakarta's wide period otherwise reads as "right .") */
html:lang(en) .h1-end { margin-left: -0.07em; }

.stage { position: relative; width: 100%; max-width: 34rem; justify-self: center; aspect-ratio: 1 / 1.1; }
.stage figure { position: absolute; }
.poster { right: 0; top: 0; width: 58%; transform: rotate(4deg); border-radius: 1rem; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(236, 199, 122, 0.38); }
.poster img { border-radius: 1rem; }
.phone {
  padding: 0.4rem; background: linear-gradient(145deg, #34292c, #120d0f); border-radius: 1.9rem;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.phone img { border-radius: 1.55rem; width: 100%; }
.stage .phone { left: 0; bottom: 0; width: 50%; transform: rotate(-3deg); }
.glow { position: absolute; inset: 14% 8% 6% 14%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 89, 77, 0.35), transparent); filter: blur(10px); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { translate: 0 28px; } to { translate: 0 0; } }
  .poster { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both; }
  .stage .phone { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
}

/* ---------- shared section bits ---------- */
h2 { font-size: clamp(1.85rem, 4.4vw, 3.15rem); line-height: 1.22; font-weight: 800; text-wrap: balance; }
h3 { font-size: 1.25rem; line-height: 1.4; font-weight: 800; }
.sec-lede { margin-top: 1.1rem; max-width: 36em; color: var(--text-muted); font-size: 1.0625rem; }

/* ---------- moments ---------- */
.moments { padding-block: var(--section); background: var(--surface); border-block: 1px solid var(--line); }
.moments h2 { max-width: 22em; }
.moment-list { display: grid; gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3.25rem); }
@media (min-width: 760px) { .moment-list { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.moment-list li { position: relative; padding: 1.4rem 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(192, 50, 42, 0.12), transparent 60%), var(--surface-raised); }
.moment-no { position: absolute; top: 0.9rem; right: 1.2rem; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(236, 199, 122, 0.45); }
.moment-list h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--accent); }
.moment-list p { color: var(--text-muted); max-width: 17em; }

/* ---------- how ---------- */
.how { padding-block: var(--section); }
.how-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1fr 1fr; } }
.calc { margin-top: 2rem; padding: 1.4rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(160deg, var(--surface-raised), var(--surface)); max-width: 28rem; }
.calc-chain { display: flex; align-items: center; gap: 0.65rem; }
.key {
  display: inline-grid; place-items: center; width: 3.3rem; height: 3.3rem; border-radius: 0.9rem;
  background: linear-gradient(#2d2427, #1c1517); border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 3px 0 #0b0809, inset 0 1px 0 rgba(255, 255, 255, 0.09);
  font-family: var(--font-serif); font-weight: 900; font-size: 1.55rem; color: var(--text);
}
.of { color: var(--text-muted); font-family: var(--font-serif); font-weight: 800; }
.calc-result { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 0.9rem; margin-top: 1.15rem; padding-top: 1.1rem; border-top: 1px dashed var(--line-strong); }
.eq { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--accent-deep); color: #1a1205; font-weight: 800; align-self: center; }
.calc-term { font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; font-weight: 900; color: var(--accent); }
.calc-py { font-size: 1rem; letter-spacing: 0.06em; color: var(--text-muted); }
.calc-gloss { margin-top: 0.85rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-muted); }
.steps { display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1.2rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-no { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-size: 1.5rem; font-weight: 900; }
.steps h3 { margin-bottom: 0.4rem; font-size: 1.4rem; }
.steps p { color: var(--text-muted); max-width: 30em; }

/* ---------- six languages (paper) ---------- */
.six { padding-block: var(--section); background: var(--paper); color: var(--on-paper); background-image: radial-gradient(60% 50% at 100% 0%, rgba(192, 50, 42, 0.1), transparent 70%); }
.six .sec-lede { color: var(--on-paper-muted); }
.six h2 { color: var(--on-paper); }
.legend { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.1rem; font-size: 0.9375rem; font-weight: 700; color: var(--on-paper-accent); }
.legend-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--on-paper-accent); }
.cards { display: grid; gap: 1.25rem; margin-top: clamp(1.8rem, 4vw, 2.8rem); grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.card { padding: 1.5rem 1.5rem 0.9rem; background: var(--paper-card); border: 1px solid var(--on-paper-line); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(90, 40, 20, 0.1); }
.card header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 2px solid var(--on-paper-accent); }
.card h3 { font-size: 1.55rem; color: var(--on-paper); }
.card header p { font-size: 0.9rem; font-weight: 700; color: var(--on-paper-muted); white-space: nowrap; }
.card header { flex-wrap: wrap; row-gap: 0.15rem; }
.card dl > div { display: grid; grid-template-columns: 5.2rem 1fr; align-items: baseline; gap: 0.5rem; padding-block: 0.7rem; border-top: 1px dashed var(--on-paper-line); }
.card dl > div:first-child { border-top: 0; }
.card dt { font-size: 0.875rem; font-weight: 700; color: var(--on-paper-muted); }
.card dd { font-size: 1.6rem; line-height: 1.3; color: var(--on-paper); }
.card .hl dd { color: var(--on-paper-accent); }
.card .en dd { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; line-height: 1.5; }
/* the reading (pinyin, Hokkien POJ, Jyutping, Hakka) next to each Chinese term, from the app's own kinship table */
.card dd .read { margin-left: 0.6rem; font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; color: var(--on-paper-muted); white-space: nowrap; }

/* ---------- occasions ---------- */
.occasions { padding-block: var(--section); }
.occ-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 960px) { .occ-grid { grid-template-columns: 1.15fr 0.85fr; } }
.occ-list { display: grid; margin-top: 2rem; }
@media (min-width: 640px) { .occ-list { grid-template-columns: 1fr 1fr; column-gap: 2.2rem; } }
.occ-list li { display: grid; grid-template-columns: 3.1rem 1fr; gap: 1rem; align-items: start; padding-block: 1rem; border-top: 1px solid var(--line); }
.emblem { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--accent); font-size: 1.35rem; font-weight: 900; background: rgba(192, 50, 42, 0.14); }
.occ-list h3 { font-size: 1.15rem; margin-bottom: 0.15rem; }
.occ-list p { font-size: 0.9375rem; line-height: 1.65; color: var(--text-muted); }
.occ-shot { position: relative; max-width: 24rem; justify-self: center; width: 100%; }
@media (min-width: 960px) { .occ-shot { position: sticky; top: 6rem; } }
.phone-flat { position: static; transform: rotate(1.5deg); }
.caption { margin-top: 1.5rem; font-size: 0.9375rem; line-height: 1.75; color: var(--text-muted); }
.caption b { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chips li { padding: 0.3rem 0.85rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.875rem; font-weight: 700; color: var(--accent); }

/* ---------- family and poster ---------- */
.family { padding-block: var(--section); background: var(--surface); border-block: 1px solid var(--line); background-image: radial-gradient(50% 60% at 0% 100%, rgba(192, 50, 42, 0.18), transparent 70%); }
.duo { display: grid; gap: 1.5rem; margin-top: clamp(2rem, 4vw, 3.25rem); }
.panel { display: grid; gap: 1.8rem; padding: clamp(1.4rem, 3.4vw, 2.6rem); border: 1px solid var(--line); border-radius: calc(var(--radius) + 0.25rem); background: var(--surface-raised); align-items: center; }
@media (min-width: 820px) { .panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); } .panel-poster { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.panel h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--accent); margin-bottom: 0.7rem; }
.panel p { color: var(--text-muted); }
.panel .small { margin-top: 1rem; font-size: 0.9375rem; }
.ticks { display: grid; gap: 0.6rem; margin-top: 1.1rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: 0.9375rem; line-height: 1.65; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.9rem; height: 0.5rem; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.shot img { border-radius: 1rem; border: 1px solid var(--line-strong); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45); }
.shot-wide img { width: 100%; }
.pair { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: flex-start; justify-content: center; }
.pair .shot-poster { flex: 1.3 1 15rem; max-width: 22rem; }
.pair .shot-options { flex: 1 1 11rem; max-width: 16rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.sw { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.85rem 0.3rem 0.4rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.875rem; font-weight: 700; color: var(--text); }
.sw::before { content: ""; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.sw-red { --sw: #a2231c; } .sw-ink { --sw: #15110f; } .sw-paper { --sw: #f1e6d1; } .sw-teal { --sw: #3d6b69; } .sw-night { --sw: #1f3a6b; } .sw-leaf { --sw: #4b7a3a; }

/* ---------- privacy ---------- */
.privacy { padding-block: var(--section); }
.privacy h2 { max-width: 16em; }
.pillars { display: grid; gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.pillars li { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pillars svg { color: var(--accent); margin-bottom: 1rem; }
.pillars h3 { margin-bottom: 0.5rem; font-size: 1.35rem; }
.pillars p { color: var(--text-muted); }

/* ---------- faq ---------- */
.faq { padding-block: var(--section); background: var(--surface); border-top: 1px solid var(--line); }
.faq-wrap { display: grid; gap: 2rem; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 0.7fr 1.3fr; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 1.1rem 3rem 1.1rem 0; font-size: 1.125rem; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 2rem; height: 2rem; border: 1.5px solid var(--line-strong); border-radius: 50%; color: var(--accent); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; background: rgba(236, 199, 122, 0.12); }
.faq details p { padding: 0 3rem 1.3rem 0; color: var(--text-muted); max-width: 38em; }

/* ---------- closing ---------- */
.closing { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(4rem, 9vw, 7rem); text-align: center; background: radial-gradient(60% 90% at 50% 0%, rgba(236, 199, 122, 0.22), transparent 70%), linear-gradient(135deg, var(--p-red-700), var(--p-red-500) 55%, var(--p-red-600)); }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(248, 241, 228, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(248, 241, 228, 0.06) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(60% 80% at 50% 50%, #000, transparent); mask-image: radial-gradient(60% 80% at 50% 50%, #000, transparent); }
.closing-inner { display: grid; justify-items: center; gap: 1.8rem; }
.closing h2 { font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 900; }

/* ---------- 404 (landing/404.html, both languages on one page) ---------- */
.lost { position: relative; isolation: isolate; overflow: clip; min-height: calc(100vh - 10rem); padding-block: clamp(3.5rem, 9vw, 7rem); background: radial-gradient(55% 62% at 84% 6%, rgba(192, 50, 42, 0.4), transparent 70%); }
.lost-grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .lost-grid { grid-template-columns: 1fr 1fr; align-items: end; gap: clamp(2.5rem, 6vw, 5rem); } }
.lost-code { font-family: var(--font-sans); font-size: clamp(4rem, 12vw, 7.5rem); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--accent); margin-bottom: 1rem; }
.lost h1 { font-family: var(--font-sans); font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; } /* sans: the serif subset holds only the landing's heading glyphs */
.lost-h-en { font-family: var(--font-sans); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.015em; }
.lost-links { margin-top: 1.8rem; }

/* ---------- footer ---------- */
.foot { padding-block: 1.6rem 2rem; border-top: 1px solid var(--line); background: var(--bg); }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.foot-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--text-muted); }
.foot nav { display: flex; gap: 1.5rem; font-size: 0.9375rem; font-weight: 600; }
.foot nav a { color: var(--text-muted); padding: 0.4rem 0; }
.foot nav a:hover { color: var(--accent); }

@media (forced-colors: active) {
  .btn, .chips li, .sw, .emblem, .step-no { border: 1px solid CanvasText; }
  .stamp, .mark { forced-color-adjust: none; }
}
