/* =====================================================================
   Tokovic LLC — site.css
   1 Tokens · 2 Base · 3 Layout · 4 Components · 5 Header · 6 Hero
   7 Work · 8 Services · 9 Process · 10 Principles · 11 About
   12 Contact · 13 Footer · 14 Text pages · 15 Reveal & motion
   ===================================================================== */

/* 1. Tokens -------------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg: #0A0C0F;
  --surface: #11151A;
  --surface-2: #171C22;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #E9EDF2;
  --text-2: #B7C0CC;
  --muted: #8B95A3;          /* 6.4:1 on --bg, 5.7:1 on --surface-2 */
  --accent: #3DDBB4;         /* flow teal */
  --accent-ink: #04261D;     /* text on accent buttons */
  --accent-soft: rgba(61, 219, 180, .12);
  --pink: hsl(325 82% 51%);  /* fitbyivana mockup only */

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 1200px;
  --gutter: 16px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px)  { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

/* 2. Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--font-mono); font-feature-settings: "zero" 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* 3. Layout -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
main { overflow-x: clip; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head {
  display: grid; gap: 20px;
  padding-top: 28px; margin-bottom: clamp(40px, 6vw, 88px);
  border-top: 1px solid var(--line);
}
.section-head h2 { font-size: clamp(2rem, 5.2vw, 4rem); font-weight: 650; }
.section-head .intro { color: var(--muted); max-width: 30rem; font-size: 1.0625rem; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
}

/* 4. Components ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--text);
  font-size: .9375rem; font-weight: 550; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #6BE8C9; border-color: #6BE8C9; color: var(--accent-ink); }
.btn-lg { min-height: 64px; padding: 0 30px; font-size: clamp(1rem, 2.4vw, 1.375rem); letter-spacing: -.01em; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  font: 500 .78rem/1.4 var(--font-mono); color: var(--text-2);
}

/* 5. Header -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  margin-bottom: calc(var(--header-h) * -1);   /* hero slides under the bar */
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 12, 15, .74);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .25s;
}
.site-header.is-scrolled::before, html.menu-open .site-header::before { opacity: 1; }
html.menu-open .site-header::before { background: var(--bg); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand-word { font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav ul { display: flex; gap: 2px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--muted); font-size: .9375rem; text-decoration: none; transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--text); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 18px; }

.menu-btn {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px;
  border: 0; border-radius: 12px; background: transparent; cursor: pointer;
}
.menu-btn span, .menu-btn span::before {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .3s var(--ease), background-color .2s;
}
.menu-btn span { position: relative; }
.menu-btn span::before { content: ""; position: absolute; left: 0; top: 7px; }
.menu-btn span { transform: translateY(-3.5px); }
.menu-btn[aria-expanded="true"] span { transform: translateY(0) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(-7px) rotate(-90deg); top: 7px; }

@media (max-width: 899.98px) {
  .menu-btn { display: inline-flex; }
  html:not(.js) .menu-btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px;
    padding: 12px var(--gutter) 40px; overflow-y: auto;
    background: var(--bg);
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav-link {
    width: 100%; min-height: 68px; padding: 0; border-bottom: 1px solid var(--line);
    color: var(--text); font-size: 1.75rem; font-weight: 600; letter-spacing: -.025em;
  }
  .nav-link::after { display: none; }
  .nav .btn { min-height: 56px; }
  .js .nav {
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .22s, transform .3s var(--ease), visibility 0s .3s;
  }
  .js .nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  html:not(.js) .site-header { position: relative; height: auto; margin-bottom: 0; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .nav { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 0; gap: 8px 12px; background: none; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .nav-link { width: auto; min-height: 44px; padding: 0 10px; border: 0; font-size: .9375rem; font-weight: 400; color: var(--muted); }
}

/* 6. Hero ---------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: min(100svh, 1000px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 56px);
}
#flow {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%);
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 12, 15, .82) 0%, rgba(10, 12, 15, .5) 42%, rgba(10, 12, 15, 0) 75%),
    linear-gradient(0deg, rgba(10, 12, 15, .7) 0, rgba(10, 12, 15, 0) 40%);
}
.hero-inner { padding-bottom: clamp(32px, 6vh, 56px); }
.hero-tok { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 28px; font-size: .8125rem; color: var(--muted); }
.hero-tok b { color: var(--accent); font-weight: 500; }
.hero h1 {
  font-size: clamp(52px, 10.5vw, 104px); font-weight: 700; letter-spacing: -.04em; line-height: .96;
}
.hero h1 .ln { display: block; }
.flow-word { position: relative; display: inline-block; }
.flow-word svg {
  position: absolute; left: -1%; bottom: -.16em; width: 102%; height: .2em; overflow: visible;
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
}
.hero .lead {
  margin-top: clamp(24px, 3.6vw, 40px); max-width: 38rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--text-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions .btn { min-height: 52px; padding: 0 26px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: clamp(40px, 8vh, 80px); padding-top: 18px;
  border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted);
}

/* 7. Work ---------------------------------------------------------- */
.case { display: grid; gap: 48px; align-items: start; }
.case + .case { margin-top: clamp(88px, 12vw, 176px); padding-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.case-meta { display: flex; gap: 14px; margin-bottom: 20px; font-size: .78rem; color: var(--muted); }
.case-meta b { color: var(--accent); font-weight: 500; }
.case h3 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -.04em; }
.case-tag { margin-top: 14px; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.case-lead { margin-top: 18px; color: var(--muted); max-width: 34rem; }
.points { margin-top: 28px; border-top: 1px solid var(--line); }
.points li { position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: .96875rem; line-height: 1.5; }
.points li::before {
  content: ""; position: absolute; left: 0; top: 1.4em; width: 14px; height: 2px; background: var(--accent);
  border-radius: 2px;
}
.points strong { color: var(--text); font-weight: 550; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 0 20px; margin-top: 32px; }
.stats li { padding: 14px 0; border-top: 1px solid var(--line); font: 400 .78rem/1.4 var(--font-mono); color: var(--muted); }
.stats b { display: block; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; color: var(--text); }
.case .chips { margin-top: 28px; }
.case-note { margin-top: clamp(48px, 7vw, 88px); color: var(--muted); font-size: .875rem; }

.case-visual { position: relative; margin: 0; min-width: 0; }
@media (min-width: 960px) {
  .case { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 104px); }
  .case-visual { position: sticky; top: calc(var(--header-h) + 24px); }
  .case.flip .case-visual { order: -1; }
  .case.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}

/* — fitbyivana phones — */
.phones { position: relative; width: 100%; max-width: 540px; height: 600px; margin-inline: auto; }
.phone-wrap { position: absolute; top: 0; left: 0; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.phone-wrap.b { left: 244px; top: 52px; }
.phone {
  --pw: 264px;
  position: relative; width: var(--pw); aspect-ratio: 9 / 18.4; padding: 8px;
  border-radius: 44px; background: linear-gradient(160deg, #2b2b33, #121216);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .04);
  animation: float 8s ease-in-out infinite;
}
.phone-wrap.b .phone { animation-duration: 9.5s; animation-delay: -4s; }
.screen {
  position: relative; height: 100%; padding: 0 14px 0; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: 36px; background: hsl(320 14% 6%); color: hsl(320 20% 96%);
  font-size: 11px; line-height: 1.3;
}
.screen::before {
  content: ""; position: absolute; top: 8px; left: 50%; z-index: 3; width: 72px; height: 21px;
  transform: translateX(-50%); border-radius: 14px; background: #000;
}
.p-sb { display: flex; justify-content: space-between; align-items: center; height: 38px; padding: 6px 8px 0; font-weight: 600; font-size: 11px; }
.p-sb i { display: inline-block; width: 14px; height: 8px; margin-left: 3px; border-radius: 2px; background: hsl(320 20% 90%); vertical-align: middle; }
.p-sb i:first-child { width: 10px; opacity: .6; }
.p-head { padding: 8px 2px 10px; }
.p-head small { display: block; color: hsl(320 8% 62%); font-size: 11px; }
.p-head h4 { font-size: 26px; letter-spacing: -.03em; font-weight: 650; }
.p-card {
  padding: 12px; border-radius: 16px;
  background: hsl(325 82% 51% / .14); border: 1px solid hsl(325 82% 51% / .34);
}
.p-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.p-card b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.p-card small { color: hsl(320 12% 76%); font-size: 10.5px; }
.p-weeks { display: flex; gap: 3px; padding-top: 6px; }
.p-weeks i { width: 6px; height: 6px; border-radius: 50%; background: hsl(320 10% 30%); }
.p-weeks i.on { background: var(--pink); }
.p-cta {
  margin-top: 10px; padding: 8px; border-radius: 10px; text-align: center;
  background: var(--pink); color: #fff; font-weight: 600; font-size: 11.5px;
}
.p-h { margin: 12px 2px 6px; font-size: 10.5px; font-weight: 600; color: hsl(320 8% 62%); letter-spacing: .02em; }
.p-list li {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px;
  padding: 8px 0; border-top: 1px solid hsl(320 10% 16%); font-size: 11.5px;
}
.p-list .n {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: hsl(325 82% 51% / .18); color: hsl(325 90% 74%); font-size: 10px; font-weight: 600;
}
.p-list .m { color: hsl(320 8% 62%); font-size: 10.5px; white-space: nowrap; }
.p-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.p-macros span { display: block; margin-bottom: 5px; color: hsl(320 8% 62%); font-size: 10px; }
.p-macros .tr { height: 5px; border-radius: 5px; background: hsl(320 10% 16%); overflow: hidden; }
.p-macros .tr i { display: block; height: 100%; border-radius: 5px; background: var(--pink); }
.p-tabs {
  display: flex; justify-content: space-around; align-items: center; margin: auto -14px 0; height: 54px;
  border-top: 1px solid hsl(320 10% 16%); background: hsl(320 14% 8%);
}
.p-tabs svg { width: 18px; height: 18px; fill: none; stroke: hsl(320 8% 52%); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p-tabs .on svg { stroke: var(--pink); }
.p-tabs span { display: grid; justify-items: center; gap: 2px; font-size: 9px; color: hsl(320 8% 52%); }
.p-tabs .on { color: var(--pink); }
/* set-logging screen */
.p-back { display: flex; align-items: center; gap: 6px; padding: 8px 2px 0; color: hsl(320 8% 62%); font-size: 11px; }
.p-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-ex { padding: 6px 2px 14px; }
.p-ex h4 { font-size: 20px; font-weight: 650; letter-spacing: -.03em; }
.p-ex small { color: var(--pink); font-weight: 600; font-size: 11px; }
.p-step {
  display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; margin-bottom: 10px;
  border-radius: 14px; background: hsl(320 12% 10%); border: 1px solid hsl(320 10% 16%); padding: 8px;
}
.p-step span { display: grid; place-items: center; height: 32px; border-radius: 10px; background: hsl(320 10% 15%); font-size: 16px; }
.p-step div { text-align: center; }
.p-step b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.p-step small { color: hsl(320 8% 62%); font-size: 10px; }
.p-sets { margin-top: 12px; }
.p-sets li { display: flex; justify-content: space-between; align-items: center; padding: 9px 2px; border-top: 1px solid hsl(320 10% 16%); color: hsl(320 8% 62%); font-size: 11px; }
.p-sets li.now { color: hsl(320 20% 96%); }
.p-sets li.done b { color: hsl(320 20% 90%); font-weight: 500; }
.p-check { width: 15px; height: 15px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; }
.p-check svg { width: 9px; height: 9px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.p-check.off { background: transparent; border: 1.5px solid hsl(320 10% 30%); }

/* — CoachHub browser — */
.browser {
  border: 1px solid var(--line-2); border-radius: 16px; background: #0D1116; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85);
  transform: translate3d(0, var(--py, 0px), 0);
}
.br-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.br-dots { display: flex; gap: 6px; }
.br-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2A313A; }
.br-url { flex: 1; max-width: 280px; height: 22px; margin-inline: auto; border-radius: 7px; background: var(--surface-2); }
.br-body { display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 400px; }
.br-side { padding: 14px 8px; border-right: 1px solid var(--line); background: var(--surface); }
.br-logo { display: flex; align-items: center; gap: 7px; margin: 0 6px 14px; font-size: 11.5px; font-weight: 650; letter-spacing: -.01em; }
.br-logo i { width: 14px; height: 14px; border-radius: 5px; background: var(--accent); }
.br-side li { display: flex; align-items: center; gap: 7px; padding: 8px 8px; border-radius: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.br-side li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid currentColor; opacity: .7; }
.br-side li.on { background: var(--accent-soft); color: var(--accent); }
.br-main { display: grid; align-content: start; gap: 12px; padding: 16px; }
.sk { display: block; height: 8px; border-radius: 6px; background: var(--surface-2); }
.sk.w1 { width: 34%; } .sk.w2 { width: 52%; } .sk.w3 { width: 68%; }
.br-title .sk { height: 12px; width: 36%; background: #232A33; }
.br-title .sk + .sk { margin-top: 8px; height: 7px; width: 54%; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.kpi .sk:nth-child(1) { width: 52%; height: 6px; }
.kpi .sk:nth-child(2) { width: 70%; height: 14px; margin-top: 12px; background: var(--accent-soft); }
.kpi .sk:nth-child(3) { width: 36%; height: 5px; margin-top: 10px; }
.card { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.card > .sk { width: 30%; height: 6px; margin-bottom: 10px; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .area { fill: url(#chArea); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart .line-2 { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .55; }
.chart .dot { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.row-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--surface-2); }
.bars i:nth-child(3n) { background: var(--accent-soft); }
.bars i.hi { background: var(--accent); opacity: .85; }
.flags li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.flags li:first-child { border-top: 0; padding-top: 2px; }
.flags .sk { width: 46%; height: 6px; }
.tgl { position: relative; flex: none; width: 24px; height: 14px; border-radius: 14px; background: #2A313A; }
.tgl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.tgl.on { background: var(--accent); }
.tgl.on::after { left: 12px; background: var(--accent-ink); }
@media (max-width: 599.98px) {
  .phones { height: 548px; }
  .phone-wrap { left: 50%; margin-left: -132px; }
  .phone-wrap.b { display: none; }
  .br-body { grid-template-columns: 92px minmax(0, 1fr); }
  .br-side li { padding: 8px 6px; font-size: 10.5px; }
  .br-side li::before { display: none; }
  .br-main { padding: 12px; }
  .kpis { gap: 8px; }
  .kpi { padding: 10px; }
  .row-2 { grid-template-columns: 1fr; }
  .row-2 .card:first-child { display: none; }
}

/* 8. Services ------------------------------------------------------ */
.services { border-bottom: 1px solid var(--line); }
.service {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 16px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.service > :not(.num):not(.streak) { grid-column: 2; }
.service .num { padding-top: .55em; font: 400 .8125rem/1 var(--font-mono); color: var(--muted); transition: color .25s; }
.service h3 { font-size: clamp(1.5rem, 3.6vw, 2.5rem); font-weight: 600; transition: transform .45s var(--ease); }
.service p { max-width: 34rem; color: var(--muted); }
.service .tags { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font: 400 .78rem/1.6 var(--font-mono); color: var(--text-2); }
.streak {
  position: absolute; left: 0; bottom: -7px; width: 100%; height: 14px; pointer-events: none; overflow: visible;
  fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round;
  clip-path: inset(-4px 100% -4px 0); transition: clip-path .9s var(--ease);
}
.streak path { vector-effect: non-scaling-stroke; }
.service:hover .streak, .service:focus-within .streak { clip-path: inset(-4px 0 -4px 0); }
.service:hover .num, .service:focus-within .num { color: var(--accent); }
.service:hover h3, .service:focus-within h3 { transform: translateX(10px); }
@media (min-width: 900px) {
  .service { grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .8fr); align-items: baseline; gap: 24px; padding: 40px 0; }
  .service > :not(.num):not(.streak) { grid-column: auto; }
  .service .tags { margin-top: 0; gap: 2px 16px; }
}

/* 9. Process ------------------------------------------------------- */
.process { position: relative; --draw: 1; --step-h: 152px; }
.pl-svg { overflow: hidden; fill: none; }
.pl-track, .pl-draw { fill: none; stroke-linecap: round; }
.pl-track { stroke: var(--line-2); stroke-width: 2; }
.pl-draw { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 1 2; stroke-dashoffset: calc(1 - var(--draw)); }
.pl-node { fill: var(--accent); stroke: var(--accent); stroke-width: 2; transition: fill .35s; }
.js .pl-node { fill: var(--bg); }
.js .pl-node.on { fill: var(--accent); }
.pl-h { display: none; }
.pl-v { position: absolute; left: 0; top: 0; width: 40px; height: calc(var(--step-h) * 5); }
.steps { position: relative; padding-left: 64px; counter-reset: s; }
.step { height: var(--step-h); padding-top: 0; }
.step .n { display: block; font: 400 .78rem/1 var(--font-mono); color: var(--muted); margin-bottom: 8px; }
.step h3 { font-size: 1.625rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96875rem; line-height: 1.5; }
@media (min-width: 900px) {
  .process { --step-h: auto; }
  .pl-h { display: block; width: 100%; height: auto; }
  .pl-v { display: none; }
  .steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 20px 0 0; }
  .step { height: auto; padding-right: 28px; }
  .step h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); }
}

/* 10. Principles --------------------------------------------------- */
.principles { display: grid; gap: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.principles h2 { font-size: clamp(2rem, 5.2vw, 4rem); font-weight: 650; }
.pr-list li { padding: 26px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.pr-list li:last-child { border-bottom: 1px solid var(--line); }
.pr-list li:first-child { border-top: 0; padding-top: 4px; }
.pr-list h3 { font-size: clamp(1.375rem, 2.6vw, 2rem); font-weight: 600; }
.pr-list p { color: var(--muted); max-width: 32rem; }
@media (min-width: 900px) {
  .principles { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .principles > div:first-child { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* 11. About -------------------------------------------------------- */
.about { display: grid; gap: 56px; align-items: center; }
.about h2 { font-size: clamp(2.25rem, 6vw, 4.75rem); font-weight: 700; letter-spacing: -.04em; }
.about-copy { margin-top: 32px; display: grid; gap: 18px; max-width: 34rem; color: var(--text-2); font-size: 1.0625rem; }
.about-copy strong { color: var(--text); font-weight: 550; }
.tok-def { margin-top: 36px; padding: 16px 0; border-block: 1px solid var(--line); font-size: .8125rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tok-def b { color: var(--accent); font-weight: 500; }
.mono-art { width: min(100%, 480px); aspect-ratio: 480 / 420; margin-inline: auto; }
.mono-art svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-cur path { stroke: var(--accent); stroke-width: 1.4; opacity: .5; stroke-dasharray: .3 .7; animation: stream 20s linear infinite; }
.m-cur path:nth-child(2n) { animation-duration: 26s; animation-delay: -7s; opacity: .28; }
.m-cur path:nth-child(3n) { animation-duration: 32s; animation-delay: -15s; }
.m-solid { stroke: var(--accent); stroke-width: 3.2; }
.m-glint { stroke: #EFFFFB; stroke-width: 1.1; stroke-dasharray: .12 .88; animation: stream 7s linear infinite; }
.m-glint + .m-glint { animation-delay: -3.5s; }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; }
}

/* 12. Contact ------------------------------------------------------ */
.contact { position: relative; isolation: isolate; overflow: clip; border-top: 1px solid var(--line); }
.contact-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .5; fill: none; stroke: var(--accent); stroke-width: 1; }
.contact-art path { vector-effect: non-scaling-stroke; opacity: .35; }
.contact h2 { font-size: clamp(2.5rem, 8vw, 6.5rem); font-weight: 700; letter-spacing: -.045em; line-height: .98; max-width: 12ch; }
.contact .lead { margin-top: 28px; max-width: 30rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--text-2); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 40px; }
.contact-actions .btn-lg { max-width: 100%; }
.copy-status { min-height: 1.5em; margin-top: 14px; font: 400 .8125rem/1.5 var(--font-mono); color: var(--accent); }

/* 13. Footer ------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; color: var(--muted); font-size: .875rem; }
.foot { display: grid; gap: 32px; }
.foot .brand { margin-bottom: 8px; }
.foot p { max-width: 36rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-links a, .foot a.inline {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none;
  transition: color .2s;
}
.foot-links a:hover, .foot a.inline:hover { color: var(--accent); }
.foot-copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8125rem; }
@media (min-width: 900px) {
  .foot { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
  .foot-links { justify-content: flex-end; align-self: start; }
}

/* 14. Text pages (privacy, 404) ------------------------------------ */
.page { padding-top: calc(var(--header-h) + clamp(48px, 9vw, 112px)); padding-bottom: clamp(72px, 10vw, 128px); }
.page h1 { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 700; letter-spacing: -.04em; }
.page .date { margin-top: 16px; font-size: .8125rem; color: var(--muted); }
.prose { margin-top: clamp(36px, 6vw, 64px); max-width: 44rem; display: grid; gap: 18px; color: var(--text-2); }
.prose h2 { margin-top: 28px; font-size: 1.5rem; color: var(--text); letter-spacing: -.02em; }
.prose ul { display: grid; gap: 8px; padding-left: 1.25rem; list-style: disc; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose a.tap { display: inline-flex; align-items: center; min-height: 44px; }
.prose a:hover { color: #6BE8C9; }
.nf { position: relative; isolation: isolate; overflow: clip; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 40px) 80px; }
.nf-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 1.2; }
.nf-art path { vector-effect: non-scaling-stroke; opacity: .3; }
.nf .code { font: 500 .875rem/1 var(--font-mono); color: var(--accent); margin-bottom: 24px; }
.nf h1 { font-size: clamp(2.75rem, 9vw, 7rem); font-weight: 700; letter-spacing: -.045em; line-height: .98; }
.nf p.lead { margin-top: 24px; max-width: 30rem; color: var(--text-2); font-size: 1.125rem; }
.nf .btn { margin-top: 36px; }

/* 15. Reveal & motion ---------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

.js .flow-word svg path { stroke-dasharray: 1 2; stroke-dashoffset: 1; animation: draw 1.4s .5s var(--ease) forwards; }
.js .chart .line { stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .35s; }
.js .reveal.in .chart .line, .js .in .chart .line { stroke-dashoffset: 0; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes stream { to { stroke-dashoffset: -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .flow-word svg path, .js .chart .line { stroke-dashoffset: 0; }
  .m-cur path { stroke-dasharray: none; opacity: .16; }
  .m-glint { display: none; }
  .phone-wrap, .browser { transform: none; }
}
