/* ===========================================================================
 * public/css/welcome.css — the pre-login page (public/welcome.html), and the
 * pages drawn in the same design: the error page (public/not-found.html) and
 * the legal documents (public/terms.html, public/privacy.html), which share
 * its header (partials/w-header.html) and the public pages' one footer
 * (lib/site-footer.js).
 *
 * Built on the design system (design-system/tokens.css + atoms.css): the
 * .hz-btn atom, the .hz-wordmark lockup, the brand blue (--hz-brand) as the ONE
 * action colour, the radius and motion scales. Page-level tokens (--w-*) below
 * only add what this page owns: the hero art palette — drawn exclusively from
 * the six colours of the Harizma logo (public/icons/favicon.svg) — and the
 * glass surfaces of the chat "window".
 *
 * Theme: dark by default like the design system; [data-theme="light"] (set by
 * the page's head script from the app's own choice, else the OS) swaps tokens.
 *
 * Layout: one markup, three widths — phone (< 600px), tablet (600–1023px),
 * desktop (≥ 1024px). 600px is where a tablet starts: a 7–8" Android tablet in
 * portrait (Galaxy Tab: 712px) and an unfolded foldable get the tablet layout,
 * while every phone in portrait (≤ 430px) keeps the phone one. Safe-area insets for notched phones; motion only when
 * the visitor has not asked for less.
 * ======================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --w-canvas:      #08080F;
  --w-fill:        #13141F;
  --w-fill-2:      #1A1B2A;
  --w-line:        rgba(255, 255, 255, .07);
  --w-line-2:      rgba(255, 255, 255, .13);
  --w-text:        #EEEFF6;
  --w-muted:       #9A9FB3;
  --w-subtle:      #7C8196;
  --w-brand:       var(--hz-brand);
  /* The call-to-action fill is the brand token shaded 20 % toward black, so
     white button text clears WCAG AA (4.75:1 — plain --hz-brand is 3.2:1 with
     white, too low for 15px text on the page's most important controls). A
     black overlay on the token rather than a literal: every browser renders
     it (no color-mix needed) and a re-pointed brand token still reaches it. */
  --w-cta-shade:       rgba(0, 0, 0, .20);
  --w-cta-shade-hover: rgba(0, 0, 0, .28);
  --w-brand-ink:   #8AB6FF;

  --w-hero-1:      #0B0B17;
  --w-hero-2:      var(--hz-blue-975);
  --w-glow:        color-mix(in srgb, var(--hz-brand) 16%, transparent);
  --w-glass:       rgba(14, 15, 28, .80);
  --w-glass-line:  rgba(255, 255, 255, .10);
  --w-bubble:      #181A2C;
  --w-elev:        0 1px 2px rgba(0, 0, 0, .3), 0 24px 60px -18px rgba(0, 0, 0, .6);
  --w-tile-face:   linear-gradient(160deg, #F4F5FA 0%, #E3E5EE 60%, #D2D5E2 100%);
  --w-tile-edge-1: #A9ADBF;
  --w-tile-edge-2: #8E93A8;
  --w-tile-drop:   rgba(0, 0, 0, .55);
  --w-grad-word:   linear-gradient(95deg, #FF7A3D 0%, #FF3D78 48%, var(--hz-brand) 100%);
  --w-header-bg:   rgba(8, 8, 15, .72);

  --w-font:        'Plus Jakarta Sans', 'Manrope', 'IBM Plex Sans Arabic', 'IBM Plex Sans Devanagari', 'Noto Sans Armenian', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --w-font-head:   'Manrope', 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', 'IBM Plex Sans Devanagari', 'Noto Sans Armenian', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --w-gutter:      20px;
  --w-max:         1120px;
  --w-header-h:    64px;
  color-scheme: dark;
}

[data-theme="light"] {
  --w-canvas:      #FFFFFF;
  --w-fill:        #F4F5F7;
  --w-fill-2:      #ECEEF2;
  --w-line:        rgba(10, 12, 20, .08);
  --w-line-2:      rgba(10, 12, 20, .14);
  --w-text:        #0B0C12;
  --w-muted:       #5F6576;
  --w-subtle:      #8A90A0;
  --w-brand-ink:   #1A64D8;

  --w-hero-1:      #F8F9FC;
  --w-hero-2:      #F1F3F9;
  --w-glow:        color-mix(in srgb, var(--hz-brand) 7%, transparent);
  --w-glass:       rgba(255, 255, 255, .82);
  --w-glass-line:  rgba(255, 255, 255, .95);
  --w-bubble:      #F3F5F9;
  --w-elev:        0 1px 2px rgba(10, 12, 20, .04), 0 24px 60px -18px rgba(12, 36, 87, .22);
  --w-tile-face:   linear-gradient(160deg, #FFFFFF 0%, #F2F3F7 55%, #E4E6EE 100%);
  --w-tile-edge-1: #DDE0E8;
  --w-tile-edge-2: #D0D4DE;
  --w-tile-drop:   rgba(12, 36, 87, .20);
  --w-grad-word:   linear-gradient(95deg, #EE5410 0%, #E0164F 48%, var(--hz-blue-700) 100%);
  --w-header-bg:   rgba(248, 249, 252, .78);
  color-scheme: light;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
html { scroll-padding-top: calc(var(--w-header-h) + 8px); }
/* In-page jumps also clear the partner gift bar when it is up. The bar's
   offset variable lives on <body>, which <html> cannot read, so the bar's
   height (36px + the notch, partner-bar.css) is restated here. */
html:has(> body.hz-pbar-active) { scroll-padding-top: calc(var(--w-header-h) + env(safe-area-inset-top, 0px) + 36px + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.w-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--w-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--w-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background:
    radial-gradient(60% 520px at 86% 520px, var(--w-glow), transparent 70%),
    linear-gradient(180deg, var(--w-hero-1) 0, var(--w-hero-2) 560px, var(--w-canvas) 880px) no-repeat,
    var(--w-canvas);
}
.w-page *, .w-page *::before, .w-page *::after { box-sizing: border-box; }
:where(.w-page) :where(h1, h2, p) { margin: 0; }
/* Zero-specificity: a link inherits colour unless a component sets one. */
:where(.w-page) a { color: inherit; }
.w-page :focus-visible { outline: 2px solid var(--w-brand); outline-offset: 3px; border-radius: 10px; }
.w-page button { font-family: inherit; }
main:focus { outline: none; }
/* The hero art bleeds past the viewport edge by design. It is clipped by <main>
   — which holds the art but not the sticky header — rather than by <html>:
   mobile browsers size the layout viewport from overflowing content even when
   the root clips it, which made the phone page scroll sideways. `hidden` is the
   fallback (its computed overflow-y:auto never scrolls, main grows with its
   content); `clip` also keeps overflow-y visible where supported. */
.w-page main { overflow-x: hidden; }
@supports (overflow: clip) { .w-page main { overflow-x: clip; } }

.w-skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px;
  background: var(--w-text); color: var(--w-canvas); font-weight: 700; text-decoration: none;
}
.w-skip:focus { top: 12px; }

/* ── Buttons (page shape on top of the .hz-btn atom) ─────────────────────── */
.w-btn {
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.w-btn:active { transform: scale(.98); }
.w-btn.hz-btn--primary { background: linear-gradient(var(--w-cta-shade), var(--w-cta-shade)) var(--w-brand); color: #fff; }
.w-btn.hz-btn--primary:hover { background: linear-gradient(var(--w-cta-shade-hover), var(--w-cta-shade-hover)) var(--w-brand); }
.w-btn--quiet { background: var(--w-fill); color: var(--w-text); }
.w-btn--quiet:hover { background: var(--w-fill-2); }
.w-btn--text { background: transparent; color: var(--w-text); }
.w-btn--text:hover { background: var(--w-fill); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.w-top {
  position: sticky; top: 0; z-index: 30;
  background: var(--w-header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
          backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--w-line);
  padding-top: env(safe-area-inset-top, 0px);
}
/* A partner visit (/p/<code>): the fixed partner gift bar (partner-bar.css)
   sits above the header. body.hz-pbar-active reserves its height and sets
   --hz-site-header-top, so the sticky header pins just below it; the bar
   already clears the notch, so the header drops its own safe-area padding. */
.hz-pbar-active .w-top {
  top: var(--hz-site-header-top, 0px);
  padding-top: 0;
}
.w-top__in {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--w-header-h);
  max-width: 1200px; margin: 0 auto;
  padding: 0 max(var(--w-gutter), env(safe-area-inset-right, 0px)) 0 max(var(--w-gutter), env(safe-area-inset-left, 0px));
}
.w-logo { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; color: var(--w-text); border-radius: 10px; }
.w-logo__mark { width: 28px; height: 28px; display: block; }
.w-logo__word { height: 17px; }
.w-top__actions { display: flex; align-items: center; gap: 6px; }
.w-top__actions .w-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.w-top__start { display: none; }
/* The language menu itself is the shared component (public/css/lang-menu.css,
   lib/seo.js languageMenu); the header only sizes its button to its own row. */
.w-lang .hz-lang__btn { min-height: 40px; }
/* The narrowest phones (< 360px: iPhone SE 1st gen, Galaxy S9+, a folded
   Galaxy Z Fold) cannot fit the wordmark beside full-size touch targets for the
   language switch and «Sign in»: the mark alone carries the brand there (the
   link keeps its label), so the header never pushes the layout viewport wider
   than the screen — which would render the whole page zoomed out. */
@media (max-width: 359px) {
  .w-top .w-logo__word { display: none; }
  .w-top .w-logo { min-width: 44px; }
  /* The card fills the screen: a tile at its corner would sit on its text. */
  .w-deco.w-t-chat { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.w-hero {
  display: grid; gap: 18px;
  max-width: var(--w-max); margin: 0 auto;
  /* The bottom padding is the art's runway: the sphere and ribbon bleed below
     the chat card and must fade out before the next section's heading. */
  padding: 20px max(var(--w-gutter), env(safe-area-inset-right, 0px)) 72px max(var(--w-gutter), env(safe-area-inset-left, 0px));
}
.w-hero__copy { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.w-hero__mark { display: none; width: 60px; height: 60px; }
/* On a phone the header right above already says «Harizma»: the eyebrow
   arrives with the tablet layout, where the hero has room to breathe. */
.w-hero__copy .w-label { display: none; }
.w-label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--w-text);
}
.w-h1 {
  font-family: var(--w-font-head);
  font-weight: 800;
  font-size: clamp(28px, 7.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -.04em;
  text-wrap: balance;
  color: var(--w-text);
}
.w-h1 em {
  font-style: normal;
  background: var(--w-grad-word);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  /* Keep the accent phrase on one line where it fits. */
  white-space: nowrap;
}
.w-proof { font-size: 13.5px; line-height: 1.45; color: var(--w-muted); }

/* An invite (/i/<handle>, member-referral/landing.js): who invited you and the
   gift waiting, above the headline. A quiet card in the invite register (the
   Stars hue) so it reads as personal, not as an ad; the headline stays the hero. */
.w-invite {
  display: flex; align-items: center; gap: 12px;
  max-width: 100%; margin-bottom: 4px;
  padding: 8px 16px 8px 8px; padding-inline: 8px 16px;
  border: 1px solid var(--hz-invite-border); border-radius: var(--hz-radius-20);
  background: var(--hz-invite-tint);
}
.w-invite__ava {
  flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--hz-invite-soft); color: var(--hz-invite-ink);
  font-weight: 800; font-size: 17px;
}
.w-invite__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-invite__txt { display: grid; gap: 1px; min-width: 0; }
.w-invite__who {
  font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--w-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w-invite__gift { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--hz-invite-ink); }

/* The stage: the chat card is the ONE raised object; the art lives around it. */
/* The top margin is the runway of the tiles riding the card's top edge. */
.w-stage { position: relative; isolation: isolate; margin-top: 22px; min-width: 0; }
.w-deco { position: absolute; pointer-events: none; }
.w-deco--back  { z-index: 0; }
.w-deco--front { z-index: 2; }

.w-sphere {
  border-radius: 50%;
  width: 300px; height: 300px; inset-inline-end: -150px; top: -6px;
  background:
    radial-gradient(38% 30% at 34% 24%, rgba(255, 255, 255, .70) 0%, rgba(255, 255, 255, .18) 45%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(70% 70% at 78% 88%, rgba(255, 170, 230, .45) 0%, rgba(255, 170, 230, 0) 45%),
    radial-gradient(120% 120% at 28% 22%, #FFC24A 0%, #FF8A1E 16%, #FF5A2A 30%, #FE1E62 52%, #D0198F 76%, #A3127A 100%);
  box-shadow: inset -18px -26px 50px rgba(120, 10, 70, .28), 0 50px 100px -30px rgba(254, 30, 98, .28);
}
.w-ribbon {
  --rw: 34px;
  border-radius: 50%;
  width: 420px; height: 230px; inset-inline-start: -250px; bottom: -64px;
  transform: rotate(-24deg);
  background:
    radial-gradient(closest-side, transparent calc(100% - var(--rw) * .72), rgba(255, 255, 255, .55) calc(100% - var(--rw) * .62), transparent calc(100% - var(--rw) * .45)),
    linear-gradient(120deg, rgba(255, 190, 230, .95) 0%, rgba(255, 95, 174, .92) 35%, rgba(227, 59, 200, .88) 62%, rgba(255, 138, 61, .85) 100%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - var(--rw)), #000 calc(100% - var(--rw) + 1px), #000 calc(100% - 1px), transparent 100%);
          mask: radial-gradient(closest-side, transparent calc(100% - var(--rw)), #000 calc(100% - var(--rw) + 1px), #000 calc(100% - 1px), transparent 100%);
  opacity: .9;
}

.w-tile {
  --s: 56px; --r: 0deg;
  width: var(--s); height: var(--s); border-radius: calc(var(--s) * .27);
  display: grid; place-items: center;
  background: var(--w-tile-face);
  transform: rotate(var(--r));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .95), inset 0 -2px 3px rgba(0, 0, 0, .05),
    0 1px 0 var(--w-tile-edge-1), 0 2px 0 var(--w-tile-edge-1), 0 3px 0 var(--w-tile-edge-2),
    0 4px 0 var(--w-tile-edge-2), 0 5px 0 var(--w-tile-edge-2), 0 22px 30px -8px var(--w-tile-drop);
}
.w-tile svg { width: 58%; height: 58%; }
.w-tile--blue {
  background: linear-gradient(160deg, #6AA6FF 0%, #3A7BF2 50%, #2459D8 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6), 0 1px 0 #1E4DBE, 0 2px 0 #1E4DBE, 0 3px 0 #183FA0,
    0 4px 0 #183FA0, 0 5px 0 #183FA0, 0 22px 30px -8px rgba(20, 50, 160, .45);
}
.w-tile--ink {
  background: linear-gradient(160deg, #2A2B33 0%, #15161C 60%, #0B0B10 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .18), 0 1px 0 #000, 0 2px 0 #000, 0 3px 0 #000,
    0 4px 0 #000, 0 5px 0 #000, 0 22px 30px -8px rgba(0, 0, 0, .45);
}
.w-tile--far { filter: blur(1.6px); opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .w-tile { animation: w-float 7s ease-in-out infinite alternate; }
  .w-t-buddy, .w-t-star { animation-duration: 8.5s; animation-delay: -2s; }
  .w-t-video, .w-t-note { animation-duration: 9.5s; animation-delay: -4s; }
}
@keyframes w-float { from { translate: 0 -4px; } to { translate: 0 6px; } }

/* Phone placement: two tiles and the sphere; the rest arrive with space. The
   card fills a phone's width, so its tiles ride its top edge — above the
   header row, never on Harizma's words (scripts/verify-welcome-layout.js). */
.w-t-chat  { --s: 50px; --r: 11deg;  inset-inline-end: -12px; top: -30px; }
.w-t-buddy { --s: 54px; --r: -12deg; inset-inline-start: -24px; top: 52%; }
.w-t-star  { --s: 40px; --r: -10deg; inset-inline-start: 58%;   top: -30px; }
.w-t-video, .w-t-img, .w-t-note { display: none; }

/* ── Chat card: Harizma speaks ─────────────────────────────────────────── */
.w-chat {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: var(--w-glass);
  border: 1px solid var(--w-glass-line);
  -webkit-backdrop-filter: blur(30px) saturate(1.15);
          backdrop-filter: blur(30px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, var(--w-elev);
}
.w-agent { display: flex; align-items: center; gap: 10px; }
.w-agent__ava {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: var(--hz-action-gradient);
}
.w-agent__who { display: grid; }
.w-agent__name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.w-bubble {
  display: grid; gap: 8px;
  padding: 12px 14px;
  border-start-start-radius: 6px; border-start-end-radius: 18px; border-end-end-radius: 18px; border-end-start-radius: 18px;
  background: var(--w-bubble);
  font-size: 14.5px; line-height: 1.5;
}
.w-bubble__cta { font-weight: 700; }
/* Harizma's promises: a plain list with a brand-colour bullet. */
.w-points { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.w-points li { position: relative; padding-inline-start: 16px; }
.w-points li::before {
  content: ''; position: absolute; inset-inline-start: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--w-brand);
}
.w-points strong { font-weight: 700; }
/* The card's one action. */
.w-actions { display: grid; }
.w-actions .w-btn { min-height: 48px; padding: 0 24px; font-size: 15px; }
/* One size for every large call to action on the page. */
.w-page .hz-btn--lg { font-size: 15px; }

/* ── Content: what Harizma can do ─────────────────────────────────────── */
.w-body {
  /* Above the hero art that bleeds into it. */
  position: relative; z-index: 1;
  max-width: var(--w-max); margin: 0 auto;
  padding: 8px max(var(--w-gutter), env(safe-area-inset-right, 0px)) 56px max(var(--w-gutter), env(safe-area-inset-left, 0px));
}
.w-caps { display: grid; gap: 18px; min-width: 0; }
.w-caps__title, .w-price__title {
  font-family: var(--w-font-head); font-size: 24px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.15; text-wrap: balance;
}
/* One column on a phone; two on a tablet (an odd last column takes the full
   row); a row of equal columns on a desktop — however many sources answered. */
.w-caps__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.w-cap {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: 20px;
  border-radius: 24px;
  background: var(--w-fill);
  border: 1px solid var(--w-line);
}
.w-cap__head { display: flex; align-items: center; gap: 12px; }
/* The models and course columns: their content sits a step in from the
   column's head, so the head reads as the block's title and the rows and
   words as what it holds. The button stays full width on the card's floor,
   in line with its siblings' (a desktop row's three buttons share a width). */
.w-cap--models > :not(.w-cap__head):not(.w-cap__cta),
.w-cap--course > :not(.w-cap__head):not(.w-cap__cta) { margin-inline-start: var(--w-cap-indent); }
.w-cap { --w-cap-indent: 12px; }
.w-cap__ico {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--w-canvas); color: var(--w-brand-ink);
  box-shadow: 0 1px 2px rgba(10, 12, 20, .08);
}
.w-cap__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.w-cap__title {
  margin: 0;
  font-family: var(--w-font-head); font-size: 17px; font-weight: 800;
  letter-spacing: -.02em; line-height: 1.25; text-wrap: balance;
}
.w-cap__lead { font-size: 15.5px; font-weight: 700; line-height: 1.35; text-wrap: balance; }
.w-cap__text { font-size: 14px; color: var(--w-muted); margin-top: -6px; }
/* The column's link sits on its floor, so the three align across a row. */
.w-cap__cta { margin-top: auto; min-height: 48px; padding: 0 20px; }
/* A label wider than a narrow phone's card (a folded phone at 280px: «Посмотреть
   ещё 24 модели», «Барлық тарифтерді көру») wraps onto a second line inside its
   button rather than being cut off; everywhere else it is one line. */
.w-cap__cta, .w-price__cta { white-space: normal; text-align: center; line-height: 1.25; padding-block: 8px; }
.w-cap .w-btn--quiet { background: var(--w-canvas); border: 1px solid var(--w-line); }
.w-cap .w-btn--quiet:hover { background: var(--w-fill-2); }

.w-ico {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  display: grid; place-items: center; overflow: hidden;
  font-size: 21px; line-height: 1; color: #fff;
  box-shadow: 0 8px 18px -8px rgba(20, 20, 60, .45);
}
.w-ico--img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Models: rows — avatar, name, what it does (whole, wrapping onto a second
   line where it needs one — never cut off). */
.w-cap__rows, .w-cap__tiles { margin: 0; padding: 0; list-style: none; }
.w-cap__rows { display: grid; gap: 2px; }
.w-row {
  display: flex; align-items: center; gap: 12px;
  margin: 0 -8px; padding: 8px;
  border-radius: 16px;
  text-decoration: none; color: var(--w-text);
  transition: background .15s ease;
}
.w-row:hover { background: var(--w-fill-2); }
.w-row__txt { display: grid; min-width: 0; }
.w-row__name { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.w-row__tag { font-size: 12.5px; line-height: 1.35; color: var(--w-muted); text-wrap: pretty; overflow-wrap: break-word; }

/* Everyday agents: tiles — avatar over name. Three across (two rows of three)
   wherever a tile keeps room for a name; two across in a narrow card (a folded
   phone, a two-column tablet at 600px) rather than names broken mid-word. */
.w-cap__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 4px; }
.w-mini {
  display: grid; justify-items: center; align-content: start; gap: 8px;
  padding: 10px 4px;
  border-radius: 16px;
  text-align: center; text-decoration: none; color: var(--w-text);
  transition: background .15s ease;
}
.w-mini:hover { background: var(--w-fill-2); }
.w-mini .w-ico { width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }
.w-mini__name {
  /* Whole words: a long name wraps between words (or hyphenates where the
     browser can), never mid-word. */
  font-size: 12.5px; font-weight: 650; line-height: 1.25;
  overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Course: a small stage of the hero's own art — the brand sphere and ribbon
   behind, the 3D tiles in front (cap, book, check). The materials are the hero's
   (.w-sphere, .w-ribbon, .w-tile above); only the geometry is set here, scoped
   to the stage, so the hero's own placement rules never reach it. The stage
   clips its art: nothing bleeds into the card's words or button. */
.w-art {
  position: relative; isolation: isolate; overflow: hidden;
  height: 184px; margin-top: 4px;
  border-radius: 20px;
  border: 1px solid var(--w-line);
  background:
    radial-gradient(70% 90% at 30% 20%, var(--w-glow), transparent 70%),
    linear-gradient(160deg, var(--w-hero-1) 0%, var(--w-hero-2) 100%);
}
.w-art .w-sphere {
  width: 168px; height: 168px; inset-inline-end: -46px; top: -58px;
}
.w-art .w-ribbon {
  --rw: 22px;
  width: 300px; height: 150px; inset-inline-start: -120px; bottom: -78px; inset-inline-end: auto; top: auto;
  transform: rotate(-16deg);
}
/* The tiles: the cap is the subject, the rest its supporting cast. Each
   position is measured from the stage's edges, so a narrow card brings the
   cast in around the cap rather than off the stage. */
.w-art .w-tile { --w-tile-drop: rgba(12, 36, 87, .22); }
.w-art .w-tile svg { width: 64%; height: 64%; }
.w-art__cap   { --s: 78px; --r: -8deg; inset-inline-start: calc(50% - 46px); top: 26px; z-index: 2; }
.w-art__book  { --s: 52px; --r: 12deg; inset-inline-start: 14px;  top: 18px; z-index: 1; }
.w-art__check { --s: 48px; --r: 10deg; inset-inline-end: 18px; top: 72px; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .w-art__book  { animation-duration: 8.5s; animation-delay: -2s; }
  .w-art__check { animation-duration: 9.5s; animation-delay: -4s; }
}
/* The narrowest phones (< 360px): a smaller cast, so the stage keeps its
   composition. */
@media (max-width: 359px) {
  .w-art { height: 164px; }
  .w-art__cap   { --s: 64px; inset-inline-start: calc(50% - 36px); top: 22px; }
  .w-art__book  { --s: 42px; inset-inline-start: 10px; top: 14px; }
  .w-art__check { --s: 40px; inset-inline-end: 10px; top: 50px; }
}

/* ── Pricing (under the columns) ─────────────────────────────────────────
   One card, the columns' surface (.w-cap): the eyebrow, the title, the free
   trial — its name and price, who it is for, and a highlighted «no card
   needed» — what it lets you do as a checked list, what its Stars buy; the
   button to /pricing under the words on a phone and a tablet, on the end
   side, centred on the card's height, on a desktop. */
.w-price {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center;
  margin-top: 40px; padding: 20px; min-width: 0;
  border-radius: 24px;
  background: var(--w-fill);
  border: 1px solid var(--w-line);
}
.w-price__copy { display: grid; gap: 10px; min-width: 0; }
.w-price__label { color: var(--w-brand-ink); }
.w-price__trial { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.w-price__name {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0;
  font-size: 15.5px; line-height: 1.4;
}
.w-price__name strong { font-weight: 800; }
.w-price__pitch { color: var(--w-muted); }
/* «No card needed»: the trial's promise, highlighted as a pill. */
.w-price__card {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--hz-success-soft); color: var(--hz-success-ink);
  border: 1px solid var(--hz-success-border);
  font-size: 13.5px; font-weight: 700; line-height: 1.3;
}
.w-price__card svg { width: 17px; height: 17px; flex: none; }
.w-price__lead { margin-top: 2px; font-size: 14.5px; font-weight: 700; }
.w-price__facts { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.w-price__facts li {
  display: flex; align-items: flex-start; gap: 10px; min-width: 0;
  font-size: 14.5px; line-height: 1.45; text-wrap: pretty; overflow-wrap: break-word;
}
.w-price__facts svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--w-brand-ink); }
.w-price__stars {
  margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--w-line);
  font-size: 14px; line-height: 1.5; color: var(--w-muted); text-wrap: pretty;
}
.w-price__cta { min-height: 52px; padding: 0 24px; gap: 10px; width: 100%; }
.w-price__arrow {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
/* Read by screen readers, not shown: a price in words. */
.w-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;
}

/* ── The way to the pricing page: one quiet line ─────────────────────────
   What it costs, in one line, and the link. Drawn here for the pages in this
   design: the capabilities page closes with it (capabilities/render.js,
   .c-teaser). */
.w-teaser {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 4px 14px; margin-top: 28px; text-align: center;
  font-size: 15px; line-height: 1.45; color: var(--w-muted);
}
.w-teaser__link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 4px;
  font-weight: 700; color: var(--w-brand-ink); text-decoration: none; border-radius: 10px;
}
.w-teaser__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.w-teaser__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* No RTL rule here: the design system mirrors this arrow by its shape
   (atoms.css §4, path "M5 12h14M13 6l6 6-6 6") — a second flip here turned
   it back to point right on the Arabic page. */
@media (pointer: coarse) { .w-teaser__link { min-height: 44px; } }

/* ── Harizma wherever you are (the page's last block) ────────────────────
   The other ways in, beside signing up here: one card — the words and the
   rows on the start side, a picture on the end side (on a phone and a tablet
   the picture leads, above the words). The rows are the models column's
   (.w-row: a mark, a name, a line of what it is), each ending in its way on:
   a chevron for the web (it stays here), the "opens in a new tab" arrow for
   the app, the bot and the store. The picture is the hero's art once more —
   the course column's stage (.w-art) around a phone that runs Harizma
   (.w-apps__phone), with the channels' own marks (Google Play, Telegram,
   Chrome) on the hero's 3D tiles beside it (.w-apps__tile--1…3). */
.w-apps {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px;
  margin-top: 40px; padding: 20px;
  border-radius: 24px;
  background: var(--w-fill);
  border: 1px solid var(--w-line);
}
.w-apps__copy { display: grid; gap: 8px; align-content: start; min-width: 0; }
.w-apps__title {
  font-family: var(--w-font-head); font-size: 24px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.15; text-wrap: balance;
}
.w-apps__text { font-size: 15px; color: var(--w-muted); text-wrap: pretty; }
.w-apps__list { display: grid; gap: 2px; margin: 8px 0 0; padding: 0; list-style: none; }
/* A row is a link (the bot, the store) or a button (the web: sign-up); the
   button wears the link's row exactly. */
button.w-chan {
  width: calc(100% + 16px);
  border: 0; background: none; font: inherit; text-align: start; cursor: pointer;
}
.w-chan { min-height: 64px; }
.w-chan__mark { background: var(--w-canvas); }
.w-chan__mark--web { background: var(--hz-action-gradient); }
.w-chan__logo { width: 28px; height: 28px; display: block; }
.w-chan__text {
  font-size: 13px; line-height: 1.4; color: var(--w-muted);
  text-wrap: pretty; overflow-wrap: break-word;
}
/* The bot's @username, drawn as a link: the row around it is the link that
   opens the bot in Telegram (a link cannot hold another), so the handle wears
   the page's link look and the whole row answers the tap. */
.w-chan__handle {
  color: var(--w-brand-ink); font-weight: 650;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
  white-space: nowrap;
}
@media (hover: hover) { .w-chan:hover .w-chan__handle { text-decoration-thickness: 2px; } }
/* The way on: a quiet round button at the row's end (the app's list rows). */
.w-chan__end {
  flex: none; margin-inline-start: auto;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--w-canvas); color: var(--w-muted);
  border: 1px solid var(--w-line);
  transition: color .15s ease;
}
.w-chan:hover .w-chan__end { color: var(--w-text); }
.w-chan__go, .w-chan__out {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .w-chan__go, [dir="rtl"] .w-chan__out { transform: scaleX(-1); }

/* The picture: the course stage's materials, its own cast — a phone and the
   channels' tiles. Everything is placed from the stage's centre, so the cast
   stays one group at any width. The phone stands on the stage's floor and is
   taller than a short stage: the stage clips it (the hero's own trick with
   the sphere), so a phone and a tablet show its upper half and a desktop,
   where the stage is as tall as the rows beside it, the whole of it. */
.w-apps__art { order: -1; margin-top: 0; height: 232px; --w-phone-w: 132px; }
.w-apps__phone {
  --w-phone-h: calc(var(--w-phone-w) * 2.06);
  width: var(--w-phone-w); height: var(--w-phone-h);
  inset-inline-start: calc(50% - var(--w-phone-w) / 2);
  top: max(26px, calc(50% - var(--w-phone-h) / 2));
  z-index: 1;
  padding: 5px; border-radius: calc(var(--w-phone-w) * .19);
  background: linear-gradient(160deg, #3A3C48 0%, #1B1C24 45%, #0B0B10 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 44px -16px var(--w-tile-drop), 0 2px 6px rgba(10, 12, 20, .18);
}
/* The screen wears the page's own surfaces, so it follows the theme: the
   canvas, the greeting card's bubble, the brand blue for the person. */
.w-apps__screen {
  position: relative; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 9px 9px;
  border-radius: calc(var(--w-phone-w) * .19 - 5px);
  background: var(--w-canvas);
}
/* The camera. */
.w-apps__screen::before {
  content: ''; position: absolute; top: 8px; inset-inline-start: calc(50% - 3px);
  width: 6px; height: 6px; border-radius: 50%; background: var(--w-line-2);
}
.w-apps__head { display: flex; align-items: center; gap: 6px; padding: 0 2px 2px; }
.w-apps__head img { width: 20px; height: 20px; flex: none; }
.w-apps__head i { width: 42%; height: 6px; border-radius: 3px; background: var(--w-text); opacity: .82; }
.w-apps__msg {
  flex: none; display: grid; gap: 5px; width: 86%; padding: 9px;
  border-radius: 12px; border-start-start-radius: 4px;
  background: var(--w-bubble);
}
.w-apps__msg i { height: 5px; border-radius: 3px; background: var(--w-line-2); }
.w-apps__msg i:last-of-type:not(:only-of-type) { width: 62%; }
.w-apps__msg--me {
  width: 58%; align-self: flex-end;
  border-start-start-radius: 12px; border-start-end-radius: 4px;
  background: var(--w-brand);
}
.w-apps__msg--me i { background: rgba(255, 255, 255, .82); }
/* The picture Harizma made: the sphere's own colours. */
.w-apps__msg b {
  height: calc(var(--w-phone-w) * .36); margin-top: 2px; border-radius: 8px;
  background: linear-gradient(135deg, #FFC24A 0%, #FF8A1E 24%, #FE1E62 66%, #D0198F 100%);
}
/* The message field, on the screen's floor: a pill and the send button. It is
   the column's last item, so a chat taller than the screen never runs under
   it — the screen clips what does not fit. */
.w-apps__ask {
  flex: none; margin-top: auto; height: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding-inline: 10px 4px; border-radius: 12px;
  background: var(--w-bubble);
}
.w-apps__ask::before { content: ''; width: 44%; height: 5px; border-radius: 3px; background: var(--w-line-2); }
.w-apps__ask i { width: 16px; height: 16px; border-radius: 50%; background: var(--w-brand); }
.w-art .w-apps__tile { z-index: 2; }
.w-art .w-apps__tile .w-apps__logo { width: 62%; height: 62%; display: block; }
.w-apps__tile--1 { --s: 58px; --r: -10deg; inset-inline-start: calc(50% - 124px); top: 38px; }
.w-apps__tile--2 { --s: 52px; --r: 10deg;  inset-inline-start: calc(50% + 62px);  top: 84px; }
.w-apps__tile--3 { --s: 46px; --r: -7deg;  inset-inline-start: calc(50% - 112px); top: 146px; }
@media (prefers-reduced-motion: no-preference) {
  .w-apps__tile--2 { animation-duration: 8.5s; animation-delay: -2s; }
  .w-apps__tile--3 { animation-duration: 9.5s; animation-delay: -4s; }
}
/* The narrowest phones (< 360px): a smaller mark and way-on button, so a
   row's words keep their measure (the button stays — it carries the "opens
   in a new tab" cue). */
@media (max-width: 359px) {
  .w-apps { padding: 16px; }
  .w-chan { gap: 10px; }
  .w-chan__mark { width: 36px; height: 36px; border-radius: 11px; }
  .w-chan__logo { width: 22px; height: 22px; }
  .w-chan__end { width: 30px; height: 30px; }
  .w-chan__go, .w-chan__out { width: 16px; height: 16px; }
  .w-apps__art { height: 204px; --w-phone-w: 112px; }
  .w-apps__tile--1 { --s: 42px; inset-inline-start: calc(50% - 94px); top: 34px; }
  .w-apps__tile--2 { --s: 40px; inset-inline-start: calc(50% + 50px); top: 74px; }
  .w-apps__tile--3 { --s: 36px; inset-inline-start: calc(50% - 88px); top: 126px; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.w-foot {
  border-top: 1px solid var(--w-line);
  /* The page's last lines scroll clear of the cookie banner while it waits for
     an answer (cookie-consent.js publishes its height as --hz-consent-h). */
  padding: 28px max(var(--w-gutter), env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px) + var(--hz-consent-h, 0px)) max(var(--w-gutter), env(safe-area-inset-left, 0px));
}
.w-foot__in { max-width: var(--w-max); margin: 0 auto; display: grid; gap: 18px; }
.w-foot__brand { display: grid; gap: 8px; justify-items: start; }
.w-foot__brand .w-logo__mark { width: 24px; height: 24px; }
.w-foot__brand .w-logo__word { height: 15px; }
.w-foot__tag { font-size: 13px; color: var(--w-muted); max-width: 38ch; }
.w-foot__side { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.w-foot__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
/* About the project: a quiet paragraph under the links — real content (read by
   people and by search engines), so --w-muted (AA in both themes), never the
   fainter --w-subtle. `pretty` keeps a lone word off the last line. */
.w-foot__about {
  max-width: 60ch; font-size: 12.5px; line-height: 1.6; color: var(--w-muted);
  text-wrap: pretty; overflow-wrap: break-word;
}
.w-foot__nav a, .w-foot__btn {
  padding: 6px 0; font-size: 13.5px; color: var(--w-muted); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.w-foot__nav a:hover, .w-foot__btn:hover { color: var(--w-text); }
/* Touch: every control is a comfortable target (Apple HIG 44pt, Material 48dp
   — 44px here, the header's own control height). */
@media (pointer: coarse) {
  .w-top__actions .w-btn { min-height: 44px; }
  .w-lang .hz-lang__btn { min-height: 44px; min-width: 44px; }
  .w-foot__nav { row-gap: 0; }
  .w-foot__nav a, .w-foot__btn { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; padding: 0; }
}
/* «Get Harizma» (lib/get-harizma.js footerGroup): under the links, a small
   caps label and the Android app's Google Play listing, the Telegram bot and
   the browser extension — each with its
   own mark and the "opens in a new tab" arrow. In every footer of this design
   (the pre-login page, pricing, /terms, /privacy, the error page). */
.w-foot__apps { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.w-foot__apps-title {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--w-muted);
}
.w-foot__apps-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.w-foot__app {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 0; font-size: 13.5px; color: var(--w-muted); text-decoration: none;
}
.w-foot__app:hover { color: var(--w-text); }
.w-foot__app-mark { width: 18px; height: 18px; flex: none; }
.w-foot__app-out {
  display: inline-block; vertical-align: -2px; margin-inline-start: 6px;
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .w-foot__app-out { transform: scaleX(-1); }
@media (pointer: coarse) {
  .w-foot__app { min-height: 44px; padding: 0; }
}
/* Not on a page painted with a partner's white-label: the extension shows
   only harizma.ai, and the app and the bot are Harizma's own. */
html[data-wl] [data-hz-get-harizma] { display: none; }
.w-foot__meta { max-width: var(--w-max); margin: 18px auto 0; color: var(--w-muted); }
.w-foot__copy { max-width: var(--w-max); margin: 16px auto 0; font-size: 12.5px; color: var(--w-subtle); }

/* ── The shared header's buttons (partials/w-header.html) ─────────────────────
   On the pages that share this header (the error page, /terms, /privacy) the
   buttons are marketing-nav.js CTAs: for a signed-in visitor it marks them
   data-hz-start-live and "Sign up" reads "Open App" — shown at every width,
   while "Sign in" steps aside. */
.w-top__signin[data-hz-start-live] { display: none; }
.w-top__start[data-hz-start-live] { display: inline-flex; }

/* ── Legal documents (public/terms.html, public/privacy.html) ──────────────────
   A long read in the page's type: the eyebrow, the heading and a muted line
   on top; the document in one comfortable column (~70 characters); contents
   and the rights are the design system's .hz-card in the page's card surface;
   notices are its .hz-callout. Body text is --w-muted (AA in both themes),
   headings and emphasis --w-text, links the brand ink and underlined (never
   colour alone). */
.w-doc {
  /* The design system's card atom (.hz-card) in this page's surface — its
     register tokens, here as on the pre-login page's own cards (.w-cap). */
  --hz-card-bg:     var(--w-fill);
  --hz-card-border: var(--w-line);
  --hz-card-radius: 24px;
  --hz-card-pad:    20px;
  --hz-card-shadow: none;
  max-width: 760px; margin: 0 auto;
  padding: 28px max(var(--w-gutter), env(safe-area-inset-right, 0px)) 72px max(var(--w-gutter), env(safe-area-inset-left, 0px));
}
.w-doc__hero { display: grid; gap: 10px; justify-items: start; margin-bottom: 28px; }
.w-doc__meta { font-size: 14px; color: var(--w-muted); }
.w-doc a { color: var(--w-brand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
/* Hover only where there is one: a tap must not leave a link lit. */
@media (hover: hover) {
  .w-doc a:hover { text-decoration-thickness: 2px; }
  .w-doc__toc-list a:hover { color: var(--w-brand-ink); }
}
.w-doc .hz-callout { margin: 16px 0; font-size: 15px; }
.w-doc .hz-callout strong { font-weight: 700; }

.w-doc__toc { margin: 24px 0 8px; }
.w-doc__toc-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--w-muted); }
.w-doc__toc-list { margin: 0; padding: 0; list-style: none; }
.w-doc__toc-list a {
  display: flex; gap: 8px; padding: 6px 0;
  font-size: 14.5px; line-height: 1.4; color: var(--w-text); text-decoration: none;
}
.w-doc__num { color: var(--w-subtle); font-variant-numeric: tabular-nums; }

.w-doc__section { margin-top: 44px; scroll-margin-top: calc(var(--w-header-h) + 16px); }
.w-doc__section h2 {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--w-line);
  font-family: var(--w-font-head); font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25;
  text-wrap: balance;
}
.w-doc__section h2 .w-doc__num { font-size: .8em; font-weight: 700; }
.w-doc__section h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.w-doc__section p, .w-doc__section li { font-size: 15.5px; line-height: 1.7; color: var(--w-muted); text-wrap: pretty; }
.w-doc__section p + p { margin-top: 12px; }
.w-doc__section strong { color: var(--w-text); font-weight: 700; }
.w-doc__section code { padding: 1px 6px; border-radius: 6px; background: var(--w-fill-2); color: var(--w-text); font-size: .9em; }
.w-doc__section ul, .w-doc__section ol { display: grid; gap: 8px; margin: 10px 0 14px; padding: 0; list-style: none; }
.w-doc__section li { position: relative; padding-inline-start: 20px; }
/* The page's list mark (.w-points) and its numbers. */
.w-doc__section ul > li::before {
  content: ''; position: absolute; inset-inline-start: 4px; top: .7em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--w-brand);
}
.w-doc__section ol { counter-reset: w-doc; }
.w-doc__section ol > li { counter-increment: w-doc; padding-inline-start: 24px; }
.w-doc__section ol > li::before {
  content: counter(w-doc) '.'; position: absolute; inset-inline-start: 0;
  color: var(--w-subtle); font-weight: 700; font-variant-numeric: tabular-nums;
}

.w-doc__table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 14.5px; }
.w-doc__table th {
  padding: 10px 12px; text-align: start;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--w-muted);
  background: var(--w-fill); border-bottom: 1px solid var(--w-line-2);
}
.w-doc__table td { padding: 10px 12px; vertical-align: top; color: var(--w-muted); line-height: 1.55; border-bottom: 1px solid var(--w-line); }
.w-doc__table td:first-child { color: var(--w-text); font-weight: 600; }
.w-doc__table tr:last-child td { border-bottom: 0; }

.w-doc__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 14px 0; }
.w-doc__card { --hz-card-pad: 18px; --hz-card-radius: 20px; }
.w-doc__card-icon { display: block; margin-bottom: 8px; font-size: 22px; line-height: 1; }
.w-doc__section .w-doc__card h3 { margin: 0 0 6px; font-size: 15px; }
.w-doc__section .w-doc__card p { font-size: 14px; line-height: 1.55; }

/* The account-deletion form (public/delete-account.html): one card per step,
   the field and its actions stacked, full width — a phone first. */
.w-del { display: grid; gap: 12px; margin: 16px 0 0; max-width: 420px; }
.w-del[hidden] { display: none; }
.w-del__label { font-size: 14px; font-weight: 700; color: var(--w-text); }
.w-del__lead { margin: 0; font-size: 15px; line-height: 1.55; color: var(--w-muted); }
.w-del__code { font-size: 22px; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.w-del .w-btn { min-height: 48px; width: 100%; font-size: 15px; }
.w-del__error { margin: 12px 0 0; font-size: 14.5px; font-weight: 600; color: var(--hz-danger-ink); }
#del-done { max-width: 420px; }

/* A phone: each table row becomes a small block — its first cell a label. */
@media (max-width: 599px) {
  .w-doc__table, .w-doc__table tbody, .w-doc__table tr, .w-doc__table td { display: block; width: 100%; }
  .w-doc__table thead { display: none; }
  .w-doc__table tr { padding: 10px 0; border-bottom: 1px solid var(--w-line); }
  .w-doc__table tr:last-child { border-bottom: 0; }
  .w-doc__table td { padding: 2px 0; border: 0; }
  .w-doc__table td:first-child { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--w-brand-ink); }
}
/* Touch: every contents link is a comfortable target. */
@media (pointer: coarse) {
  .w-doc__toc-list a { min-height: 44px; align-items: center; padding: 0; }
}

/* ── Error page (public/not-found.html: 404, 503) ───────────────────────────
   The same header, type, buttons and footer as the page above; only the body
   is its own: the brand mark, the status code as the eyebrow, the heading,
   one line, two ways on. The page fills the screen so the footer sits at the
   bottom on a short page (svh: the visible viewport on a phone, the browser
   bars excluded; vh for a browser without it). */
.w-page--fill { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.w-page--fill > main { flex: 1 0 auto; }
.w-err {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
  width: 100%; max-width: 640px; margin: 0 auto;
  padding: 56px max(var(--w-gutter), env(safe-area-inset-right, 0px)) 72px max(var(--w-gutter), env(safe-area-inset-left, 0px));
}
.w-err__mark { width: 52px; height: 52px; margin-bottom: 6px; }
.w-err__code { color: var(--w-muted); }
.w-err__sub { max-width: 46ch; font-size: 15.5px; color: var(--w-muted); text-wrap: pretty; overflow-wrap: break-word; }
.w-err__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.w-err__actions .w-btn { min-height: 48px; padding: 0 24px; }
/* A phone: the two ways on stack, full width, the primary first. */
@media (max-width: 599px) {
  .w-err__actions { flex-direction: column; align-self: stretch; }
}

/* ── Phone sticky call to action ───────────────────────────────────────── */
.w-sticky {
  position: fixed; left: 0; right: 0; z-index: 25;
  /* Above the cookie banner while it is up (cookie-consent.js publishes its
     height as --hz-consent-h); flush with the home indicator otherwise. */
  bottom: var(--hz-consent-h, 0px);
  padding: 10px max(var(--w-gutter), env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(var(--w-gutter), env(safe-area-inset-left, 0px));
  background: var(--w-header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
          backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--w-line);
}
.w-sticky[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .w-sticky:not([hidden]) { animation: w-sticky-in .24s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes w-sticky-in { from { transform: translateY(100%); } to { transform: none; } }
.w-sticky .w-btn { min-height: 50px; }
.w-has-sticky .w-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px) + var(--hz-consent-h, 0px)); }

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (min-width: 600px) {
  :root { --w-gutter: 32px; }
  .w-doc { padding-top: 48px; }
  .w-doc__hero { justify-items: center; text-align: center; margin-bottom: 36px; }
  .w-doc__toc { --hz-card-pad: 24px 28px; }
  .w-doc__toc-list { columns: 2; column-gap: 32px; }
  .w-doc__toc-list li { break-inside: avoid; }
  .w-doc__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-top__start { display: inline-flex; }
  .w-hero__copy .w-label { display: block; }
  .w-hero { padding-top: 48px; padding-bottom: 96px; gap: 26px; justify-items: center; }
  .w-hero__copy { justify-items: center; text-align: center; }
  .w-h1 { font-size: clamp(36px, 5.2vw, 46px); }
  .w-proof { font-size: 15px; }
  .w-stage { max-width: 640px; margin: 18px auto 0; width: 100%; }
  .w-chat { padding: 18px; border-radius: 28px; }
  .w-bubble { font-size: 15.5px; padding: 14px 18px; }
  .w-actions { justify-content: start; }
  .w-body { padding-bottom: 80px; }
  .w-apps { margin-top: 56px; padding: 24px; gap: 24px; }
  .w-apps__title { font-size: 30px; }
  .w-apps__art { height: 272px; --w-phone-w: 150px; }
  .w-apps__tile--1 { --s: 66px; inset-inline-start: calc(50% - 146px); top: 44px; }
  .w-apps__tile--2 { --s: 60px; inset-inline-start: calc(50% + 74px);  top: 98px; }
  .w-apps__tile--3 { --s: 52px; inset-inline-start: calc(50% - 130px); top: 172px; }
  .w-caps { gap: 24px; }
  .w-caps__title { font-size: 30px; text-align: center; }
  .w-price { margin-top: 56px; padding: 28px; gap: 24px; }
  .w-price__title { font-size: 30px; }
  .w-price__cta { width: auto; justify-self: start; }
  .w-caps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .w-cap:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .w-cap:last-child:nth-child(odd) .w-cap__cta { align-self: flex-start; }
  .w-cap { padding: 24px; --w-cap-indent: 16px; }
  /* The course, alone on its row, reads as a banner: its words and its button
     on the left, its picture on the right — not a wide card with an empty
     half. */
  .w-cap--course:last-child:nth-child(odd) {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; row-gap: 12px; align-items: center;
  }
  .w-cap--course:last-child:nth-child(odd) > * { grid-column: 1; }
  .w-cap--course:last-child:nth-child(odd) > .w-cap__art { grid-column: 2; grid-row: 1 / span 4; width: 320px; margin-top: 0; }
  .w-cap--course:last-child:nth-child(odd) > .w-cap__cta { justify-self: start; margin-top: 4px; }

  .w-sphere { width: 400px; height: 400px; inset-inline-end: -220px; top: -10px; }
  .w-ribbon { --rw: 50px; width: 700px; height: 330px; inset-inline-start: -450px; bottom: -110px; transform: rotate(-22deg); }
  .w-t-chat  { --s: 72px; --r: 10deg;  inset-inline-end: -44px; top: 24px; }
  .w-t-buddy { --s: 84px; --r: -8deg;  inset-inline-start: -60px; top: auto; bottom: 30px; }
  /* On the card's top edge, past the end of its header row. */
  .w-t-star  { --s: 58px; --r: 12deg;  inset-inline-start: 38%; top: -40px; }
}

/* ── Desktop ────────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .w-hero { padding-top: 40px; padding-bottom: 104px; }
  .w-hero__copy { gap: 12px; }
  .w-hero__mark { display: block; width: 52px; height: 52px; margin-bottom: -2px; }
  .w-h1 { font-size: 52px; max-width: 19em; letter-spacing: -.045em; }
  .w-stage { max-width: 720px; margin-top: 22px; }
  .w-caps__title, .w-price__title { font-size: 34px; }
  .w-price { grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; padding: 40px 48px; }
  .w-price__cta { justify-self: end; }
  .w-caps__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .w-cap:last-child:nth-child(odd) { grid-column: auto; }
  /* Back in line with its siblings — unless it is alone and spans the row. */
  .w-cap:last-child:nth-child(odd):not(:only-child) .w-cap__cta { align-self: stretch; }
  /* Brand left, links right — from here there is room for both on one row. */
  .w-foot__in { grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 48px; }
  /* The right column: links on top, the about paragraph under them as one
     block exactly as wide as the links — both edges in line in every language.
     The links set the column's width; the paragraph adds nothing to it
     (width 0) and fills it (min-width 100%). The column is never narrower than
     a comfortable measure, so a language with short links keeps a readable
     paragraph. Start-aligned prose: a ragged start edge reads badly. */
  .w-foot__side { justify-items: stretch; gap: 12px; min-width: 34ch; }
  .w-foot__nav { justify-content: flex-end; max-width: 560px; }
  .w-foot__about { width: 0; min-width: 100%; max-width: none; }
  /* «Get Harizma» is the links' second line, not a second measure: like the
     paragraph it adds nothing to the column's width and wraps inside it, so
     the links above keep the column's end edge however many channels there
     are. Its links stay one group: they wrap together under the title. */
  .w-foot__apps { justify-content: flex-end; width: 0; min-width: 100%; }
  .w-foot__apps-links { justify-content: flex-end; }
  /* The block: words and rows on the start side, the picture beside them,
     as tall as the words. */
  .w-apps { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: stretch; column-gap: 40px; padding: 32px; }
  .w-apps__title { font-size: 34px; }
  .w-apps__copy { align-content: center; }
  .w-apps__art { order: 0; height: auto; min-height: 380px; --w-phone-w: 164px; }
  .w-apps__tile--1 { --s: 76px; inset-inline-start: calc(50% - 166px); top: calc(50% - 132px); }
  .w-apps__tile--2 { --s: 68px; inset-inline-start: calc(50% + 84px);  top: calc(50% - 44px); }
  .w-apps__tile--3 { --s: 60px; inset-inline-start: calc(50% - 150px); top: calc(50% + 52px); }
  /* A course column in a row of three is a column again, its picture under
     its words and its button on the floor — `align-items` back to the
     column's own, or the banner's `center` would shrink-wrap the picture. */
  .w-cap--course:last-child:nth-child(odd):not(:only-child) { display: flex; align-items: stretch; }
  .w-cap--course:last-child:nth-child(odd):not(:only-child) > .w-cap__art { width: auto; margin-top: 4px; }
  .w-cap--course:last-child:nth-child(odd):not(:only-child) > .w-cap__cta { margin-top: auto; }

  .w-page {
    background:
      radial-gradient(50% 620px at 80% 640px, var(--w-glow), transparent 70%),
      linear-gradient(180deg, var(--w-hero-1) 0, var(--w-hero-2) 700px, var(--w-canvas) 1080px) no-repeat,
      var(--w-canvas);
  }
  /* The art stays inside the hero: it ends where the chat card does, never under
     the next section's heading. */
  .w-sphere { width: 420px; height: 420px; inset-inline-end: -250px; top: -8px; }
  .w-ribbon { --rw: 58px; width: 820px; height: 380px; inset-inline-start: -540px; bottom: -120px; }
  .w-t-chat  { --s: 88px;  --r: 10deg;  inset-inline-end: -150px; top: -96px; }
  .w-t-buddy { --s: 104px; --r: -8deg;  inset-inline-start: auto; inset-inline-end: -190px; top: auto; bottom: 6px; }
  /* The card's top-left corner: outside the centred model line, above the header row. */
  .w-t-star  { --s: 66px;  --r: 12deg;  inset-inline-start: 2%; top: -52px; }
  .w-t-img   { display: grid; --s: 98px; --r: -14deg; inset-inline-start: -190px; top: -70px; }
  .w-t-video { display: grid; --s: 94px; --r: 13deg;  inset-inline-start: -160px; bottom: -40px; }
  .w-t-note  { display: grid; --s: 72px; --r: -10deg; inset-inline-end: -240px; top: -250px; }
}

/* ── Forced colours (Windows high contrast) ─────────────────────────────── */
@media (forced-colors: active) {
  .w-deco { display: none; }
  .w-price__card { border-color: CanvasText; }
  .w-h1 em { -webkit-text-fill-color: currentColor; color: CanvasText; background: none; }
}
