/* ==========================================================================
   Heffos website — stylesheet
   Source: www/src/site.css → copied to site/assets/site.css by generate.mjs.
   Sizes are calibrated on the 2026-09-28 designs (www/design/) at a 1440 px
   viewport (the 2048 px renders are 1440 CSS px at 1.42×).
   Colours are tokens on :root (UI, then the illustration palette); a hex code
   further down is a bug — the one exception is the #000 of a mask gradient.
   ========================================================================== */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/onest-latin-ext-wght-normal.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;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/onest-latin-wght-normal.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;
}

:root {
  color-scheme: light;

  /* surfaces */
  --bg: #FFFFFF;
  --bg-soft: #F8F9FB;
  --bg-warm: #FFF7F3;
  --surface: #FFFFFF;
  --field: #F2F3F6;
  --line: #ECEEF2;
  --line-strong: #DDE0E7;

  /* text */
  --ink: #0B0C10;
  --text: #1F2128;
  --muted: #656B7A;          /* sampled from the designs — 5.3:1 on white */
  --subtle: #6B7180;         /* eyebrows — 4.9:1 */
  --placeholder: #737987;

  /* brand — orange sampled from the designs */
  --brand: #FD501B;          /* fills behind LARGE bold labels (≥ 18.66 px / 700) */
  --brand-hover: #EC4513;
  --brand-strong: #D63D0C;   /* fills behind small white text — 4.6:1 */
  --brand-ink: #C73A08;      /* small orange text on white — 5.2:1 */
  --brand-soft: #FFF0EA;
  --brand-line: #FFD3C3;
  --brand-glow: rgba(253, 80, 27, .16);

  /* states (illustrations, badges) */
  --ok: #147038;   --ok-soft: #E6F6EB;   --ok-dot: #22C55E;
  --warn: #945A08; --warn-soft: #FDF3D8;
  --bad: #C2261D;  --bad-soft: #FDECEA;
  --info: #1D5FD1; --info-soft: #E6EEFD;
  --violet: #6D3FD6; --violet-soft: #EFE9FD;

  /* illustrations (the product screens drawn in HTML) */
  --white: #FFFFFF;
  --mock-bg: #FAFAFB;
  --mock-panel: #FBFBFC;
  --mock-chrome: #F7F8FA;
  --mock-column: #F5F6F8;
  --mock-code: #F4F5F8;
  --mock-hover: #F1F2F5;
  --mock-bar: #E6E8EE;
  --tint-info: #F1F5FD;
  --tint-warn: #FDF8EE;
  --tint-ok: #F0F8F2;
  --diff-add: #E9F8EE;
  --tag-red: #FAD4D2; --tag-green: #CDEFD7; --tag-blue: #D3E0FB; --tag-yellow: #FBE8B8; --tag-purple: #E4DAFB;
  --light-red: #FF5F57; --light-yellow: #FEBC2E; --light-green: #28C840;
  --code-text: #2A2C33;
  --code-string: #C2410C;
  --gantt-blue: #6E97EC;
  --gantt-green: #4FAF72;
  --ok-mark: #1F9D55;        /* check marks and dots (non-text, 3:1) */
  --ok-badge: #1A7F43;       /* behind white text — 5:1 */
  --warn-ink: #6B4A0B;
  --av-0: #FDE1D2; --av-1: #DCE6FB; --av-2: #DDF1E3; --av-3: #EFE3FA;   /* avatar pastels */
  --av-4: #FDEFC4; --av-5: #D8F0F2; --av-6: #FADDE4; --av-7: #E6E8EE;

  /* shape */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 18, 30, .04);
  --shadow: 0 1px 2px rgba(15, 18, 30, .04), 0 8px 24px -12px rgba(15, 18, 30, .10);
  --shadow-lg: 0 2px 6px rgba(15, 18, 30, .04), 0 28px 56px -28px rgba(15, 18, 30, .22);

  /* type */
  --font: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* layout */
  --container: 1312px;
  --container-narrow: 1140px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' 0;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-soft); }
[hidden] { display: none !important; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* icons: stroke icons inherit colour; width set per context */
.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke, 1.75); stroke-linecap: round; stroke-linejoin: round; }
.i--brand { color: var(--brand); }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); line-height: 1.2; }
.eyebrow--brand { color: var(--brand-ink); }
.eyebrow--head { margin-bottom: 16px; }
.display {
  font-size: clamp(40px, 5.25vw, 76px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}
.display--md { font-size: clamp(34px, 3.8vw, 55px); letter-spacing: -0.042em; }
.display--sm { font-size: clamp(34px, 3.6vw, 52px); }
.lead { font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.h2 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 750; letter-spacing: -0.036em; line-height: 1.12; color: var(--ink); text-wrap: balance; }
.h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.prose-link { color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.prose-link:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .92em; background: var(--field); border-radius: 6px; padding: .1em .38em; }

/* --------------------------------------------------------------------------
   Buttons — filled buttons carry large bold labels (WCAG large text on brand)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 700 18.67px/1 var(--font); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--white); box-shadow: 0 10px 22px -12px rgba(253, 80, 27, .75); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--bg-soft); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--bg-soft); }
.btn--lg { height: 60px; padding: 0 44px; font-size: 20px; }
.btn--block { width: 100%; }
.btn .i { width: 20px; height: 20px; --icon-stroke: 2.2; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; justify-self: start; }
.brand svg { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 14px; border-radius: 10px;
  font-size: 15.5px; color: var(--text); text-decoration: none;
}
.site-nav__link:hover, .nav-item:focus-within > .site-nav__link { background: var(--bg-soft); }
.site-nav__link[aria-current="page"] { color: var(--ink); font-weight: 560; }
.site-nav__link .i { width: 16px; height: 16px; --icon-stroke: 2.2; color: var(--subtle); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.header-actions .signin { font-size: 15.5px; color: var(--text); text-decoration: none; }
.header-actions .signin:hover { color: var(--ink); text-decoration: underline; }
.header-actions .btn { height: 44px; padding: 0 24px; }

.nav-item { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  translate: -50% 6px; opacity: 0; visibility: hidden;
  transition: opacity .16s ease, translate .16s ease, visibility .16s;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 10px;
  display: grid; gap: 2px; min-width: 300px;
}
.nav-menu--wide { grid-template-columns: 1fr 1fr; min-width: 620px; }
.nav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-item:hover > .nav-menu, .nav-item:focus-within > .nav-menu { opacity: 1; visibility: visible; translate: -50% 0; }
.menu-link { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.menu-link:hover, .menu-link:focus-visible { background: var(--bg-soft); }
.menu-link img { width: 36px; height: 36px; flex: none; }
.menu-link__icon { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; color: var(--ink); }
.menu-link__icon .i { width: 20px; height: 20px; }
.menu-link strong { display: block; font-size: 15.5px; font-weight: 650; color: var(--ink); line-height: 1.3; }
.menu-link span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a, .lang-switch span { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 650; letter-spacing: .04em; text-decoration: none; color: var(--muted); }
.lang-switch [aria-current] { background: var(--ink); color: var(--white); }
.lang-switch a:hover { color: var(--ink); background: var(--bg-soft); }

/* mobile menu — a <details>, so it works without JavaScript */
.mobile-nav { display: none; justify-self: end; }
.mobile-nav > summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.mobile-nav > summary::-webkit-details-marker { display: none; }
.mobile-nav > summary:hover { background: var(--bg-soft); }
.mobile-nav > summary .i { width: 26px; height: 26px; --icon-stroke: 2; }
.mobile-nav .i--close { display: none; }
.mobile-nav[open] .i--open { display: none; }
.mobile-nav[open] .i--close { display: block; }
.mobile-nav__panel {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
  background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  padding: 12px var(--gutter) 40px; border-top: 1px solid var(--line);
}
.mobile-nav__group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-nav__group:last-child { border-bottom: 0; }
.mobile-nav__label { margin: 6px 0 8px; }
.mobile-nav__products { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mobile-nav__products .menu-link { padding: 8px; }
.mobile-nav__products .menu-link img { width: 30px; height: 30px; }
.mobile-nav__products .menu-link span { display: none; }
.mobile-nav__link { display: block; padding: 12px 4px; font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; }
.mobile-nav__actions { display: grid; gap: 10px; padding-top: 18px; }
.mobile-nav__actions .lang-switch { justify-self: start; margin-top: 6px; }

@media (max-width: 1120px) {
  .site-nav, .header-actions .signin, .header-actions .lang-switch { display: none; }
  .site-header__bar { grid-template-columns: 1fr auto auto; gap: 8px; }
  .mobile-nav { display: block; }
}
@media (max-width: 520px) {
  .header-actions .btn { display: none; }
  .brand svg { height: 30px; }
}

/* --------------------------------------------------------------------------
   Sections & blocks
   -------------------------------------------------------------------------- */
main { display: block; }
.section { padding-block: clamp(32px, 4vw, 56px); }
.section--tight { padding-block: clamp(16px, 2vw, 28px); }
.section--flush { padding-block: 0; }
.section.section--after-hero { padding-top: 12px; }
.section--flush + .section--tight { padding-top: clamp(14px, 1.4vw, 20px); }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3vw, 40px); }
.section__head--center { text-align: center; justify-items: center; }
.section__head .lead { max-width: 62ch; }

/* hero */
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(28px, 3.4vw, 48px); text-align: center; }
.hero--compact { padding-block: clamp(20px, 2.1vw, 30px) clamp(18px, 1.8vw, 26px); }
.hero.hero--flush-bottom { padding-bottom: 0; }
.hero--compact .hero__icon { width: 66px; height: 66px; margin-bottom: 14px; }
.hero--compact .hero__title { max-width: none; }
.hero--compact .hero__lead { margin-top: 12px; font-size: clamp(17px, 1.32vw, 19px); max-width: 80ch; }
.hero--compact .hero__actions { margin-top: 18px; }
.hero__icon { width: 76px; height: 76px; margin: 0 auto 22px; color: var(--ink); --icon-stroke: 1.55; }
.hero__icon--brand { color: var(--brand); }
.hero__eyebrow { margin-bottom: 18px; }
.hero__title { max-width: 22ch; margin-inline: auto; }
.hero__title--wide { max-width: 26ch; }
.hero__lead { margin: 18px auto 0; max-width: 60ch; }
.hero:not(.hero--compact) .hero__lead { font-size: clamp(18px, 1.55vw, 22px); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero__note { margin-top: 18px; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hero__note .i { width: 16px; height: 16px; color: var(--brand-ink); --icon-stroke: 2.4; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); } }

/* product grid */
.product-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 30px 30px 32px; min-height: 212px;
  color: inherit; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.product-card .i { width: 46px; height: 46px; margin-bottom: 14px; color: var(--ink); --icon-stroke: 1.6; }
.product-card--accent .i { color: var(--brand); }
.product-card h3 { font-size: 22px; font-weight: 720; letter-spacing: -0.022em; color: var(--ink); }
.product-card p { font-size: 15.5px; color: var(--muted); line-height: 1.45; }
.product-card__arrow { position: absolute; top: 30px; right: 28px; width: 20px; height: 20px; color: var(--subtle); opacity: 0; translate: -4px 0; transition: opacity .2s, translate .2s; }
.product-card:hover .product-card__arrow, .product-card:focus-visible .product-card__arrow { opacity: 1; translate: 0 0; }
@media (max-width: 720px) {
  .product-card { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; row-gap: 2px; min-height: 0; padding: 18px 20px; }
  .product-card .i { grid-row: span 2; width: 36px; height: 36px; margin: 2px 0 0; }
  .product-card h3 { font-size: 19px; }
  .product-card p { font-size: 15px; }
  .product-card__arrow { display: none; }
}

/* feature cards — icon beside text (product pages) or above it (values) */
.feature { display: flex; align-items: center; gap: 18px; padding: 20px 24px; }
.feature .i { width: 38px; height: 38px; color: var(--ink); --icon-stroke: 1.6; }
.feature--brand .i { color: var(--brand); }
.feature :is(h2, h3) { font-size: 18px; font-weight: 700; letter-spacing: -0.018em; color: var(--ink); line-height: 1.25; }
.feature p { font-size: 15px; color: var(--muted); line-height: 1.4; margin-top: 3px; }
.feature--stack { flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px 30px 28px; }
.feature--stack .i { width: 42px; height: 42px; }
.feature--stack :is(h2, h3) { font-size: 20px; }
.feature--stack p { font-size: 16px; line-height: 1.45; margin-top: 6px; max-width: 34ch; }

/* capability list (what's inside) */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
@media (max-width: 820px) { .caps { grid-template-columns: minmax(0, 1fr); } }
.cap { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.cap .i { width: 22px; height: 22px; margin-top: 2px; color: var(--brand-ink); --icon-stroke: 2.2; }
.cap h3 { font-size: 18px; font-weight: 680; color: var(--ink); letter-spacing: -0.012em; }
.cap p { margin-top: 4px; font-size: 16px; color: var(--muted); line-height: 1.5; }

/* split: text beside a list or illustration */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split__text { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 960px) { .split__text { position: static; } }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { padding: 30px 30px 32px; display: grid; gap: 10px; align-content: start; }
.step__no { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 760; font-size: 17px; margin-bottom: 8px; }
.step h3 { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.step p { font-size: 16.5px; color: var(--muted); }
.step code { font-size: 13.5px; white-space: nowrap; }

/* mission */
.mission { text-align: center; display: grid; gap: 12px; justify-items: center; padding-block: 4px clamp(20px, 2.4vw, 32px); }
.mission p { font-size: clamp(21px, 2vw, 27px); line-height: 1.38; color: var(--ink); max-width: 44ch; font-weight: 450; letter-spacing: -0.012em; text-wrap: balance; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: clamp(28px, 3vw, 40px); }
.stat { text-align: center; padding: 6px 16px; display: grid; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value { font-size: clamp(38px, 3.4vw, 50px); font-weight: 770; letter-spacing: -0.045em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__label { font-size: 17px; color: var(--muted); }
@media (max-width: 640px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 16px; }
}

/* related products */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .related { grid-template-columns: minmax(0, 1fr); } }
.related-card { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 24px 26px; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.related-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.related-card img { width: 52px; height: 52px; }
.related-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.related-card h3 .i { width: 16px; height: 16px; color: var(--subtle); --icon-stroke: 2.4; }
.related-card p { font-size: 15.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

/* call to action band */
.cta-band {
  position: relative; overflow: hidden;
  display: grid; justify-items: center; gap: 16px; text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: 26px; border: 1px solid var(--brand-line);
  background: radial-gradient(120% 140% at 50% 0%, var(--bg-warm) 0%, var(--bg) 70%);
}
.cta-band .lead { max-width: 52ch; }
.cta-band__actions { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta-band__sparks { position: absolute; top: 22px; right: 26px; width: 64px; height: 64px; opacity: .9; }
@media (max-width: 640px) { .cta-band__sparks { display: none; } }

/* --------------------------------------------------------------------------
   UI illustrations ("mockups"). Everything inside scales with the frame:
   the frame is a size container and the inner font-size is a share of its
   width, so all em-sized parts shrink together.
   -------------------------------------------------------------------------- */
.mock {
  container-type: inline-size;
  margin-top: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock__scale { font-size: clamp(6px, calc(100cqw / 95), 13.5px); line-height: 1.35; color: var(--text); }
.mock__chrome { display: flex; align-items: center; gap: .6em; height: 3em; padding: 0 1.3em; background: var(--mock-chrome); border-bottom: 1px solid var(--line); }
.mock__chrome i { width: .9em; height: .9em; border-radius: 50%; background: var(--light-red); }
.mock__chrome i:nth-child(2) { background: var(--light-yellow); }
.mock__chrome i:nth-child(3) { background: var(--light-green); }
.mock__chrome span { margin-left: .8em; font-size: .9em; color: var(--muted); }
.mock .i { width: 1.4em; height: 1.4em; }
.mock-avatar { display: inline-grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; font-size: .78em; font-weight: 700; color: var(--text); box-shadow: 0 0 0 .18em var(--white); flex: none; }
.mock-avatars { display: flex; }
.av-0 { background: var(--av-0); } .av-1 { background: var(--av-1); } .av-2 { background: var(--av-2); } .av-3 { background: var(--av-3); }
.av-4 { background: var(--av-4); } .av-5 { background: var(--av-5); } .av-6 { background: var(--av-6); } .av-7 { background: var(--av-7); }
.mock-avatars .mock-avatar + .mock-avatar { margin-left: -.3em; }
.mock-chip { display: inline-flex; align-items: center; height: 1.7em; padding: 0 .75em; border-radius: 999px; font-size: .85em; font-weight: 600; white-space: nowrap; }
.mock-chip--high, .mock-chip--open, .mock-chip--red { background: var(--bad-soft); color: var(--bad); }
.mock-chip--medium, .mock-chip--yellow { background: var(--warn-soft); color: var(--warn); }
.mock-chip--low, .mock-chip--resolved, .mock-chip--green { background: var(--ok-soft); color: var(--ok); }
.mock-chip--todo { background: var(--field); color: var(--muted); }
.mock-chip--progress, .mock-chip--blue { background: var(--info-soft); color: var(--info); }
.mock-chip--waiting, .mock-chip--purple { background: var(--violet-soft); color: var(--violet); }
.mock-num { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.7em; padding: 0 .4em; border-radius: .5em; background: var(--field); font-size: .85em; font-weight: 600; color: var(--muted); }
.mock-bar { display: block; height: .7em; border-radius: 999px; background: var(--mock-bar); }
.mock-dots { display: flex; gap: .28em; color: var(--muted); }
.mock-dots i { width: .32em; height: .32em; border-radius: 50%; background: currentColor; }
.mock-search { display: flex; align-items: center; gap: .6em; height: 2.6em; padding: 0 1em; border-radius: .8em; background: var(--field); color: var(--placeholder); }
.mock-search .i { width: 1.15em; height: 1.15em; }
.mock-side { background: var(--mock-panel); border-right: 1px solid var(--line); padding: 1.3em 1em; display: flex; flex-direction: column; gap: .4em; }
.mock-side__logo { height: 1.9em; width: auto; color: var(--ink); margin: .2em .5em 1em; }
.mock-side__item { display: flex; align-items: center; gap: .7em; height: 2.7em; padding: 0 .8em; border-radius: .7em; color: var(--muted); font-weight: 500; }
.mock-side__item.is-active { background: var(--brand-soft); color: var(--brand-ink); }
.mock-side__item .i { width: 1.55em; height: 1.55em; }
.mock-side--icons .mock-side__item { padding: 0 1em; }
.mock-table { width: 100%; border-collapse: collapse; }
.mock-table th { text-align: left; font-size: .88em; font-weight: 500; color: var(--muted); padding: .7em .8em; border-bottom: 1px solid var(--line); }
.mock-table td { padding: .58em .8em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mock-table tr:last-child td { border-bottom: 0; }
.mock-table__end { text-align: right; }

/* wiki */
.mock-wiki { display: grid; grid-template-columns: 22em 1fr; min-height: 30em; }
.mock-wiki__side { border-right: 1px solid var(--line); padding: 1.1em .9em; background: var(--mock-panel); }
.mock-wiki__space { display: flex; align-items: center; justify-content: space-between; padding: .3em .4em .9em; font-weight: 650; color: var(--ink); }
.mock-wiki__space > span { display: flex; align-items: center; gap: .6em; }
.mock-wiki__plus { width: 2em; height: 2em; border: 1px solid var(--line); border-radius: .5em; display: grid; place-items: center; color: var(--muted); }
.mock-wiki__plus .i { width: 1.1em; height: 1.1em; }
.mock-tree__row { display: flex; align-items: center; gap: .5em; height: 2.35em; padding: 0 .5em; border-radius: .6em; color: var(--text); }
.mock-tree__row .i { width: 1.15em; height: 1.15em; color: var(--muted); }
.mock-tree__row.is-active { background: var(--mock-hover); font-weight: 500; }
.mock-tree__row--child { padding-left: 2.6em; }
.mock-tree__caret { width: 1em; color: var(--muted); display: grid; place-items: center; }
.mock-tree__caret .i { width: .95em; height: .95em; }
.mock-wiki__main { padding: 0 2.2em 2em; }
.mock-toolbar { display: flex; align-items: center; gap: 1.5em; height: 3.6em; border-bottom: 1px solid var(--line); color: var(--text); }
.mock-toolbar b, .mock-toolbar em, .mock-toolbar u { font-size: 1.05em; width: 1.2em; text-align: center; }
.mock-toolbar .sep { width: 1px; height: 1.4em; background: var(--line); }
.mock-toolbar .i { width: 1.25em; height: 1.25em; }
.mock-toolbar .mock-dots { margin-left: auto; }
.mock-wiki__title { font-size: 2.6em; font-weight: 760; letter-spacing: -0.035em; color: var(--ink); margin: .7em 0 .3em; line-height: 1.1; }
.mock-wiki__text { font-size: 1.1em; color: var(--muted); max-width: 46em; }
.mock-code { margin-top: 1.4em; background: var(--mock-code); border-radius: .9em; padding: 1.1em 1.3em; font-family: var(--mono); font-size: .98em; line-height: 1.75; color: var(--code-text); }
.mock-code__line { display: flex; gap: 1.6em; white-space: pre; }
.mock-code__line i { font-style: normal; color: var(--muted); min-width: 1em; text-align: right; }
.tok-comment { color: var(--muted); }
.tok-key { color: var(--info); }
.tok-str { color: var(--code-string); }
.tok-fn { color: var(--info); }
.mock-macro { margin-top: 1.1em; border: 1px solid var(--line); border-radius: .9em; overflow: hidden; }
.mock-macro__head { display: flex; align-items: center; gap: .6em; padding: .6em 1em; background: var(--mock-bg); border-bottom: 1px solid var(--line); font-size: .9em; color: var(--muted); }
.mock-macro__head .i { width: 1.1em; height: 1.1em; }

/* kanban (boards) */
.mock-board { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1.3em; padding: 1.4em; }
.mock-board--c2 { --cols: 2; } .mock-board--c3 { --cols: 3; } .mock-board--c4 { --cols: 4; } .mock-board--c5 { --cols: 5; }
.mock-col { background: var(--mock-column); border-radius: 1em; padding: .9em; display: flex; flex-direction: column; gap: .7em; min-width: 0; }
.mock-col__head { display: flex; align-items: center; justify-content: space-between; padding: .2em .3em .3em; font-weight: 650; color: var(--ink); font-size: 1.12em; }
.mock-col__head span { display: flex; align-items: center; gap: .5em; }
.mock-col__head .mock-num { font-size: .72em; background: var(--white); }
.mock-col--progress .mock-col__head { color: var(--info); }
.mock-col--review .mock-col__head { color: var(--warn); }
.mock-col--done .mock-col__head { color: var(--ok); }
.mock-col--progress { background: var(--tint-info); }
.mock-col--review { background: var(--tint-warn); }
.mock-col--done { background: var(--tint-ok); }
.mock-card { background: var(--white); border-radius: .8em; padding: .85em .95em; box-shadow: 0 1px 2px rgba(15, 18, 30, .06); display: grid; gap: .6em; }
.mock-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .8em; }
.mock-card__title { font-weight: 500; color: var(--ink); line-height: 1.3; }
.mock-card__tag { width: 3.2em; height: 1.1em; border-radius: 999px; flex: none; }
.mock-card__tag--red { background: var(--tag-red); } .mock-card__tag--green { background: var(--tag-green); } .mock-card__tag--blue { background: var(--tag-blue); }
.mock-card__tag--yellow { background: var(--tag-yellow); } .mock-card__tag--purple { background: var(--tag-purple); }
.mock-card__meta { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.mock-card__meta > span { display: flex; align-items: center; gap: .45em; }
.mock-card__due { display: inline-flex; align-items: center; gap: .3em; font-size: .82em; color: var(--muted); }
.mock-card__due .i { width: 1.05em; height: 1.05em; }
.mock-card__due.is-soon { color: var(--bad); }

/* sprint board + plan */
.mock-sprint { display: grid; grid-template-columns: 13em 1fr; min-height: 34em; }
.mock-sprint__main { padding: 1.3em 1.4em 1.4em; min-width: 0; }
.mock-sprint__head { display: flex; align-items: center; gap: 1em; margin-bottom: 1.1em; }
.mock-sprint__title { font-size: 1.7em; font-weight: 740; letter-spacing: -0.03em; color: var(--ink); }
.mock-sprint__goal { font-size: .95em; color: var(--muted); }
.mock-sprint__head .mock-search { margin-left: auto; width: 17em; }
.mock-sprint__grid { display: grid; grid-template-columns: minmax(0, 1fr) 23em; gap: 1.2em; }
.mock-sprint .mock-board { padding: 0; gap: .9em; --cols: 4; }
.mock-sprint .mock-col { padding: .7em; gap: .55em; }
.mock-sprint .mock-card { padding: .7em .75em; }
.mock-sprint .mock-card__title { font-size: .95em; }
.mock-plan { border: 1px solid var(--line); border-radius: 1em; padding: 1em 1em .8em; align-self: start; }
.mock-plan__title { font-weight: 700; color: var(--ink); font-size: 1.1em; margin-bottom: .2em; }
.mock-plan__sub { font-size: .85em; color: var(--muted); margin-bottom: .6em; }
.mock-plan svg { width: 100%; height: auto; }
.gantt__grid { stroke: var(--line); }
.gantt__week { font-size: 10.5px; fill: var(--muted); }
.gantt__bar--brand { fill: var(--brand); }
.gantt__bar--ink { fill: var(--code-text); }
.gantt__bar--blue { fill: var(--gantt-blue); }
.gantt__bar--green { fill: var(--gantt-green); }
.gantt__label { font-size: 11px; font-weight: 600; fill: var(--white); }
.gantt__dep { fill: none; stroke: var(--placeholder); stroke-width: 1.2; }
.gantt__arrow { fill: var(--placeholder); }
.gantt__release { stroke: var(--brand); stroke-dasharray: 3 3; }
.gantt__diamond { fill: var(--brand); }
.gantt__release-label { font-size: 11px; font-weight: 650; fill: var(--brand-ink); }

/* drive */
.mock-drive { display: grid; grid-template-columns: 19em 1fr; min-height: 28em; }
.mock-drive__side { padding: 1.4em 1em; display: flex; flex-direction: column; gap: .35em; border-right: 1px solid var(--line); }
.mock-drive__nav { position: relative; display: flex; align-items: center; gap: .8em; height: 3em; padding: 0 1em; border-radius: .7em; color: var(--text); font-size: 1.15em; }
.mock-drive__nav .i { width: 1.45em; height: 1.45em; }
.mock-drive__nav.is-active { background: var(--mock-hover); }
.mock-drive__nav.is-active::before { content: ''; position: absolute; left: -.2em; top: .5em; bottom: .5em; width: .25em; border-radius: 2px; background: var(--brand); }
.mock-drive__main { padding: 1.3em 1.8em 1.2em; min-width: 0; }
.mock-drive__bar { display: flex; justify-content: flex-end; gap: .8em; margin-bottom: 1em; }
.mock-drive__bar .mock-search { width: 24em; background: var(--white); border: 1px solid var(--line); }
.mock-plus { width: 2.6em; height: 2.6em; border-radius: .7em; background: var(--brand); color: var(--white); display: grid; place-items: center; }
.mock-plus .i { width: 1.2em; height: 1.2em; --icon-stroke: 2.4; }
.mock-file { display: flex; align-items: center; gap: .9em; color: var(--ink); }
.mock-file svg { width: 1.9em; height: 1.9em; flex: none; }
.mock-share { color: var(--muted); }
.mock-share .i { width: 1.3em; height: 1.3em; }

/* crm pipeline */
.mock-pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1em; padding: 1.3em; }
.mock-pipe .mock-col { gap: .6em; }
.mock-pipe__total { font-size: .8em; font-weight: 600; color: var(--muted); }
.mock-deal { background: var(--white); border-radius: .8em; padding: .8em .85em; display: grid; grid-template-columns: 2.6em 1fr auto; gap: .8em; align-items: center; box-shadow: 0 1px 2px rgba(15, 18, 30, .06); }
.mock-deal__logo { width: 2.6em; height: 2.6em; border-radius: .65em; background: var(--field); display: grid; place-items: center; color: var(--muted); }
.mock-deal__logo .i { width: 1.25em; height: 1.25em; }
.mock-deal__text { min-width: 0; }
.mock-deal__text strong { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-deal__text span { display: block; font-size: .92em; color: var(--muted); }
.mock-deal .mock-avatar { width: 2.3em; height: 2.3em; }

/* desk */
.mock-desk { display: grid; grid-template-columns: 17em 1fr; min-height: 26em; }
.mock-desk__main { padding: 1.3em 1.6em; min-width: 0; }
.mock-desk__main .mock-search { margin-bottom: .8em; }
.mock-desk .mock-table td:first-child { color: var(--muted); }

/* merge request */
.mock-mr { display: grid; grid-template-columns: 17em minmax(0, 1fr) 17em; gap: 1em; padding: 1.2em; background: var(--mock-bg); }
.mock-panel { background: var(--white); border: 1px solid var(--line); border-radius: 1em; padding: 1em; min-width: 0; }
.mock-repo { display: flex; align-items: center; justify-content: space-between; font-weight: 650; color: var(--ink); padding: .2em .3em .8em; }
.mock-repo span { display: flex; align-items: center; gap: .6em; }
.mock-files__row { display: flex; align-items: center; gap: .6em; height: 2.25em; padding: 0 .5em; border-radius: .5em; color: var(--text); }
.mock-files__row .i { width: 1.15em; height: 1.15em; color: var(--muted); }
.mock-files__row--child { padding-left: 1.9em; }
.mock-files__row.is-active { background: var(--mock-hover); box-shadow: inset .2em 0 0 var(--brand); }
.mock-mr__title { font-size: 1.45em; font-weight: 720; letter-spacing: -0.02em; color: var(--ink); }
.mock-mr__meta { display: flex; align-items: center; gap: .7em; margin: .5em 0 .9em; color: var(--muted); font-size: .95em; }
.mock-state { display: inline-flex; align-items: center; gap: .35em; height: 1.8em; padding: 0 .75em; border-radius: 999px; background: var(--ok-badge); color: var(--white); font-weight: 600; font-size: .88em; }
.mock-commit { display: flex; align-items: center; gap: .8em; padding: .7em 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.mock-commit b { color: var(--ink); font-weight: 600; }
.mock-diff { margin-top: .9em; border: 1px solid var(--line); border-radius: .8em; overflow: hidden; font-family: var(--mono); font-size: .88em; }
.mock-diff__head { display: flex; align-items: center; gap: .7em; padding: .6em .9em; background: var(--mock-bg); border-bottom: 1px solid var(--line); font-family: var(--font); font-weight: 600; color: var(--ink); }
.mock-diff__head .add { margin-left: auto; color: var(--ok); }
.mock-diff__head .del { color: var(--bad); }
.mock-diff__line { display: grid; grid-template-columns: 3em 1.6em 1fr; white-space: pre; line-height: 1.95; color: var(--code-text); }
.mock-diff__line i { font-style: normal; color: var(--muted); text-align: right; padding-right: .8em; }
.mock-diff__line--add { background: var(--diff-add); }
.mock-diff__line--del { background: var(--bad-soft); }
.mock-review__label { font-size: .9em; font-weight: 650; color: var(--ink); margin: .2em 0 .6em; }
.mock-review__row { display: flex; align-items: center; gap: .6em; padding: .35em 0; color: var(--text); }
.mock-review__row .i { margin-left: auto; color: var(--ok-mark); width: 1.15em; height: 1.15em; --icon-stroke: 2.6; }
.mock-review__ok { display: flex; align-items: center; gap: .6em; font-weight: 650; color: var(--ink); padding-bottom: .9em; margin-bottom: .8em; border-bottom: 1px solid var(--line); }
.mock-review__ok b { width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--ok-mark); display: grid; place-items: center; color: var(--white); }
.mock-review__ok b .i { width: 1em; height: 1em; --icon-stroke: 3; }
.mock-review__sep { height: 1px; background: var(--line); margin: .8em 0; }
.mock-timeline { position: relative; display: grid; gap: .9em; padding-left: 1.4em; }
.mock-timeline::before { content: ''; position: absolute; left: .35em; top: .5em; bottom: .5em; width: .14em; background: var(--ink); border-radius: 2px; }
.mock-timeline div { position: relative; color: var(--muted); font-size: .92em; }
.mock-timeline div::before { content: ''; position: absolute; left: -1.33em; top: .38em; width: .6em; height: .6em; border-radius: 50%; background: var(--ink); }

/* ai */
.mock-ai { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 30em; }
.mock-ai__form { padding: 1.6em 1.9em; border-right: 1px solid var(--line); display: grid; gap: 1.1em; align-content: start; }
.mock-ai__label { font-weight: 650; color: var(--ink); margin-bottom: .5em; font-size: .98em; }
.mock-ai__task { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8em; height: 2.9em; padding: 0 1em; border: 1px solid var(--line); border-radius: .7em; background: var(--white); }
.mock-ai__task + .mock-ai__task { margin-top: .5em; }
.mock-ai__task span { color: var(--text); }
.mock-ai__task b { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: .5em; }
.mock-ai__task b .i { width: 1em; height: 1em; color: var(--muted); }
.mock-ai__sources { display: grid; gap: .5em; }
.mock-ai__source { display: flex; align-items: center; gap: .8em; height: 2.9em; padding: 0 1em; border: 1px solid var(--line); border-radius: .7em; }
.mock-ai__source img { width: 1.6em; height: 1.6em; }
.mock-ai__source .i { margin-left: auto; width: 1.1em; height: 1.1em; color: var(--muted); }
.mock-ai__chat { padding: 1.6em 1.9em; display: flex; flex-direction: column; gap: 1em; background: var(--mock-bg); }
.mock-bubble { max-width: 88%; padding: .9em 1.1em; border-radius: 1em; line-height: 1.45; }
.mock-bubble--user { align-self: flex-end; background: var(--line); color: var(--ink); border-bottom-right-radius: .3em; }
.mock-bubble--bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: .3em; display: grid; gap: .6em; }
.mock-bubble--bot .mock-bot { display: flex; align-items: center; gap: .5em; font-weight: 650; color: var(--brand-ink); font-size: .9em; }
.mock-bubble--bot .mock-bot .i { width: 1.25em; height: 1.25em; }
.mock-cite { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; border-radius: .4em; background: var(--brand-soft); color: var(--brand-ink); font-size: .75em; font-weight: 700; vertical-align: .15em; margin-left: .15em; }
.mock-refs { display: flex; flex-wrap: wrap; gap: .45em; }
.mock-ref { display: inline-flex; align-items: center; gap: .4em; height: 2em; padding: 0 .7em; border-radius: .5em; background: var(--field); font-size: .85em; color: var(--text); }
.mock-ref .i { width: 1em; height: 1em; color: var(--muted); }
.mock-input { margin-top: auto; display: flex; align-items: center; gap: .8em; height: 3.2em; padding: 0 .4em 0 1em; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.mock-input .mock-bar { flex: 1; max-width: 12em; }
.mock-send { margin-left: auto; width: 2.5em; height: 2.5em; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; }
.mock-send .i { width: 1.15em; height: 1.15em; --icon-stroke: 2.2; }

@media (max-width: 640px) {
  .mock { mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-toggle { display: inline-flex; padding: 3px; margin-top: 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); }
.pricing-toggle button { height: 42px; padding: 0 26px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 17px; font-weight: 500; cursor: pointer; }
.pricing-toggle button[aria-pressed="true"] { background: var(--brand-strong); color: var(--white); font-weight: 650; box-shadow: 0 8px 18px -10px rgba(214, 61, 12, .8); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; } }
@media (max-width: 640px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px; }
.plan--featured { border: 1.5px solid var(--brand); box-shadow: 0 30px 60px -30px rgba(253, 80, 27, .45), var(--shadow); }
.plan__badge { position: absolute; top: 0; left: 50%; translate: -50% -50%; padding: 7px 16px; border-radius: 999px; background: var(--brand-strong); color: var(--white); font-size: 14px; font-weight: 650; white-space: nowrap; }
.plan__name { font-size: 21px; font-weight: 720; color: var(--ink); letter-spacing: -0.02em; }
.plan__price { margin-top: 12px; font-size: clamp(38px, 3vw, 44px); font-weight: 780; letter-spacing: -0.05em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan__price--text { font-size: clamp(32px, 2.6vw, 40px); overflow-wrap: anywhere; }
.plan__per { margin-top: 5px; font-size: 14.5px; color: var(--muted); min-height: 1.5em; }
.plan__desc { margin-top: 4px; font-size: 16px; color: var(--muted); }
.plan__features { display: grid; gap: 8px; margin: 20px 0 26px; }
.plan__features li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15.5px; color: var(--text); line-height: 1.4; }
.plan__features .i { width: 18px; height: 18px; color: var(--brand); --icon-stroke: 2.6; margin-top: 1px; }
.plan .btn { margin-top: auto; width: 100%; }
.pricing-note { margin-top: 30px; text-align: center; font-size: 15px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Docs
   -------------------------------------------------------------------------- */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.docs__side { background: var(--bg-soft); border-right: 1px solid var(--line); }
.docs__side-inner { position: sticky; top: var(--header-h); padding: 32px 20px 32px 34px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.docs__nav { margin-top: 18px; display: grid; gap: 2px; }
.docs__nav a { display: block; padding: 9px 0 9px 20px; margin-left: -20px; border-left: 2.5px solid transparent; font-size: 16.5px; color: var(--muted); text-decoration: none; }
.docs__nav a:hover { color: var(--ink); }
.docs__nav a.is-active { color: var(--ink); border-left-color: var(--brand); font-weight: 500; }
.docs__main { padding: 28px clamp(20px, 2.8vw, 40px) 72px; min-width: 0; }
.docs__title { margin-top: 32px; font-size: clamp(32px, 3.1vw, 45px); }
.docs__lead { margin-top: 8px; }
.docs__apps { margin-top: 24px; gap: 16px; }
.app-card { display: grid; align-content: start; gap: 2px; padding: 16px 20px 18px; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.app-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.app-card img { width: 60px; height: 60px; margin-bottom: 10px; }
.app-card :is(h2, h3) { font-size: 18.5px; font-weight: 720; color: var(--ink); letter-spacing: -0.02em; }
.app-card p { font-size: 15px; color: var(--muted); }
@media (max-width: 720px) { .docs__apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .app-card { padding: 14px 16px 16px; } .app-card img { width: 48px; height: 48px; } }
.docs__resources { margin-top: 28px; }
.resource-card { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 18px; padding: 20px 24px; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.resource-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.resource-card .i { width: 42px; height: 42px; color: var(--ink); --icon-stroke: 1.5; }
.resource-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.resource-card p { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.docs__section { padding-top: 44px; margin-top: 44px; border-top: 1px solid var(--line); max-width: 820px; }
.docs__section h2 { font-size: clamp(26px, 2.3vw, 32px); font-weight: 750; letter-spacing: -0.034em; color: var(--ink); }
.docs__section > p { margin-top: 12px; font-size: 16.5px; color: var(--muted); line-height: 1.6; }
.docs__list { margin-top: 20px; display: grid; gap: 12px; }
.docs__list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--text); }
.docs__list .i { width: 20px; height: 20px; margin-top: 3px; color: var(--brand-ink); --icon-stroke: 2.3; }
.docs__list--steps { counter-reset: s; }
.docs__list--steps li::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 750; font-size: 14px; display: grid; place-items: center; margin-top: 1px; }
.search-field { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); }
.search-field .i { width: 21px; height: 21px; color: var(--muted); --icon-stroke: 2; }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 16.5px; color: var(--ink); outline: none; }
.search-field input::placeholder { color: var(--placeholder); }
.search-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); background: var(--surface); }
.search-empty { margin-top: 18px; font-size: 16px; color: var(--muted); }
@media (max-width: 960px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs__side { border-right: 0; border-bottom: 1px solid var(--line); }
  .docs__side-inner { position: static; padding: 20px var(--gutter) 12px; max-height: none; }
  .docs__nav { display: flex; gap: 6px; overflow-x: auto; margin-top: 12px; padding-bottom: 8px; scrollbar-width: none; }
  .docs__nav a { margin: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 15px; white-space: nowrap; }
  .docs__nav a.is-active { border-color: var(--ink); }
  .docs__main { padding-top: 24px; }
}

/* --------------------------------------------------------------------------
   Support & contact
   -------------------------------------------------------------------------- */
.support-search { display: flex; gap: 12px; width: min(100%, 660px); margin: 24px auto 0; }
.support-search .search-field { flex: 1 1 auto; }
.support-search .btn { height: 50px; padding: 0 36px; border-radius: 14px; }
@media (max-width: 640px) { .support-search { flex-direction: column; } .support-search .btn { width: 100%; } }
.category-card { display: grid; gap: 2px; padding: 20px 24px 22px; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.category-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.category-card .i { width: 36px; height: 36px; margin-bottom: 12px; color: var(--ink); --icon-stroke: 1.6; }
.category-card h3 { font-size: 18.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.018em; }
.category-card p { font-size: 15px; color: var(--muted); }
.support-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 22px; margin-top: 22px; align-items: start; }
@media (max-width: 1000px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }
.form-card { padding: clamp(22px, 2.4vw, 30px) clamp(20px, 2.6vw, 34px) clamp(22px, 2.4vw, 30px); }
.form-card--accent { border-left: 4px solid var(--brand); }
.form-card h2 { font-size: clamp(22px, 1.8vw, 26px); font-weight: 750; color: var(--ink); letter-spacing: -0.028em; }
.form-card > p { margin-top: 4px; font-size: 15.5px; color: var(--muted); }
.form { display: grid; gap: 14px; margin-top: 18px; }
.form--inline .field { grid-template-columns: 130px 1fr; align-items: center; gap: 14px; }
.form--inline .field--area { align-items: start; }
.form--inline .field--area label { padding-top: 11px; }
@media (max-width: 640px) { .form--inline .field { grid-template-columns: minmax(0, 1fr); gap: 8px; } .form--inline .field--area label { padding-top: 0; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; color: var(--text); }
.input { width: 100%; height: 46px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; background: var(--field); font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.input::placeholder { color: var(--placeholder); }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-glow); }
textarea.input { height: auto; min-height: 104px; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.input-affix { display: flex; align-items: center; border-radius: 12px; background: var(--field); border: 1px solid transparent; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.input-affix:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-glow); }
.input-affix .input { background: transparent; border: 0; box-shadow: none; }
.input-affix .input:focus { box-shadow: none; }
.input-affix span { padding-right: 18px; font-size: 17px; color: var(--muted); white-space: nowrap; }
.form-status { font-size: 15.5px; color: var(--muted); min-height: 1.4em; }
.form-status.is-error { color: var(--bad); }
.form .btn { justify-self: start; }
.form .btn--block { justify-self: stretch; }
.link-card { display: grid; grid-template-columns: 44px 1fr 22px; align-items: center; gap: 16px; padding: 20px 24px; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.link-card + .link-card { margin-top: 14px; }
.link-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.link-card > .i:first-child { width: 38px; height: 38px; color: var(--ink); --icon-stroke: 1.6; }
.link-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.link-card p { font-size: 15px; color: var(--muted); margin-top: 2px; }
.link-card > .i:last-child { width: 24px; height: 24px; color: var(--ink); --icon-stroke: 1.8; }
.faq { margin-top: clamp(40px, 5vw, 64px); }
.faq__group + .faq__group { margin-top: 34px; }
.faq__group h3 { font-size: 22px; font-weight: 720; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 8px; scroll-margin-top: calc(var(--header-h) + 24px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 2px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 20px; height: 20px; color: var(--muted); transition: rotate .2s; --icon-stroke: 2.2; }
.faq details[open] summary .i { rotate: 180deg; }
.faq details p { padding: 0 2px 20px; font-size: 17px; color: var(--muted); line-height: 1.6; max-width: 78ch; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: clamp(28px, 3.4vw, 48px); }
@media (max-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.channels { display: grid; gap: 20px; margin-top: 18px; }
.channel { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 18px; }
.channel__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.channel__icon .i { width: 26px; height: 26px; --icon-stroke: 1.7; }
.channel h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.channel a { font-size: 17px; color: var(--muted); text-decoration: none; }
.channel a:hover { color: var(--brand-ink); text-decoration: underline; }
.contact-note { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-note h3 { font-size: 20px; font-weight: 700; color: var(--ink); }
.contact-note p { margin-top: 6px; font-size: 17px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Auth pages (sign in / get started)
   -------------------------------------------------------------------------- */
.layout-auth { background: var(--mock-panel); }
.auth { min-height: calc(100vh - 80px); display: grid; align-content: start; justify-items: center; padding: clamp(28px, 4vw, 52px) var(--gutter) 48px; }
.auth__logo { color: var(--ink); margin-bottom: clamp(26px, 3vw, 40px); }
.auth__logo svg { height: clamp(40px, 3.6vw, 50px); width: auto; }
.auth-card { width: min(100%, 520px); padding: clamp(28px, 3vw, 42px) clamp(22px, 3vw, 40px) clamp(26px, 2.8vw, 36px); border-radius: 20px; text-align: center; }
.auth-card h1 { font-size: clamp(27px, 2.2vw, 31px); font-weight: 750; letter-spacing: -0.034em; color: var(--ink); line-height: 1.15; }
.auth-card > p { margin-top: 8px; font-size: 17.5px; color: var(--muted); }
.auth-card .form { text-align: left; margin-top: 24px; }
.auth-card .btn--block { height: 52px; }
.auth-links { margin-top: 22px; display: grid; gap: 10px; font-size: 15.5px; color: var(--muted); }
.auth-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }
.auth-links a.is-brand { color: var(--brand-ink); font-weight: 650; }
.auth-steps { margin-top: 22px; display: grid; gap: 10px; text-align: left; }
.auth-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); }
.auth-steps b { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 760; }
.auth-steps strong { display: block; font-size: 16px; font-weight: 650; color: var(--ink); }
.auth-steps span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 1px; line-height: 1.45; }
.auth-card .btn--block { margin-top: 26px; }
.auth-card .hint { margin-top: 6px; font-size: 14px; color: var(--muted); text-align: left; }

/* --------------------------------------------------------------------------
   Legal
   -------------------------------------------------------------------------- */
.legal-head { text-align: center; padding-block: clamp(28px, 3.4vw, 48px) clamp(20px, 2.4vw, 32px); }
.legal-head p { margin-top: 10px; font-size: 17.5px; color: var(--muted); }
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 88px); }
.toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; padding-right: 28px; border-right: 1px solid var(--line); }
.toc ol { margin-top: 14px; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 0; font-size: 15.5px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--brand-ink); font-weight: 500; }
.legal__body { max-width: 900px; }
.legal__body section + section { margin-top: 32px; }
.legal__body h2 { font-size: clamp(24px, 2vw, 29px); font-weight: 750; letter-spacing: -0.03em; color: var(--ink); line-height: 1.18; }
.legal__body p { margin-top: 10px; font-size: 16.5px; line-height: 1.62; color: var(--muted); }
.legal__body ul { margin-top: 10px; display: grid; gap: 6px; }
.legal__body li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.55; color: var(--muted); }
.legal__body li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.legal__body a { color: var(--brand-ink); }
.legal-draft { margin: 0 auto clamp(24px, 3vw, 36px); width: min(100%, 900px); display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: var(--warn-soft); color: var(--warn-ink); font-size: 15.5px; line-height: 1.5; text-align: left; }
.legal-draft .i { width: 20px; height: 20px; margin-top: 2px; }
@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border-right: 0; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
}
@media (max-width: 520px) { .toc ol { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.notfound { text-align: center; padding-block: clamp(64px, 10vw, 140px); display: grid; justify-items: center; gap: 16px; }
.notfound__code { font-size: clamp(80px, 12vw, 160px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--ink); }
.notfound__code span { color: var(--brand); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: clamp(40px, 6vw, 88px); border-top: 1px solid var(--line); }
.site-footer__top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-block: 28px; }
.site-footer .brand svg { height: 32px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; }
.footer-nav a { font-size: 16px; color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-actions { display: flex; align-items: center; gap: 18px; }
.footer-actions a.signin { font-size: 16px; color: var(--text); text-decoration: none; }
.footer-actions .btn { height: 44px; padding: 0 24px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 18px 30px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.site-footer__bottom a { color: var(--muted); text-decoration: none; }
.site-footer__bottom a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 980px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 18px; }
  .footer-nav { justify-content: flex-start; }
}
.site-footer--auth { margin-top: 0; background: transparent; }
.site-footer--auth .site-footer__bottom { border-top: 1px solid var(--line); padding-block: 22px; }
.site-footer--auth .brand svg { height: 26px; color: var(--muted); }
