/* frontend/landing/site.css | the public site: home, Socket Studio, Insole Studio.
 *
 * One stylesheet for three pages. Tokens first, both themes; the 3D stage is dark in
 * both themes on purpose (a graphite socket reads on it, and the page's light sections
 * frame it). Radius rule: surfaces 16px, anything you press is a pill. One accent.
 * Nothing loads from a CDN: the type is the vendored IBM Plex Sans variable face.
 */

@font-face {
  font-family: "Plex";
  src: url("/vendor/fonts/IBMPlexSans-400.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/vendor/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/vendor/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}

/* ------------------------------------------------------------------ tokens --- */
:root {
  color-scheme: light;
  --bg: #F3F5F5;
  --surface: #FFFFFF;
  --sunken: #E8ECEC;
  --ink: #0F1415;
  --ink-2: #46524F;
  --ink-3: #5E6A69;
  --line: #D8DEDE;
  --line-strong: #BAC4C3;
  --accent: #0B7A70;
  --accent-strong: #0A6A62;
  --on-accent: #FFFFFF;
  --accent-soft: rgb(11 122 112 / .10);
  --shadow: 0 1px 2px rgb(15 36 34 / .06), 0 12px 32px -12px rgb(15 36 34 / .18);

  /* the stage: dark in both themes */
  --stage: #0C1112;
  --stage-2: #131A1B;
  --stage-ink: #E9EFEE;
  --stage-ink-2: #9AA9A7;
  --stage-ink-3: #7E8D8B;
  --stage-line: #243031;
  --stage-accent: #3CC7BA;

  --font: "Plex", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --fs-hero: clamp(2.9rem, 1.5rem + 5.6vw, 6rem);
  --fs-h1: clamp(2.5rem, 1.45rem + 4.1vw, 4.9rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.8vw, 3.6rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-micro: .8125rem;
  --fs-num: clamp(2.4rem, 1.7rem + 2.6vw, 4rem);

  --wrap: 1200px;
  --wide: 1400px;
  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(88px, 11vw, 168px);
  --r: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 60px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A0E0F; --surface: #121819; --sunken: #172021;
    --ink: #E9EFEE; --ink-2: #A3B2B0; --ink-3: #8A9997;
    --line: #243031; --line-strong: #34423F;
    --accent: #3CC7BA; --accent-strong: #5ED6CB; --on-accent: #062421;
    --accent-soft: rgb(60 199 186 / .12);
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -16px rgb(0 0 0 / .6);
    --stage: #0E1415; --stage-2: #151D1E; --stage-line: #26312F;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0E0F; --surface: #121819; --sunken: #172021;
  --ink: #E9EFEE; --ink-2: #A3B2B0; --ink-3: #8A9997;
  --line: #243031; --line-strong: #34423F;
  --accent: #3CC7BA; --accent-strong: #5ED6CB; --on-accent: #062421;
  --accent-soft: rgb(60 199 186 / .12);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -16px rgb(0 0 0 / .6);
  --stage: #0E1415; --stage-2: #151D1E; --stage-line: #26312F;
}

/* ------------------------------------------------------------------- base --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body) / 1.6 var(--font);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.038em; }
h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.032em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.02em; }
b, strong { font-weight: 600; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px;
        background: var(--ink); color: var(--bg); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wide { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.sec { padding-block: var(--sec); }
.sec + .sec.tight-top { padding-top: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); letter-spacing: -.01em; max-width: 60ch; }
.muted { color: var(--ink-2); }
.fine { font-size: var(--fs-small); color: var(--ink-3); max-width: 70ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-micro); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-strong);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1px solid transparent;
  font: 500 1rem/1 var(--font); letter-spacing: -.01em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9375rem; }
.on-stage .btn-ghost { border-color: #3A4746; color: var(--stage-ink); }
.on-stage .btn-ghost:hover { border-color: var(--stage-ink); }
.on-stage .btn-primary { background: var(--stage-accent); color: #062421; }
.on-stage .btn-primary:hover { background: #5ED6CB; }
.link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-strong); font-weight: 500; text-decoration: none;
}
.link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.on-stage .link { color: var(--stage-accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* -------------------------------------------------------------------- nav --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); backdrop-filter: none; } }
.nav-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
         font-weight: 600; font-size: 1.15rem; letter-spacing: -.03em; }
.brand svg { width: 24px; height: 24px; color: var(--accent); }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-size: .9375rem; white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--sunken); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav-gap { flex: 1; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang {
  appearance: none; -webkit-appearance: none;
  height: 38px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font: 500 .875rem var(--font); letter-spacing: .02em; cursor: pointer;
}
.nav-signin { color: var(--ink-2); text-decoration: none; font-size: .9375rem; white-space: nowrap; }
.nav-signin:hover { color: var(--ink); }
.icon-btn.nav-menu { display: none; }
@media (max-width: 1040px) {
  .nav-links a { padding: 8px 9px; }
  .nav-signin { display: none; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .icon-btn.nav-menu { display: inline-grid; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    padding: 12px var(--gutter) 20px; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { padding: 12px 8px; font-size: 1.0625rem; }
}
@media (max-width: 480px) {
  .nav-in { gap: 12px; }
  .nav-tools .btn { padding: 0 14px; }
}
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- reveals --- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }
html.no-js .rv { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ stage --- */
.stage {
  position: relative; overflow: hidden;
  background: radial-gradient(90% 75% at 50% 42%, #26322F 0%, #172022 45%, var(--stage) 78%);
  color: var(--stage-ink);
  border-radius: var(--r);
}
.stage canvas { width: 100%; height: 100%; touch-action: pan-y; }
.stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
                 transition: opacity .6s var(--ease); pointer-events: none; }
.stage.live .poster { opacity: 0; }
.stage-cap {
  position: absolute; left: 20px; right: 20px; bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline;
  font-size: var(--fs-micro); color: var(--stage-ink-2); pointer-events: none;
}
.stage-cap b { color: var(--stage-ink); font-weight: 500; }
.stage-hint {
  position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .06);
  color: var(--stage-ink-2); font-size: var(--fs-micro); pointer-events: none;
  transition: opacity .4s var(--ease);
}
.stage-hint svg { width: 14px; height: 14px; }
.stage.touched .stage-hint { opacity: 0; }
.on-stage { background: var(--stage); color: var(--stage-ink); }
.on-stage .lead, .on-stage .muted { color: var(--stage-ink-2); }
.on-stage .fine { color: var(--stage-ink-3); }
.on-stage .eyebrow { color: var(--stage-accent); }

/* -------------------------------------------------------------- home hero --- */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(56px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 28px; }
.hero-copy .lead { max-width: 34ch; }
.hero-stage { aspect-ratio: 1 / 1.06; min-height: 420px; max-height: calc(100svh - var(--nav-h) - 96px); width: 100%; justify-self: end; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-3); font-size: var(--fs-small); }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { aspect-ratio: 1 / 1.2; min-height: 0; max-height: none; }
  .stage-cap { font-size: .75rem; }
}

/* ---------------------------------------------------------- product hero --- */
.phero { position: relative; background: var(--stage); color: var(--stage-ink); overflow: hidden; }
.phero-in { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
            align-items: center; gap: clamp(16px, 3vw, 48px); padding-top: clamp(16px, 3vw, 40px); }
.phero-copy { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: start; }
.phero-copy h1 { font-size: var(--fs-hero); letter-spacing: -.045em; }
.phero-copy .lead { color: var(--stage-ink-2); max-width: 38ch; }
.phero-stage { position: relative; height: min(calc(100svh - var(--nav-h) - 150px), 820px); min-height: 460px;
               border-radius: 0; background: none; }
@media (max-width: 900px) {
  .phero-in { grid-template-columns: 1fr; padding-top: 32px; }
  .phero-stage { height: 62svh; min-height: 380px; }
}
.phero-stage canvas { position: absolute; inset: 0; }
.phero-kicker { font-size: var(--fs-small); color: var(--stage-ink-2); }
.phero-kicker b { color: var(--stage-accent); font-weight: 500; }
.phero-glow {
  position: absolute; inset: auto 0 -30% 0; height: 70%; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 40%, rgb(60 199 186 / .10), transparent 70%);
}
.readouts {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  border-top: 1px solid var(--stage-line);
  padding-block: 22px 28px;
}
.readouts > div { display: grid; gap: 4px; padding-right: 16px; }
.readouts dt { font-size: var(--fs-micro); color: var(--stage-ink-3); letter-spacing: .02em; }
.readouts dd { margin: 0; font-size: clamp(1.25rem, 1rem + .9vw, 1.9rem); font-weight: 500; letter-spacing: -.02em;
               font-variant-numeric: tabular-nums; color: var(--stage-ink); }
.readouts dd small { font-size: .55em; color: var(--stage-ink-2); font-weight: 400; margin-left: 3px; }
@media (max-width: 720px) { .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; } }

/* ------------------------------------------------------ sticky 3D stories --- */
.story { position: relative; background: var(--stage); color: var(--stage-ink); }
.story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 64px); }
.story-view { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); align-self: start; }
.story-view .stage { position: absolute; inset: 16px 0; border-radius: var(--r); background: none; }
.story-steps { padding-block: 18vh 30vh; }
.step { min-height: 78svh; display: grid; align-content: center; gap: 18px; max-width: 440px;
        opacity: .28; transition: opacity .5s var(--ease); }
.step.on { opacity: 1; }
.step h3 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); letter-spacing: -.03em; line-height: 1.08; }
.step p { color: var(--stage-ink-2); }
.step .figs { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 6px; }
.step .figs div { display: grid; gap: 2px; }
.step .figs dt { font-size: var(--fs-micro); color: var(--stage-ink-3); }
.step .figs dd { margin: 0; font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.step .figs dd small { font-size: .6em; color: var(--stage-ink-2); font-weight: 400; margin-left: 2px; }
.step-no { font-size: var(--fs-micro); color: var(--stage-accent); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.legend { display: grid; gap: 8px; max-width: 320px; font-size: var(--fs-micro); color: var(--stage-ink-2); }
.legend-bar { height: 8px; border-radius: 999px;
              background: linear-gradient(90deg, #1E5E73 0%, #1F9A8C 30%, #3CC7BA 48%, #D8F0A0 78%, #F2F5EC 100%); }
.legend-scale { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.story-progress { position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; background: var(--stage-line); border-radius: 2px; }
.story-progress i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--stage-accent); border-radius: 2px; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-view { order: -1; top: var(--nav-h); height: 52svh; z-index: 1; }
  .story-view .stage { inset: 8px 0; }
  .story-steps { padding-block: 4vh 20vh; position: relative; z-index: 2; }
  .step { min-height: 70svh; align-content: end; padding-bottom: 8vh; max-width: none; opacity: 1; }
  .step > * { background: rgb(12 17 18 / .82); }
  .step > :first-child { border-radius: 14px 14px 0 0; padding-top: 18px; }
  .step > :last-child { border-radius: 0 0 14px 14px; padding-bottom: 18px; }
  .step > * { padding-inline: 18px; margin: 0; }
  .step { gap: 0; }
  .step > * + * { padding-top: 12px; }
  .story-progress { display: none; }
}

/* -------------------------------------------------------------- sections --- */
.sec-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* two ways to work */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.way { display: grid; gap: 16px; align-content: start; padding: clamp(28px, 4vw, 48px) clamp(0px, 3vw, 40px) 8px 0; }
.way + .way { border-left: 1px solid var(--line); padding-left: clamp(20px, 4vw, 56px); }
.way-tag { font-size: var(--fs-micro); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.way h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.way p { color: var(--ink-2); max-width: 44ch; }
.way .price-line { font-size: var(--fs-small); color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .ways { grid-template-columns: 1fr; }
  .way + .way { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}
.nofee { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 4vw, 48px); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-2);
}
.chip svg { width: 15px; height: 15px; color: var(--accent); }

/* product panels (home) */
.products { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product {
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border-radius: var(--r); background: var(--stage); color: var(--stage-ink); text-decoration: none;
  min-height: 620px; isolation: isolate;
}
.product-copy { display: grid; gap: 12px; padding: clamp(24px, 3vw, 40px); position: relative; z-index: 2; }
.product-copy h3 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); letter-spacing: -.035em; }
.product-copy p { color: var(--stage-ink-2); max-width: 40ch; }
.product-media { position: relative; min-height: 440px; }
.product-media img { position: absolute; inset: 0 0 -2% 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
                     transition: transform 1.2s var(--ease); }
.product:hover .product-media img { transform: scale(1.03); }
.product .link { margin-top: 6px; color: var(--stage-accent); }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } .product { min-height: 540px; } }

/* order path */
.path { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.path li { list-style: none; position: relative; display: grid; gap: 10px; align-content: start; padding: 22px 16px 0 0; }
.path li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.path li::after { content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%;
                  background: var(--bg); border: 2px solid var(--line-strong); }
.path li.in::before { background: linear-gradient(90deg, var(--accent), var(--line)); }
.path li.in::after { border-color: var(--accent); background: var(--accent); }
.path h4 { font-size: 1.05rem; letter-spacing: -.01em; }
.path p { font-size: var(--fs-small); color: var(--ink-2); }
.path .who { font-size: var(--fs-micro); color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.path ol { padding: 0; margin: 0; }
@media (max-width: 1000px) { .path { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 560px) { .path { grid-template-columns: 1fr; } .path li { padding-left: 26px; padding-top: 0; }
  .path li::before { top: 6px; bottom: -36px; left: 5px; right: auto; width: 2px; height: auto; }
  .path li:last-child::before { display: none; }
  .path li::after { top: 0; } }
.status-words { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 4vw, 44px); }
.status-words span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-micro);
                     color: var(--ink-2); background: var(--surface); }
.status-words span.fit { border-color: var(--accent); color: var(--accent-strong); }

/* big figures */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.figures > div { padding: 28px 20px 0 0; display: grid; gap: 8px; align-content: start; }
.figures > div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.figures dt { order: 2; font-size: var(--fs-small); color: var(--ink-2); max-width: 26ch; }
.figures dd { order: 1; margin: 0; font-size: var(--fs-num); font-weight: 500; letter-spacing: -.04em; line-height: 1;
              font-variant-numeric: tabular-nums; }
.figures dd small { font-size: .42em; letter-spacing: -.01em; color: var(--ink-2); margin-left: 4px; }
.on-stage .figures { border-color: var(--stage-line); }
.on-stage .figures > div + div { border-color: var(--stage-line); }
.on-stage .figures dt { color: var(--stage-ink-2); }
.on-stage .figures dd small { color: var(--stage-ink-2); }
@media (max-width: 860px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .figures > div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* media frames: real screenshots and film */
.shot { border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line);
        box-shadow: var(--shadow); }
.shot img, .shot video { width: 100%; height: auto; }
.shot-cap { margin-top: 14px; font-size: var(--fs-small); color: var(--ink-3); max-width: 70ch; }
.on-stage .shot { border-color: var(--stage-line); background: var(--stage-2); box-shadow: none; }
.on-stage .shot-cap { color: var(--stage-ink-3); }

/* four steps (socket studio) */
.steps4 { display: grid; gap: clamp(64px, 9vw, 120px); }
.step4 { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.step4:nth-child(even) { grid-template-columns: minmax(0, 1.7fr) minmax(0, .72fr); }
.step4:nth-child(even) .step4-copy { order: 2; }
.step4-copy { display: grid; gap: 16px; }
.step4-copy .n { font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); font-weight: 500; }
.step4-copy ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.step4-copy li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: var(--fs-small); }
.step4-copy li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%;
                         border: 2px solid var(--accent); }
@media (max-width: 900px) {
  .step4, .step4:nth-child(even) { grid-template-columns: 1fr; }
  .step4:nth-child(even) .step4-copy { order: 0; }
}

/* two sockets / offers */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.offer { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 40px); border-radius: var(--r);
         background: var(--surface); border: 1px solid var(--line); }
.offer h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.offer .price { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1;
                font-variant-numeric: tabular-nums; }
.offer .price small { font-size: .38em; letter-spacing: 0; color: var(--ink-2); font-weight: 400; margin-left: 6px; }
.offer .tiers { font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.offer ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.offer li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: var(--fs-small); color: var(--ink-2); }
.offer li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.offer.feature { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.badge { justify-self: start; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong);
         font-size: var(--fs-micro); font-weight: 500; letter-spacing: .02em; }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } }

/* pricing table */
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices th, .prices td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices thead th { font-size: var(--fs-micro); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.prices tbody th { font-weight: 600; font-size: 1.0625rem; }
.prices tbody th span { display: block; font-weight: 400; font-size: var(--fs-small); color: var(--ink-3); margin-top: 2px; }
.prices tbody th span.hd { display: inline; font-weight: 600; font-size: inherit; color: inherit; margin: 0; }
.prices td { font-size: 1.0625rem; }
.prices td small { display: block; color: var(--ink-3); font-size: var(--fs-micro); }
.prices .big { font-size: 1.6rem; font-weight: 500; letter-spacing: -.03em; }
.table-wrap { overflow-x: auto; }
.pilot {
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 24px 48px; align-items: center;
  margin-top: clamp(32px, 5vw, 56px); padding: clamp(24px, 4vw, 44px); border-radius: var(--r);
  background: var(--stage); color: var(--stage-ink);
}
.pilot h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -.03em; }
.pilot p { color: var(--stage-ink-2); margin-top: 10px; max-width: 56ch; }
@media (max-width: 760px) { .pilot { grid-template-columns: 1fr; } }

/* comparison */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.compare thead th { font-size: var(--fs-small); font-weight: 600; color: var(--ink); background: var(--bg); }
.compare tbody th { font-weight: 500; color: var(--ink-3); width: 18%; }
.compare td { color: var(--ink-2); }
.compare .us { background: var(--accent-soft); color: var(--ink); }
.compare thead .us { color: var(--accent-strong); border-radius: 12px 12px 0 0; }
.compare tbody tr:last-child .us { border-radius: 0 0 12px 12px; }

/* promises (what stays yours) */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.promise { padding: 28px 28px 28px 0; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--line); }
.promise:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.promise h3 { font-size: 1.2rem; letter-spacing: -.015em; }
.promise p { color: var(--ink-2); font-size: var(--fs-small); }
.on-stage .promises, .on-stage .promise, .on-stage .promise:not(:nth-child(3n + 1)) { border-color: var(--stage-line); }
.on-stage .promise p { color: var(--stage-ink-2); }
@media (max-width: 900px) { .promises { grid-template-columns: 1fr; }
  .promise:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; } }

/* faq */
.faq-head { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.made-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.made-head .sec-head { margin: 0; }
.made-img { position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: end; width: 100%; }
.made-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.made-img figcaption { position: absolute; left: 0; right: 0; bottom: 0; font-size: var(--fs-micro); color: var(--stage-ink-3); text-align: center; }
@media (max-width: 860px) { .made-head { grid-template-columns: 1fr; } .made-img { justify-self: center; max-width: 360px; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px 0; font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; color: var(--ink-2); max-width: 72ch; display: grid; gap: 12px; }

/* contact */
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start;
                padding: clamp(28px, 5vw, 64px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: var(--fs-small); font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font: 400 1rem/1.4 var(--font);
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .note { font-size: var(--fs-micro); color: var(--ink-3); }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } .form .row2 { grid-template-columns: 1fr; } }

/* viewer panel (explore) */
.explore { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.explore .stage { min-height: 560px; }
.explore-side { display: grid; gap: 18px; align-content: start; }
.seg { justify-self: start; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--stage-2); border: 1px solid var(--stage-line); }
.seg button { border: 0; background: transparent; color: var(--stage-ink-2); padding: 9px 16px; border-radius: 999px;
              font: 500 .9375rem var(--font); cursor: pointer; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--stage-ink); color: var(--stage); }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; font-size: var(--fs-small); }
.spec dt { color: var(--stage-ink-3); }
.spec dd { margin: 0; color: var(--stage-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .explore { grid-template-columns: 1fr; } .explore .stage { min-height: 440px; } }

.shot-wide { margin-top: clamp(36px, 5vw, 64px); }

/* film */
.film { position: relative; border-radius: var(--r); overflow: hidden; background: #000; }
.film video { width: 100%; height: auto; }
.film-btn { position: absolute; left: 16px; bottom: 16px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: var(--fs-small); color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font-size: var(--fs-micro); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--ink-3); font-size: var(--fs-micro); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ----------------------------------------------------------- persian text --- */
/* The words change, the page does not: left to right in every language, and each piece
   of Persian text runs in the direction of its own first letter. */
html[lang="fa"] body { font-family: "Vazirmatn", var(--font); letter-spacing: normal; }
html[lang="fa"] :where(h1, h2, h3, h4, p, li, dt, dd, summary, label, span, a, button, th, td, figcaption, small, b, strong) {
  unicode-bidi: plaintext; letter-spacing: normal !important;
}
html[lang="fa"] .eyebrow, html[lang="fa"] .way-tag { text-transform: none; }

/* --------------------------------------------------------- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .step { opacity: 1; }
}
