/* LessonFlow Pro — lessonflow.pro
   Visual language shared with the İmforx Labs group: graphite greys, light display type,
   numbered sections, hairlines and slow, deliberate motion. The only colour on the page
   is the green of the chalkboard inside the product, so the product is what stands out. */

:root {
  --bg: #F4F4F4;
  --surface: #FBFBFB;
  --white: #FFFFFF;
  --tint: #E9E9E9;
  --ink: #2B2B2B;
  --ink-2: #565656;
  --mute: #666666;
  --soft: #8A8A8A;          /* second line of headlines: large text only */
  --line: #E0E0E0;
  --line-2: #D3D3D3;
  --dark: #2B2B2B;
  --dark-2: #232323;
  --on-dark: #F4F4F4;
  --on-dark-2: #BEBEBE;
  --on-dark-soft: #8F8F8F;
  --dark-line: rgba(190,190,190,.22);
  --board: #1F3A2F;
  --board-2: #183027;
  --chalk: #EEF2EE;
  --chalk-blue: #B9CCFF;
  --chalk-yellow: #F3DA8A;
  --go: #4FAE7A;
  --late: #E3B341;

  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --wrap: 1200px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --pad: clamp(88px, 12vw, 136px);
  --head-h: 72px;
  --r: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--bg); }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 300; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow { font: 500 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.dark .eyebrow { color: #A9A9A9; }
.h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1; letter-spacing: -.045em; }
.h2 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
.h2-s { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.03em; }
.soft { color: var(--soft); }
.dark .soft { color: var(--on-dark-soft); }
.h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; letter-spacing: -.02em; font-weight: 400; }
.lead { font-size: clamp(17px, 1.3vw, 18px); line-height: 1.6; color: var(--ink-2); }
.p { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.num { font: 500 12px/1 var(--sans); letter-spacing: .12em; color: #7A7A7A; font-variant-numeric: tabular-nums; }
.dark .p, .dark .lead { color: var(--on-dark-2); }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h); border-bottom: 1px solid transparent; transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.top.is-solid, .top.is-open { background: rgba(244,244,244,.86); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom-color: var(--line); }
.top .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand img { height: 22px; width: auto; }
.brand small { font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #7A7A7A; border-left: 1px solid var(--line-2); padding-left: 14px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink); position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.lang { color: #7A7A7A; font-size: 13px; letter-spacing: .04em; white-space: nowrap; }
.lang a { color: #7A7A7A; }
.lang b { font-weight: 500; color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.menu-btn span { display: block; width: 20px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform .35s var(--ease); }
@media (max-width: 1000px) { .brand small { display: none; } }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a:not(.btn)::after { content: none; }
  .nav .lang { padding: 18px 0 8px; }
  .nav .btn { margin-top: 12px; align-self: flex-start; }
  .top.is-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .top.is-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .top.is-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}

/* ---------- 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 var(--ink); background: var(--ink); color: var(--bg); font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); white-space: nowrap; }
.btn:hover { background: #000; border-color: #000; }
.btn .arr { transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { min-height: 40px; padding: 0 20px; }
.btn-line { background: transparent; color: var(--ink); border-color: #BEBEBE; }
.btn-line:hover { background: transparent; border-color: var(--ink); }
.btn-light { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(244,244,244,.35); }
.btn-ghost-light:hover { background: transparent; border-color: var(--on-dark); }
.btn small { font-weight: 400; opacity: .7; font-size: 12px; }
.textlink { font: 500 14px/1 var(--sans); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.textlink:hover .arr { transform: translateX(4px); }
.textlink .arr { transition: transform .45s var(--ease); }

/* ---------- layout bits ---------- */
section { position: relative; }
.pad { padding-block: var(--pad); }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.dark { background: var(--dark); color: var(--on-dark); }
.split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.split-even { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 64px; }
.sec-head .eyebrow { margin-bottom: 20px; }
@media (max-width: 860px) { .split2, .split-even { grid-template-columns: 1fr; gap: 28px; } .sec-head { margin-bottom: 44px; } }

/* ---------- hero ---------- */
.hero { overflow: hidden; border-bottom: 1px solid var(--line); padding-top: calc(var(--head-h) + clamp(48px, 7vw, 88px)); padding-bottom: clamp(56px, 6vw, 72px); }
.globe { position: absolute; right: -14%; top: -18%; width: min(900px, 80vw); aspect-ratio: 1; pointer-events: none; opacity: .7; }
.globe svg { width: 100%; height: 100%; overflow: visible; }
.globe .g-line { fill: none; stroke: #C9C9C9; stroke-width: 1; vector-effect: non-scaling-stroke; }
.globe .g-dot { fill: #8F8F8F; }
.globe .g-link { stroke: #B5B5B5; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 5; }
.hero .wrap { position: relative; }
.hero .eyebrow { margin-bottom: 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero .lead { margin-top: 32px; max-width: 480px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 96px); border-top: 1px solid var(--line-2); }
.stat { padding: 28px 24px 0; border-left: 1px solid var(--line-2); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { display: block; font: 300 clamp(40px, 4vw, 54px)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat .p { margin-top: 10px; max-width: 220px; }
.page-hero { padding-top: calc(var(--head-h) + clamp(40px, 6vw, 72px)); padding-bottom: clamp(64px, 8vw, 96px); overflow: hidden; }
.crumb { font: 500 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #7A7A7A; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.page-hero .h1 { margin-top: 28px; max-width: 980px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; font-size: 13px; line-height: 1.5; }
.facts div { border-top: 1px solid var(--line-2); padding: 14px 0; }
.facts span { display: block; color: #7A7A7A; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { padding-top: 28px; }
  .globe { right: -40%; top: -10%; width: 130vw; opacity: .45; }
}

/* ---------- entrance motion ---------- */
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; }
.js .ln > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.js .is-in .ln > span, .js .ln.is-in > span { transform: none; }
.js .ln:nth-child(2) > span { transition-delay: .09s; }
.js .ln:nth-child(3) > span { transition-delay: .18s; }
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .hero .fade { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease) .35s, transform 1.1s var(--ease) .35s; }
.js .hero.is-in .fade { opacity: 1; transform: none; }
.js .hero .fade.d2 { transition-delay: .5s; }
.js .hero .fade.d3 { transition-delay: .65s; }

/* ---------- product stage (hero) ---------- */
.stage-wrap { position: relative; }
.stage { position: relative; aspect-ratio: 1.12; width: 100%; }
.board { position: absolute; left: 0; top: 0; width: 86%; border-radius: 14px; padding: 10px; background: #2F2F2F; box-shadow: 0 50px 90px -45px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06); }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; font: 500 11px/1 var(--sans); color: #BEBEBE; }
.bar b { color: var(--on-dark); font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E2574C; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.board-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 8px; }
.board-screen { border-radius: 6px; background: linear-gradient(165deg, var(--board), var(--board-2)); aspect-ratio: 16 / 11; overflow: hidden; }
.board-screen svg, .t-board svg, .p-board svg { width: 100%; height: 100%; }
.register { border-radius: 6px; background: #262626; padding: 11px 10px; font: 400 11px/1.2 var(--sans); color: #D6D6D6; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.register h4 { font: 500 11px/1 var(--sans); color: #9A9A9A; display: flex; justify-content: space-between; margin-bottom: 6px; }
.reg-n { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.register ul { list-style: none; margin: 0; padding: 0; }
.register li { display: flex; align-items: center; gap: 7px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap; }
.register li span { overflow: hidden; text-overflow: ellipsis; }
.st { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.2); flex: none; transition: background-color .4s, box-shadow .4s; }
.register li.on .st { background: var(--go); box-shadow: 0 0 0 3px rgba(79,174,122,.22); }
.register li.late .st { background: var(--late); box-shadow: 0 0 0 3px rgba(227,179,65,.22); }
.join { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px; }
.join small { display: block; font-size: 9px; color: #8F8F8F; letter-spacing: .04em; }
.join b { display: block; font: 500 15px/1.2 var(--display); color: var(--on-dark); letter-spacing: .08em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.tablet { position: absolute; left: 3%; bottom: 1%; width: 46%; aspect-ratio: 4 / 3; padding: 8px; border-radius: 20px; background: #151515; box-shadow: 0 40px 70px -28px rgba(0,0,0,.6); z-index: 2; }
.tablet-screen { height: 100%; border-radius: 13px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.t-head { display: flex; justify-content: space-between; gap: 6px; padding: 7px 10px; background: var(--dark); color: #D6D6D6; font: 400 9.5px/1.2 var(--sans); white-space: nowrap; }
.t-head span:first-child { overflow: hidden; text-overflow: ellipsis; }
.t-head b { color: var(--on-dark); font-weight: 500; }
.t-head .live::before { width: 6px; height: 6px; }
.t-board { flex: 1; margin: 7px 7px 0; border-radius: 6px; background: linear-gradient(165deg, var(--board), var(--board-2)); overflow: hidden; }
.t-foot { display: flex; align-items: center; gap: 6px; padding: 6px 10px 8px; font: 400 9px/1 var(--sans); color: #7A7A7A; }
.t-foot i { width: 6px; height: 6px; border-radius: 50%; background: var(--go); animation: pulse 1.8s infinite; }
.phone { position: absolute; right: 0; bottom: 0; width: 23%; aspect-ratio: 9 / 19; padding: 6px; border-radius: 26px; background: #151515; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 20px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.notch { position: absolute; top: 6px; left: 50%; width: 34%; height: 12px; transform: translateX(-50%); background: #151515; border-radius: 9px; z-index: 2; }
.p-head { padding: 24px 9px 7px; background: var(--dark); color: #D6D6D6; font: 400 9px/1.35 var(--sans); }
.p-head b { display: block; color: var(--on-dark); font-weight: 500; font-size: 10.5px; }
.p-head .live { margin-top: 3px; font-size: 8.5px; }
.p-head .live::before { width: 5px; height: 5px; }
.p-board { margin: 7px; border-radius: 6px; background: linear-gradient(165deg, var(--board), var(--board-2)); aspect-ratio: 16 / 10; overflow: hidden; }
.p-joined { margin: 0 9px; font: 400 8.5px/1.2 var(--sans); color: #7A7A7A; display: flex; gap: 5px; align-items: center; opacity: 0; transition: opacity .5s var(--ease); }
.p-joined::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--go); }
.stage.joined .p-joined { opacity: 1; }
.summary { position: absolute; left: 6px; right: 6px; bottom: 6px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); padding: 10px; font: 400 9px/1.45 var(--sans); color: var(--ink-2); transform: translateY(115%); transition: transform .9s var(--ease); }
.summary b { display: block; font-weight: 500; color: var(--ink); font-size: 10.5px; margin-bottom: 3px; }
.summary i { display: block; height: 4px; border-radius: 2px; background: var(--line); margin-top: 6px; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.summary i:nth-of-type(2) { width: 80%; transition-delay: .12s; }
.summary i:nth-of-type(3) { width: 60%; transition-delay: .24s; }
.stage.summed .summary { transform: none; }
.stage.summed .summary i { transform: scaleX(1); }
.toast { position: absolute; left: 50%; top: 58%; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 9px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font: 500 12px/1 var(--sans); white-space: nowrap; box-shadow: 0 18px 36px -18px rgba(0,0,0,.45); opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .35s var(--ease), transform .5s var(--ease); pointer-events: none; }
.toast i { width: 16px; height: 16px; border-radius: 50%; background: var(--go); flex: none; }
.toast.is-late i { background: var(--late); }
.toast.on { opacity: 1; transform: none; }
.chalk { fill: none; stroke: var(--chalk); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chalk.b { stroke: var(--chalk-blue); stroke-width: 3; }
.chalk.y { stroke: var(--chalk-yellow); }
.chalk-text { font-family: var(--hand); fill: var(--chalk); }
.ink-path { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.ink-text { opacity: 0; clip-path: inset(0 100% 0 0); }
.stage .ink-path { transition: stroke-dashoffset var(--dur, 1.2s) var(--ease-io); }
.stage .ink-text { transition: clip-path var(--dur, 1.1s) linear, opacity .2s; }
.stage .ink-on.ink-path { stroke-dashoffset: 0; }
.stage .ink-on.ink-text { opacity: 1; clip-path: inset(0 0 0 0); }
.stage .ink-out { opacity: 0 !important; transition: opacity .6s ease !important; }
.stage-cap { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 13px; color: #8A8A8A; }
.stage-cap span { display: inline-flex; align-items: center; gap: 8px; transition: color .5s; }
.stage-cap span::before { content: ""; width: 14px; height: 1px; background: currentColor; }
.stage-cap span.on { color: var(--ink); }
@media (max-width: 560px) {
  .bar { font-size: 9px; }
  .register { font-size: 9px; padding: 7px; }
  .register h4 { font-size: 9px; }
  .join b { font-size: 11px; }
  .tablet { padding: 5px; border-radius: 13px; }
  .tablet-screen { border-radius: 9px; }
  .t-head, .t-foot { font-size: 7px; padding: 4px 6px; }
  .phone { padding: 4px; border-radius: 18px; }
  .phone-screen { border-radius: 14px; }
  .p-head { font-size: 7px; padding: 16px 6px 5px; }
  .p-head b { font-size: 8px; }
  .summary { font-size: 7px; padding: 6px; border-radius: 10px; }
  .summary b { font-size: 8px; }
  .toast { font-size: 10px; padding: 6px 10px 6px 7px; left: 40%; }
  .toast i { width: 12px; height: 12px; }
}

/* ---------- capabilities grid ---------- */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cap { padding: 36px 32px 44px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.cap:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.cap:nth-child(3n) { padding-right: 0; }
.cap:nth-last-child(-n+3) { border-bottom: 0; }
.cap .h3 { margin-top: 28px; }
.cap .p { margin-top: 12px; }
.cap .ico { position: absolute; top: 32px; right: 32px; width: 28px; height: 28px; color: #9A9A9A; transition: color .4s, transform .6s var(--ease); }
.cap:nth-child(3n) .ico { right: 0; }
.cap:hover .ico { color: var(--ink); transform: translateY(-3px); }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) {
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap, .cap:nth-child(n) { padding: 32px 24px 36px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .cap:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .cap:nth-child(2n) { padding-right: 0; }
  .cap:nth-child(2n) .ico { right: 0; }
  .cap:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .caps { grid-template-columns: 1fr; }
  .cap, .cap:nth-child(n) { padding: 28px 0 32px; border-left: 0; border-bottom: 1px solid var(--line); }
  .cap .ico, .cap:nth-child(n) .ico { right: 0; }
  .cap:last-child { border-bottom: 0; }
}

/* ---------- lesson timeline (home) ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 72px; }
.timeline::before, .timeline .tl-fill { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-2); }
.timeline .tl-fill { background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
.tl-step { position: relative; padding-top: 22px; }
.tl-step::before { content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); transition: border-color .4s, background-color .4s; }
.tl-step.is-on::before { border-color: var(--ink); background: var(--ink); }
.tl-step .num { display: block; }
.tl-step .h3 { font-size: 20px; margin-top: 12px; }
.tl-step .p { margin-top: 10px; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 0; margin-top: 48px; padding-left: 28px; }
  .timeline::before, .timeline .tl-fill { left: 4px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform: scaleY(var(--p, 0)); transform-origin: top; }
  .timeline::before { transform: none; }
  .tl-step { padding: 0 0 36px; }
  .tl-step::before { left: -28px; top: 2px; }
}

/* ---------- methods band ---------- */
.typelist { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--dark-line); font: 300 clamp(26px, 3.4vw, 40px)/1.4 var(--display); letter-spacing: -.03em; color: #E9E9E9; }
.typelist a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 92% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.typelist a:hover { background-size: 100% 1px; color: #fff; }
.typelist i { font-style: normal; color: #666; margin: 0 .3em; }

/* ---------- trust + roadmap ---------- */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.trust div { border-top: 1px solid var(--line-2); padding: 24px 0 32px; }
.trust .h3 { font-size: 19px; }
.trust .p { margin-top: 10px; }
.road { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.road article { border: 1px solid var(--line); border-radius: var(--r); padding: 32px; transition: border-color .4s, transform .6s var(--ease); }
.road article:hover { border-color: #BEBEBE; transform: translateY(-4px); }
.road article:first-child { background: var(--bg); }
.road .h3 { margin-top: 28px; font-size: 21px; }
.road .p { margin-top: 10px; }
.chip { display: inline-block; font: 500 12px/1 var(--sans); color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px; }
.chip.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 860px) { .trust, .road { grid-template-columns: 1fr; } }

/* ---------- closing ---------- */
.closing { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.closing .h2 { font-size: clamp(40px, 5vw, 64px); }
.closing-side { max-width: 400px; }
.closing-side .cta { margin-top: 28px; }
.ios-note { margin-top: 16px; font-size: 13px; color: #7A7A7A; }

/* ---------- platform: surfaces ---------- */
.surfaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.surface { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); transition: border-color .4s, transform .6s var(--ease); }
.surface:hover { border-color: #BEBEBE; transform: translateY(-4px); }
.surface figure { margin: 0; height: 240px; display: grid; place-items: center; position: relative; overflow: hidden; }
.surface figure svg { width: 82%; height: auto; max-height: 200px; }
.surface .body { padding: 28px; }
.surface .h3 { margin-top: 14px; }
.surface .p { margin-top: 10px; }
.fig-dark { background: #2F2F2F; }
.fig-tint { background: var(--tint); }
@media (max-width: 960px) { .surfaces { grid-template-columns: 1fr; } }

/* illustration motion (all CSS; paused when off-screen via .is-in) */
.ill .draw { stroke-dasharray: var(--l, 300); stroke-dashoffset: var(--l, 300); }
.ill.is-in .draw { animation: draw 7s var(--ease-io) infinite; }
.ill.is-in .draw.d2 { animation-delay: .6s; }
.ill.is-in .draw.d3 { animation-delay: 1.2s; }
@keyframes draw { 0% { stroke-dashoffset: var(--l, 300); opacity: 1; } 35%, 80% { stroke-dashoffset: 0; opacity: 1; } 92%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.ill .dotrow circle { opacity: .25; }
.ill.is-in .dotrow circle { animation: tick 7s infinite; }
.ill.is-in .dotrow circle:nth-child(2) { animation-delay: .4s; }
.ill.is-in .dotrow circle:nth-child(3) { animation-delay: .8s; }
.ill.is-in .dotrow circle:nth-child(4) { animation-delay: 1.2s; }
@keyframes tick { 0%, 8% { opacity: .25; } 14%, 85% { opacity: 1; } 95%, 100% { opacity: .25; } }
.ill .pkt { offset-rotate: 0deg; }
.ill.is-in .pkt { animation: travel 2.8s var(--ease-io) infinite; }
.ill.is-in .pkt.p2 { animation-delay: 1.4s; }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.ill .barg rect { transform-box: fill-box; transform-origin: bottom; transform: scaleY(.15); }
.ill.is-in .barg rect { animation: grow 6s var(--ease) infinite; }
.ill.is-in .barg rect:nth-child(2) { animation-delay: .15s; }
.ill.is-in .barg rect:nth-child(3) { animation-delay: .3s; }
.ill.is-in .barg rect:nth-child(4) { animation-delay: .45s; }
.ill.is-in .barg rect:nth-child(5) { animation-delay: .6s; }
@keyframes grow { 0% { transform: scaleY(.15); } 25%, 80% { transform: scaleY(1); } 100% { transform: scaleY(.15); } }
.ill.is-in .blink { animation: pulse 1.8s infinite; }

/* ---------- platform: steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line-2); }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-top: 1px solid var(--line-2); }
.steps .h3 { font-size: 21px; }
.steps .p { margin-top: 8px; }
.steps .num { padding-top: 6px; }

/* gains */
.gains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 64px; }
.gains .h3 { color: var(--on-dark); border-top: 1px solid var(--on-dark); padding-top: 20px; }
.gains ul { list-style: none; margin: 16px 0 0; padding: 0; }
.gains li { padding: 10px 0; border-bottom: 1px solid var(--dark-line); color: var(--on-dark-2); font-size: 15px; }
@media (max-width: 860px) { .gains { grid-template-columns: 1fr; } }

/* replaces */
.swap { margin-top: 56px; border-top: 1px solid var(--line-2); }
.swap > div { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.swap .was { color: #7A7A7A; position: relative; justify-self: start; }
.swap .was::after { content: ""; position: absolute; left: 0; right: 0; top: 55%; height: 1px; background: #7A7A7A; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .25s; }
.swap .is-in .was::after, .no-js .swap .was::after { transform: scaleX(1); }
.swap .now { font: 400 clamp(19px, 1.8vw, 22px)/1.3 var(--display); letter-spacing: -.01em; }
@media (max-width: 640px) { .swap > div { grid-template-columns: 1fr; gap: 4px; } .swap .arrow { display: none; } }
.cta-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 96px; padding: clamp(32px, 4vw, 48px); border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.cta-card .h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 300; }

/* ---------- methods page ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tier { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: var(--bg); }
.tier.top-tier { border-color: var(--ink); background: var(--white); }
.tier .h3 { margin-top: 24px; }
.tier .p { margin-top: 8px; }
.tier p:last-child { margin-top: 20px; }
.tag { display: inline-block; font: 500 11px/1 var(--sans); color: var(--ink-2); background: var(--tint); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.tag.solid { background: var(--ink); color: var(--bg); }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.explorer { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; align-items: start; }
.m-list { border-top: 1px solid var(--line); }
.m-list button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 16px 4px; border-bottom: 1px solid var(--line); font: 300 22px/1.2 var(--display); letter-spacing: -.02em; color: var(--soft); transition: color .3s, padding .45s var(--ease), box-shadow .45s var(--ease); }
.m-list button small { font: 400 12px/1.3 var(--sans); letter-spacing: 0; color: #7A7A7A; text-align: right; }
.m-list button:hover { color: var(--ink); }
.m-list button[aria-selected="true"] { color: var(--ink); padding-left: 16px; box-shadow: inset 2px 0 0 var(--ink); }
.m-list button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.m-panel { position: sticky; top: calc(var(--head-h) + 24px); }
.m-card { border: 1px solid var(--line); border-radius: 18px; background: var(--white); overflow: hidden; }
.m-top { padding: 40px 40px 32px; border-bottom: 1px solid var(--line); }
.m-top h3 { margin-top: 18px; font-size: clamp(34px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.03em; }
.m-top .p { margin-top: 14px; max-width: 560px; }
.m-body { padding: 32px 40px 40px; }
.m-body h4 { font-size: 20px; font-weight: 400; line-height: 1.3; letter-spacing: -.01em; margin: 18px 0 8px; }
.m-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.m-row:last-of-type { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.m-anim { animation: mIn .6s var(--ease); }
@keyframes mIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.m-static .method { padding: 24px 0; border-top: 1px solid var(--line); }
.m-static .method .p { margin-top: 6px; }
.m-static .says { font-size: 14px; color: var(--ink); margin-top: 6px; }
@media (max-width: 960px) {
  .explorer { grid-template-columns: 1fr; gap: 28px; }
  .m-list { display: flex; overflow-x: auto; gap: 8px; border: 0; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .m-list button { flex: none; width: auto; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; font-size: 17px; scroll-snap-align: start; }
  .m-list button small { display: none; }
  .m-list button[aria-selected="true"] { padding-left: 16px; box-shadow: none; background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .m-panel { position: static; }
  .m-top, .m-body { padding-inline: 24px; }
}
.record { display: grid; }
.record div { border-top: 1px solid var(--dark-line); padding: 22px 0; }
.record div:last-child { border-bottom: 1px solid var(--dark-line); }
.record .num { color: #A9A9A9; }
.record .p { margin-top: 10px; color: #D6D6D6; }

/* ---------- privacy ---------- */
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 680px); gap: clamp(32px, 7vw, 96px); }
.toc { position: sticky; top: calc(var(--head-h) + 32px); align-self: start; font-size: 14px; }
.toc p { font: 500 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin-bottom: 16px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; color: #7A7A7A; text-decoration: none; transition: color .3s, border-color .3s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--ink); }
.doc h2 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.025em; margin: 56px 0 16px; }
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 18px; margin: 14px 0; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: #9A9A9A; }
.doc strong { color: var(--ink); font-weight: 500; }
.doc a { text-decoration: underline; }
.note { margin: 24px 0; padding: 22px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.note p { color: var(--ink); }
.updated { margin-top: 20px; font-size: 13px; color: #7A7A7A; }
@media (max-width: 860px) { .doc-grid { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- footer ---------- */
footer { background: var(--dark); color: var(--on-dark-2); }
footer .grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 88px; }
footer .logo { height: 24px; width: auto; }
footer .about { margin-top: 20px; max-width: 320px; font-size: 14px; line-height: 1.6; color: #A9A9A9; }
footer .eyebrow { color: #8A8A8A; margin-bottom: 18px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
footer a { color: #D6D6D6; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 72px; padding: 24px 0 32px; border-top: 1px solid var(--dark-line); font-size: 12px; color: #8A8A8A; }
footer .legal a { color: #8A8A8A; }
@media (max-width: 860px) { footer .grid { grid-template-columns: 1fr 1fr; } footer .grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .ill .draw { stroke-dashoffset: 0; }
  .ill .barg rect { transform: none; }
  .ill .dotrow circle { opacity: 1; }
}

/* refinements after first render */
.nav a.btn { color: var(--bg); }
.nav a.btn:hover { color: var(--bg); }
.hero .h1 { font-size: clamp(42px, 4.5vw, 66px); }
.board { width: 81%; }
.join b { font-size: 13px; letter-spacing: .06em; }
.phone { width: 22%; }

/* ---------- product gallery (real screenshots) ---------- */
.gallery { margin-top: 8px; }
.g-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; margin-bottom: 28px; }
.g-tabs button { all: unset; box-sizing: border-box; cursor: pointer; padding: 18px 0 0; position: relative; color: #7A7A7A; transition: color .4s; }
.g-tabs button::before, .g-tabs button::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-2); }
.g-tabs button::after { background: var(--ink); transform: scaleX(0); transform-origin: left; }
.g-tabs button[aria-selected="true"] { color: var(--ink); }
.g-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.gallery.is-playing .g-tabs button[aria-selected="true"]::after { animation: gprog var(--gdur, 6s) linear forwards; }
@keyframes gprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.g-tabs .num { display: block; margin-bottom: 10px; }
.g-tabs b { display: block; font: 400 17px/1.25 var(--display); letter-spacing: -.01em; }
.g-tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.g-frame { border-radius: 14px; background: #1A1A1A; padding: 0 0 0; overflow: hidden; box-shadow: 0 50px 100px -50px rgba(0,0,0,.5); border: 1px solid #333; }
.g-chrome { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: #262626; }
.g-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #4A4A4A; }
.g-chrome span { margin-left: 14px; flex: 0 1 320px; height: 22px; border-radius: 6px; background: #333; color: #9A9A9A; font: 400 11px/22px var(--sans); text-align: center; overflow: hidden; white-space: nowrap; }
.g-screens { position: relative; aspect-ratio: 2.12; background: #F4F4F4; }
.g-shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s var(--ease); }
.g-shot.is-on { opacity: 1; }
.g-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transform: scale(1.04); transition: transform 7s linear; }
.g-shot.center img { object-position: center; }
.g-shot.is-on img { transform: scale(1); }
.g-cap { margin-top: 22px; min-height: 3.4em; max-width: 640px; }
.g-cap span { display: none; }
.g-cap span.is-on { display: block; animation: mIn .6s var(--ease); }
@media (max-width: 760px) {
  .g-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .g-screens { aspect-ratio: 1.5; }
}
/* screenshot inside the platform cards */
.surface figure.shot { padding: 18px 18px 0; place-items: end center; }
.surface figure.shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 8px 8px 0 0; box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); transition: transform 1.2s var(--ease); }
.surface figure.shot.center img { object-position: center; }
.surface:hover figure.shot img { transform: translateY(-6px); }
.typelist a { white-space: nowrap; }
@media (max-width: 560px) {
  .board { width: 92%; }
  .board-body { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .join b { font-size: 10px; letter-spacing: .02em; }
  .tablet { width: 52%; }
  .phone { width: 25%; }
  .stage { aspect-ratio: 1; }
}

/* =====================================================================
   Hero v3: editorial headline + a live, clickable product window
   ===================================================================== */
.hero-x { padding-bottom: clamp(64px, 7vw, 88px); }
.hx-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.hero-x .h1 { font-size: clamp(44px, 6vw, 88px); line-height: .98; }
.hx-side .lead { margin: 0; max-width: 460px; }
.hx-side .cta { margin-top: 32px; }
.hx-demo { margin-top: clamp(48px, 6vw, 80px); }
@media (max-width: 960px) { .hx-grid { grid-template-columns: 1fr; } }

/* ---------- demo window ---------- */
.demo { position: relative; border-radius: 16px; background: var(--white); border: 1px solid var(--line-2); box-shadow: 0 60px 120px -60px rgba(0,0,0,.45), 0 0 0 6px rgba(255,255,255,.5); overflow: hidden; text-align: left; }
.d-chrome { display: flex; align-items: center; gap: 16px; height: 42px; padding: 0 16px; background: #EDEDED; border-bottom: 1px solid var(--line-2); font-size: 12px; }
.d-chrome .dots { display: flex; gap: 7px; }
.d-chrome .dots i { width: 10px; height: 10px; border-radius: 50%; background: #CFCFCF; }
.d-url { flex: 0 1 340px; height: 24px; line-height: 24px; border-radius: 6px; background: var(--white); color: #7A7A7A; text-align: center; padding: 0 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-inline: auto; }
.d-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); white-space: nowrap; }
.d-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 0 rgba(79,174,122,.6); animation: ping 2s infinite; }
.d-badge em { font-style: normal; color: #8A8A8A; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(79,174,122,.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(79,174,122,0); } }
.d-body { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 540px; }
.d-side { background: #232323; color: #BEBEBE; padding: 24px 14px 18px; display: flex; flex-direction: column; }
.d-logo { height: 19px; width: auto; margin: 0 8px 28px; }
.d-sec { font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8A8A8A; margin: 18px 8px 10px; }
.d-sec:first-of-type { margin-top: 0; }
.d-nav { display: flex; flex-direction: column; gap: 2px; }
.d-nav button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 11px; padding: 10px 10px; border-radius: 8px; font: 400 14px/1.2 var(--sans); color: #CFCFCF; transition: background-color .25s, color .25s; }
.d-nav button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; opacity: .8; }
.d-nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.d-nav button[aria-selected="true"] { background: #383838; color: #fff; }
.d-nav button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.d-nav .d-sec { margin-top: 20px; }
.d-out { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #9A9A9A; }
.d-out svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-main { background: #F7F7F7; min-width: 0; }
.d-view { animation: dIn .5s var(--ease); }
@keyframes dIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.d-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 22px 28px 18px; }
.d-head h3 { font: 500 22px/1.2 var(--display); letter-spacing: -.02em; }
.d-head p { margin-top: 4px; font-size: 13px; color: #6A6A6A; }
.d-pad { padding: 24px 28px 28px; }
.mut { color: #7A7A7A; }
.d-now { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.d-now-l { padding: 22px 24px 22px; border-right: 1px solid var(--line); }
.d-now-r { padding: 22px 24px; }
.d-now-top { display: flex; justify-content: space-between; align-items: center; }
.d-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.d-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E2574C; animation: pulse 1.8s infinite; }
.d-now h4 { margin-top: 12px; font: 400 24px/1.15 var(--display); letter-spacing: -.02em; }
.d-now-l > .mut { font-size: 13px; margin-top: 4px; }
.d-board { margin-top: 16px; border-radius: 8px; background: linear-gradient(165deg, var(--board), var(--board-2)); aspect-ratio: 640 / 330; overflow: hidden; box-shadow: inset 0 0 0 6px #2F2F2F; }
.d-board svg { width: 100%; height: 100%; }
.d-prog { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 12px; color: #7A7A7A; white-space: nowrap; }
.d-prog i { flex: 1; height: 3px; border-radius: 2px; background: var(--tint); overflow: hidden; }
.d-prog b { display: block; height: 100%; width: 38%; background: var(--ink); transition: width 1s linear; }
.d-reg-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: #6A6A6A; }
.d-count { font: 400 26px/1 var(--display); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.d-reg, .d-next { list-style: none; margin: 12px 0 0; padding: 0; }
.d-reg li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.d-reg li i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background-color .4s, box-shadow .4s; }
.d-reg .stt { font-size: 12px; color: #9A9A9A; transition: color .4s; }
.d-reg li.on i { background: var(--go); box-shadow: 0 0 0 3px rgba(79,174,122,.18); }
.d-reg li.on .stt { color: #3D7D58; }
.d-reg li.late i { background: var(--late); box-shadow: 0 0 0 3px rgba(227,179,65,.2); }
.d-reg li.late .stt { color: #8A6512; }
.d-reg li.flash { animation: flash 1s var(--ease); }
@keyframes flash { 0% { background: rgba(79,174,122,.12); } 100% { background: transparent; } }
.d-next { margin-top: 10px; }
.d-next li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.d-next .tm { font-variant-numeric: tabular-nums; color: #7A7A7A; }
/* chalk in the demo board: loops while the window is on screen */
.demo .dk { opacity: 0; }
.demo .chalk.dk { stroke-dasharray: var(--l, 300); stroke-dashoffset: var(--l, 300); }
.demo.is-live .chalk.dk { animation: dChalk 14s var(--ease-io) infinite; animation-delay: calc(var(--d) * .9s); }
.demo.is-live .chalk-text.dk { animation: dText 14s linear infinite; animation-delay: calc(var(--d) * .9s); }
@keyframes dChalk { 0% { opacity: 1; stroke-dashoffset: var(--l, 300); } 8%, 82% { opacity: 1; stroke-dashoffset: 0; } 90%, 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes dText { 0% { opacity: 1; clip-path: inset(0 100% 0 0); } 7%, 82% { opacity: 1; clip-path: inset(0 0 0 0); } 90%, 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
/* connect to board */
.d-connect { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.d-screen { border-radius: 12px; background: #1E1E1E; color: #F4F4F4; text-align: center; padding: 44px 20px 40px; box-shadow: inset 0 0 0 8px #2F2F2F; }
.d-screen .rn { font: 500 26px/1.1 var(--display); letter-spacing: -.01em; }
.d-screen .cd { font: 500 clamp(40px, 5vw, 68px)/1 var(--display); letter-spacing: .14em; margin: 30px 0 22px; font-variant-numeric: tabular-nums; }
.d-screen .vl { font-size: 13px; color: #9A9A9A; }
.d-screen .secs { color: #F4F4F4; font-variant-numeric: tabular-nums; }
.d-confirm { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.cd-mini { font: 500 30px/1 var(--display); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.d-go { align-self: flex-start; }
.d-done { border-top: 1px solid var(--line); padding-top: 14px; animation: dIn .5s var(--ease); }
.d-done b { font-weight: 500; color: #3D7D58; }
.d-done .mut { font-size: 13px; margin-top: 4px; }
.d-connect.ok .d-screen { box-shadow: inset 0 0 0 8px #3D7D58; transition: box-shadow .5s; }
/* tables */
.d-table { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.d-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.d-table th { text-align: left; font: 500 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #7A7A7A; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #FBFBFB; white-space: nowrap; }
.d-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.d-table tr:last-child td { border-bottom: 0; }
.d-table td b { display: block; font-weight: 500; }
.d-table td small { display: block; color: #8A8A8A; font-size: 12px; margin-top: 2px; }
.hw-t { min-width: 210px; }
.st-chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px; color: var(--ink-2); }
.st-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--late); }
.st-chip.given::before { background: var(--go); }
.st-chip.pop { animation: flash 1.2s var(--ease); }
.d-btn { all: unset; cursor: pointer; font: 500 12px/1 var(--sans); padding: 9px 12px; border-radius: 999px; border: 1px solid var(--ink); white-space: nowrap; transition: background-color .25s, color .25s; }
.d-btn:hover { background: var(--ink); color: var(--white); }
.d-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.d-filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.d-filter { all: unset; cursor: pointer; font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); transition: all .25s; }
.d-filter[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.d-filter:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.d-table tr[hidden] { display: none; }
@media (max-width: 960px) {
  .d-body { grid-template-columns: 1fr; min-height: 0; }
  .d-side { padding: 12px; flex-direction: row; align-items: center; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .d-logo, .d-side .d-sec, .d-out { display: none; }
  .d-nav { flex-direction: row; gap: 6px; }
  .d-nav button { white-space: nowrap; padding: 8px 12px; font-size: 13px; }
  .d-now, .d-connect { grid-template-columns: 1fr; }
  .d-now-l { border-right: 0; border-bottom: 1px solid var(--line); }
  .d-badge em, .d-url { display: none; }
  .d-chrome { justify-content: space-between; }
}
@media (max-width: 600px) {
  .d-head, .d-pad { padding-inline: 16px; }
  .hide-s { display: none; }
}
@media (prefers-reduced-motion: reduce) { .demo .dk { opacity: 1; stroke-dashoffset: 0; animation: none !important; } }
.no-motion .demo .dk { opacity: 1; stroke-dashoffset: 0; }
.nav a.btn { padding: 0 20px; }
.hero-x .globe { opacity: .5; }
[hidden] { display: none !important; }
.d-table td { white-space: nowrap; }
.d-table td.hw-t, .d-table td:nth-child(3) { white-space: normal; }
