/*
 * Terminal look for the public pages (Chip and Evgeny A., 10.11.2026): the landing takes the terminal's own font and
 * its graphite palette. Loaded last among the design v2 sheets, scoped under html[data-bm-site] like them, so the
 * terminal itself is untouched.
 * Font: "Geist Variable", the face octo-theme.css and octo-terminal.css set inside the terminal (/fonts/geist-*.woff2,
 * Latin and Cyrillic, self-hosted, OFL).
 * Colours: dark = the terminal tokens of octo-theme.css (--it-bg #0c0c0c, --it-panel #151515, --it-raised #212121,
 * --it-border #343434, --it-text #efefef, --it-muted #a1a1a1, buy green #62e89b). Light = the same graphite scale
 * inverted, with the buy green darkened for text on paper.
 * Shape: pill text buttons like the terminal order panel, its 4px radius (--it-radius 3.84px) on icon controls and fields, 6px panels, hairline borders, no soft shadows.
 */
@font-face { font-family: "Geist Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

html[data-bm-site] {
  --font-display: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  /* graphite paper: the terminal scale read as light */
  --color-paper: #f4f4f4;            /* terminal bg, light */
  --color-paper-2: #ebebeb;          /* terminal panel, light */
  --color-paper-3: #dedede;          /* raised control, light */
  --color-surface: #fafafa;          /* chart surface, light */
  --color-ink: #121212;              /* terminal text, light */
  --color-muted: #555555;            /* muted labels, light */
  --color-rule: #d6d6d6;             /* soft border, light */
  --color-rule-strong: #8c8c8c;      /* strong border, light */
  --color-accent: #11703f;           /* buy green as text on paper */
  --color-focus: #11703f;
  --color-brand: #62e89b;            /* buy green fill */
  --color-accent-ink: #0c0c0c;       /* text on the green fill */
  --color-footer-text: #efefef;
  --color-footer-muted: #a1a1a1;
  --color-footer-rule: #343434;
  --color-inverse-bg: #151515;       /* terminal panel */
  --color-shadow: transparent;
  --color-pass-shadow: rgb(0 0 0 / .18);
  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --tl-radius: 4px;
  --tl-panel-radius: 6px;
}
html[data-bm-site][data-theme=dark] {
  --color-paper: #0c0c0c;            /* --it-bg */
  --color-paper-2: #151515;          /* --it-panel */
  --color-paper-3: #212121;          /* --it-raised */
  --color-surface: #121212;          /* --it-chart */
  --color-ink: #efefef;              /* --it-text */
  --color-muted: #a1a1a1;            /* --it-muted */
  --color-rule: #292929;             /* --line */
  --color-rule-strong: #525252;      /* --line-strong */
  --color-accent: #62e89b;           /* --it-buy */
  --color-focus: #62e89b;
  --color-brand: #62e89b;
  --color-accent-ink: #0c0c0c;
  --color-inverse-bg: #151515;
  --color-shadow: transparent;
  --color-pass-shadow: rgb(0 0 0 / .5);
}

/* Type: Geist set like the terminal, tighter than the Montserrat headings it replaces. */
html[data-bm-site] :is(h1, h2, h3, .hero h1, .page-head h1) { font-weight: 600; letter-spacing: -.035em; }
html[data-bm-site] .hero h1 { letter-spacing: -.045em; line-height: 1.04; }
html[data-bm-site] :is(.pass-value strong, .price, .num, .comparison td, .ranking-table td) { font-variant-numeric: tabular-nums; }

/* Header: the terminal's flat top bar, edge to edge, a hairline under it. */
html[data-bm-site] .site-header {
  top: 0; width: 100%; margin: 0; border: 0; border-bottom: 1px solid var(--color-rule);
  border-radius: 0; box-shadow: none; background: var(--color-paper-2);
}
html[data-bm-site] .header-inner { width: min(1248px, calc(100% - 32px)); min-height: 60px; }

/* Controls: 4px corners, hairline borders, the primary action filled with the buy green. */
html[data-bm-site] :is(.theme-toggle, .menu-button, .tag, .model-toggle, .search-field, .account-sidebar nav > a, .document-nav a, .sitemap a),
html[data-bm-site] :is(input:not([type=checkbox]), select, textarea) { border-radius: var(--tl-radius); box-shadow: none; }
/* Text buttons are pills, as the terminal's «Купить челлендж» and «Войти»; icon controls keep 4px corners. */
html[data-bm-site] :is(.button, .selector-bottom .button, .prompt-chips button) { border-radius: 999px; font-weight: 600; letter-spacing: 0; }
html[data-bm-site] .button:hover { box-shadow: none; border-color: var(--color-rule-strong); }
html[data-bm-site][data-theme] .button.primary { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-accent-ink); }
html[data-bm-site][data-theme] .button.primary > span { color: inherit; }
html[data-bm-site][data-theme] .button.primary:hover { background: #7cf0ad; border-color: #7cf0ad; }

/* Panels: the terminal's 6px panels with hairline borders instead of 20px rounded cards. */
html[data-bm-site] :is(.hero-context, .selector, .journey-section, .product-proof, .learning-art, .faq-list details, .model-note, .comparison, .addon-explainer > div, .reading-grid, .curriculum, .lesson-nav, .lesson-body, .partner-letter, .ranking-table, .auth-layout > div:first-child, .auth-panel, .password-preview, .checkout-main, .order-summary, .account-sidebar, .demo-avatar, .account-toolbar, .account-content > .equity-chart, .account-metrics > div, .account-next, .account-card, .ben-chat, .chat-message, .chat-question, .legal-copy, .generated-art) {
  border-radius: var(--tl-panel-radius); box-shadow: none;
}
html[data-bm-site] .site-footer { border-radius: 0; }
html[data-bm-site] :is(.lang-switch > summary, .lang-switch > nav, .lang-switch > nav a, .hero-context, .tag) { border-radius: var(--tl-radius); }

/* Plan passes keep the beta35 colours (Chip, 10.11 21:19 UTC: «верни цвета карточкам»): inside the card scene the
   design v2 tokens the pass finishes read (craft.css, elaya.css, theme.css) are set back to their own values, so the
   terminal palette above does not reach them. Only the terminal corner and figure weight stay. */
html[data-bm-site] .pass-scene {
  --color-brand: oklch(84% 0.14 210);
  --color-ink: oklch(20% 0.014 230);
  --color-accent-ink: oklch(17% 0.02 230);
  --color-footer-text: oklch(97% 0.004 230);
  --color-pass-shadow: oklch(20% 0.014 230 / 0.14);
}
html[data-bm-site][data-theme=dark] .pass-scene {
  --color-ink: #eff5f7;
  --color-inverse-bg: #18262e;
  --color-pass-shadow: rgb(0 0 0 / .35);
}
html[data-bm-site] .plan-pass { border-radius: var(--tl-panel-radius); }
html[data-bm-site] .pass-top span { border-radius: var(--tl-radius); }
html[data-bm-site] .pass-value strong { font-weight: 600; letter-spacing: -.03em; }

/* Highlighter on the one word «вознаграждения» / «reward» in the hero (Chip, 10.11 21:37 UTC: the word, not the
   phrase; a marker stroke, not a fill). The stroke covers only the lower 55 % of the line, like a felt tip pulled
   under the word; the ink stays the line's own. Light: #121212 on the blended stroke 15.3:1, on paper 17.0:1.
   Dark: #efefef on the blended stroke 5.8:1, on the ground 17.0:1. */
html[data-bm-site] {
  --tl-marker: rgb(198 240 60 / .55);  /* highlighter yellow-green on paper */
}
html[data-bm-site][data-theme=dark] { --tl-marker: rgb(198 240 60 / .38); }
html[data-bm-site] .hero h1 mark.marker {
  color: inherit;
  background: linear-gradient(to bottom, transparent 45%, var(--tl-marker) 45%, var(--tl-marker) 96%, transparent 96%);
  padding-inline: .08em;
  margin-inline: -.04em;
  border-radius: .12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media print { html[data-bm-site] .hero h1 mark.marker { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
