/* The public home page, in roleEdge's own system (tokens.css): Geist, black for the brand and every action, zinc
   greys, colour for status only. Doto (dotted) appears only on "Edge" in the wordmark. Motion is transform and
   opacity, one easing curve, and is switched off for prefers-reduced-motion (home.js then shows final states). */
@import url("tokens.css");

:root {
  --out: cubic-bezier(.16, 1, .3, 1);
  --io: cubic-bezier(.65, 0, .35, 1);
  --wrap: 1200px;
  --dk: #0a0a0a; --dk-1: #111113; --dk-2: #18181b; --dk-line: #27272a; --dk-line-2: #3f3f46;
  --dk-ink: #fafafa; --dk-body: #a1a1aa; --dk-muted: #8b8b94;
  --soft-ink: #85858e;  /* the quiet half of a headline: enough contrast for large text on white */
}
@view-transition { navigation: auto; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--ink); background: var(--canvas); overflow-x: clip; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .nav:not(.light) :focus-visible, .foot :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 500; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 64px); margin: 0 auto; padding: 0 32px; }
.grow { flex: 1; }
.center { text-align: center; }
i[data-i] { display: inline-grid; place-items: center; font-style: normal; }
i[data-i] svg { width: 1.1em; height: 1.1em; }
code { font-family: var(--mono); }

/* ------------------------------------------------------------------ marks, wordmark, dots, tags, buttons */
.mark { display: inline-grid; } .mark svg { width: 28px; height: 28px; }
.mark.sm svg { width: 22px; height: 22px; } .mark.xs svg { width: 18px; height: 18px; } .mark.xl svg { width: 64px; height: 64px; }
.dark .mark svg, .foot .mark svg { --mark-bg: #fff; --mark-fg: #0a0a0a; }
.logo { display: flex; align-items: center; gap: 10px; }
/* "role" in Geist, "Edge" in Doto: the one place the dotted face is used */
.wordmark { font: 500 21px/1 var(--font); letter-spacing: -.025em; color: #d4d4d8; white-space: nowrap; transition: color .45s; }
.wordmark b { font: 800 23px/1 var(--display); letter-spacing: .01em; color: #fff; margin-left: 1px; transition: color .45s; }
.wordmark.sm { font-size: 16px; } .wordmark.sm b { font-size: 17px; }

.dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--muted-soft); display: inline-block; }
.dot.ok { background: var(--ok); } .dot.watch { background: var(--watch); } .dot.urgent { background: var(--urgent); }
.dot.live { background: var(--ok); animation: live 2.2s var(--out) infinite; }
.dot.next { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.dot.later { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted-soft); }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(7, 148, 85, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(7, 148, 85, 0); } }

.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-sm); font: 500 12px/1 var(--font);
  border: 1px solid var(--hairline); color: var(--body); background: var(--canvas); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted-soft); }
.tag.live::before, .tag.demo::before { background: var(--ok); }
.tag.next::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.dark .tag { border-color: var(--dk-line); color: var(--dk-body); background: var(--dk-1); }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r-lg); border: 1px solid transparent; font: 500 14px/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s var(--out), transform .4s var(--out); }
.btn i[data-i] svg { width: 16px; height: 16px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn.light { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 8px 30px -8px rgba(255, 255, 255, .25); }
.btn.light:hover { background: #f4f4f5; }
.btn.ghost-dark { color: var(--dk-ink); border-color: var(--dk-line-2); background: rgba(255, 255, 255, .02); }
.btn.ghost-dark:hover { border-color: #71717a; background: rgba(255, 255, 255, .06); }
.btn i[data-i] { transition: transform .3s var(--out); } .btn:hover i[data-i]:last-child { transform: translateX(2px); }

/* ------------------------------------------------------------------ nav: black over dark sections, white over light ones */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; border-bottom: 1px solid transparent;
  transition: background-color .45s var(--out), color .45s var(--out), border-color .45s var(--out); }
.nav.scrolled { background: rgba(10, 10, 10, .9); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-color: rgba(255, 255, 255, .08); }
.nav-in { height: 64px; display: flex; align-items: center; gap: 28px; }
.nav-links { flex: 1; display: flex; justify-content: center; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--dk-body); transition: color .25s, background .25s; }
.nav-links a:hover, .nav-links a.on { color: #fff; background: rgba(255, 255, 255, .07); }
.nav .mark svg { --mark-bg: #fff; --mark-fg: #0a0a0a; }
.nav-cta { background: #fff; color: var(--ink); }
.nav-cta:hover { background: #f4f4f5; }
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; }
.nav-progress b { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); transform-origin: 0 50%; transform: scaleX(0); }
.nav.light { color: var(--ink); background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-color: var(--hairline); }
.nav.light .nav-links a { color: var(--body); }
.nav.light .nav-links a:hover, .nav.light .nav-links a.on { color: var(--ink); background: var(--surface-card); }
.nav.light .mark svg { --mark-bg: #0a0a0a; --mark-fg: #fff; }
.nav.light .wordmark { color: var(--body); } .nav.light .wordmark b { color: var(--ink); }
.nav.light .nav-cta { background: var(--ink); color: #fff; } .nav.light .nav-cta:hover { background: var(--accent-hover); }
.nav.light .nav-progress b { background: linear-gradient(90deg, rgba(10, 10, 10, 0), var(--ink)); }

/* ------------------------------------------------------------------ sections */
.sec { position: relative; padding: 120px 0; }
.sec.tint { background: var(--page); border-block: 1px solid var(--hairline-soft); }
.dark { background: var(--dk); color: var(--dk-ink); }
.sec.dark { overflow: hidden; }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--hairline);
  background: var(--canvas); font: 500 13px/1 var(--font); color: var(--body); margin-bottom: 20px; }
.dark .eyebrow { border-color: var(--dk-line); background: var(--dk-1); color: var(--dk-body); }
h2 { font: 600 clamp(34px, 4.4vw, 56px)/1.05 var(--font); letter-spacing: -.035em; text-wrap: balance; }
h2 .soft { color: var(--soft-ink); }
.dark h2 .soft { color: var(--dk-muted); }
.sub { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.sec-head.center .sub { max-width: 640px; margin-inline: auto; }
.dark .sub { color: var(--dk-body); }
h3 { font: 600 19px/1.3 var(--font); letter-spacing: -.015em; }
.fine { margin-top: 24px; font-size: 12.5px; color: var(--muted); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* reveal on scroll; home.js adds .in. Without JS (or with reduced motion) everything is simply visible. */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); filter: blur(6px);
  transition: opacity .9s var(--out), transform 1s var(--out), filter .9s var(--out); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.js .split-w { display: inline-block; opacity: 0; transform: translate3d(0, .4em, 0); filter: blur(8px);
  transition: opacity .8s var(--out), transform .9s var(--out), filter .8s var(--out); transition-delay: var(--d, 0s); }
.js .split-in .split-w { opacity: 1; transform: none; filter: none; }

/* spotlight: a soft light follows the pointer across a card's border (fine pointers only) */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(10, 10, 10, .28), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.dark .spot::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .38), transparent 45%); }
@media (hover: hover) and (pointer: fine) { .spot:hover::before { opacity: 1; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 136px 0 200px; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%); }
.hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--dk-line);
  background: rgba(24, 24, 27, .7); backdrop-filter: blur(8px); font-size: 13.5px; color: var(--dk-body); transition: border-color .3s, color .3s; }
.pill:hover { border-color: var(--dk-line-2); color: #fff; }
.pill-sep { width: 1px; height: 14px; background: var(--dk-line-2); }
.pill i[data-i] svg { width: 14px; height: 14px; }
.display { margin-top: 28px; max-width: 980px; font: 600 clamp(46px, 7.2vw, 100px)/.98 var(--font); letter-spacing: -.05em; text-wrap: balance; color: #fff; }
.display .soft { color: var(--dk-muted); }
.rot { position: relative; display: inline-block; vertical-align: bottom; height: 1.06em; overflow: hidden; text-align: left; white-space: nowrap;
  transition: width .6s var(--out); padding-bottom: .08em; margin-bottom: -.08em; }
.rot-w { display: inline-block; white-space: nowrap; }
.rot-w.in, .rot-w.out { position: absolute; left: 0; top: 0; }
.rot-w.in { animation: rot-in .7s var(--out) both; } .rot-w.out { animation: rot-out .55s var(--io) both; }
@keyframes rot-in { from { opacity: 0; transform: translateY(105%); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rot-out { to { opacity: 0; transform: translateY(-105%); filter: blur(6px); } }
.hero .lead { margin-top: 28px; max-width: 680px; font-size: 18.5px; line-height: 1.6; color: var(--dk-body); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta-row.center { justify-content: center; }

/* the stage: the Studio window and her phone, settling flat as you scroll */
.stage-wrap { position: relative; z-index: 2; margin-top: 72px; perspective: 1800px; }
.stage { position: relative; height: 650px; transform-style: preserve-3d; transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, 0deg)); transition: transform .9s var(--out); }
.glow { position: absolute; left: 50%; top: 40%; width: min(900px, 100%); height: 500px; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04) 55%, transparent); filter: blur(30px); }
.win { position: absolute; left: 0; right: 150px; top: 0; height: 600px; border-radius: 14px; overflow: hidden; background: var(--page); color: var(--ink); text-align: left;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 120px -30px rgba(0, 0, 0, .9), 0 30px 60px -30px rgba(0, 0, 0, .7); }
.win-bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: #f4f4f5; border-bottom: 1px solid var(--hairline); }
.win-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #d4d4d8; }
.win-url { margin: 0 auto; transform: translateX(-24px); height: 24px; padding: 0 60px; display: grid; place-items: center; border-radius: 6px; background: #fff; border: 1px solid var(--hairline); font: 400 12px var(--font); color: var(--muted); }
.win-top { height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: var(--brand); color: #fff; overflow: hidden; }
.win-top .mark svg { --mark-bg: #fff; --mark-fg: #0a0a0a; }
.win-top .wordmark { margin-right: 14px; }
.chip { font-size: 13px; color: var(--dk-body); padding: 0 8px; white-space: nowrap; } .chip.on { color: #fff; font-weight: 500; }
.meter { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--dk-line); border-radius: 6px; font-size: 12.5px; color: var(--dk-body); white-space: nowrap; }
.win-main { padding: 26px 180px 26px 30px; }
.h-eyebrow { font-size: 12.5px; color: var(--muted); }
.h-title { margin-top: 6px; font: 600 22px/1.25 var(--font); letter-spacing: -.02em; } .h-title span { color: var(--muted-soft); }
.composer-mock { margin-top: 16px; background: #fff; border: 1px solid var(--hairline); border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.for { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.for span { margin-right: 8px; } .for b { font-weight: 500; padding: 4px 9px; border-radius: 5px; color: var(--muted); white-space: nowrap; }
.for b.seg-on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--hairline), var(--shadow-sm); }
.typed { min-height: 46px; margin: 12px 0 8px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.att { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 1px solid var(--hairline); border-radius: 7px; font-size: 12.5px; color: var(--body);
  opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .5s var(--out), transform .6s var(--out); }
.att small { color: var(--muted); } .att.on { opacity: 1; transform: none; }
.bar { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline-soft); }
.bar .o { height: 28px; padding: 0 10px; display: inline-flex; align-items: center; border: 1px solid var(--hairline); border-radius: 6px; font-size: 12px; color: var(--body); white-space: nowrap; }
.bar .p { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: transform .25s var(--out), box-shadow .3s; }
.bar .p.press { transform: scale(.95); box-shadow: 0 0 0 5px rgba(10, 10, 10, .1); }
.agents { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.agent { display: grid; grid-template-columns: 20px 1fr; column-gap: 8px; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid var(--hairline); border-radius: 8px;
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--out), transform .6s var(--out), border-color .4s; }
.agent b { font-size: 13px; font-weight: 600; } .agent small { grid-column: 2; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.agent.on { opacity: 1; transform: none; } .agent.done { border-color: #d1fadf; }
.spin { grid-row: span 2; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--surface-strong); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.agent.done .spin, .tick { animation: none; border: 0; background: var(--ok); display: grid; place-items: center; }
.agent.done .spin::after, .tick::after { content: ""; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ the iPhone: a frame and a screen laid out as rows */
.iphone { --pw: 300px; width: var(--pw); aspect-ratio: 300 / 620; padding: calc(var(--pw) * .034); border-radius: calc(var(--pw) * .165); background: #0b0b0c; color: var(--ink); text-align: left;
  box-shadow: 0 0 0 1px #2c2c2e, inset 0 0 0 1px #3a3a3c, 0 60px 120px -30px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(255, 255, 255, .12); }
.ip-screen { position: relative; height: 100%; border-radius: calc(var(--pw) * .132); overflow: hidden; background: #fff;
  display: grid; grid-template-rows: 46px auto minmax(0, 1fr) auto 22px; }
.ip-island { position: absolute; left: 50%; top: 11px; width: 30%; height: 25px; transform: translateX(-50%); border-radius: 20px; background: #000; z-index: 6; }
.ip-status { display: flex; justify-content: space-between; align-items: center; padding: 6px 22px 0 28px; font: 600 13px var(--font); font-variant-numeric: tabular-nums; }
.ip-icons { display: flex; align-items: center; gap: 6px; }
.ip-sig { display: flex; align-items: flex-end; gap: 2px; height: 10px; } .ip-sig i { width: 3px; background: var(--ink); border-radius: 1px; }
.ip-sig i:nth-child(1) { height: 4px; } .ip-sig i:nth-child(2) { height: 6px; } .ip-sig i:nth-child(3) { height: 8px; } .ip-sig i:nth-child(4) { height: 10px; }
.ip-bat { width: 22px; height: 11px; border: 1.5px solid var(--ink); border-radius: 3px; padding: 1.5px; } .ip-bat i { display: block; height: 100%; width: 75%; background: var(--ink); border-radius: 1px; }
.ip-head { display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px; border-bottom: 1px solid var(--hairline); }
.ip-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.ip-head div { flex: 1; min-width: 0; } .ip-head b { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; }
.ip-head small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.ip-head small i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--ok); }
.ip-head .mark svg { --mark-bg: #0a0a0a; --mark-fg: #fff; }
.ip-feed { min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 12px; background: var(--page);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26px); mask-image: linear-gradient(to bottom, transparent 0, #000 26px); }
.ip-old { flex: none; padding: 11px 13px; border-radius: 14px; background: #fff; border: 1px solid var(--hairline); opacity: .7; }
.ip-old small { display: block; font-size: 11px; color: var(--muted); } .ip-old b { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.ip-slot { flex: none; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--out); }
.ip-slot.on { grid-template-rows: 1fr; }
.ip-slot > .ip-card { min-height: 0; overflow: hidden; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--out) .1s, transform .8s var(--out) .1s; }
.ip-slot.on > .ip-card { opacity: 1; transform: none; }
.ip-card { flex: none; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); }
.ip-from { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 11.5px; color: var(--muted); }
.ip-tag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 500; }
.ip-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.ip-title { font-size: 16.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.ip-text { margin-top: 5px; font-size: 13.5px; line-height: 1.6; color: var(--body); }
.ip-gloss { margin-top: 5px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.ip-listen { margin-top: 10px; display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border: 1px solid var(--line-strong); border-radius: 12px; }
.ip-listen .pb { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.ip-listen .pb svg { width: 13px; height: 13px; } .ip-listen b { font-size: 14px; }
.wv { flex: 1; display: flex; align-items: center; gap: 3px; height: 22px; }
.wv i { flex: 1; height: 30%; border-radius: 2px; background: var(--surface-strong); }
.ip-listen.play .wv i { background: var(--ink); animation: wave 1.1s var(--io) infinite alternate; }
.wv i:nth-child(3n) { height: 75%; } .wv i:nth-child(4n) { height: 50%; } .wv i:nth-child(5n) { height: 90%; }
.wv i:nth-child(2n) { animation-delay: -.3s; } .wv i:nth-child(3n) { animation-delay: -.6s; } .wv i:nth-child(5n) { animation-delay: -.9s; }
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.ip-moments { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ip-moments span { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 500; white-space: nowrap; }
.ip-moments i[data-i] svg { width: 14px; height: 14px; }
.ip-me { flex: none; align-self: flex-end; max-width: 80%; padding: 10px 13px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: #fff; font-size: 13.5px; line-height: 1.45; }
.ip-banner { position: absolute; left: 9px; right: 9px; top: 50px; z-index: 5; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .05);
  opacity: 0; transform: translateY(-130%); transition: transform .7s var(--out), opacity .4s; }
.ip-banner.on { opacity: 1; transform: none; }
.ip-banner .mark svg { --mark-bg: #0a0a0a; --mark-fg: #fff; width: 28px; height: 28px; }
.ip-banner div { min-width: 0; } .ip-banner b { display: block; font-size: 13px; } .ip-banner small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-talk { display: flex; align-items: center; gap: 8px; padding: 9px 12px 4px; border-top: 1px solid var(--hairline); }
.ip-mic { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.ip-field { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.ip-home { justify-self: center; align-self: center; width: 36%; height: 5px; border-radius: 3px; background: #0a0a0a; }
/* the hero's three scenes: a shared reel, a parcel question answered from mail, an order on Rakuten */
.win-main .hscene { display: none; } .win-main .hscene.on { display: block; animation: scene-in .5s var(--out); }
@keyframes scene-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.agents.two { grid-template-columns: 1fr 1fr; }
.ask-mock { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--hairline); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--out), transform .6s var(--out); }
.ask-mock.on { opacity: 1; transform: none; }
.ask-av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-card); font-weight: 600; color: var(--body); }
.ask-mock > div { flex: 1; min-width: 0; } .ask-mock small { display: block; font-size: 11.5px; color: var(--muted); }
.ask-mock b { display: block; font-size: 15px; font-weight: 600; } .ask-mock em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.ask-wv { display: flex; align-items: center; gap: 3px; height: 22px; } .ask-wv i { width: 3px; height: 100%; border-radius: 2px; background: var(--ink); transform: scaleY(.3); }
.ask-mock.on .ask-wv i { animation: wave 1s var(--io) infinite alternate; } .ask-wv i:nth-child(odd) { animation-delay: -.4s !important; } .ask-wv i:nth-child(3n) { animation-delay: -.7s !important; }
.mails { margin-top: 10px; display: grid; gap: 8px; }
.mail-mock { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--hairline);
  opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--out), transform .6s var(--out); }
.mail-mock.on { opacity: 1; transform: none; }
.mail-mock .m-ic { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--surface-card); }
.mail-mock > div { flex: 1; min-width: 0; } .mail-mock b { display: block; font-size: 12.5px; font-weight: 600; } .mail-mock small { display: block; font-size: 11.5px; color: var(--muted); }
.mail-mock.bad b { text-decoration: line-through; color: var(--muted); } .mail-mock.bad { border-color: #fecdca; }
.shop { margin-top: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--hairline); overflow: hidden; }
.shop-head { display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--hairline-soft); background: var(--page); }
.shop-head b { font-size: 13px; } .shop-head small { font-size: 11.5px; color: var(--muted); }
.prod { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--hairline-soft); opacity: 0; transition: opacity .4s var(--out), background .3s; }
.prod:last-child { border-bottom: 0; } .prod.on { opacity: 1; } .prod.over.on { opacity: .55; } .prod.best.on { background: var(--ok-soft); }
.pimg { width: 32px; height: 32px; flex: none; display: grid; place-items: center; } .pimg svg { width: 32px; height: 32px; }
.prod > div { flex: 1; min-width: 0; } .prod b { display: block; font-size: 12.5px; font-weight: 600; } .prod small { font-size: 11px; color: var(--muted); }
.prod em { font-style: normal; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.confirm { margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff;
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--out), transform .6s var(--out); }
.confirm.on { opacity: 1; transform: none; }
.confirm > div { flex: 1; min-width: 0; } .confirm small { display: block; font-size: 11px; color: var(--dk-body); } .confirm b { display: block; font-size: 13.5px; font-weight: 600; }
.confirm div span { font-size: 11.5px; color: var(--dk-body); }
.confirm .p { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600;
  transition: transform .2s var(--out), background .3s, color .3s; }
.confirm .p.press { transform: scale(.94); } .confirm .p.done { background: var(--ok); color: #fff; }
.confirm .p i[data-i] svg { width: 14px; height: 14px; }
.ip-slot > .ip-me { min-height: 0; overflow: hidden; justify-self: end; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--out) .1s, transform .8s var(--out) .1s; }
.ip-slot.on > .ip-me { opacity: 1; transform: none; }
.ip-tag.asst { background: var(--surface-card); color: var(--body); } .ip-tag.asst::before { background: var(--muted); }
.dl-head { display: flex; align-items: center; gap: 10px; }
.dl-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; } .dl-ic svg { width: 20px; height: 20px; }
.dl-head small { display: block; font-size: 11px; color: var(--muted); } .dl-head b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.dl-route { margin-top: 12px; }
.dl-track { position: relative; display: block; height: 6px; border-radius: 6px; background: var(--surface-strong); }
.dl-fill { position: absolute; inset: 0; border-radius: 6px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(.18); transition: transform 1.6s var(--io); }
.dl-truck { position: absolute; top: 50%; left: 18%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; display: grid; place-items: center; background: #fff;
  box-shadow: 0 0 0 1.5px var(--ink), var(--shadow-sm); color: var(--ink); transition: left 1.6s var(--io); }
.dl-truck svg { width: 15px; height: 15px; }
.dl-steps { display: flex; justify-content: space-between; margin-top: 9px; font-size: 10.5px; color: var(--muted); }
.dl-src { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--hairline-soft); font-size: 11px; color: var(--body); }
.dl-src i[data-i] svg { width: 13px; height: 13px; }
.od-row { display: flex; align-items: center; gap: 10px; } .od-row .pimg, .od-row .pimg svg { width: 38px; height: 38px; }
.od-row b { display: block; font-size: 15px; font-weight: 600; } .od-row small { font-size: 11.5px; color: var(--muted); }
.od-steps { display: flex; gap: 4px; margin-top: 10px; }
.od-steps span { flex: 1; padding-top: 7px; border-top: 3px solid var(--surface-strong); font-size: 10.5px; color: var(--muted); transition: border-color .6s, color .6s; }
.od-steps span.on { border-color: var(--ink); color: var(--ink); }
.scenes-nav { position: relative; z-index: 3; display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.scenes-nav button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--dk-line); background: rgba(24, 24, 27, .7);
  color: var(--dk-body); font: 500 13px var(--font); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.scenes-nav button i { width: 6px; height: 6px; border-radius: 50%; background: var(--dk-line-2); }
.scenes-nav button[aria-selected="true"] { color: #fff; border-color: var(--dk-line-2); background: #1f1f23; } .scenes-nav button[aria-selected="true"] i { background: var(--ok); }
.scenes-nav button:hover { color: #fff; }

.hero-phone { position: absolute; right: 0; top: 30px; transform: translateZ(60px); }
.float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; text-align: left;
  background: rgba(24, 24, 27, .82); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .1); color: #fff; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(14px) translateZ(90px); transition: opacity .6s var(--out), transform .8s var(--out); }
.float.on { opacity: 1; transform: translateZ(90px); }
.float b { display: block; font-size: 13.5px; font-weight: 500; } .float small { font-size: 12px; color: var(--dk-body); }
.float i[data-i] svg { width: 18px; height: 18px; color: var(--dk-body); }
.f1 { left: 36px; bottom: -6px; } .f2 { right: 232px; bottom: -26px; }

/* ------------------------------------------------------------------ the numbers */
.strip { border-bottom: 1px solid var(--hairline); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px 30px; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--hairline); }
.stat:first-child { padding-left: 0; }
.stat b { font: 800 clamp(34px, 3.6vw, 48px)/1 var(--display); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.stat > span { font-size: 14.5px; line-height: 1.45; color: var(--body); }
.stat a { margin-top: 6px; font-size: 12px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px; transition: color .2s; }
.stat a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ see it in action */
.demo { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 20px; align-items: start; }
.demo-left { min-width: 0; }
.chapters { margin-top: 8px; }
.chapter { min-height: 58vh; display: flex; flex-direction: column; justify-content: center; padding: 0 8px 0 22px; border-left: 1px solid var(--hairline);
  opacity: .32; cursor: pointer; transition: opacity .45s var(--out), border-color .45s; }
.chapter.on { opacity: 1; border-color: var(--ink); }
.ch-n { font: 800 20px/1 var(--display); letter-spacing: .02em; } .ch-n small { font-size: 13px; color: var(--muted); }
.chapter h3 { margin-top: 14px; font-size: 28px; letter-spacing: -.03em; line-height: 1.15; }
.chapter p { margin-top: 10px; max-width: 380px; font-size: 16.5px; line-height: 1.6; color: var(--body); }
.chapter:last-child { min-height: 64vh; }
.share { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--hairline); box-shadow: var(--shadow-md); }
.share-head { display: flex; align-items: center; gap: 10px; }
.share-head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.share-head div { flex: 1; } .share-head b { display: block; font-size: 15px; line-height: 1.2; } .share-head small { font-size: 12.5px; color: var(--muted); }
.share-body { margin-top: 14px; display: flex; gap: 14px; align-items: flex-start; }
.reel { position: relative; flex: none; width: 108px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px;
  background: radial-gradient(120% 70% at 30% 10%, #3f3f46, #0a0a0a 75%); }
.reel-kicker { position: absolute; left: 8px; right: 8px; top: 10px; font-size: 11px; font-weight: 600; line-height: 1.25; }
.reel-sms { position: absolute; left: 8px; right: 8px; top: 40px; padding: 7px 8px; border-radius: 10px 10px 10px 3px; background: #fff; color: var(--ink); font-size: 9px; line-height: 1.35; }
.reel-sms small { display: block; font-size: 8px; color: var(--muted); margin-bottom: 2px; }
.reel-play { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; }
.reel-play svg { width: 12px; height: 12px; }
.reel-time { align-self: flex-end; font-size: 10.5px; font-variant-numeric: tabular-nums; color: #e4e4e7; }
.share-text { flex: 1; min-width: 0; }
.share-text p { padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--ink); color: #fff; font-size: 14.5px; line-height: 1.5; }
.share-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.share-meta span { display: inline-flex; align-items: center; gap: 6px; } .share-meta i[data-i] svg { width: 13px; height: 13px; }
.stages { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--hairline-soft); display: grid; }
.stage-row { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 0 0 16px; opacity: .45; transition: opacity .4s var(--out); }
.stage-row.run, .stage-row.done { opacity: 1; }
.stage-row:last-child { padding-bottom: 0; }
.stage-row::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 1px; background: var(--hairline); transition: background .4s; }
.stage-row:last-child::before { display: none; }
.stage-row.done::before { background: var(--ink); }
.st-dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; transition: background .3s, box-shadow .3s; }
.stage-row.run .st-dot { box-shadow: inset 0 0 0 2px var(--surface-strong); }
.stage-row.run .st-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--ink); animation: spin .8s linear infinite; }
.stage-row.done .st-dot { background: var(--ink); box-shadow: none; }
.stage-row.done .st-dot::after { content: ""; position: static; width: 8px; height: 4.5px; border: 2px solid #fff; border-top: 0; border-right: 0; border-radius: 0; transform: translateY(-1px) rotate(-45deg); animation: none; }
.st-body { min-width: 0; } .st-body > b { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14.5px; line-height: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chips em { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--hairline); background: var(--page); font: 500 12px var(--font); font-style: normal; color: var(--body); white-space: nowrap; }
.chips em.bad { border-color: #fecdca; background: var(--urgent-soft); color: var(--urgent-ink); }
.st-line { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--body); } .st-line.soft { color: var(--muted); font-size: 12px; }
.st-eng { font-size: 11.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.wonder { font-weight: 600; color: var(--ink); }
.gate-ex { display: grid; gap: 5px; margin-top: 8px; }
.ge { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--hairline); font-size: 12px; line-height: 1.4; color: var(--ink); }
.ge small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.ge.ok { border-color: #a6f4c5; background: var(--ok-soft); } .ge.ok small { color: var(--ok-ink); }
.ge.held { border-color: #fecdca; background: var(--urgent-soft); } .ge.held small { color: var(--urgent-ink); }
.kbd { display: inline-block; padding: 0 6px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 12px; line-height: 20px; white-space: nowrap; }

.outs-panel { position: sticky; top: max(84px, calc(50vh - 330px)); display: flex; flex-direction: column; border-radius: 18px; background: #fff; border: 1px solid var(--hairline); box-shadow: var(--shadow-md); overflow: hidden; min-width: 0; }
.vtabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--hairline); overflow-x: auto; scrollbar-width: none; }
.vtabs::-webkit-scrollbar { display: none; }
.vtabs button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: none; font: 500 13.5px var(--font); color: var(--body); cursor: pointer; transition: background .2s, color .2s; }
.vtabs button:hover { background: var(--page); color: var(--ink); }
.vtabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.vtabs i[data-i] svg { width: 15px; height: 15px; }
.vstage { position: relative; padding: 22px; min-height: 600px; }
.vpanel { animation: vin .5s var(--out); }
@keyframes vin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.vp-head b { font-size: 18px; letter-spacing: -.015em; } .vp-head small { font-size: 12.5px; color: var(--muted); text-align: right; }

/* mind map: lines in SVG, nodes in HTML so the words stay crisp */
.mind { position: relative; aspect-ratio: 640 / 470; border-radius: 14px; background: radial-gradient(70% 70% at 50% 50%, #fff, var(--page)); border: 1px solid var(--hairline-soft); }
.mind > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mind .ln { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--io), opacity .25s; vector-effect: non-scaling-stroke; }
.mind .ln.leaf { stroke: var(--line-strong); stroke-width: 1.2; }
.mind.drawn .ln { stroke-dashoffset: 0; }
.mn { position: absolute; transform: translate(-50%, -50%) scale(.8); opacity: 0; transition: opacity .5s var(--out), transform .6s var(--out), border-color .2s, box-shadow .2s; text-align: center; line-height: 1.25; }
.mind.drawn .mn { opacity: 1; transform: translate(-50%, -50%); }
.mn.root { padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; max-width: 28%; box-shadow: 0 10px 30px -10px rgba(10, 10, 10, .45); }
.mn.br { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 11px; background: #fff; border: 1px solid var(--line-strong); font: 600 13.5px var(--font); color: var(--ink); cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-sm); }
.mn.br i[data-i] svg { width: 15px; height: 15px; }
.mn.br:hover, .mn.br.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, .08); }
.mn.lf { padding: 5px 9px; border-radius: 999px; background: var(--surface-card); font-size: 12px; color: var(--body); white-space: nowrap; }
.mind.focus .mn.lf:not(.hot), .mind.focus .mn.br:not(.on) { opacity: .35; }
.mind.focus .ln:not(.hot) { opacity: .2; }

/* slides */
.deck { display: flex; flex-direction: column; gap: 12px; }
.slide-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--page); border: 1px solid var(--hairline); }
.slide { position: absolute; inset: 0; padding: 7% 8%; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0; transform: translateX(30px); transition: opacity .5s var(--out), transform .7s var(--out); }
.slide.on { opacity: 1; transform: none; } .slide.out { opacity: 0; transform: translateX(-30px); }
.slide .s-no { font: 500 12.5px var(--font); color: var(--muted); }
.slide .s-ic { width: 64px; height: 64px; border-radius: 16px; background: #fff; border: 1px solid var(--hairline); display: grid; place-items: center; }
.slide .s-ic svg { width: 32px; height: 32px; }
.slide h4 { font: 600 clamp(24px, 3vw, 36px)/1.15 var(--font); letter-spacing: -.03em; }
.slide p { font-size: clamp(15px, 1.6vw, 19px); line-height: 1.5; color: var(--body); max-width: 520px; }
.deck-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dbtn { height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-strong); background: #fff; font: 500 13.5px var(--font); cursor: pointer; }
.dbtn.primary { background: var(--ink); border-color: var(--ink); color: #fff; } .dbtn:disabled { opacity: .35; cursor: default; }
.ddots { display: flex; gap: 6px; } .ddots i { width: 7px; height: 7px; border-radius: 4px; background: var(--surface-strong); transition: width .3s var(--out), background .3s; }
.ddots i.on { width: 20px; background: var(--ink); }

/* quiz */
.qz { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 0 auto; padding-top: 8px; }
.qz-q { padding: 22px; border-radius: 14px; background: var(--page); border: 1px solid var(--hairline); text-align: center; }
.qz-q small { font-size: 12.5px; color: var(--muted); } .qz-q b { display: block; margin-top: 6px; font-size: 21px; line-height: 1.35; letter-spacing: -.015em; }
.qz-c { min-height: 56px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #fff; font: 500 16px var(--font); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, opacity .2s; }
.qz-c:hover:not(:disabled) { border-color: var(--ink); }
.qz-c.right { border-color: var(--ok); background: var(--ok-soft); color: var(--ok-ink); } .qz-c.faded { opacity: .4; } .qz-c:disabled { cursor: default; }
.qz-x { padding: 14px 16px; border-radius: 12px; background: var(--page); font-size: 15px; line-height: 1.5; display: flex; align-items: center; justify-content: space-between; gap: 12px; animation: vin .4s var(--out); }
.qz-x b { color: var(--ok-ink); }
.qz-done { padding: 30px; text-align: center; border-radius: 14px; background: var(--page); }
.qz-done b { display: block; font-size: 22px; } .qz-done span { font-size: 14.5px; color: var(--body); }

/* animated video: scenes with a slow push-in, captions and a segmented progress bar */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0a0a0a; color: #fff; }
.scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .6s var(--out); }
.scene.on { opacity: 1; }
.scene .bgfx { position: absolute; inset: -6%; display: grid; place-items: center; transform: scale(1.02); }
.scene.on .bgfx { animation: push 4s linear forwards; }
@keyframes push { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.12) translateX(-1.5%); } }
.scene .bgfx svg { width: 44%; height: auto; opacity: .12; }
.scene .cap { position: relative; z-index: 1; text-align: center; padding: 0 10% 14%; }
.scene .cap small { display: block; font-size: 12.5px; color: var(--dk-body); opacity: 0; transform: translateY(8px); transition: opacity .5s .15s, transform .6s var(--out) .15s; }
.scene .cap b { display: block; margin-top: 6px; font: 600 clamp(22px, 3.2vw, 38px)/1.12 var(--font); letter-spacing: -.03em; opacity: 0; transform: translateY(14px); transition: opacity .6s .3s, transform .8s var(--out) .3s; }
.scene.on .cap small, .scene.on .cap b { opacity: 1; transform: none; }
.scene .hl { color: #32d583; } .scene .warn { color: #fec84b; }
.p-bars { position: absolute; left: 14px; right: 14px; top: 12px; z-index: 2; display: flex; gap: 4px; }
.p-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.p-bars i b { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.p-sub { position: absolute; left: 50%; bottom: 52px; z-index: 2; transform: translateX(-50%); width: max-content; max-width: 86%; padding: 6px 12px; border-radius: 8px; background: rgba(0, 0, 0, .6); font-size: 13.5px; line-height: 1.45; text-align: center; }
.p-ctl { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dk-body); font-variant-numeric: tabular-nums; }
.p-ctl button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.p-ctl button svg { width: 13px; height: 13px; }

/* picture */
.pic { border-radius: 14px; overflow: hidden; border: 1px solid var(--hairline); background: var(--page); }
.pic svg { width: 100%; height: auto; }
.pic figcaption { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-top: 1px solid var(--hairline); background: #fff; }
.pic figcaption b { font-size: 16px; } .pic figcaption span { font-size: 13px; color: var(--muted); }

/* on her phone, and what came back */
.phone-split { display: flex; gap: 24px; align-items: center; justify-content: center; }
.iphone.small { --pw: 262px; flex: none; box-shadow: 0 0 0 1px #2c2c2e, inset 0 0 0 1px #3a3a3c, 0 30px 60px -24px rgba(10, 10, 10, .45); }
.back { flex: 1; max-width: 320px; display: grid; gap: 10px; }
.back > small { font-size: 12.5px; color: var(--muted); }
.back-row { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--hairline); border-radius: 12px; font-size: 13.5px; }
.back-row em { font-style: normal; text-align: right; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.meterbar { height: 6px; border-radius: 6px; background: var(--surface-card); overflow: hidden; }
.meterbar b { display: block; height: 100%; width: var(--w); background: var(--ink); border-radius: 6px; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--out) .2s; }
.vpanel.live .meterbar b { transform: scaleX(1); }
.back-q { display: flex; gap: 12px; padding: 16px; border-radius: 12px; background: var(--ink); color: #fff; }
.back-q i[data-i] { width: 32px; height: 32px; border-radius: 8px; background: var(--dk-2); flex: none; }
.back-q small { font-size: 12px; color: var(--dk-body); } .back-q b { display: block; font-size: 15.5px; font-weight: 500; margin: 2px 0; } .back-q span { font-size: 12.5px; color: var(--dk-body); }

.models { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--page); }
.models-l { font-size: 13px; font-weight: 500; color: var(--body); margin-right: 6px; }
.mchip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 4px; border-radius: 8px; background: #fff; border: 1px solid var(--hairline); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.mchip code { padding: 2px 6px; border-radius: 5px; background: var(--surface-card); font-size: 11.5px; color: var(--ink); }
.mchip.key { border-color: var(--ink); color: var(--ink); } .mchip.key code { background: var(--ink); color: #fff; }

/* ------------------------------------------------------------------ children */
.kids { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: stretch; }
.kmodel { display: flex; flex-direction: column; padding: 28px; border-radius: 18px; background: var(--dk-1); border: 1px solid var(--dk-line); }
.km-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.km-label { font-size: 13px; color: var(--dk-body); }
.km-id { margin-top: 14px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; letter-spacing: -.02em; color: #fff; }
.km-facts { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.km-facts li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.55; color: var(--dk-body); }
.km-facts li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.km-link { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.km-link code { color: #fff; } .km-link small { font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--dk-body); text-decoration: underline; text-underline-offset: 3px; }
.km-link:hover small { color: #fff; }
.km-facts code { font-size: 13px; color: #fff; }
.km-results { margin-top: 18px; border: 1px solid var(--dk-line); border-radius: 12px; overflow: hidden; }
.kr-row { display: grid; grid-template-columns: 1fr 84px 84px; gap: 8px; align-items: center; padding: 9px 14px; font-size: 13.5px; color: var(--dk-body); font-variant-numeric: tabular-nums; }
.kr-row + .kr-row { border-top: 1px solid var(--dk-line); }
.kr-row span:not(:first-child), .kr-row b { text-align: right; } .kr-row b { color: #fff; font-weight: 600; }
.kr-head { font-size: 12px; color: var(--dk-body); background: var(--dk-2); }
.km-cats { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.km-cats span { height: 26px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 6px; border: 1px solid var(--dk-line-2); font-size: 12px; color: var(--dk-ink); white-space: nowrap; }
.scan { margin-top: auto; padding-top: 22px; display: grid; gap: 6px; }
.sc-line { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; background: var(--dk-2); border: 1px solid var(--dk-line); font-size: 13px; color: var(--dk-ink); transition: border-color .3s, background .3s; }
.sc-line span:not(.dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-line small { font-size: 11.5px; color: #fdb022; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.sc-line.scan-on { border-color: #fff; } .sc-line.pass .dot { background: var(--ok); }
.sc-line.held { border-color: rgba(220, 104, 3, .55); background: rgba(220, 104, 3, .1); } .sc-line.held .dot { background: var(--watch); } .sc-line.held small { opacity: 1; }
/* the child model, to try: tap a line and watch it checked */
.tester { margin-top: auto; padding-top: 22px; }
.ts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ts-head b { font-size: 14px; color: #fff; } .ts-head small { font-size: 12px; color: var(--dk-muted); }
.ts-picks { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ts-picks button { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--dk-line-2); background: transparent; color: var(--dk-body); font: 500 12.5px var(--font);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--out); }
.ts-picks button:hover { background: #fff; color: var(--ink); border-color: #fff; } .ts-picks button:active { transform: scale(.96); }
.tester .scan { margin-top: 12px; padding-top: 0; }
.sc-line em { display: block; font-style: normal; font-size: 11.5px; color: var(--dk-muted); }
.sc-line.new { animation: pop .45s var(--out) both; }
.sc-line.pass small { opacity: 1; color: #6ce9a6; }
.ts-note { margin-top: 10px; font-size: 11.5px; color: var(--dk-muted); }
.km-cats span { transition: background .3s, color .3s, border-color .3s; } .km-cats span.hit { background: var(--watch); border-color: var(--watch); color: #fff; }

/* a child's moments on Hana's screen: tap a moment to try it */
button.km { width: 100%; font: inherit; text-align: left; cursor: pointer; transition: border-color .25s, background .25s; }
button.km[aria-selected="true"] { border-color: #fff; background: #1f1f23; }
.kprev { flex: 1; display: flex; flex-direction: column; min-height: 360px; border-radius: 18px; background: #fff; color: var(--ink); overflow: hidden; }
.kp-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.kp-who { display: flex; align-items: center; gap: 8px; } .kp-who b { font-size: 13.5px; } .kp-who small { font-size: 11.5px; color: var(--muted); }
.kp-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-card); font-size: 13px; font-weight: 600; }
.kp-name { font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; }
.kp-body { flex: 1; display: flex; flex-direction: column; padding: 16px; animation: scene-in .4s var(--out); background: var(--page); }
.kp-hint { margin-top: 8px; text-align: center; font-size: 12px; color: var(--muted); }
/* story */
.ks-page { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--hairline); animation: scene-in .4s var(--out); }
.ks-pic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-card); } .ks-page b { font-size: 22px; } .ks-page p { font-size: 15px; line-height: 1.6; color: var(--body); } .ks-page small { font-size: 12px; color: var(--muted); }
.ks-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.ks-nav button { height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; font: 600 15px var(--font); cursor: pointer; }
.ks-nav button.next { background: var(--ink); border-color: var(--ink); color: #fff; }
.ks-dots { display: flex; gap: 6px; } .ks-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--surface-strong); transition: width .3s, background .3s; } .ks-dots i.on { width: 20px; background: var(--ink); }
/* quiz */
.kq { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.kq-stars { display: flex; gap: 6px; } .kq-stars i { color: var(--surface-strong); transition: color .3s, transform .4s var(--out); } .kq-stars i.on { color: var(--star); transform: scale(1.15); } .kq-stars i.on svg { fill: currentColor; }
.kq b { font-size: 19px; } .kq small { font-size: 12px; color: var(--muted); }
.kq-ch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 8px; }
.kq-ch button { height: 58px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fff; font: 600 18px var(--font); cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; }
.kq-ch button.right { border-color: var(--ok); background: var(--ok-soft); color: var(--ok-ink); } .kq-ch button.faded { opacity: .35; }
.kq-say { min-height: 20px; font-size: 13px; color: var(--body); } .kq-say span { font-weight: 600; margin-right: 6px; }
/* mind map */
.kmap { position: relative; flex: 1; min-height: 240px; }
.kmap svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; } .kmap path { fill: none; stroke: var(--line-strong); stroke-width: .6; vector-effect: non-scaling-stroke; }
.kmap-root { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; padding: 10px 14px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.kmap-b { position: absolute; z-index: 1; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.kmap-b b { font-size: 14px; } .kmap-b span { white-space: nowrap; max-height: 0; overflow: hidden; font-size: 12.5px; color: var(--body); transition: max-height .35s var(--out); }
.kmap-b.open { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, .08); } .kmap-b.open span { max-height: 40px; }
.kmap-b.b0 { left: 18%; top: 22%; } .kmap-b.b1 { left: 82%; top: 22%; } .kmap-b.b2 { left: 18%; top: 78%; } .kmap-b.b3 { left: 82%; top: 78%; }
/* video */
.kv { position: relative; flex: 1; min-height: 260px; border-radius: 14px; background: #0a0a0a; color: #fff; overflow: hidden; }
.kv-bars { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; gap: 4px; } .kv-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.kv-bars i b { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); } .kv-bars i.done b { transform: scaleX(1); } .kv-bars i.now b { animation: vbar 2.6s linear forwards; }
@keyframes vbar { to { transform: scaleX(1); } }
.kv-scene { position: absolute; inset: 0; display: grid; place-items: center; }
.kv-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; animation: scene-in .6s var(--out); }
.kv-card span { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); } .kv-card b { font-size: 22px; } .kv-card small { color: #d4d4d8; }
/* picture */
.kpic { margin: 0; flex: 1; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--hairline); }
.kpic img { width: 100%; flex: 1; min-height: 200px; object-fit: cover; } .kpic figcaption { padding: 10px 14px; font-size: 15px; font-weight: 600; } .kpic small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
/* ask Grandma */
.kr { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.kr-ask { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--ink); background: #fff; font: 600 14px/1.45 var(--font); text-align: left; cursor: pointer; transition: opacity .3s, background .2s; }
.kr-ask:hover { background: var(--page); } .kr-ask.sent { opacity: .45; cursor: default; } .kr-ask svg { flex: none; }
.kr-feed { display: flex; flex-direction: column; gap: 8px; }
.kr-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; animation: pop .45s var(--out) both; }
.kr-msg small { display: block; font-size: 11px; color: var(--muted); } .kr-msg em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.kr-msg.kid { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; } .kr-msg.kid small { color: var(--dk-body); }
.kr-msg.gran { align-self: flex-start; background: #fff; border: 1px solid var(--hairline); border-radius: 14px 14px 14px 4px; }
.kr-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--hairline); }
.kr-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-soft); animation: wave .8s ease-in-out infinite alternate; } .kr-typing i:nth-child(2) { animation-delay: -.25s; } .kr-typing i:nth-child(3) { animation-delay: -.5s; }
.kr-pic { align-self: flex-start; width: 60%; animation: pop .45s var(--out) both; } .kr-pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; } .kr-pic span { font-size: 11px; color: var(--muted); }
.kr-next { align-self: flex-start; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px dashed var(--line-strong); font-size: 12.5px; cursor: pointer; animation: pop .45s var(--out) both; }

.kside { display: flex; flex-direction: column; gap: 16px; }
.kmoments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.km { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--dk-1); border: 1px solid var(--dk-line); min-width: 0; }
.km i[data-i] { width: 32px; height: 32px; flex: none; border-radius: 9px; background: #fff; color: var(--ink); }
.km b { font-size: 14px; font-weight: 500; color: #fff; }
.relay { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; padding: 18px; border-radius: 18px; background: var(--dk-1); border: 1px solid var(--dk-line); }
.rl-chat { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rl-msg { max-width: 94%; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.rl-msg small { display: block; margin-bottom: 3px; font-size: 11.5px; color: var(--dk-muted); }
.rl-msg em { display: block; margin-top: 5px; font-style: normal; font-size: 12px; color: var(--dk-muted); }
.rl-msg.kid { align-self: flex-start; background: #27272a; border-radius: 14px 14px 14px 4px; }
.rl-msg.gran { align-self: flex-end; background: #fff; color: var(--ink); border-radius: 14px 14px 4px 14px; } .rl-msg.gran small, .rl-msg.gran em { color: var(--muted); }
.rl-next { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px dashed var(--dk-line-2); font-size: 12.5px; color: var(--dk-body); }
.rl-next i[data-i] svg { width: 13px; height: 13px; }
.rl-pic { display: flex; flex-direction: column; gap: 8px; }
.rl-pic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.rl-pic figcaption { font-size: 11.5px; line-height: 1.4; color: var(--dk-muted); }
.relay.in .rl-msg, .relay.in .rl-next { animation: pop .7s var(--out) both; } .relay.in .rl-msg.gran { animation-delay: .45s; } .relay.in .rl-next { animation-delay: .9s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ trends */
.trends { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.trends .sec-head { margin-bottom: 0; }
.ladder { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px; }
.ladder > span { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--hairline); font-size: 13.5px; color: var(--body); white-space: nowrap; }
.ladder > span.on { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.note { margin-top: 20px; display: flex; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--page); border: 1px solid var(--hairline); font-size: 14px; line-height: 1.55; color: var(--body); }
.note i[data-i] { margin-top: 2px; color: var(--muted); }
.trend-card { border-radius: 20px; padding: 24px; background: #fff; border: 1px solid var(--hairline); box-shadow: var(--shadow-lg), 0 50px 100px -50px rgba(10, 10, 10, .3); }
.tc-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.tc-head small { font-size: 12.5px; color: var(--muted); } .tc-head b { display: block; margin-top: 4px; font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.tc-badge { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid #fedf89; background: var(--watch-soft); font-size: 13px; color: var(--watch-ink); font-weight: 500; }
.tc-chart { margin-top: 18px; padding: 16px 16px 12px; border-radius: 14px; background: var(--page); border: 1px solid var(--hairline-soft); }
.tc-chart svg { width: 100%; height: auto; overflow: visible; }
.tc-chart .band { fill: rgba(7, 148, 85, .07); stroke: rgba(7, 148, 85, .25); stroke-dasharray: 3 4; }
.tc-chart .lbl { font: 500 11px var(--font); fill: var(--muted); }
.tc-chart .line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--io) .2s; }
.tc-chart .area { fill: url(#tc-fill); opacity: 0; transition: opacity .9s 1.2s; }
.tc-chart .split { stroke: var(--line-strong); stroke-dasharray: 3 4; }
.tc-chart .end { fill: var(--watch); stroke: #fff; stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: opacity .3s 1.7s, transform .6s var(--out) 1.7s; }
.trend-card.in .line { stroke-dashoffset: 0; } .trend-card.in .area { opacity: 1; } .trend-card.in .end { opacity: 1; transform: none; }
.tc-axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--muted); } .tc-axis b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-rows { margin-top: 12px; display: grid; }
.tc-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--hairline-soft); }
.tc-row b { display: block; font-size: 14px; font-weight: 500; } .tc-row small { font-size: 12px; color: var(--muted); }
.tc-row em { flex: none; font-style: normal; font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--watch-ink); font-weight: 500; }
.tc-foot { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------ apps: the Studio's apps browser */
.apps-track { position: relative; }
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
  .apps-track { height: calc(640px + 5 * 52vh); }
  .apps-track .browser { position: sticky; top: max(80px, calc(50vh - 310px)); }
}
.browser { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--hairline); box-shadow: var(--shadow-lg), 0 40px 80px -40px rgba(10, 10, 10, .25); }
.br-bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: #f4f4f5; border-bottom: 1px solid var(--hairline); }
.br-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4d4d8; }
.br-bar span { margin-left: 10px; font-size: 12.5px; color: var(--muted); }
.br-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 480px; }
.br-rail { padding: 10px; border-right: 1px solid var(--hairline); background: var(--page); display: grid; align-content: start; gap: 2px; }
.app-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; font: 500 14px var(--font); color: var(--body); text-align: left; white-space: nowrap; transition: background .2s, color .2s; }
.app-btn:hover { background: #fff; color: var(--ink); }
.app-btn[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--hairline), var(--shadow-sm); }
.app-btn .am { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: #fff; border: 1px solid var(--hairline); color: var(--ink); transition: background .25s, color .25s, border-color .25s; }
.app-btn[aria-selected="true"] .am { background: var(--ink); border-color: var(--ink); color: #fff; }
.app-btn .am svg { width: 15px; height: 15px; }
.app-btn .nm { flex: 1; min-width: 0; }
.app-btn .st { width: 7px; height: 7px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted-soft); }
.app-btn .st.live { background: var(--ok); box-shadow: none; }
.br-main { display: flex; flex-direction: column; min-width: 0; }
.br-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hairline-soft); }
.br-mark { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; } .br-mark svg { width: 20px; height: 20px; }
.br-head div { flex: 1; min-width: 0; } .br-head b { display: block; font-size: 16px; letter-spacing: -.01em; } .br-head small { font-size: 13px; color: var(--muted); }
.br-list { flex: 1; padding: 10px 12px; display: grid; align-content: start; gap: 2px; }
.br-list > * { animation: vin .45s var(--out) both; }
.br-list > *:nth-child(2) { animation-delay: .04s; } .br-list > *:nth-child(3) { animation-delay: .08s; } .br-list > *:nth-child(4) { animation-delay: .12s; } .br-list > *:nth-child(5) { animation-delay: .16s; }
.row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; transition: background .2s; }
.row:hover { background: var(--page); }
.row .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-card); font-size: 12.5px; font-weight: 600; color: var(--body); }
.row .tx { min-width: 0; } .row .tx b { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; min-width: 0; }
.row .tx b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .tx p { font-size: 13px; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .tx small { font-size: 12px; color: var(--muted); }
.row .rt { display: flex; align-items: center; gap: 8px; }
.row .rt time { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vb { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 500; white-space: nowrap; flex: none; background: var(--surface-card); color: var(--body); }
.vb.ok { background: var(--ok-soft); color: var(--ok-ink); } .vb.bad { background: var(--urgent-soft); color: var(--urgent-ink); }
.row.blocked .tx b span:first-child { text-decoration: line-through; color: var(--muted); }
.share-btn { height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-strong); background: #fff; font: 500 12.5px var(--font); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.share-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.share-btn.done { background: var(--ok-soft); border-color: #a6f4c5; color: var(--ok-ink); }
.share-btn:disabled { opacity: .5; cursor: default; }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 6px 8px; }
.photo { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: var(--surface-card); transition: box-shadow .2s; }
.photo svg { width: 100%; height: 100%; }
.photo .ck { position: absolute; right: 7px; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1.5px rgba(10, 10, 10, .25); display: grid; place-items: center; transition: background .2s; }
.photo.on .ck { background: var(--ink); box-shadow: none; } .photo.on .ck::after { content: ""; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.photo.on { box-shadow: 0 0 0 2px var(--ink); }
.photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .38)); pointer-events: none; }
.photo small { position: absolute; z-index: 1; left: 8px; bottom: 6px; font-size: 11px; font-weight: 500; color: #fff; }
.album-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 4px; font-size: 13px; color: var(--body); }
.row.meet { grid-template-columns: 46px minmax(0, 1fr) auto; }
.meet .day { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--hairline); display: grid; place-content: center; text-align: center; line-height: 1.1; }
.meet .day small { font-size: 10.5px; color: var(--muted); } .meet .day b { font-size: 17px; font-weight: 600; }
.ppl { display: inline-flex; margin-left: 6px; vertical-align: middle; } .ppl i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-left: -5px; background: var(--surface-strong); font: 600 8.5px/14px var(--font); font-style: normal; text-align: center; color: var(--body); }
.empty { margin: auto; padding: 40px 20px; text-align: center; max-width: 360px; }
.empty .em { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; background: var(--surface-card); display: grid; place-items: center; color: var(--ink); } .empty .em svg { width: 24px; height: 24px; }
.empty b { display: block; font-size: 16px; } .empty p { margin-top: 6px; font-size: 14px; color: var(--body); }
.empty .share-btn { margin-top: 14px; }
/* the apps, drawn the way they look on the web: their layout, our greys */
.br-list:has(> .app) { padding: 0; display: block; }
.app { height: 430px; display: grid; min-width: 0; font-size: 13px; color: var(--ink); text-align: left; }
.app .grow { flex: 1; }
.share-btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; } .share-btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.chk { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 500; white-space: nowrap; background: var(--surface-card); color: var(--body); }
.chk.ok { background: var(--ok-soft); color: var(--ok-ink); } .chk.bad { background: var(--urgent-soft); color: var(--urgent-ink); }
.cb { flex: none; width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }

/* Gmail */
.gm { grid-template-columns: 178px minmax(0, 1fr); }
.gm-side { padding: 12px 10px; display: flex; flex-direction: column; gap: 1px; border-right: 1px solid var(--hairline-soft); }
.gm-compose { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; height: 44px; padding: 0 18px 0 14px; margin-bottom: 10px; border-radius: 14px;
  background: var(--surface-card); font-weight: 500; font-size: 13.5px; box-shadow: var(--shadow-sm); }
.gm-side a { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 10px 0 12px; border-radius: 0 15px 15px 0; margin-left: -10px; color: var(--body); }
.gm-side a span { flex: 1; } .gm-side a b { font-size: 11.5px; font-weight: 600; }
.gm-side a.on { background: var(--surface-strong); color: var(--ink); font-weight: 600; }
.gm-lbl { margin: 12px 0 4px 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.gm-side .sq { width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--muted-soft); flex: none; margin: 0 2px; }
.gm-main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.gm-search { display: flex; align-items: center; gap: 10px; height: 38px; margin: 10px 14px 6px; padding: 0 14px; border-radius: 19px; background: var(--surface-card); color: var(--muted); }
.gm-tools { display: flex; align-items: center; gap: 16px; padding: 4px 18px; color: var(--muted); } .gm-tools small { font-size: 11.5px; }
.gm-tabs { display: flex; border-bottom: 1px solid var(--hairline-soft); }
.gm-tabs span { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; font-size: 12.5px; color: var(--body); border-bottom: 2px solid transparent; }
.gm-tabs span.on { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.gm-tabs em { font-style: normal; margin-left: auto; padding: 1px 6px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 600; }
.gm-rows { overflow: hidden; }
.gm-row { position: relative; display: grid; grid-template-columns: 14px 16px 128px minmax(0, 1fr) auto 64px; align-items: center; gap: 10px; height: 44px; padding: 0 16px;
  border-bottom: 1px solid var(--hairline-soft); background: var(--page); color: var(--body); }
.gm-row.unread { background: #fff; color: var(--ink); } .gm-row.unread .from, .gm-row.unread .msg b { font-weight: 700; }
.gm-row:hover { box-shadow: inset 1px 0 0 var(--hairline), inset -1px 0 0 var(--hairline), 0 1px 3px rgba(10, 10, 10, .12); z-index: 1; }
.gm-row .star { color: var(--muted-soft); display: grid; }
.gm-row .from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-row .msg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-row .msg b { font-weight: 500; } .gm-row .msg span { color: var(--muted); }
.gm-row .lb { font-style: normal; margin-right: 6px; padding: 1px 5px; border-radius: 3px; background: var(--surface-card); font-size: 10.5px; color: var(--body); }
.gm-row time { text-align: right; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.gm-row.unread time { font-weight: 700; }
.gm-row .share-btn { position: absolute; right: 12px; opacity: 0; transition: opacity .15s; }
.gm-row:hover .share-btn, .gm-row:focus-within .share-btn, .gm-row .share-btn.done { opacity: 1; }
.gm-row:hover time, .gm-row:focus-within time, .gm-row:has(.done) time { visibility: hidden; }
.gm-row.bad .from { text-decoration: line-through; color: var(--muted); }
.gm-row.bad .chk { box-shadow: inset 0 0 0 1px #fda29b; }

/* Slack */
.sk { grid-template-columns: 190px minmax(0, 1fr); }
.sk-side { padding: 0 8px 10px; display: flex; flex-direction: column; gap: 1px; background: #18181b; color: #c4c4cc; }
.sk-ws { display: flex; align-items: center; gap: 8px; height: 48px; margin: 0 -8px 6px; padding: 0 14px; border-bottom: 1px solid #2c2c31; color: #fff; }
.sk-ws b { flex: 1; font-size: 14px; } .sk-ws-ic { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: #fff; color: var(--ink); font-weight: 700; font-size: 12px; }
.sk-side a { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 6px; font-size: 13px; }
.sk-side a i { font-style: normal; width: 14px; text-align: center; color: #8b8b94; }
.sk-side a.on { background: #f4f4f5; color: var(--ink); font-weight: 600; } .sk-side a.on i { color: var(--ink); }
.sk-side a small { margin-left: auto; padding: 0 4px; border-radius: 3px; background: #2c2c31; font-size: 9.5px; font-weight: 700; color: #c4c4cc; }
.sk-sec { margin: 12px 0 2px 10px; font-size: 12px; font-weight: 600; color: #8b8b94; }
.sk .pr { width: 8px !important; height: 8px; border-radius: 50%; margin: 0 3px; box-shadow: inset 0 0 0 1.5px #8b8b94; }
.sk .pr.on { background: var(--ok); box-shadow: none; }
.sk-main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.sk-head { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--hairline); }
.sk-head b { font-size: 15px; } .sk-head b i { font-style: normal; margin-right: 2px; color: var(--muted); }
.sk-mem { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--hairline); font-size: 12px; color: var(--body); }
.sk-head small { color: var(--muted); font-size: 12px; }
.sk-feed { flex: 1; overflow: hidden; padding: 4px 0; display: flex; flex-direction: column; justify-content: flex-end; }  /* scrolled to the newest, like Slack */
.sk-day { position: relative; text-align: center; margin: 6px 0 2px; } .sk-day::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--hairline); }
.sk-day span { position: relative; padding: 2px 12px; border: 1px solid var(--hairline); border-radius: 12px; background: #fff; font-size: 11.5px; font-weight: 600; }
.sk-msg { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 7px 16px; }
.sk-msg:hover { background: var(--page); }
.sk-msg .av { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-strong); font-weight: 700; color: var(--body); }
.sk-msg .av.bot { background: var(--ink); } .sk-msg .av.bot svg { width: 22px; height: 22px; --mark-bg: #0a0a0a; --mark-fg: #fff; }
.sk-msg .bd b { font-size: 13.5px; } .sk-msg .bd time { margin-left: 8px; font-size: 11.5px; color: var(--muted); }
.sk-msg .bd em { font-style: normal; margin-left: 6px; padding: 0 4px; border-radius: 3px; background: var(--surface-card); font-size: 9.5px; font-weight: 700; color: var(--muted); }
.sk-msg .bd p { margin-top: 2px; line-height: 1.45; }
.sk-msg .only { display: block; font-size: 11.5px; color: var(--muted); }
.sk-re { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.sk-re span { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--surface-card); font-size: 11.5px; color: var(--body); }
.sk-re a { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--ink); }
.sk-msg > .share-btn { position: absolute; right: 14px; top: 8px; opacity: 0; transition: opacity .15s; }
.sk-msg:hover > .share-btn, .sk-msg > .share-btn.done { opacity: 1; }
.sk-card { margin-top: 6px; padding: 10px 12px; border-left: 3px solid var(--ink); border-radius: 4px; background: var(--page); }
.sk-card p { line-height: 1.4; } .sk-card > span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.sk-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sk-box { display: flex; align-items: center; gap: 10px; height: 40px; margin: 6px 16px 12px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--muted); }

.gm-who { font-size: 11.5px; color: var(--muted); }
.sk-status { display: flex; align-items: center; gap: 8px; margin: 0 2px 6px; padding: 8px; border-radius: 8px; background: #232328; }
.sk-status .av { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: #3f3f46; color: #fff; font-weight: 700; font-size: 12px; }
.sk-status b { display: block; font-size: 12.5px; color: #fff; } .sk-status small { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #c4c4cc; }
.pr.busy { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--watch); box-shadow: none; }
.zm-busy { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; background: var(--watch-soft); color: var(--watch-ink); font-size: 12px; font-weight: 500; }
.zm-row.work .zm-info b::after { content: "Work"; margin-left: 8px; padding: 1px 6px; border-radius: 4px; background: var(--surface-card); font-size: 10.5px; font-weight: 500; color: var(--muted); vertical-align: 1px; }

/* Google Photos */
.gp { grid-template-rows: auto minmax(0, 1fr); }
.gp-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hairline-soft); }
.gp-search { flex: 1; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--surface-card); color: var(--muted); }
.gp-sel { font-size: 12.5px; color: var(--body); white-space: nowrap; }
.gp-feed { overflow: hidden; padding: 6px 16px 12px; }
.gp-day b { display: block; margin: 8px 0 6px; font-size: 13px; font-weight: 500; }
.gp-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.gp .photo { flex: none; width: 148px; height: 148px; aspect-ratio: auto; border-radius: 4px; box-shadow: none; }
.gp .photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s var(--out); }
.gp .photo::after { inset: 0 0 auto; height: 40%; background: linear-gradient(rgba(0, 0, 0, .35), transparent); opacity: 0; transition: opacity .2s; }
.gp .photo:hover::after, .gp .photo.on::after { opacity: 1; }
.gp .photo .ck { left: 8px; right: auto; top: 8px; z-index: 1; width: 20px; height: 20px; background: rgba(255, 255, 255, .25); box-shadow: inset 0 0 0 2px #fff; color: transparent; opacity: 0; }
.gp .photo:hover .ck, .gp .photo.on .ck { opacity: 1; }
.gp .photo.on .ck { background: #fff; box-shadow: none; color: var(--ink); } .gp .photo.on .ck::after { display: none; }
.gp .photo.on img { transform: scale(.88); border-radius: 4px; }
.gp .photo.on { background: var(--surface-strong); }

/* Zoom */
.zm { grid-template-rows: auto minmax(0, 1fr) auto; }
.zm-top { display: flex; align-items: center; gap: 18px; height: 52px; padding: 0 18px; border-bottom: 1px solid var(--hairline-soft); }
.zm-top > b { font-size: 15px; }
.zm-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--surface-card); }
.zm-tabs span { padding: 5px 10px; border-radius: 6px; font-size: 12.5px; color: var(--body); } .zm-tabs span.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: var(--shadow-sm); }
.zm-new { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; }
.zm-feed { overflow: hidden; padding: 4px 0; }
.zm-day { padding: 10px 18px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.zm-row { display: flex; align-items: center; gap: 16px; padding: 10px 18px; border-bottom: 1px solid var(--hairline-soft); }
.zm-row:hover { background: var(--page); }
.zm-time { width: 76px; flex: none; display: flex; flex-direction: column; } .zm-time b { font-size: 13px; font-weight: 600; } .zm-time small { font-size: 11.5px; color: var(--muted); }
.zm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; } .zm-info b { font-size: 13.5px; font-weight: 500; }
.zm-info small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zm-start { flex: none; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 7px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 500; }
.zm-note { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--hairline-soft); font-size: 12px; color: var(--muted); }

/* Notion */
.nt { grid-template-columns: 200px minmax(0, 1fr); }
.nt-side { padding: 10px 8px; display: flex; flex-direction: column; gap: 1px; background: var(--page); border-right: 1px solid var(--hairline-soft); }
.nt-ws { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px; margin-bottom: 8px; } .nt-ws span { width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; } .nt-ws b { font-size: 13.5px; }
.nt-sec { margin: 6px 8px 4px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.nt-side a { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 5px; color: var(--body); }
.nt-side a.on { background: var(--surface-strong); color: var(--ink); font-weight: 500; }
.nt-main { padding: 0 28px; overflow: hidden; }
.nt-bar { display: flex; align-items: center; gap: 12px; height: 46px; margin: 0 -12px; color: var(--muted); }
.nt-main h4 { margin: 18px 0 14px; font: 700 26px/1.2 var(--font); letter-spacing: -.02em; }
.nt-props { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--hairline-soft); }
.nt-props span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); } .nt-props b { font-weight: 400; }
.nt-main ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }

.app.empty { height: 430px; display: grid; place-content: center; justify-items: center; text-align: center; padding: 20px; max-width: none; margin: 0; }
.app.empty p { max-width: 340px; }

.br-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--hairline-soft); font-size: 12.5px; color: var(--muted); }
.br-progress { width: 120px; height: 2px; border-radius: 2px; background: var(--hairline); overflow: hidden; flex: none; }
.br-progress b { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* ------------------------------------------------------------------ compare (dark) */
.cmp-scroll { overflow-x: auto; border-radius: 20px; border: 1px solid var(--dk-line); background: var(--dk-1); }
.cmp { width: 100%; min-width: 940px; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--dk-line); }
.cmp thead th { font-weight: 500; font-size: 13px; line-height: 1.35; color: var(--dk-body); vertical-align: bottom; }
.cmp thead th:not(:first-child):not(.us) { width: 12%; }
.cmp thead th:first-child, .cmp td:first-child { text-align: left; padding-left: 24px; width: 30%; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:first-child { color: var(--dk-ink); font-weight: 500; }
.cmp td:first-child small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--dk-muted); font-weight: 400; }
.cmp .us { color: #fff; font-weight: 600; background: rgba(255, 255, 255, .05); }
.cmp th.us .mark { vertical-align: -4px; margin-right: 8px; }
.cmp tbody tr { transition: background .2s; } .cmp tbody tr:hover { background: rgba(255, 255, 255, .025); }
.cmp th:first-child, .cmp td:first-child { position: sticky; left: 0; z-index: 1; background: var(--dk-1); }
.v { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.v.y { background: #fff; } .v.y::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.v.p { box-shadow: inset 0 0 0 1.5px var(--dk-line-2); background: linear-gradient(90deg, var(--dk-body) 50%, transparent 50%); background-clip: content-box; padding: 6px; }
.v.n::after { content: ""; width: 10px; height: 1.5px; background: var(--dk-line-2); }
.js .cmp tbody .v { transform: scale(0); transition: transform .5s var(--out); transition-delay: var(--d, 0s); }
.cmp.in tbody .v { transform: none; }
.cmp-key { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 16px; font-size: 13px; color: var(--dk-body); }
.cmp-key span { display: inline-flex; align-items: center; gap: 8px; }
.cmp-key i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; } .cmp-key i.y { background: #fff; } .cmp-key i.p { box-shadow: inset 0 0 0 1.5px var(--dk-body); background: linear-gradient(90deg, var(--dk-body) 50%, transparent 50%); } .cmp-key i.n { box-shadow: inset 0 0 0 1.5px var(--dk-line-2); }
.cmp-key small { margin-left: auto; color: var(--dk-muted); font-size: 12.5px; }

/* ------------------------------------------------------------------ roadmap */
.road { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 30px; }
.road-line { position: absolute; left: 14px; right: 14px; top: 0; height: 2px; border-radius: 2px; background: var(--hairline); overflow: hidden; }
.road-line b { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--ok), var(--ink) 40%, var(--muted-soft)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.phase { position: relative; padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--hairline); }
.phase::before { content: ""; position: absolute; left: 24px; top: -36px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.road > .phase:nth-child(2)::before { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.road > .phase:last-child::before { box-shadow: inset 0 0 0 2px var(--muted-soft); }
.ph-h { display: flex; align-items: center; gap: 10px; } .ph-h b { font-size: 18px; letter-spacing: -.015em; } .ph-h small { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.phase ul { margin: 14px 0 0; padding: 0; list-style: none; }
.phase li { padding: 9px 0; border-top: 1px solid var(--hairline-soft); font-size: 14px; color: var(--body); }
.road > .phase:nth-child(2) li { color: var(--ink); }

/* ------------------------------------------------------------------ cta */
.cta { padding: 150px 0; text-align: center; }
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.cta .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta h2 { margin-top: 28px; font-size: clamp(42px, 6vw, 80px); letter-spacing: -.05em; }
.cta .mark svg { box-shadow: 0 0 80px rgba(255, 255, 255, .25); border-radius: 14px; }

/* ------------------------------------------------------------------ other products */
/* other products from Role Enterprise: one line in the footer, under "Powered by Role Enterprise" */
.fp { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.fp-title { font-size: 12.5px; color: var(--dk-muted); }
.fp-link { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 8px; border-radius: 10px; border: 1px solid var(--dk-line);
  background: var(--dk-1); transition: border-color .25s, background .25s; }
.fp-link:hover { border-color: var(--dk-line-2); background: #141417; }
.fp-logo { display: inline-grid; border-radius: 6px; box-shadow: 0 0 0 1px var(--dk-line-2); } .fp-logo svg { width: 24px; height: 24px; }
.fp-link b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.fp-visit { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--dk-line); font-size: 12.5px; color: var(--dk-body); }
.fp-visit i[data-i] { transition: transform .3s var(--out); } .fp-visit i[data-i] svg { width: 12px; height: 12px; }
.fp-link:hover .fp-visit { color: #fff; } .fp-link:hover .fp-visit i[data-i] { transform: translateX(2px); }

/* the dot-matrix accent, used sparingly: section numbers and the big numbers */
.ey-n { font: 800 14px/1 var(--display); letter-spacing: .04em; color: var(--ink); }
.dark .ey-n { color: #fff; }

.powered { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--dk-line);
  font-size: 12.5px; color: var(--dk-muted); }
.powered b { font-weight: 600; color: #fff; }

.foot { background: var(--dk); color: var(--dk-body); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; padding: 56px 0 40px; align-items: start; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 72px; }
.foot-cols b { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: #fff; }
.foot-cols a { display: block; padding: 5px 0; font-size: 14px; color: var(--dk-body); transition: color .2s; }
.foot-cols a:hover { color: #fff; }
.foot-bottom { display: flex; gap: 32px; align-items: baseline; justify-content: space-between; padding: 22px 0 30px; border-top: 1px solid var(--dk-line); font-size: 13px; }
.foot-bottom span { color: #e4e4e7; white-space: nowrap; }
.foot-bottom p { max-width: 720px; text-align: right; font-size: 12.5px; line-height: 1.6; color: var(--dk-muted); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .demo { grid-template-columns: minmax(0, 1fr); } .outs-panel { position: static; } .chapters { display: none; }
}
@media (max-width: 1100px) {
  .nav-links { display: none; } .nav-in { justify-content: space-between; }
  .win { right: 90px; } .win-main { padding-right: 130px; } .f2 { right: 160px; }
  .trends, .kids { grid-template-columns: minmax(0, 1fr); }
  .road { grid-template-columns: 1fr 1fr; } .road > .phase:last-child { grid-column: span 2; } 
  .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .foot-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .stage { height: 600px; } .win { right: 70px; height: 560px; } .win-main { padding-right: 100px; }
  .win-top .chip:not(.on), .win-top .meter { display: none; }
  .hero-phone { --pw: 260px; top: 50px; }
  .agents { grid-template-columns: 1fr; } .agent:nth-child(n+3) { display: none; }
  .bar .o:nth-child(n+3) { display: none; }
  .br-body { grid-template-columns: 1fr; } .br-rail { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .app-btn { height: 40px; } .photos { grid-template-columns: repeat(3, 1fr); }
  .relay { grid-template-columns: 1fr; } .rl-pic { flex-direction: row; align-items: center; } .rl-pic img { width: 120px; flex: none; }
  .phone-split { flex-direction: column; } .back { max-width: none; width: 100%; }
  .vstage { min-height: 0; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 88px 0; }
  .hero { padding: 108px 0 80px; } .pill-sep, .pill-b { display: none; } .hero .lead { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .stage { height: 556px; transform: none !important; } .win, .float { display: none; } .hero-phone { --pw: 268px; left: 50%; right: auto; top: 0; transform: translateX(-50%); }
  .stat { padding: 22px 14px 20px; } .stat:nth-child(odd) { padding-left: 0; border-left: 0; } .stat:nth-child(even) { border-left: 1px solid var(--hairline); }
  .kmoments { grid-template-columns: 1fr 1fr; }
  .road { grid-template-columns: 1fr; } .road > .phase:last-child { grid-column: auto; }
  .road-line, .phase::before { display: none; } .road { padding-top: 0; }
  .share-body { flex-direction: column; } .reel { width: 132px; }
  .st-eng { display: none; }
  .ge { grid-template-columns: 7px minmax(0, 1fr); } .ge small { grid-column: 2; }
  .vstage { padding: 16px; }
  .mn.br { font-size: 11.5px; padding: 6px 8px; } .mn.br i[data-i] { display: none; } .mn.lf { display: none; } .mn.root { font-size: 12.5px; padding: 9px 11px; max-width: 34%; }
  .row { grid-template-columns: 34px minmax(0, 1fr); } .row .rt { grid-column: 2; justify-content: space-between; }
  .row.meet { grid-template-columns: 46px minmax(0, 1fr); }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .tc-head { flex-direction: column; } .tc-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .foot-cols { grid-template-columns: repeat(3, auto); gap: 36px; justify-content: start; } .foot-bottom { flex-direction: column; gap: 10px; } .foot-bottom p { text-align: left; }
  .cmp-key small { margin-left: 0; }
  .gm, .sk, .nt { grid-template-columns: 1fr; } .gm-side, .sk-side, .nt-side { display: none; } .gm-row { grid-template-columns: minmax(0, 1fr) auto; height: auto; padding: 10px 14px; row-gap: 2px; } .gm-row .cb, .gm-row .star { display: none; } .gm-row .msg { grid-column: 1 / -1; grid-row: 2; } .gm-row .chk { grid-row: 3; justify-self: start; } .gm-row time { grid-column: 2; grid-row: 1; } .gm-row .share-btn { position: static; opacity: 1; grid-column: 2; grid-row: 3; } .gm-tabs span:not(.on) { display: none; } .gp .photo { width: calc((100% - 8px) / 3); height: auto; aspect-ratio: 1; } .zm-tabs, .zm-busy { display: none; } .zm-row { flex-wrap: wrap; } .app { height: auto; min-height: 380px; }
  .br-head div { flex-basis: calc(100% - 60px); } .br-head .tag { margin-left: 52px; } .br-foot { flex-direction: column; align-items: flex-start; }
  .cmp th:first-child, .cmp td:first-child { min-width: 220px; }
  .p-sub { bottom: 48px; font-size: 12px; } .scene .cap small { display: none; }
}

/* reduced motion: final states, no loops, no tilt */
@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; }
  .stage { transform: none !important; }
}

/* the order scene is the fullest: tighter rows so the final confirmation stays inside the window */
.hscene[data-scene="order"] .ask-mock, .hscene[data-scene="parcel"] .ask-mock { margin-top: 12px; padding: 9px 12px; }
.hscene .prod { padding: 6px 12px; } .hscene .pimg, .hscene .pimg svg { width: 28px; height: 28px; }
.hscene .shop { margin-top: 8px; } .hscene .confirm { margin-top: 8px; padding: 10px 12px; }

/* dark to light and back: the dark section's edge takes the neighbour's colour and melts into black (home.js adds these) */
.fade { position: absolute; left: 0; right: 0; height: 180px; z-index: 0; pointer-events: none; }
.fade-top { top: 0; background: linear-gradient(to bottom, var(--edge) 0%, color-mix(in srgb, var(--edge) 55%, var(--dk)) 22%, color-mix(in srgb, var(--edge) 18%, var(--dk)) 52%, var(--dk) 100%); }
.fade-bottom { bottom: 0; background: linear-gradient(to top, var(--edge) 0%, color-mix(in srgb, var(--edge) 55%, var(--dk)) 22%, color-mix(in srgb, var(--edge) 18%, var(--dk)) 52%, var(--dk) 100%); }
.sec.dark > .wrap, .hero > .wrap { position: relative; z-index: 1; }
.hero .fade-bottom { z-index: 1; }

/* Rakuten: the store's mark and real product shots in the order scene */
.rk-mark { width: 20px; height: 20px; flex: none; border-radius: 5px; display: grid; place-items: center; background: var(--ink); color: #fff; align-self: center; }
.rk-mark svg { width: 13px; height: 13px; }
.shop-head { align-items: center; }
.pimg img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--hairline-soft); }
.hscene .pimg { width: 34px; height: 34px; } .od-row .pimg { width: 44px; height: 44px; }

/* the dot matrix behind every section (home.js draws it): dots sit under the content, cards stay solid */
.sec-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.sec, .strip, .foot { position: relative; isolation: isolate; }
.sec > .wrap, .strip > .wrap, .foot > .wrap, .sec > .grain { position: relative; z-index: 1; }
.sec > .grain { position: absolute; }
