/* Twyn AI marketing site. Brand tokens mirror the app (design/intro/board.html, Direction A "Deep Blue"). */

:root {
  --b1: #3D96FF; --b2: #1B57FF; --b3: #0A2BCF; --signal: #2F62FF;
  --ink: #111318; --ink-2: #2a2f3a; --muted: #5d6475; --faint: #9aa1b2;
  --line: #e4e8f1; --soft: #eef2fa; --bg: #f5f7fc; --surface: #fff; --tint: #eaf0ff;
  --red: #E5484D; --green: #1FAF5A;
  --grad: linear-gradient(150deg, #3D96FF 0%, #1B57FF 46%, #0A2BCF 100%);
  --shadow-1: 0 1px 2px rgba(17,19,24,.06), 0 1px 1px rgba(17,19,24,.04);
  --shadow-2: 0 10px 30px -12px rgba(10,43,207,.25), 0 2px 6px -2px rgba(17,19,24,.06);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px; --gutter: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--b2); text-underline-offset: 3px; }
a:hover { color: var(--b3); }
:focus-visible { outline: 2px solid var(--b2); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
h1, h2, h3, h4 { letter-spacing: -.025em; line-height: 1.08; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--b2); }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 999px; font: 700 15px/1 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(27,87,255,.8); }
.btn-primary:hover { color: #fff; filter: brightness(1.06); }
.btn svg { width: 18px; height: 18px; flex: none; }
.play-badge { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px 0 18px; border-radius: 16px; background: #0b0d12; color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); transition: transform .15s, box-shadow .15s; }
.play-badge:hover { color: #fff; transform: translateY(-1px); }
.play-badge svg { width: 24px; height: 24px; }
.play-badge small { display: block; font: 600 10px/1.1 var(--font); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.play-badge b { display: block; font: 700 19px/1.15 var(--font); letter-spacing: -.01em; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(245,247,252,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 72px; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 23px/1 var(--font); letter-spacing: -.035em; }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.logo .wm { height: 23px; width: auto; display: block; margin-top: 3px; }
.nav.dark .logo, .foot .logo { --wm-ai: #BFD3FF; }
.logo:hover { color: var(--ink); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--b2); }
.nav .btn { height: 42px; padding: 0 18px; font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
/* over the blue hero */
.nav.dark { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.dark .logo, .nav.dark .nav-links a { color: #fff; }
.nav.dark .nav-links a { opacity: .85; }
.nav.dark .nav-links a:hover { opacity: 1; color: #fff; }
.nav.dark .btn-primary { background: #fff; color: var(--b3); box-shadow: 0 10px 24px -10px rgba(0,16,110,.6); }
.nav.dark .nav-toggle { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }

@media (max-width: 860px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open { background: #fff !important; border-bottom-color: var(--line); }
  .nav.open .logo { color: var(--ink) !important; }
  .nav.open .nav-toggle { background: #fff !important; border-color: var(--line) !important; color: var(--ink) !important; }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
  .nav.open .nav-links a { color: var(--ink) !important; opacity: 1; padding: 14px 0; border-bottom: 1px solid var(--soft); font-size: 17px; }
}

/* ---------- hero ---------- */
.hero { --ease: cubic-bezier(.22,1,.36,1); --spring: cubic-bezier(.34,1.56,.64,1);
  position: relative; overflow: hidden; color: #fff; background: #0718A0; padding: 128px 0 72px; min-height: min(100vh, 940px); display: flex; align-items: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(60% 55% at 74% 42%, rgba(61,150,255,.55), transparent 70%),
    radial-gradient(50% 50% at 8% -5%, rgba(120,180,255,.45), transparent 70%),
    radial-gradient(70% 60% at 50% 120%, rgba(2,8,60,.85), transparent 70%),
    linear-gradient(160deg, #1B57FF 0%, #0A2BCF 45%, #061A8C 100%); }
.hb-aur { position: absolute; inset: -10%; background: radial-gradient(38% 34% at 32% 28%, rgba(140,205,255,.24), transparent 70%), radial-gradient(34% 30% at 72% 72%, rgba(100,130,255,.22), transparent 70%); animation: aur 22s ease-in-out infinite alternate; }
@keyframes aur { to { transform: translate3d(4%, 3%, 0) scale(1.06); } }
.hb-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 64px 64px; background-position: center;
  -webkit-mask-image: radial-gradient(55% 60% at 72% 45%, #000 0%, transparent 75%); mask-image: radial-gradient(55% 60% at 72% 45%, #000 0%, transparent 75%); }
.hb-noise { position: absolute; inset: 0; opacity: .12; 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; align-items: center; width: 100%; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); font-size: 13px; font-weight: 600; color: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-tag i { width: 7px; height: 7px; border-radius: 50%; background: #5BF59A; box-shadow: 0 0 0 3px rgba(91,245,154,.2), 0 0 12px #5BF59A; }
.hero-tag .sep { width: 1px; height: 12px; background: rgba(255,255,255,.3); }
.hero h1 { font-size: clamp(44px, 5.4vw, 74px); font-weight: 800; letter-spacing: -.048em; line-height: .98; margin: 26px 0 24px; text-wrap: balance; }
.hero h1 .hl { display: inline-block; white-space: nowrap; background: linear-gradient(180deg, #fff 30%, #C9DAFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero-sub { font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.6; color: rgba(255,255,255,.78); max-width: 500px; margin: 0; font-weight: 500; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.hero .play-badge { background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 20px 44px -16px rgba(0,10,80,.8); }
.hero .play-badge:hover { color: var(--ink); }
.hero .play-badge svg { color: var(--b2); }
.hero-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: none; font-size: 15px; opacity: .9; }
.hero-link:hover { color: #fff; opacity: 1; }
.hero-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.hero-link:hover svg { transform: translateX(3px); }
.trust { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.72); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 15px; height: 15px; flex: none; color: #BFD3FF; }

/* ---- hero graphic: a fixed 460×640 stage scaled into its column (hero.js sets --s) ---- */
.hero-art { position: relative; width: 100%; max-width: 460px; aspect-ratio: 460 / 640; justify-self: end; }
.stage { --s: 1; --mx: 0; --my: 0; position: absolute; left: 0; top: 0; width: 460px; height: 640px; transform: scale(var(--s)); transform-origin: 0 0; font-family: var(--font); text-align: left; }
.stage svg { display: block; }
.layer { position: absolute; inset: 0; pointer-events: none; transform: translate3d(calc(var(--mx) * var(--d) * 1px), calc(var(--my) * var(--d) * 1px), 0); }
.ly-phone { transform: perspective(1600px) translate3d(calc(var(--mx) * 1px), calc(var(--my) * 1px), 0) rotateY(calc(var(--mx) * .5deg)) rotateX(calc(var(--my) * -.5deg)); }
.st-glow { position: absolute; left: 50%; top: 46%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, rgba(120,175,255,.55) 0%, rgba(80,130,255,.18) 40%, transparent 68%); transition: background .8s var(--ease), transform 1.2s var(--ease); }
.stage.live .st-glow { transform: scale(1.08); }
.stage.urg .st-glow { background: radial-gradient(circle, rgba(255,110,120,.5) 0%, rgba(229,72,77,.16) 40%, transparent 68%); }

/* device */
.phone { position: absolute; left: 92px; top: 6px; width: 276px; height: 566px; border-radius: 50px; padding: 9px;
  background: linear-gradient(150deg, #3a4466 0%, #0d1328 30%, #070b1a 70%, #2a3352 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2), inset 0 0 0 3px rgba(0,0,0,.55), 0 70px 120px -40px rgba(0,6,50,.95), 0 30px 60px -24px rgba(0,8,70,.7); }
.stage.urg .phone { animation: buzz .6s .25s both; }
@keyframes buzz { 15%, 45%, 75% { transform: translateX(-3px) rotate(-.6deg); } 30%, 60%, 90% { transform: translateX(3px) rotate(.6deg); } }
.screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; color: #fff; background: radial-gradient(130% 70% at 50% 0%, #1a2f86 0%, #0b1446 48%, #050a26 100%); }
.screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 45% at 50% 0%, rgba(229,72,77,.5), transparent 70%); opacity: 0; transition: opacity .7s var(--ease); }
.stage.urg .screen::before { opacity: 1; }
.island { position: absolute; z-index: 4; top: 11px; left: 50%; width: 86px; height: 25px; margin-left: -43px; border-radius: 14px; background: #000; }
.sbar { position: absolute; z-index: 3; top: 15px; left: 28px; right: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.sbar b { font-weight: 700; letter-spacing: -.01em; }
.sb-ic { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.sb-ic i { width: 3px; border-radius: 1px; background: #fff; }
.sb-ic i:nth-child(1) { height: 4px; } .sb-ic i:nth-child(2) { height: 6px; } .sb-ic i:nth-child(3) { height: 8px; } .sb-ic i:nth-child(4) { height: 10px; }
.sb-ic em { width: 20px; height: 10px; margin-left: 6px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); background: linear-gradient(90deg, #fff 70%, transparent 70%) 2px 2px / 15px 6px no-repeat; }

/* scenes inside the screen */
.sc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 70px 20px 0; opacity: 0; transform: scale(.97); filter: blur(2px); transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s var(--ease); }
.stage:not(.ring):not(.live):not(.urg) .sc-idle, .stage.ring .sc-ring, .stage.live .sc-live, .stage.urg .sc-urg { opacity: 1; transform: none; filter: none; }
.sc-idle { padding-top: 92px; }
.idle-date { font-size: 13px; font-weight: 600; opacity: .7; }
.idle-time { font-size: 72px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-top: 4px; }
.idle-st { position: absolute; bottom: 40px; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 6px; border-radius: 15px; background: rgba(255,255,255,.1); font-size: 11.5px; font-weight: 600; }
.idle-st svg, .ring-hand svg { width: 20px; height: 20px; }
.sc-lbl { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .62; }
.av { display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.av-m { background: linear-gradient(140deg, #FFB38A 0%, #F2668B 55%, #B54BD8 100%); }
.av-d { background: linear-gradient(140deg, #7BE0C3 0%, #2BAE9A 50%, #12708A 100%); }
.ring-av { position: relative; width: 96px; height: 96px; margin: 26px 0 16px; }
.ring-av .av { position: relative; width: 96px; height: 96px; font-size: 38px; box-shadow: 0 16px 30px -8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.4); }
.ring-av i, .urg-av i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); opacity: 0; }
.stage.ring .ring-av i { animation: ripple 2.1s var(--ease) infinite; }
.stage.ring .ring-av i:nth-child(2) { animation-delay: .7s; } .stage.ring .ring-av i:nth-child(3) { animation-delay: 1.4s; }
@keyframes ripple { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.1); opacity: 0; } }
.sc .nm { font-size: 24px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.sc .sub { font-size: 12px; font-weight: 500; opacity: .62; margin-top: 4px; }
.ring-hand { display: inline-flex; align-items: center; gap: 7px; height: 30px; margin-top: 22px; padding: 0 12px 0 6px; border-radius: 15px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); font-size: 11.5px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.stage.busy .ring-hand { opacity: 1; transform: none; transition-delay: .5s; }
.ring-act { position: absolute; left: 0; right: 0; bottom: 46px; display: flex; justify-content: space-between; padding: 0 40px; transition: opacity .5s var(--ease); }
.stage.busy .ring-act { opacity: .35; }
.ra { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ra svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ra.dec { background: #E5484D; } .ra.acc { background: #22B455; }

/* live call */
.sc-live { padding-top: 54px; }
.live-hd { display: flex; flex-direction: column; align-items: center; }
.orb-wrap { position: relative; width: 84px; height: 84px; }
.orb-svg { position: relative; width: 84px; height: 84px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.4)); transform: scale(.6); opacity: 0; transition: transform .8s var(--spring), opacity .4s var(--ease); }
.stage.live .orb-svg { transform: none; opacity: 1; transition-delay: .15s; }
.orb-halo { position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(110,170,255,.55), transparent 65%); opacity: .5; transition: opacity .5s, transform .5s var(--ease); }
.stage.speak .orb-halo { opacity: 1; transform: scale(1.15); animation: breathe 1.2s ease-in-out infinite; }
.stage.ended .orb-halo { opacity: 0; }
@keyframes breathe { 50% { transform: scale(1.3); } }
.orb-burst { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(160,200,255,.8); opacity: 0; }
.stage.live .orb-burst { animation: burst 1.1s .2s var(--ease) both; }
@keyframes burst { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.bars rect { transform-box: fill-box; transform-origin: center; }
.stage.listen .bars rect { animation: eq 1.6s ease-in-out infinite; }
.stage.speak .bars rect { animation: eqs .5s ease-in-out infinite alternate; }
.stage.ended .bars rect { transform: scaleY(.5); transition: transform .5s var(--ease); }
.bars rect:nth-child(1) { animation-delay: -.3s !important; } .bars rect:nth-child(2) { animation-delay: -.7s !important; } .bars rect:nth-child(3) { animation-delay: -.1s !important; } .bars rect:nth-child(4) { animation-delay: -.5s !important; }
@keyframes eq { 50% { transform: scaleY(.7); } }
@keyframes eqs { 0% { transform: scaleY(.35); } 100% { transform: scaleY(1.15); } }
.live-st { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.live-st i { width: 7px; height: 7px; border-radius: 50%; background: #5BF59A; box-shadow: 0 0 10px #5BF59A; transition: background .4s, box-shadow .4s; }
.stage.ended .live-st i { background: rgba(255,255,255,.4); box-shadow: none; }
.ls-off, .stage.ended .ls-on { display: none; } .stage.ended .ls-off { display: inline; }
.tm { font-variant-numeric: tabular-nums; opacity: .7; font-weight: 600; }
.live-sub { font-size: 11.5px; opacity: .55; font-weight: 500; margin-top: 2px; }
.tx { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 18px; text-align: left; }
.bub { max-width: 84%; padding: 7px 11px 8px; border-radius: 16px; font-size: 12px; line-height: 1.42; font-weight: 500; opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.bub .who { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .6; margin-bottom: 1px; }
.bub p { position: relative; margin: 0; }
.bub .rest { color: transparent; }
.bub p.typing::after { content: ""; position: absolute; left: 0; top: 6px; width: 28px; height: 6px; background: radial-gradient(circle 3px at 3px 3px, currentColor 98%, transparent) 0 0 / 11px 6px repeat-x; opacity: .7; animation: dots 1s steps(1) infinite; }
@keyframes dots { 50% { opacity: .35; } }
.bub.them { align-self: flex-start; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); border-bottom-left-radius: 5px; }
.bub.me { align-self: flex-end; background: linear-gradient(150deg, #3D96FF, #1B57FF 60%, #1446F0); box-shadow: 0 8px 18px -8px rgba(27,87,255,.9); border-bottom-right-radius: 5px; }
.stage.b1 .b1, .stage.b2 .b2, .stage.b3 .b3 { opacity: 1; transform: none; }
.tx { transition: opacity .6s var(--ease), filter .6s var(--ease); }
.stage.note .tx { opacity: .4; filter: blur(1.5px); }
.live-ft { position: absolute; left: 0; right: 0; bottom: 30px; height: 48px; display: flex; justify-content: center; align-items: center; }
.end, .sent { position: absolute; transition: opacity .45s var(--ease), transform .55s var(--ease); }
.end { width: 48px; height: 48px; border-radius: 50%; background: #E5484D; display: flex; align-items: center; justify-content: center; }
.end svg, .sent svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sent { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px 0 11px; border-radius: 18px; background: rgba(34,180,85,.18); box-shadow: inset 0 0 0 1px rgba(91,245,154,.35); font-size: 12px; font-weight: 700; color: #C9FFDD; opacity: 0; transform: translateY(8px); }
.sent svg { width: 15px; height: 15px; stroke: #5BF59A; }
.stage.ended .end { opacity: 0; transform: scale(.6); }
.stage.ended .sent { opacity: 1; transform: none; transition-delay: .25s; }

/* urgent full-screen alert */
.sc-urg { padding-top: 62px; }
.urg-tag { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 13px; background: rgba(229,72,77,.22); box-shadow: inset 0 0 0 1px rgba(255,130,135,.45); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #FFD3D5; }
.urg-tag i { width: 7px; height: 7px; border-radius: 50%; background: #FF5A60; box-shadow: 0 0 10px #FF5A60; }
.stage.urg .urg-tag i { animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.urg-av { position: relative; width: 84px; height: 84px; margin: 30px 0 16px; }
.urg-av .av { position: relative; width: 84px; height: 84px; font-size: 34px; box-shadow: 0 0 0 3px rgba(229,72,77,.9), 0 16px 30px -8px rgba(0,0,0,.5); }
.urg-av i { border-color: rgba(255,100,110,.8); }
.stage.urg .urg-av i { animation: ripple 1.4s var(--ease) infinite; }
.urg-q { margin: 26px 0 0; padding: 11px 13px; border-radius: 16px; background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); font-size: 13px; line-height: 1.45; font-weight: 600; text-align: left; }
.urg-btns { position: absolute; left: 20px; right: 20px; bottom: 30px; display: flex; gap: 9px; }
.urg-btns b { flex: 1; height: 46px; border-radius: 23px; display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 700; }
.urg-btns .cb { background: #fff; color: var(--b3); box-shadow: 0 10px 22px -10px rgba(0,0,0,.6); }
.urg-btns .ms { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.sc-urg > * { transform: translateY(14px); opacity: 0; transition: transform .7s var(--ease), opacity .5s var(--ease); }
.stage.urg .sc-urg > * { transform: none; opacity: 1; }
.stage.urg .sc-urg > :nth-child(2) { transition-delay: .06s; } .stage.urg .sc-urg > :nth-child(3) { transition-delay: .12s; } .stage.urg .sc-urg > :nth-child(4) { transition-delay: .16s; } .stage.urg .sc-urg > :nth-child(5) { transition-delay: .24s; } .stage.urg .sc-urg > :nth-child(6) { transition-delay: .34s; }

/* floating cards around the device */
.chip, .card { position: absolute; color: var(--ink); background: rgba(255,255,255,.94); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 1px 2px rgba(0,10,60,.1), 0 24px 48px -16px rgba(0,10,70,.55); opacity: 0; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.chip { display: flex; align-items: center; gap: 11px; padding: 10px 16px 10px 10px; border-radius: 18px; white-space: nowrap; }
.chip b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.chip small { display: block; font-size: 11.5px; color: #6B7280; font-weight: 500; line-height: 1.3; }
.ci { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.ci svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-busy { left: 0; top: 344px; transform: translate(-14px, 10px) scale(.96); }
.c-busy .ci { background: #EEF0FF; color: #4F46E5; }
.stage.busy .c-busy { opacity: 1; transform: none; }
.c-spam { left: 0; top: 226px; transform: translate(-14px, -6px) scale(.96); }
.c-spam .ci { background: #E7F7EE; color: #16A34A; }
.stage.spam .c-spam { opacity: 1; transform: none; }
.c-note { left: 0; top: 300px; width: 252px; padding: 14px 16px 13px; border-radius: 20px; transform: translate(70px, -30px) scale(.86); transform-origin: 80% 0; }
.stage.note .c-note { opacity: 1; transform: none; }
.cn-hd { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #6B7280; font-weight: 600; }
.cn-hd svg { width: 18px; height: 18px; }
.cn-hd b { color: var(--ink); font-weight: 700; }
.cn-hd span::before { content: "·"; margin-right: 6px; }
.cn-hd em { margin-left: auto; font-style: normal; }
.cn-who { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.cn-who .av { width: 26px; height: 26px; font-size: 12px; }
.cn-who b { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.c-note p { margin: 7px 0 0; font-size: 15px; line-height: 1.38; font-weight: 700; letter-spacing: -.015em; }
.cn-ft { display: flex; align-items: center; margin-top: 11px; padding-top: 10px; border-top: 1px solid #EEF0F5; font-size: 12px; font-weight: 700; color: var(--b2); }
.cn-ft span { display: inline-flex; align-items: center; gap: 4px; }
.cn-ft svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cn-ft em { margin-left: auto; font-style: normal; color: #6B7280; font-weight: 600; }

/* story progress under the device */
.steps { position: absolute; left: 40px; right: 40px; bottom: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.steps li { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); transition: color .4s; white-space: nowrap; }
.steps i { display: block; height: 2px; margin-bottom: 9px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; }
.steps em { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.stage.k1 .k1, .stage.k2 .k2, .stage.k3 .k3, .stage.k4 .k4 { color: #fff; }

/* frozen frame (?t= or reduced motion): no transitions, one-shot effects settled */
.stage.frozen *, .stage.frozen { transition: none !important; }
.stage.frozen .phone, .stage.frozen .orb-burst { animation: none !important; }
.stage.paused *, .stage.paused { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .hb-aur, .stage * { animation: none !important; } }

/* ---------- link strip under the hero ---------- */
.links { padding: 40px 0 72px; }
.links-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.link-card { display: flex; align-items: center; gap: 16px; padding: 20px 20px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.link-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 0 0 1px #cfd9f2, var(--shadow-2); }
.link-card > span:nth-child(2) { flex: 1; min-width: 0; }
.link-card b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.015em; }
.link-card small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.link-card > svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.lc-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--b2); display: flex; align-items: center; justify-content: center; flex: none; }
.lc-ico svg { width: 21px; height: 21px; }

/* ---------- footer ---------- */
.foot { background: #0a0f24; color: #9aa2bd; padding: 64px 0 32px; font-size: 14px; }
.foot .grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot .logo, .foot .logo:hover { color: #fff; }
.foot p { margin: 14px 0 0; max-width: 340px; }
.foot h4 { font: 700 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: #c6cce0; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- legal / doc pages ---------- */
.doc-hero { position: relative; overflow: hidden; padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(70% 120% at 0% 0%, #dfe9ff 0%, transparent 60%), linear-gradient(180deg, #edf2fe, var(--bg)); }
.doc-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.04em; margin: 12px 0 14px; }
.doc-hero .meta { color: var(--muted); font-size: 14px; margin: 0; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 48px var(--gutter) 96px; }
.doc-nav { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
.doc-nav h4 { font: 700 11.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.doc-nav ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 2px; }
.doc-nav a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.doc-nav a:hover { background: var(--soft); color: var(--ink); }
.doc-nav a[aria-current] { background: var(--tint); color: var(--b2); font-weight: 700; }
.doc { max-width: 760px; font-size: 16px; color: var(--ink-2); }
.doc h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin: 44px 0 14px; scroll-margin-top: 90px; }
.doc h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.doc p, .doc li { line-height: 1.72; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.doc code { font-size: .9em; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 6px 24px 10px; margin: 0 0 12px; box-shadow: var(--shadow-1); }
.doc .summary h2 { font-size: 17px; margin: 18px 0 6px; }
.doc .callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--tint); color: var(--ink); margin: 20px 0; }
.doc .callout p { margin: 0; }
.doc .callout.warn { background: #fff4f4; }
.doc .callout svg { width: 22px; height: 22px; color: var(--b2); flex: none; margin-top: 3px; }
.doc .callout.warn svg { color: var(--red); }
.doc .placeholder { background: #fff3c4; color: #6b4e00; padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.doc thead th { background: var(--soft); font-weight: 700; color: var(--ink); font-size: 13px; }
.doc tbody th { color: var(--ink); font-weight: 700; width: 32%; }
.doc tr:last-child td, .doc tr:last-child th { border-bottom: 0; }
.doc .table-scroll { overflow-x: auto; }
.doc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.doc-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; text-decoration: none; color: var(--ink-2); transition: border-color .15s, box-shadow .15s; }
.doc-card:hover { border-color: var(--b2); box-shadow: var(--shadow-2); color: var(--ink-2); }
.doc-card b { display: block; font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.doc-card span { font-size: 14px; color: var(--muted); }

/* ---------- 404 ---------- */
.nf { padding: 96px 0 120px; text-align: center; }
.nf .wrap { max-width: 560px; }
.nf-orb { width: 96px; height: 96px; margin: 0 auto 22px; display: block; }
.nf h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -.04em; margin: 12px 0; }
.nf .lead { margin: 0 auto; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 112px 0 56px; min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin: 0 auto; }
  .hero-cta, .trust { justify-content: center; }
  .hero-art { justify-self: center; }
  .links-grid { grid-template-columns: 1fr; }
  .foot .grid { grid-template-columns: 1fr 1fr; }
  .foot .grid > div:first-child { grid-column: 1 / -1; }
  .doc-layout { grid-template-columns: 1fr; gap: 8px; padding-top: 28px; }
  .doc-nav { position: static; max-height: none; }
  .doc-nav .toc { display: none; }
  .doc-nav h4 { display: none; }
  .doc-nav ul { display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap; margin: 0 calc(-1 * var(--gutter)) 8px; padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .doc-nav ul::-webkit-scrollbar { display: none; }
  .doc-nav a { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; }
}
@media (max-width: 560px) {
  .hero { padding: 100px 0 40px; }
  .hero h1 { margin: 18px 0 16px; }
  .hero-cta { margin-top: 26px; flex-direction: column; gap: 14px; }
  .trust { margin-top: 30px; flex-direction: column; align-items: center; gap: 10px; }
  .stage { --s: .76; }
  .links { padding: 28px 0 48px; }
  .foot .grid { gap: 28px 20px; }
  .doc-cards { grid-template-columns: 1fr; }
  .doc th, .doc td { padding: 10px 12px; }
  .doc tbody th { width: 38%; }
}
@media (max-width: 380px) {
  .stage { --s: .69; }
}

/* ---------- home: everything lives in the hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; padding-top: 108px; padding-bottom: 176px; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 var(--gutter) 26px; }
.hero-foot::before { content: ""; display: block; max-width: 1180px; margin: 0 auto 20px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28) 20%, rgba(255,255,255,.28) 80%, transparent); }
.hf-links { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.hf-links a { position: relative; color: rgba(255,255,255,.78); text-decoration: none; font: 500 13.5px/1 var(--font); letter-spacing: .005em;
  padding: 9px 13px; border-radius: 999px; transition: color .25s, background .25s, box-shadow .25s; }
.hf-links a:hover, .hf-links a:focus-visible { color: #fff; background: rgba(255,255,255,.10); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); outline: none; }
.hf-meta { max-width: 1180px; margin: 12px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px;
  font: 500 12px/1.4 var(--font); color: rgba(255,255,255,.5); letter-spacing: .02em; }
.hf-meta a { color: rgba(255,255,255,.72); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); transition: color .2s, border-color .2s; }
.hf-meta a:hover { color: #fff; border-color: #fff; }
.hf-meta span + span::before { content: "·"; margin-right: 18px; color: rgba(255,255,255,.35); }
@media (max-width: 860px) {
  .hero { min-height: 0; padding-bottom: 40px; flex-direction: column; align-items: stretch; }
  .hero-foot { position: static; margin-top: 36px; padding: 0 var(--gutter) 8px; }
  .hf-links a { font-size: 13px; padding: 8px 11px; }
  .hf-meta span + span::before { content: none; }
  .hf-meta { gap: 4px 14px; }
}
