/* yourtimes.app landing · editorial (newspaper) theme, production build 15f3eb8050e7.
   GENERATED by design/editorial-prod/tools/build_css.py from design/editorial/fonts/fonts.css, design/tokens.css (section 7, D2, D3),
   design/editorial/editorial.css and design/editorial-prod/src/prod.css. Do not edit by hand. */

/* ===== 1. fonts (SIL OFL 1.1, licences in /assets/fonts/OFL-*.txt) ===== */
/* Self-hosted fonts (downloaded from Google Fonts, SIL Open Font License 1.1). No CDN at runtime. */
/* cyrillic-ext */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  src: url('/assets/fonts/NotoSerifDisplay-italic-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  src: url('/assets/fonts/NotoSerifDisplay-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  src: url('/assets/fonts/NotoSerifDisplay-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  src: url('/assets/fonts/NotoSerifDisplay-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  src: url('/assets/fonts/NotoSerifDisplay-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  src: url('/assets/fonts/NotoSerifDisplay-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  src: url('/assets/fonts/NotoSerifDisplay-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  src: url('/assets/fonts/NotoSerifDisplay-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/SourceSerif4-italic-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/SourceSerif4-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/SourceSerif4-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/SourceSerif4-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/SourceSerif4-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/SourceSerif4-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/SourceSerif4-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/SourceSerif4-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/InterTight-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/InterTight-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/InterTight-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/InterTight-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/NotoNaskhArabic-normal-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/NotoNaskhArabic-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/NotoNaskhArabic-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== 2. tokens ===== */
/* =====================================================================
   7 ─ Editorial landing palette  --ed-*   (v0.5: default landing, light + dark)
   Additive: the --cs-* contract above is unchanged. Used by editorial/editorial.css.
   Dark = "newsprint at night": warm near-black paper, off-white ink, thin rules,
   the vermilion accent lifted for AA. No gradients, glows, gold, #000 or #fff.
   Theme selection (same attribute as the cabinet kit):
     no attribute          → follows prefers-color-scheme
     [data-theme="dark"]   → dark   (the user picked it; saved in localStorage "yourtimes-theme")
     [data-theme="light"]  → light  (overrides a dark system setting)
   Ratios: SPEC.md → "Contrast", DARK_THEME.md; generated by tools/contrast.py.
   ===================================================================== */
:root {
  --ed-brand-accent: #D6391F;   /* logo dot + brand. Never changes with the theme */
  --ed-paper: #FBFAF7;          /* page */
  --ed-paper-2: #FFFFFF;        /* form fields */
  --ed-ink: #111111;            /* text, strong rules, buttons           18.1:1 */
  --ed-ink-2: #3D3B38;          /* secondary text                         10.9:1 */
  --ed-ink-3: #5E5B56;          /* captions, small print, placeholders    6.4:1 */
  --ed-rule: #111111;           /* 3px/1px rules */
  --ed-hair: #CFCBC3;           /* hairlines between rows and columns (decorative) */
  --ed-frame: #BDB7AC;          /* block edges: chips, boxed elements, column rules (BORDERS p1) 1.91:1 */
  --ed-accent: #D6391F;         /* rules, focus ring, quote mark (UI ≥3:1)  4.5:1 */
  --ed-accent-text: #BC321B;    /* accent used as text (story numbers)      5.6:1 */
  --ed-btn-bg: #111111;
  --ed-btn-fg: #FBFAF7;
  --ed-field-border: #111111;
  --ed-flag-bg: #111111;        /* "On top" flag */
  --ed-flag-fg: #FBFAF7;
  --ed-select-bg: #F6D5CC;      /* ::selection */
  --ed-photo-filter: none;      /* screenshots / example-site "photos" */
  --ed-photo-frame: #111111;    /* 1px frame around them */
  --ed-photo-mat: transparent;  /* outer hairline (dark only) */
  --ed-theme-color: #FBFAF7;    /* <meta name="theme-color"> */
}

/* D2 ─ Editorial landing, dark "newsprint at night" */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ed-paper: #17140F; --ed-paper-2: #201C16;
    --ed-ink: #EAE4D8; --ed-ink-2: #CDC5B6; --ed-ink-3: #A69D8D;
    --ed-rule: #CBC3B4; --ed-hair: #4A443B; --ed-frame: #5A544B;
    --ed-accent: #E2573D; --ed-accent-text: #E2573D;
    --ed-btn-bg: #EAE4D8; --ed-btn-fg: #17140F; --ed-field-border: #A69D8D;
    --ed-flag-bg: #CBC3B4; --ed-flag-fg: #17140F; --ed-select-bg: #5C2619;
    --ed-photo-filter: brightness(.86) saturate(.9); --ed-photo-frame: #736A5D; --ed-photo-mat: #3D372E;
    --ed-theme-color: #17140F;
  }
}
:root[data-theme="dark"] {
  --ed-paper: #17140F; --ed-paper-2: #201C16;
  --ed-ink: #EAE4D8; --ed-ink-2: #CDC5B6; --ed-ink-3: #A69D8D;
  --ed-rule: #CBC3B4; --ed-hair: #4A443B; --ed-frame: #5A544B;
  --ed-accent: #E2573D; --ed-accent-text: #E2573D;
  --ed-btn-bg: #EAE4D8; --ed-btn-fg: #17140F; --ed-field-border: #A69D8D;
  --ed-flag-bg: #CBC3B4; --ed-flag-fg: #17140F; --ed-select-bg: #5C2619;
  --ed-photo-filter: brightness(.86) saturate(.9); --ed-photo-frame: #736A5D; --ed-photo-mat: #3D372E;
  --ed-theme-color: #17140F;
}

/* D3 ─ Logo swap: ink wordmark on light, brand/logo-wordmark-white.svg on dark (paper #FBFAF7 + the same #D6391F dot;
   dot vs dark paper 3.9:1, graphic needs 3:1). Markup: two <img> inside the logo link, classes as in production:
   cabinet .cs-logo > .cs-logo-ink + .cs-logo-paper · landing .wordmark > .wm-ink + .wm-paper.
   (components.css v0.4 carries the same .cs-logo rules; either copy is enough, both are harmless.) */
.cs-logo .cs-logo-paper, .wordmark .wm-paper { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cs-logo .cs-logo-ink, :root:not([data-theme="light"]) .wordmark .wm-ink { display: none; }
  :root:not([data-theme="light"]) .cs-logo .cs-logo-paper, :root:not([data-theme="light"]) .wordmark .wm-paper { display: block; }
}
:root[data-theme="dark"] .cs-logo .cs-logo-ink, :root[data-theme="dark"] .wordmark .wm-ink { display: none; }
:root[data-theme="dark"] .cs-logo .cs-logo-paper, :root[data-theme="dark"] .wordmark .wm-paper { display: block; }

/* ===== 3. editorial components ===== */
/* =====================================================================
   yourtimes.app · Editorial landing (newspaper direction)
   One accent variable: --accent. Everything else is ink on paper.
   No shadows, no gradients, no glow, radius 0 to 2px.
   ===================================================================== */

:root {
  /* Colours come from ../tokens.css section 7 (--ed-*, light + dark). Fallbacks = light, so the page
     still renders if tokens.css is missing (dark then needs tokens.css). See ../DARK_THEME.md. */
  --accent: var(--ed-accent, #D6391F);
  --paper: var(--ed-paper, #FBFAF7);
  --ink: var(--ed-ink, #111111);
  --ink-2: var(--ed-ink-2, #3D3B38);
  --ink-3: var(--ed-ink-3, #5E5B56);
  --rule: var(--ed-rule, #111111);
  --hair: var(--ed-hair, #CFCBC3);
  --field: var(--ed-paper-2, #FFFFFF);
  --btn-bg: var(--ed-btn-bg, #111111);
  --btn-fg: var(--ed-btn-fg, #FBFAF7);
  --accent-text: var(--ed-accent-text, #BC321B);

  --f-display: 'Noto Serif Display', 'Noto Naskh Arabic', 'Bodoni 72', Didot, Georgia, serif;
  --f-text: 'Source Serif 4', 'Noto Naskh Arabic', 'Iowan Old Style', Georgia, serif;
  --f-ui: 'Inter Tight', 'Noto Naskh Arabic', 'Helvetica Neue', Arial, sans-serif;

  --gap: 32px;               /* column gutter; the column rule sits in its middle */
  --pad: 16px;               /* page side padding (mobile) */
  --maxw: 1240px;
  --radius: 0;

  color-scheme: light;
}

/* ---------------- base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.5 var(--f-text);
  font-optical-sizing: auto;
  font-kerning: normal; font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 10; background: var(--btn-bg); color: var(--btn-fg);
  padding: 12px 16px; font: 600 15px/1 var(--f-ui); text-decoration: none; }
.skip:focus { top: 8px; }

/* 12-column grid; .col-rule draws the thin vertical rule inside the gutter */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--gap); }
.col-rule { position: relative; }

/* ---------------- masthead ---------------- */
.masthead { padding-top: 10px; }
.nameplate { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.ear-start { display: none; }
.wordmark { display: block; color: var(--ink); line-height: 0; text-decoration: none; }
.wordmark img { display: block; width: 168px; height: auto; }
/* Wordmark: ../brand/logo-wordmark.svg (ink) on paper, ../brand/logo-wordmark-white.svg in the dark theme. */
/* The ink/paper swap lives in ../tokens.css "DARK THEME" D3. */
.ear-end { display: flex; gap: 2px; margin-inline-end: -10px; }
.ear-end a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font: 500 14px/1 var(--f-ui); text-decoration: none; }
.ear-end a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* thin double rule: 3px + 1px, like a paper's front page */
.dateline {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule);
  position: relative; margin-top: 4px; padding: 7px 0 6px;
  font: 500 12px/1.3 var(--f-ui); color: var(--ink-2); font-variant-numeric: lining-nums;
}
.dateline::before { content: ""; position: absolute; inset-inline: 0; top: 2px; border-top: 1px solid var(--rule); }
.dateline-end { display: none; }

/* ---------------- lead story ---------------- */
.lead { padding-top: 22px; }
.strap { font: italic 400 17px/1.3 var(--f-text); color: var(--ink-2); margin-bottom: 10px; }
.strap em::before { content: ""; display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--accent);
  vertical-align: middle; margin-inline-end: 10px; transform: translateY(-2px); }
.headline {
  font-family: var(--f-display); font-weight: 780; font-stretch: 74%;
  font-size: clamp(44px, 12.2vw, 104px); line-height: .94; letter-spacing: -.012em;
  text-wrap: balance; hyphens: manual;
}
.headline .br-wide { display: none; }
.lead-grid { margin-top: 20px; row-gap: 28px; }
.standfirst { font: 400 20px/1.42 var(--f-text); color: var(--ink); max-width: 34em; }

/* form */
.demo-form { margin-top: 22px; }
.demo-form label { display: block; font: 600 14px/1.3 var(--f-ui); margin-bottom: 8px; }
.demo-row { display: flex; flex-direction: column; gap: 8px; }
.demo-form input {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--field); color: var(--ink); font: 400 17px/1 var(--f-ui);
}
.demo-form input::placeholder { color: var(--ink-3); opacity: 1; }
.demo-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border: 1px solid var(--btn-bg); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg); font: 600 16px/1 var(--f-ui); letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.note { margin-top: 8px; font: 400 14px/1.4 var(--f-ui); color: var(--ink-3); }

/* the example site, treated as a captioned news photo */
.photo { margin-top: 8px; }
.photo figcaption { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--hair);
  font: italic 400 14px/1.4 var(--f-text); color: var(--ink-3); }
.shot { container-type: inline-size; border: 1px solid var(--ink); background: #fff; overflow: hidden; }

/* (miniature site removed in production: the hero photo is the real screenshot /assets/shots/sample-storefront-desktop.webp) */

/* ---------------- section heads (no eyebrows) ---------------- */
.sec-head { border-top: 3px solid var(--rule); padding-top: 10px; margin-bottom: 18px;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.sec-head h2 { font-family: var(--f-display); font-weight: 700; font-stretch: 80%; font-size: 30px; line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; }
.sec-aside { font: italic 400 16px/1.3 var(--f-text); color: var(--ink-3); }

/* ---------------- stories ---------------- */
.stories { margin-top: 56px; }
.story { padding: 18px 0 20px; border-top: 1px solid var(--hair); }
.story:first-child { border-top: 0; padding-top: 4px; }
.story h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 82%; font-size: 26px; line-height: 1.08; letter-spacing: -.004em; text-wrap: balance; }
.num { color: var(--accent-text); font-variant-numeric: lining-nums; }
.kicker { margin-top: 8px; font: italic 400 17px/1.38 var(--f-text); color: var(--ink-2); }
.body { margin-top: 8px; font: 400 17px/1.5 var(--f-text); hyphens: auto; }
.story-lead h3 { font-size: 36px; font-weight: 750; font-stretch: 76%; line-height: 1.02; }
.story-lead .kicker { font-size: 19px; }
.story-lead .body { font-size: 19px; line-height: 1.5; }
.dropcap::first-letter {
  float: inline-start; font-family: var(--f-display); font-weight: 800; font-stretch: 72%;
  font-size: 4.25em; line-height: .8; margin: .06em .1em 0 0; color: var(--ink);
}
[dir="rtl"] .dropcap::first-letter { margin: .06em 0 0 .1em; }
.inbrief { margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--hair); font: 500 13px/1.4 var(--f-ui); color: var(--ink-3); }
.btn-lead { margin-top: 18px; width: 100%; }

/* ---------------- pull quote ---------------- */
.pull { margin-top: 36px; }
.pull blockquote { position: relative; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 30px 0 30px; }
.pull blockquote::before, .pull blockquote::after { content: ""; position: absolute; inset-inline: 0; border-top: 1px solid var(--rule); }
.pull blockquote::before { top: 3px; } .pull blockquote::after { bottom: 3px; }
.pull p { position: relative; font-family: var(--f-display); font-style: italic; font-weight: 500; font-stretch: 86%;
  font-size: clamp(28px, 7.4vw, 50px); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; padding-top: 34px; }
.pull p::before { content: "\201C"; position: absolute; top: -.2em; inset-inline-start: -.02em; font-style: normal; font-weight: 800; font-size: 2.6em; line-height: 1; color: var(--accent); }
.pull p::after { content: "\201D"; }
[dir="rtl"] .pull p::before { content: "\201D"; }
[dir="rtl"] .pull p::after { content: "\201C"; }

/* ---------------- Q&A ---------------- */
.back { margin-top: 48px; row-gap: 40px; }
.qa-group + .qa-group { margin-top: 22px; }
.qa-group h3 { font: 700 15px/1.3 var(--f-ui); padding: 10px 0 6px; border-bottom: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--hair); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 10px 0; font: 700 18px/1.3 var(--f-text); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font: 400 26px/1 var(--f-ui); color: var(--ink); width: 20px; text-align: center; }
.qa details[open] summary::after { content: "\2212"; }
.qa details p { padding: 0 0 14px; font: 400 17px/1.5 var(--f-text); color: var(--ink-2); max-width: 36em; }

/* ---------------- index box (classifieds) ---------------- */
.index-box { border: 1px solid var(--rule); }
.index-flag { background: var(--ink); color: var(--paper); font: 700 14px/1 var(--f-ui); padding: 8px 12px; }
.index-box h2 { font-family: var(--f-display); font-weight: 700; font-stretch: 80%; font-size: 24px; line-height: 1.1; padding: 12px 12px 10px; border-bottom: 1px solid var(--rule); }
.index-box dl > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--hair); }
.index-box dl > div:first-child { border-top: 0; }
.index-box dt { font: 700 14px/1.35 var(--f-ui); }
.index-box dd { font: 400 15px/1.4 var(--f-text); color: var(--ink-2); }

/* coupon: the clip-out form at the bottom of the page */
.coupon { margin-top: 24px; border: 1.5px dashed var(--ink); padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.coupon label { margin: 4px 0 0; }
.coupon-lead { font-family: var(--f-display); font-weight: 700; font-stretch: 80%; font-size: 24px; line-height: 1.1; }
.coupon .btn { width: 100%; }
.coupon .note { margin-top: 0; }

/* ---------------- back page ---------------- */
.backpage { margin-top: 56px; padding-bottom: 28px; }
.back-row { position: relative; border-top: 3px solid var(--rule); padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.back-row::before { content: ""; position: absolute; inset-inline: 0; top: 2px; border-top: 1px solid var(--rule); }
.wordmark.wordmark-sm img { width: 160px; } /* brand min size for the full lockup: 160px wide. Two classes so the masthead widths in the 600/900px queries below can't override it */
.backpage nav { display: flex; flex-wrap: wrap; margin-inline: -10px; }
.backpage nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font: 500 14px/1 var(--f-ui); }
.smallprint { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair); font: 400 13px/1.5 var(--f-ui); color: var(--ink-3); }

/* ======================= tablet ======================= */
@media (min-width: 600px) {
  :root { --pad: 28px; }
  .dateline-end { display: inline; }
  .wordmark img { width: 200px; }
  .demo-row { flex-direction: row; }
  .demo-row input { flex: 1; }
  .btn-lead { width: auto; }
  .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-lead { grid-column: 1 / -1; }
  .stories-grid .story:nth-child(2), .stories-grid .story:nth-child(3) { border-top: 1px solid var(--hair); }
}

/* ======================= desktop: 12 columns with rules ======================= */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-rule::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: calc(var(--gap) / -2); border-inline-start: 1px solid var(--hair); }

  .nameplate { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 96px; padding: 6px 0 4px; }
  .ear-start { display: block; font: italic 400 15px/1.3 var(--f-text); color: var(--ink-2); max-width: 15em; }
  .ear-end { justify-self: end; }
  .wordmark img { width: 330px; }
  .dateline { display: grid; grid-template-columns: 1fr auto 1fr; font-size: 13px; }
  .dateline-end { justify-self: end; }
  .strap { display: none; }

  .lead { padding-top: 26px; }
  .headline { font-size: clamp(64px, 7.1vw, 92px); line-height: .93; }
  .headline .br-wide { display: inline; }
  .lead-grid { margin-top: 26px; }
  .lead-copy { grid-column: 1 / span 4; }
  .photo { grid-column: 5 / span 8; margin-top: 0; }
  .standfirst { font-size: 21px; }

  .stories { margin-top: 72px; }
  .sec-head h2 { font-size: 34px; }
  .stories-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .story { border-top: 0; padding-top: 4px; }
  .story-lead { grid-column: 1 / span 4; grid-row: 1 / span 2; }
  .stories-grid .story:nth-child(2) { grid-column: 5 / span 4; }
  .stories-grid .story:nth-child(3) { grid-column: 9 / span 4; }
  .stories-grid .story:nth-child(4) { grid-column: 5 / span 4; }
  .stories-grid .story:nth-child(5) { grid-column: 9 / span 4; }
  .stories-grid .story:nth-child(2), .stories-grid .story:nth-child(3) { border-top: 0; padding-bottom: 22px; }
  .stories-grid .story:nth-child(4), .stories-grid .story:nth-child(5) { padding-top: 18px; }
  .stories-grid .story:nth-child(4)::after, .stories-grid .story:nth-child(5)::after {
    content: ""; position: absolute; top: 0; inset-inline: 0; border-top: 1px solid var(--hair); }
  .story-lead h3 { font-size: 44px; }

  .pull { margin-top: 56px; }
  .pull blockquote { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: 40px 0; }
  .pull p { grid-column: 2 / span 10; padding-top: 0; padding-inline-start: 1.1em; }
  .pull p::before { top: -.22em; inset-inline-start: -.1em; font-size: 2.4em; }

  .back { margin-top: 64px; }
  .letters { grid-column: 1 / span 8; }
  .sidebar { grid-column: 9 / span 4; }
  .qa { columns: 2; column-gap: var(--gap); column-rule: 1px solid var(--hair); }
  .qa-group { break-inside: avoid; }
  .qa-group + .qa-group { margin-top: 0; padding-top: 22px; }
  .qa details { border-bottom: 0; }
  .qa summary { cursor: default; min-height: 0; padding: 12px 0 2px; font-size: 18px; }
  .qa summary::after { content: none; }
  .qa details p { padding: 0 0 6px; }
}

@media (min-width: 1200px) {
  .headline { font-size: 94px; }
}

/* ======================= RTL / Arabic ======================= */
[dir="rtl"] body { font-size: 18px; }
[dir="rtl"] .headline { font-family: 'Noto Naskh Arabic', var(--f-display); font-weight: 700; line-height: 1.3; letter-spacing: 0; font-size: clamp(36px, 9.6vw, 72px); }
[dir="rtl"] em, [dir="rtl"] .kicker, [dir="rtl"] .sec-aside, [dir="rtl"] .strap, [dir="rtl"] .ear-start, [dir="rtl"] .pull p { font-style: normal; }
[dir="rtl"] .sec-head h2, [dir="rtl"] .story h3, [dir="rtl"] .index-box h2, [dir="rtl"] .coupon-lead { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .pull p { line-height: 1.5; letter-spacing: 0; }
[dir="rtl"] .dropcap::first-letter { float: none; font-size: inherit; margin: 0; font-family: inherit; font-weight: inherit; }
[dir="rtl"] .photo figcaption { text-align: right; font-style: normal; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ======================= iteration 1 ======================= */
.skip { min-height: 44px; display: inline-flex; align-items: center; }
.wordmark { min-height: 44px; display: flex; align-items: center; }
.body, .kicker, .standfirst { hyphens: manual; }
.sec-head h2 { letter-spacing: -.018em; font-weight: 760; }
.story h3 { letter-spacing: -.015em; }
.index-box h2, .coupon-lead { letter-spacing: -.015em; }
[dir="rtl"] .demo-form input::placeholder { direction: rtl; text-align: right; }
.index-box dl > div { align-items: baseline; }

/* "In this edition": a front-page index under the lead (desktop only) */
.inside { display: none; }
@media (min-width: 900px) {
  .lead-copy .demo-row { flex-direction: column; }
  .lead-copy .demo-row .btn { width: 100%; }
  .inside { display: block; margin-top: 30px; border-top: 3px solid var(--rule); }
  .inside-h { font: italic 400 15px/1.3 var(--f-text); color: var(--ink-3); padding: 8px 0 4px; }
  .inside ol { list-style: none; margin: 0; padding: 0; }
  .inside li { border-top: 1px solid var(--hair); }
  .inside a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 0; text-decoration: none;
    font-family: var(--f-display); font-weight: 650; font-stretch: 84%; font-size: 18px; line-height: 1.15; letter-spacing: -.01em; }
  .inside a:hover span:last-child { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
  .inside-n { flex: none; width: 1.1em; font: 600 13px/1 var(--f-ui); color: var(--ink-3); font-variant-numeric: tabular-nums; }

  .qa details[open] summary::after, .qa summary::after { content: none; display: none; }
  .qa-group + .qa-group { padding-top: 0; }
  .qa-group { padding-bottom: 22px; }
  .qa-group h3 { padding-top: 0; }
}
.index-box dl > div { grid-template-columns: 7.4em 1fr; }

/* ======================= iteration 2 ======================= */
@media (max-width: 599px) {
  .headline { text-wrap: pretty; font-size: clamp(40px, 11.6vw, 60px); }
}
@media (min-width: 600px) and (max-width: 899px) {
  .headline { font-size: clamp(56px, 10.6vw, 92px); }
}
/* Noto Serif Display is spaced for big sizes; tighten it where it runs small */
.sec-head h2, .index-box h2, .coupon-lead { letter-spacing: -.026em; }
.story h3 { letter-spacing: -.022em; }
.inside a { letter-spacing: -.02em; }
[dir="rtl"] .sec-head h2, [dir="rtl"] .index-box h2, [dir="rtl"] .coupon-lead, [dir="rtl"] .story h3, [dir="rtl"] .inside a { letter-spacing: 0; }

/* ======================= DARK THEME (v0.5) · editorial component rules =======================
   Token-driven (--ed-* from ../tokens.css). In light the only visible change is 5px more space above the photo caption.
   Copy together with tokens.css "DARK THEME" D2 + D3 and ../theme-toggle.js. See ../DARK_THEME.md. */
::selection { background: var(--ed-select-bg, #F6D5CC); color: var(--ink); }
.demo-form input { border-color: var(--ed-field-border, var(--ink)); }
.index-flag { background: var(--ed-flag-bg, var(--ink)); color: var(--ed-flag-fg, var(--paper)); }
/* photos / screenshots: a 1px rule frame; in dark they are dimmed slightly and get a hairline mat */
.shot { border-color: var(--ed-photo-frame, var(--ink)); outline: 1px solid var(--ed-photo-mat, transparent); outline-offset: 4px; }
.shot > * { filter: var(--ed-photo-filter, none); }
.photo figcaption { margin-top: 13px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }
:root[data-theme="dark"] { color-scheme: dark; }
/* theme toggle: text button in the masthead ear, 44px target */
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; min-width: 44px; padding: 0 10px; margin: 0;
  border: 0; background: none; color: var(--ink); font: 500 14px/1 var(--f-ui); cursor: pointer; }
.theme-toggle:hover .tt-label { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.tt-box { flex: none; width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 50%; box-sizing: border-box;
  box-shadow: inset 4px 0 0 currentColor; } /* half-filled disc = "theme"; full disc when dark is on */
.theme-toggle[aria-pressed="true"] .tt-box { background: currentColor; }
[dir="rtl"] .tt-box { transform: scaleX(-1); }
.ear-end a { white-space: nowrap; }
@media (max-width: 359px) { .ear-end a { padding-inline: 7px; } .ear-end { margin-inline-end: -7px; } }
/* phones: the masthead ear has room for two links only, so the toggle sits at the end of the dateline
   (same button, same script; the 44px target overlaps the thin rules, the row stays 12px text) */
.theme-toggle-sm { display: none; }
@media (max-width: 599px) {
  .ear-end .theme-toggle { display: none; }
  .theme-toggle-sm { display: inline-flex; min-height: 44px; margin-block: -14px; margin-inline-end: -10px; font-size: 12px; color: var(--ink-2); }
}
.cs-in-telegram .theme-toggle { display: none; }
/* ======================= end DARK THEME ======================= */

/* ===== 4. production ===== */
/* ======================= PRODUCTION ADDITIONS (editorial-prod) =======================
   Sections the mock did not have (examples, how, pricing, extras, footer columns) and the live landing hooks
   (.form-msg states, [data-recent], language select, billing toggle, plan cards). Same rules as the mock:
   ink on paper, rules not boxes, no shadows, gradients or glows, radius 0, 44px targets. Colours only via --ed-* tokens. */
:root { --ed-seg-save: #BC321B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ed-seg-save: #A52A15; } }
:root[data-theme="dark"] { --ed-seg-save: #A52A15; }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
ul.inbrief, .plan-feats, .footer-links, .steps { list-style: none; margin-block: 0; padding: 0; }
.arr { display: inline-block; }
[dir="rtl"] .arr { transform: scaleX(-1); }
.skip { top: -80px; }

/* ---------- masthead: ear-end (pricing link, language, theme) ---------- */
.ear-end { align-items: center; }
.lang-select { position: relative; display: inline-flex; align-items: center; }
.lang-select select {
  appearance: none; -webkit-appearance: none; min-height: 44px; min-width: 44px; margin: 0; padding-block: 0; padding-inline: 10px 22px;
  border: 0; border-radius: 0; background: transparent; color: var(--ink); font: 500 14px/1 var(--f-ui); cursor: pointer;
}
.lang-select::after { content: ""; position: absolute; inset-inline-end: 8px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.lang-select select:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.lang-select option { color: #111111; background: #FBFAF7; }
.tt-to-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tt-to-dark { display: none; } :root:not([data-theme="light"]) .tt-to-light { display: inline; } }
:root[data-theme="dark"] .tt-to-dark { display: none; }
:root[data-theme="dark"] .tt-to-light { display: inline; }
.theme-toggle:hover .tt-to-dark, .theme-toggle:hover .tt-to-light { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 599px) { .ear-end .ear-link { padding-inline: 8px; } }

/* ---------- sections bar (the paper's "inside" strip; the live landing's top nav) ---------- */
.sections { display: none; }
@media (min-width: 600px) {
  .sections { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; border-bottom: 1px solid var(--hair); padding: 2px 0; margin-inline: -10px; }
  .sections a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font: 500 14px/1 var(--f-ui); text-decoration: none; color: var(--ink); }
  .sections a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
  .sections .btn-sm { margin-inline-start: auto; margin-inline-end: 10px; }
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }

/* ---------- demo form states (classes set by landing.js: "form-msg", "form-msg err", "form-msg busy") ---------- */
.form-msg { margin-top: 8px; font: 500 15px/1.4 var(--f-ui); color: var(--ink-2); }
.form-msg:empty { display: none; }
.form-msg.err { color: var(--accent-text); }
.form-msg.err::before { content: ""; display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--accent); vertical-align: middle; margin-inline-end: 8px; }
.form-msg.busy { color: var(--ink-3); font-style: italic; }
.demo-form button[disabled] { opacity: .6; cursor: progress; }
.recent { margin-top: 10px; font: 400 15px/1.4 var(--f-ui); color: var(--ink-2); }
.recent a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); }
.demo-form input[dir="ltr"] { text-align: start; }
[dir="rtl"] .demo-form input { text-align: right; }

/* ---------- photos: real screenshots ---------- */
.shot { display: block; background: var(--paper); }
.shot img { display: block; width: 100%; height: auto; }
.photo .shot { aspect-ratio: 1100 / 688; }

/* ---------- stories: the live landing's pain label, chips and "coming soon" flags ---------- */
.kicker-label { font: 700 12px/1.3 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; font-style: normal; color: var(--accent-text); margin-inline-end: 4px; }
[dir="rtl"] .kicker-label { letter-spacing: 0; font-size: 14px; }
.inbrief { display: flex; flex-wrap: wrap; gap: 4px 0; }
.inbrief li { display: inline; }
.inbrief li + li::before { content: "·"; margin-inline: 8px; color: var(--ink-3); }
.soon { display: inline-block; font: 600 11px/1.3 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--hair); padding: 1px 5px; margin-inline-start: 4px; vertical-align: 1px; white-space: nowrap; }
[dir="rtl"] .soon { letter-spacing: 0; font-size: 12px; }
.sec-lead { font: 400 19px/1.45 var(--f-text); color: var(--ink-2); max-width: 40em; margin-bottom: 22px; }
.stories .sec-lead { margin-top: -4px; }

/* ---------- examples ---------- */
.examples-sec, .how-sec, .pricing-sec { margin-top: 56px; }
.examples { row-gap: 32px; }
.ex-shots { position: relative; padding-inline-end: 18%; padding-bottom: 6%; }
.ex-desktop { display: block; }
.ex-mobile { position: absolute; inset-inline-end: 0; bottom: 0; width: 22%; display: block; }
.ex-body { margin-top: 16px; }
.ex-body h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 82%; font-size: 26px; line-height: 1.1; letter-spacing: -.022em; }
.ex-body p { margin-top: 6px; font: 400 17px/1.5 var(--f-text); color: var(--ink-2); max-width: 34em; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font: 600 15px/1 var(--f-ui); color: var(--ink); }
.variants { margin-top: 32px; border-top: 1px solid var(--rule); padding-top: 10px; }
.variants h3 { font: 700 15px/1.3 var(--f-ui); }
.variant-chips { margin-top: 8px; font-size: 14px; color: var(--ink-2); border-top: 0; padding-top: 0; }
.variants-note { margin-top: 10px; font-size: 14px; color: var(--ink-3, var(--ink-2)); }   /* Codex 9 Oct: Library-only chips note */

/* ---------- how it works ---------- */
.steps { row-gap: 22px; }
.step { position: relative; padding-top: 10px; border-top: 1px solid var(--hair); }
.step-n { display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 72%; font-size: 64px; line-height: .9; color: var(--accent-text); font-variant-numeric: lining-nums; }
.step h3 { margin-top: 8px; font-family: var(--f-display); font-weight: 700; font-stretch: 82%; font-size: 22px; line-height: 1.12; letter-spacing: -.02em; }
.step p { margin-top: 6px; font: 400 17px/1.5 var(--f-text); color: var(--ink-2); }

/* ---------- pricing: rate card ---------- */
.billing-toggle { display: inline-flex; border: 1px solid var(--rule); margin-bottom: 26px; }
.billing-toggle button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; margin: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--ink); font: 600 15px/1 var(--f-ui); cursor: pointer; }
.billing-toggle button + button { border-inline-start: 1px solid var(--rule); }
.billing-toggle button[aria-checked="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.billing-toggle .save { font: 700 12px/1 var(--f-ui); padding: 4px 6px; background: var(--ed-seg-save); color: #FBFAF7; }
.billing-toggle .save:empty { display: none; }
.plans { row-gap: 0; }
.plan { position: relative; display: flex; flex-direction: column; padding: 22px 0 26px; border-top: 1px solid var(--rule); }
.plan h3 { font-family: var(--f-display); font-weight: 750; font-stretch: 78%; font-size: 32px; line-height: 1.04; letter-spacing: -.022em; }
.plan-desc { margin-top: 6px; font: italic 400 17px/1.4 var(--f-text); color: var(--ink-2); }
.plan-pricebox { margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan-price .amount { font-family: var(--f-display); font-weight: 780; font-stretch: 74%; font-size: 52px; line-height: 1; letter-spacing: -.01em; font-variant-numeric: lining-nums; direction: ltr; unicode-bidi: isolate; }
.plan-price .per { font: 500 14px/1.3 var(--f-ui); color: var(--ink-3); }
.plan-price-none { margin-top: 16px; font-family: var(--f-display); font-size: 52px; line-height: 1; color: var(--ink-3); }
.plan-then { margin-top: 8px; font: 400 16px/1.45 var(--f-text); color: var(--ink); }
.plan-then b { font-weight: 700; }
.plan-first { margin-top: 4px; font: 400 14px/1.4 var(--f-ui); color: var(--ink-3); }
bdi.num { color: inherit; font-variant-numeric: lining-nums; } /* server/landing.js price values use <bdi class="num">; the mock's .num (story numbers) is accent */
.plan-feats { margin: 14px 0 20px; flex: 1; }
.plan-feats li { position: relative; padding: 7px 0 7px 18px; border-top: 1px solid var(--hair); font: 400 16px/1.4 var(--f-text); }
.plan-feats li:first-child { border-top: 0; }
.plan-feats li::before { content: ""; position: absolute; inset-inline-start: 0; top: 16px; width: 8px; height: 0; border-top: 2px solid var(--accent); }
[dir="rtl"] .plan-feats li { padding: 7px 18px 7px 0; }
.plan .btn { width: 100%; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--btn-bg); color: var(--btn-fg); }
.btn.is-disabled { opacity: .55; cursor: not-allowed; }
.plan-badge { align-self: flex-start; margin-bottom: 10px; font: 700 12px/1 var(--f-ui); letter-spacing: .05em; text-transform: uppercase; padding: 6px 8px; }
[dir="rtl"] .plan-badge { letter-spacing: 0; font-size: 13px; }
.plan-flag { background: var(--ed-flag-bg, var(--ink)); color: var(--ed-flag-fg, var(--paper)); }
.badge-soon { border: 1px solid var(--ink-3); color: var(--ink-2); }
.plan-featured h3 { font-size: 36px; }
.plan-tg { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; font: 600 15px/1 var(--f-ui); }
.mailto-soon { margin-top: 8px; font: 400 14px/1.4 var(--f-ui); color: var(--ink-3); }
.pricing-notes { margin-top: 22px; padding-top: 12px; border-top: 3px solid var(--rule); display: grid; gap: 8px; font: 400 15px/1.5 var(--f-ui); color: var(--ink-2); }
.pay-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.pay-chips:not(:empty) { margin-inline-start: .4em; }   /* Site Editor §F (8 Oct): no trailing gap when no method is offered */
.pay-chips i { font: 600 12px/1 var(--f-ui); font-style: normal; padding: 4px 6px; border: 1px solid var(--hair); color: var(--ink-2); }

/* ---------- sidebar: coupon inputs share the demo field style ---------- */
.coupon label { display: block; font: 600 14px/1.3 var(--f-ui); }
.coupon input { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--ed-field-border, var(--ink)); border-radius: 0; background: var(--field); color: var(--ink); font: 400 17px/1 var(--f-ui); }
.coupon input::placeholder { color: var(--ink-3); opacity: 1; }
.coupon input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
[dir="rtl"] .coupon input { text-align: right; }
.index-box dt .soon { margin-inline-start: 0; margin-top: 4px; }
.index-box dl { margin: 0; }
.index-box dd { margin: 0; }
.index-box dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }

/* ---------- back page ---------- */
.footer-tag { font: italic 400 16px/1.4 var(--f-text); color: var(--ink-2); }
[dir="rtl"] .footer-tag { font-style: normal; }
.back-cols { display: grid; gap: 18px 32px; margin-top: 18px; }
.back-cols h3 { font: 700 13px/1.3 var(--f-ui); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 4px; border-bottom: 1px solid var(--hair); margin-bottom: 4px; }
[dir="rtl"] .back-cols h3 { letter-spacing: 0; font-size: 14px; }
.backpage nav { display: block; margin-inline: 0; }
.footer-links { display: flex; flex-wrap: wrap; margin-inline: -10px; }
.footer-links a { gap: .3em; }
.footer-links a, .footer-langs a, .footer-contact-bot a, .footer-contact-mail a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font: 500 14px/1 var(--f-ui); }
.footer-langs { display: flex; flex-wrap: wrap; margin-inline: -10px; }
.footer-contact-bot, .footer-contact-mail { font: 400 14px/1.4 var(--f-ui); color: var(--ink-2); }
.footer-contact-bot a, .footer-contact-mail a { padding-inline: 4px; color: var(--ink); }
.smallprint span + span { margin-inline-start: 6px; }

@media (min-width: 600px) {
  .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .back-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .examples-sec, .how-sec, .pricing-sec { margin-top: 72px; }
  .examples { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .examples > .example { grid-column: span 6; }
  .steps { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .steps > .step { grid-column: span 3; border-top: 0; padding-top: 0; }
  .plans { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .plans > .plan { grid-column: span 4; border-top: 0; padding-top: 4px; }
  .plans { border-top: 1px solid var(--rule); padding-top: 18px; }
  .plan-soon .plan-price-none { flex: 1; }
  .plan-soon .btn { margin-top: auto; }
  .sec-lead { font-size: 20px; }
}
@media (max-width: 899px) {
  .col-rule::before { content: none; }
}

/* RTL: Arabic has no italics and no tight tracking */
[dir="rtl"] .plan-desc, [dir="rtl"] .form-msg.busy, [dir="rtl"] .inside-h { font-style: normal; }
[dir="rtl"] .plan h3, [dir="rtl"] .ex-body h3, [dir="rtl"] .step h3 { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .plan-price .amount { font-family: var(--f-display); }
