/* studio.unichat.dev — SocialMediaPip's public site.
   The same monochrome tokens as the Studio app (apps/studio/web/styles.css, D-036), plus motion
   and spacing tokens. Only transform and opacity animate. */

@font-face {
  font-family: "Inter Variable";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #fafafa; --surface: #ffffff; --surface-2: #f4f4f5; --surface-3: #e9e9ec;
  --border: #e4e4e7; --border-strong: #d4d4d8;
  --text: #18181b; --text-2: #52525b; --text-3: #8b8b94;
  --primary: #18181b; --primary-fg: #fafafa; --primary-hover: #3f3f46;
  --glass: rgba(255, 255, 255, .72);
  --dot: rgba(24, 24, 27, .09);
  --glow: rgba(24, 24, 27, .06);
  --ring: rgba(24, 24, 27, .18);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px -12px rgba(0, 0, 0, .12);
  --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, .28), 0 12px 24px -12px rgba(0, 0, 0, .12);
  --phone: #0b0b0c;
  color-scheme: light;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-ui: cubic-bezier(.4, 0, .2, 1);
  --t-ui: .2s; --t-reveal: .9s;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --radius: 12px; --radius-lg: 20px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(96px, 14vw, 176px);
}
@media (min-width: 1680px) {
  :root { --wrap: 1360px; } body { font-size: 18px; }
  .display { font-size: 92px; }
  .hero .phone { width: 360px; }
  .stage .phone { width: 320px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c; --surface: #131315; --surface-2: #1b1b1e; --surface-3: #242428;
    --border: #26262a; --border-strong: #36363b;
    --text: #ececee; --text-2: #a5a5ad; --text-3: #6e6e77;
    --primary: #ececee; --primary-fg: #111113; --primary-hover: #ffffff;
    --glass: rgba(19, 19, 21, .72);
    --dot: rgba(255, 255, 255, .07);
    --glow: rgba(255, 255, 255, .06);
    --ring: rgba(236, 236, 238, .24);
    --shadow: 0 1px 0 rgba(255, 255, 255, .02);
    --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, .8);
    --phone: #000000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c; --surface: #131315; --surface-2: #1b1b1e; --surface-3: #242428;
  --border: #26262a; --border-strong: #36363b;
  --text: #ececee; --text-2: #a5a5ad; --text-3: #6e6e77;
  --primary: #ececee; --primary-fg: #111113; --primary-hover: #ffffff;
  --glass: rgba(19, 19, 21, .72);
  --dot: rgba(255, 255, 255, .07);
  --glow: rgba(255, 255, 255, .06);
  --ring: rgba(236, 236, 238, .24);
  --shadow: 0 1px 0 rgba(255, 255, 255, .02);
  --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, .8);
  --phone: #000000;
  color-scheme: dark;
}

/* ---- base ------------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter Variable", Inter, system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
  overflow-x: clip;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; font-weight: 640; }
p { margin: 0; }
a { color: inherit; }
img, video, svg { display: block; max-width: 100%; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.i { width: 20px; height: 20px; flex-shrink: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: var(--primary-fg); padding: 10px 14px; border-radius: 8px; text-decoration: none; transition: transform var(--t-ui) var(--ease-ui); }
.skip:focus { transform: translateY(76px); }
.muted { color: var(--text-2); }
.eyebrow {
  display: inline-flex; max-width: 100%; align-items: center; gap: 10px; font-size: 13px; font-weight: 550;
  letter-spacing: .02em; color: var(--text-2); padding: 6px 12px 6px 10px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pip { width: 8px; height: 8px; border-radius: 50%; background: var(--text); position: relative; }
.pip::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--text); opacity: 0; animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.035em; line-height: 1.04; font-weight: 650; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); line-height: 1.55; max-width: 34em; }

/* ---- buttons --------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: 15px; font-weight: 560; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-ui) var(--ease-ui), background var(--t-ui), border-color var(--t-ui), box-shadow var(--t-ui);
}
.btn:hover { transform: scale(1.02); border-color: var(--text-3); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .45); }
.btn.primary:hover { background: var(--primary-hover); }
.btn .i { width: 18px; height: 18px; transition: transform var(--t-ui) var(--ease-ui); }
.btn:hover .i.arrow { transform: translateX(3px); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; }

/* ---- nav ------------------------------------------------------------------------------------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px var(--gutter); transition: padding .4s var(--ease-out); }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; height: 56px; display: flex; align-items: center; gap: var(--s3);
  padding: 0 10px 0 16px; border-radius: 999px; border: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}
.scrolled .nav-inner { background: var(--glass); border-color: var(--border); box-shadow: var(--shadow); backdrop-filter: saturate(1.4) blur(20px); -webkit-backdrop-filter: saturate(1.4) blur(20px); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 640; font-size: 16px; letter-spacing: -0.015em; }
.logo .glyph { width: 30px; height: 30px; display: grid; place-items: center; }
.logo .glyph svg { width: 30px; height: 30px; }
.logo .word { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 700; letter-spacing: -0.01em; }
.logo .word small { font-size: 12.5px; font-weight: 520; color: var(--text-3); letter-spacing: 0; }
@media (max-width: 420px) { .nav .logo .word small { display: none; } .hero .eyebrow { border-radius: 16px; align-items: flex-start; } .hero .eyebrow .pip { margin-top: 7px; flex-shrink: 0; } }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 520; color: var(--text-2); padding: 8px 12px; border-radius: 999px; transition: color var(--t-ui), background var(--t-ui); }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: transform var(--t-ui) var(--ease-ui), color var(--t-ui); }
.theme:hover { color: var(--text); transform: rotate(-12deg); }
.theme .i { width: 17px; height: 17px; }
.theme span { display: none; }
.theme[data-mode="system"] .t-system, .theme[data-mode="light"] .t-light, .theme[data-mode="dark"] .t-dark { display: block; }
.theme:not([data-mode]) .t-system { display: block; }
@media (max-width: 860px) { .nav-links { display: none; } .theme { margin-left: auto; } }

/* ---- reveal ---------------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 45ms + 80ms); }
.split.in .w > span { transform: none; }

/* ---- hero ------------------------------------------------------------------------------------ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 var(--s7); overflow: clip; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px); background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 70%);
}
.hero-bg::after { content: ""; position: absolute; width: 900px; height: 900px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr .65fr; gap: var(--s6); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.display { font-size: clamp(32px, 3.6vw + 21px, 76px); line-height: .98; letter-spacing: -0.045em; font-weight: 660; }
.display .soft { color: var(--text-3); display: block; }
@media (min-width: 961px) { .display .soft { white-space: nowrap; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s1); }
.platform-row { list-style: none; margin: var(--s2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-3); font-size: 14px; font-weight: 520; }
.platform-row li { display: inline-flex; align-items: center; gap: 8px; }
.platform-row .i { width: 18px; height: 18px; }

.hero-visual { position: relative; justify-self: center; perspective: 1200px; }
.phone {
  position: relative; width: clamp(240px, 24vw, 320px); aspect-ratio: 9 / 19.2; border-radius: 48px; padding: 10px;
  background: var(--phone); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); border-radius: 999px; background: #000; z-index: 3; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #111; isolation: isolate; }
.screen video, .screen img.poster { width: 100%; height: 100%; object-fit: cover; }
.float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  font-size: 13.5px; line-height: 1.3; white-space: nowrap; z-index: 4;
  animation: bob 7s ease-in-out infinite; animation-delay: var(--bob, 0s);
}
.float b { display: block; font-weight: 620; }
.float small { color: var(--text-3); font-size: 12px; }
.float .badge { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--primary); color: var(--primary-fg); }
.float .badge .i { width: 17px; height: 17px; }
.f1 { left: -46%; top: 16%; --bob: -1s; }
.f2 { right: -40%; top: 44%; --bob: -3.5s; }
.f3 { left: -36%; bottom: 12%; --bob: -5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (max-width: 960px) {
  .hero { padding-top: 112px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .hero-visual { margin-top: var(--s2); }
  .f1 { left: -30%; } .f2 { right: -30%; } .f3 { left: -24%; }
}
@media (max-width: 520px) {
  .f1 { left: -18%; top: 8%; } .f2 { right: -16%; } .f3 { left: -14%; bottom: 6%; }
  .float { font-size: 12.5px; padding: 8px 12px 8px 8px; }
  .float .badge { width: 28px; height: 28px; }
}

/* ---- about this site --------------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.not-card, .req { padding: var(--s4); border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: var(--s2); align-content: start; }
.not-card h3, .req h3 { font-size: 15px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.not-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.not-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); font-size: 16px; }
.not-list b { color: var(--text); font-weight: 620; }
.not-list .i { width: 20px; height: 20px; margin-top: 3px; color: var(--text); }
.req-item { display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 14px; padding: 14px; margin: 0 -14px; border-radius: 14px; text-decoration: none; transition: background var(--t-ui), transform .4s var(--ease-out); }
.req-item + .req-item { border-top: 1px solid var(--border); border-radius: 0 0 14px 14px; }
.req-item > .i:first-child { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.req-item b { display: block; font-weight: 620; }
.req-item small { display: block; color: var(--text-3); font-size: 14px; line-height: 1.45; }
.req-item > .i:last-child { color: var(--text-3); transition: transform var(--t-ui) var(--ease-ui), color var(--t-ui); }
.req-item:hover { background: var(--surface-2); }
.req-item:hover > .i:last-child { transform: translateX(3px); color: var(--text); }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .not-card, .req { padding: var(--s3); } }

/* ---- statement (words light up with scroll) ----------------------------------------------------- */
.statement { padding: var(--section) 0; }
.statement p { font-size: clamp(30px, 4.6vw, 58px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 620; max-width: 20em; }
.statement .w { opacity: .14; transition: opacity .35s var(--ease-ui); }
.statement .w.on { opacity: 1; }
.no-js .statement .w, .reduce .statement .w { opacity: 1; }

/* ---- flow (pinned, scrubbed by scroll) ------------------------------------------------------- */
.flow { position: relative; height: 560vh; }
.flow-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: clip; }
.flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; width: 100%; }
.flow-head { margin-bottom: var(--s5); }
.flow-head .h2 { font-size: clamp(30px, 3.6vw, 46px); margin-top: 10px; }
.steps-box { position: relative; padding-left: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rail { position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--border); overflow: hidden; }
.rail::after { content: ""; position: absolute; inset: 0; background: var(--text); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { padding: 14px 18px; border-radius: 16px; transition: opacity .5s var(--ease-out), background .5s var(--ease-out), transform .5s var(--ease-out); opacity: .38; transform: translateX(-4px); }
.step .num { font-size: 12px; font-weight: 650; color: var(--text-3); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 21px; margin: 2px 0 0; display: flex; align-items: center; gap: 10px; }
.step h3 .i { width: 19px; height: 19px; color: var(--text-3); }
.step p { color: var(--text-2); font-size: 15.5px; margin-top: 6px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-out), opacity .5s var(--ease-out); }
.step.on { opacity: 1; background: var(--surface); box-shadow: var(--shadow); transform: none; outline: 1px solid var(--border); }
.step.on p { max-height: 8em; opacity: 1; }
.stage { justify-self: center; position: relative; }
.stage .phone { width: clamp(230px, 22vw, 300px); }
.ov { position: absolute; z-index: 2; opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .55s var(--ease-out), transform .7s var(--ease-out); pointer-events: none; }
.flow[data-step="0"] .ov-0, .flow[data-step="1"] .ov-1, .flow[data-step="2"] .ov-2, .flow[data-step="3"] .ov-3, .flow[data-step="4"] .ov-4 { opacity: 1; transform: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(10, 10, 12, .72); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); letter-spacing: .01em; }
.chip .rec { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.ov-0.top { top: 46px; left: 14px; }
.ov-0.graph { left: 10px; right: 10px; bottom: 10px; padding: 12px; border-radius: 18px; background: rgba(10, 10, 12, .7); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.graph svg { width: 100%; height: 64px; overflow: visible; }
.graph .line { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s var(--ease-out) .2s; }
.flow[data-step="0"] .graph .line { stroke-dashoffset: 0; }
.graph .ev { fill: #fff; }
.graph .lbl { font-size: 10.5px; display: flex; justify-content: space-between; color: rgba(255, 255, 255, .7); margin-top: 6px; }
.ov-1.guides { inset: 10px; border-radius: 38px; }
.guides .band { position: absolute; left: 0; right: 0; border: 1px dashed rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); }
.guides .t { top: 0; height: 11.5%; border-radius: 38px 38px 0 0; border-top: 0; }
.guides .b { bottom: 0; height: 22%; border-radius: 0 0 38px 38px; border-bottom: 0; }
.guides .r { position: absolute; top: 11.5%; bottom: 22%; right: 0; width: 11%; border: 1px dashed rgba(255, 255, 255, .55); border-right: 0; background: rgba(255, 255, 255, .04); }
.guides .chip { position: absolute; left: 12px; bottom: calc(22% + 10px); }
.card-ov { left: 50%; top: 50%; width: 86%; translate: -50% -50%; padding: 14px; border-radius: 20px; background: var(--glass); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); font-size: 12.5px; }
.card-ov h4 { font-size: 13px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-ov h4 small { color: var(--text-3); font-weight: 500; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.checks li { display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateX(-6px); transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(var(--i) * 110ms + 150ms); }
.checks .i { width: 15px; height: 15px; }
.flow[data-step="2"] .checks li { opacity: 1; transform: none; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.posts li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: var(--surface-2); }
.posts .i { width: 16px; height: 16px; }
.posts small { color: var(--text-3); display: block; font-size: 11px; }
.state { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-3); position: relative; }
.state::after { content: "Posted"; position: absolute; inset: -1px; border-radius: inherit; display: grid; place-items: center; background: var(--primary); color: var(--primary-fg); opacity: 0; transition: opacity .3s; transition-delay: calc(var(--i) * 260ms + 500ms); }
.flow[data-step="3"] .state::after { opacity: 1; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: 6px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars span { width: 100%; border-radius: 6px 6px 3px 3px; background: var(--text); height: var(--h); transform-origin: bottom; transform: scaleY(.05); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 90ms + 150ms); }
.bars div:nth-child(even) span { background: var(--text-3); }
.bars small { font-size: 10px; color: var(--text-3); }
.flow[data-step="4"] .bars span { transform: none; }
.flow-sticky { padding-top: 64px; }
@media (max-height: 820px) and (min-width: 641px) {
  .flow-head { margin-bottom: var(--s3); }
  .flow-head .h2 { font-size: 30px; }
  .step { padding: 9px 16px; }
  .step h3 { font-size: 18px; }
  .step p { font-size: 14.5px; }
}
@media (max-width: 960px) and (min-width: 641px) {
  .flow-grid { gap: var(--s4); grid-template-columns: 1.1fr .9fr; }
  .stage .phone { width: min(34vw, 270px, calc((100svh - 120px) * .47)); }
}
@media (max-width: 640px) {
  .flow { height: 520vh; }
  .flow-sticky { align-items: flex-start; padding-top: 84px; }
  .flow-grid { grid-template-columns: 1fr; gap: var(--s3); }
  .flow-head { margin-bottom: var(--s2); }
  .flow-head .h2 { font-size: 28px; }
  .stage { order: -1; }
  .stage .phone { width: min(46vw, 210px, calc((100svh - 84px - 250px) * .47)); border-radius: 34px; padding: 7px; }
  .stage .screen { border-radius: 28px; }
  .stage .phone::before { top: 13px; height: 16px; }
  .steps-box { padding-left: 0; }
  .steps { display: block; position: relative; min-height: 150px; }
  .rail { display: none; }
  .step { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(10px); pointer-events: none; padding: 12px 4px; }
  .step.on { opacity: 1; transform: none; background: none; box-shadow: none; outline: 0; pointer-events: auto; }
  .card-ov { font-size: 11px; padding: 10px; top: 54%; }
  .ov-0.top { top: 30px; }
}
@media (max-width: 400px) {
  .stage .phone { width: min(50vw, 190px, calc((100svh - 84px - 215px) * .47)); }
  .flow-head .h2 { font-size: 24px; }
  .step p { font-size: 14.5px; }
  .card-ov { width: 94%; font-size: 10px; padding: 8px; border-radius: 14px; }
  .card-ov h4 small { display: none; }
  .checks li:nth-child(n+5), .posts small { display: none; }
  .checks { gap: 5px; }
  .bars { height: 80px; }
}

/* ---- platforms ------------------------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section-head { display: grid; gap: var(--s2); max-width: 760px; margin-bottom: var(--s6); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .5s var(--ease-out), border-color var(--t-ui), opacity var(--t-reveal) var(--ease-out);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card .mark { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); }
.card .mark .i { width: 24px; height: 24px; }
.card h3 { font-size: 22px; }
.card .api { font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: .01em; }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--text-2); font-size: 15.5px; }
.card li { display: flex; gap: 10px; align-items: flex-start; }
.card li .i { width: 17px; height: 17px; margin-top: 4px; color: var(--text); }
.card .links { margin-top: auto; padding-top: var(--s2); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
.card .links a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.card .links a:hover { color: var(--text); }
.card .links .i { width: 14px; height: 14px; }
.yt-note { margin-top: var(--s3); padding: var(--s3); border-radius: var(--radius-lg); border: 1px dashed var(--border-strong); color: var(--text-2); font-size: 15px; display: flex; gap: 14px; align-items: flex-start; }
.yt-note .i { width: 22px; height: 22px; color: var(--text); margin-top: 2px; }
.accounts { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--text-3); font-size: 14px; }
.accounts span.tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 520; }
.accounts .i { width: 15px; height: 15px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }

/* ---- principles ------------------------------------------------------------------------------ */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.principle { background: var(--bg); padding: var(--s4); display: grid; gap: 12px; align-content: start; min-height: 240px; }
.principle .i { width: 26px; height: 26px; }
.principle h3 { font-size: 19px; margin-top: var(--s2); }
.principle p { color: var(--text-2); font-size: 15px; }
@media (max-width: 960px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } .principle { min-height: 0; } }

/* ---- in use (Skyward) ------------------------------------------------------------------------ */
.inuse { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s6); align-items: center; padding: var(--s6); border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: clip; position: relative; }
.inuse .shots { display: flex; gap: var(--s2); justify-content: center; }
.inuse .mini { width: 46%; max-width: 200px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #111; box-shadow: var(--shadow-lg); }
.inuse .mini:nth-child(2) { transform: translateY(var(--s5)); }
.inuse .mini img, .inuse .mini video { width: 100%; height: 100%; object-fit: cover; }
.inuse .copy { display: grid; gap: var(--s3); justify-items: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--text-2); font-size: 16px; }
.facts li { display: flex; gap: 12px; }
.facts .i { width: 19px; height: 19px; margin-top: 3px; color: var(--text); }
@media (max-width: 960px) { .inuse { grid-template-columns: 1fr; padding: var(--s4) var(--s3); } .inuse .shots { order: 2; padding-bottom: var(--s5); } }

/* ---- closing --------------------------------------------------------------------------------- */
.closing { text-align: center; display: grid; justify-items: center; gap: var(--s3); padding: var(--section) 0 calc(var(--section) * .8); position: relative; overflow: clip; }
.closing .big-mark { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.closing .h2 { max-width: 15em; }
.closing .lede { margin: 0 auto; }

/* ---- footer ---------------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); padding: var(--s6) 0 var(--s4); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s4); }
.footer-brand p { color: var(--text-2); margin-top: 12px; max-width: 26em; }
.footer h3 { font-size: 13px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 8px; }
.footer a:not(.logo) { color: var(--text-2); text-decoration: none; }
.footer a:not(.logo):hover { color: var(--text); }
.footer-fine { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--border); color: var(--text-3); font-size: 12.5px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---- documents (privacy, terms, data deletion) ----------------------------------------------- */
.doc-hero { padding: 148px 0 var(--s5); border-bottom: 1px solid var(--border); position: relative; overflow: clip; }
.doc-hero .hero-bg::before { mask-image: radial-gradient(ellipse 60% 90% at 80% 0%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 90% at 80% 0%, #000 10%, transparent 70%); }
.doc-hero h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; margin-top: var(--s2); }
.doc-hero .meta { margin-top: var(--s2); color: var(--text-3); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s6); padding: var(--s6) var(--gutter) var(--s8); max-width: var(--wrap); margin: 0 auto; }
.toc { position: sticky; top: 100px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.toc b { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 8px; }
.toc a { color: var(--text-3); text-decoration: none; padding: 5px 0 5px 12px; border-left: 1px solid var(--border); transition: color var(--t-ui), border-color var(--t-ui); }
.toc a:hover, .toc a.on { color: var(--text); border-color: var(--text); }
.prose { max-width: 720px; min-width: 0; font-size: 16.5px; color: var(--text-2); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2 { color: var(--text); font-size: 26px; letter-spacing: -0.025em; margin-top: 2.2em; padding-top: .2em; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); font-size: 18px; margin-top: 1.6em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--text); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose .summary { padding: var(--s3); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text-2); }
.prose .summary h3 { margin-top: 0; }
.prose .summary ul { margin: 10px 0 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--border); }
.table th { color: var(--text); font-weight: 600; font-size: 13px; white-space: nowrap; }
.table td:first-child { color: var(--text); font-weight: 550; white-space: nowrap; }
.callout { display: flex; gap: 12px; padding: var(--s2) var(--s3); border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.callout .i { margin-top: 3px; color: var(--text); }
@media (max-width: 960px) { .doc { grid-template-columns: minmax(0, 1fr); gap: var(--s3); } .toc { display: none; } }

/* ---- small pages (404, auth callback) -------------------------------------------------------- */
.center-page { min-height: 100svh; display: grid; place-items: center; padding: 120px var(--gutter) var(--s6); text-align: center; position: relative; overflow: clip; }
.center-page .inner { display: grid; gap: var(--s3); justify-items: center; max-width: 560px; position: relative; }
.center-page h1 { font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.04em; }
.code-box { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); font: 500 14px ui-monospace, SFMono-Regular, Menlo, monospace; text-align: left; }
.code-box code { flex: 1; overflow-wrap: anywhere; }
.hidden { display: none !important; }

/* ---- reduced motion -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
}
.code-box .btn { font-family: "Inter Variable", Inter, system-ui, sans-serif; }
.nav-app { margin-left: 4px; }
@media (max-width: 860px) { .nav-app { margin-left: auto; } .nav-app + .theme { margin-left: 8px; } }
