/* VOICE  occasion: a product launch page for a Mac utility, confident and precise
   IDEA   scrolling is time passing: a workday of copies piles up, then ⌥Space brings it all back
   PICTURE a faithful, working Flashback panel on a brand-blue desktop; the story stage is the whole viewport
   COLOUR white paper, ink navy #0f1a2e from the icon ground, brand blue #2563eb fields, bolt yellow #fbbf24 only for the final action
   TYPE   Archivo wide and heavy for display; the Mac system face for text and for the panel itself
   LAYOUT title across the top with actions on its right, the desktop full width beneath; phone stacks title, desktop, actions */

:root {
  color-scheme: light dark;
  --paper: light-dark(#ffffff, #0c1528);
  --ink: light-dark(#0f1a2e, #eef2fb);
  --ink2: light-dark(#4b5870, #a7b2c9);
  --mist: light-dark(#eef3ff, #111d37);
  --rule: light-dark(#d9e1f1, #24324f);
  --link: light-dark(#1d4ed8, #8ab4ff);
  --blue: #2563eb;
  --bolt: #fbbf24;

  /* Flashback panel tokens, copied from the app (frontend/src/styles/tokens.css) */
  --glass: light-dark(rgba(246, 248, 252, 0.66), rgba(30, 33, 44, 0.58));
  --glass-edge: light-dark(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.16));
  --fg: light-dark(#1d1d1f, #f5f5f7);
  --fg2: light-dark(rgba(60, 60, 67, 0.62), rgba(235, 235, 245, 0.58));
  --sep: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.12));
  --btn: light-dark(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.14));
  --sel: light-dark(rgba(0, 0, 0, 0.075), rgba(255, 255, 255, 0.13));
  --sel-edge: light-dark(transparent, rgba(255, 255, 255, 0.1));
  --chip-on: light-dark(rgba(0, 0, 0, 0.13), rgba(255, 255, 255, 0.3));

  --key-top: light-dark(#ffffff, #3a3f4b);
  --key-bot: light-dark(#eef0f4, #2c303a);
  --key-edge: light-dark(#c3c8d3, #171a21);

  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --disp: "Archivo", "Arial Black", var(--sys);
  --gut: max(5vw, 16px);
}
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sys); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { margin: 0; font-family: var(--disp); color: var(--ink); }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.band { padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1240px; margin: 0 auto; }

/* keycaps */
.kc { display: inline-grid; place-items: center; min-width: 1.75em; height: 1.75em; padding: 0 .42em; margin: 0 .1em; border-radius: .38em; font: 600 .8em/1 var(--sys); color: var(--ink); background: linear-gradient(var(--key-top), var(--key-bot)); box-shadow: 0 .12em 0 var(--key-edge), 0 .2em .35em rgba(15, 26, 46, .14), inset 0 0 0 .5px rgba(15, 26, 46, .12); vertical-align: .08em; white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 650 16px/1 var(--sys); text-decoration: none; color: #fff; background: var(--blue); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px -6px rgba(37, 99, 235, .7); transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { background: #1d4ed8; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; }
.btn-ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn-ghost:hover { background: var(--mist); }
.btn-bolt { color: #0f1a2e; background: var(--bolt); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 30px -8px rgba(251, 191, 36, .8); }
.btn-bolt:hover { background: #fcd34d; }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 14px; color: var(--ink2); }

/* nav */
.nav { display: flex; align-items: center; gap: 28px; height: 68px; max-width: calc(1240px + 2 * var(--gut)); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 21px/1 var(--disp); font-stretch: 112%; letter-spacing: -.02em; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--ink2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--ink); }

/* hero */
.hero { padding-top: clamp(20px, 4vw, 56px); padding-bottom: clamp(28px, 3.5vw, 48px); }
.hero-head { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: end; }
h1 { font-size: clamp(42px, 5.3vw, 84px); font-weight: 850; font-stretch: 108%; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.hero-side { display: grid; gap: 20px; padding-bottom: 6px; }
.hero-side > p:first-child { font-size: 18px; color: var(--ink2); max-width: 34em; }
.hero-side > p:first-child .kc { font-size: 15px; }

/* desktop wallpaper: brand blues with the bolt's yellow low on the right */
.wall { position: relative; color: #fff; background:
  radial-gradient(55% 60% at 88% 100%, rgba(251, 191, 36, .62), rgba(251, 191, 36, 0) 70%),
  radial-gradient(70% 80% at 6% 0%, rgba(147, 197, 253, .95), rgba(147, 197, 253, 0) 60%),
  radial-gradient(60% 70% at 100% 0%, #1e3a8a, rgba(30, 58, 138, 0) 70%),
  radial-gradient(90% 60% at 30% 100%, #172554, rgba(23, 37, 84, 0) 75%),
  linear-gradient(155deg, #4f8ff7 0%, #2563eb 42%, #1e40af 100%); }
.wall::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(120% 55% at 50% 120%, rgba(255, 255, 255, .0) 58%, rgba(255, 255, 255, .22) 59%, rgba(255, 255, 255, 0) 64%),
  radial-gradient(130% 70% at 40% 130%, rgba(255, 255, 255, 0) 60%, rgba(191, 219, 254, .25) 61%, rgba(255, 255, 255, 0) 67%); }

.hero-screen-wrap { position: relative; }
.screen { --inset: max(var(--gut), calc((100vw - 1240px) / 2)); position: relative; height: clamp(560px, 74svh, 720px); clip-path: inset(0 var(--inset) round var(--r, 28px)); overflow: hidden; }
.caption-under { max-width: calc(1240px + 2 * var(--gut)); margin: 14px auto 0; font-size: 14px; color: var(--ink2); }

.menubar { position: relative; z-index: 3; display: flex; align-items: center; gap: 18px; height: 28px; padding: 0 max(calc(var(--inset, 0px) + 14px), 14px); font: 500 13px/1 var(--sys); color: #fff; background: rgba(15, 30, 80, .18); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); white-space: nowrap; overflow: hidden; }
.menubar b { font-weight: 700; }
.mb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; }
.mb-wifi { width: 15px; height: 11px; background: radial-gradient(circle at 50% 100%, #fff 0 2px, transparent 2.5px 4.5px, #fff 5px 6.5px, transparent 7px 9px, #fff 9.5px 11px, transparent 11.5px); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.mb-batt { width: 24px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); background: linear-gradient(90deg, #fff 70%, transparent 70%) 2px 2px / calc(100% - 4px) 7px no-repeat; }

/* ---------- the Flashback panel (faithful to the app's CSS) ---------- */
.fb { position: relative; width: min(560px, 100%); border-radius: 26px; color: var(--fg); font-family: var(--sys); font-size: 14px; line-height: 1.3; text-align: left; background: var(--glass); backdrop-filter: blur(30px) saturate(1.9); -webkit-backdrop-filter: blur(30px) saturate(1.9); box-shadow: inset 0 0 0 .5px var(--glass-edge), inset 0 1px 0 light-dark(rgba(255, 255, 255, .9), rgba(255, 255, 255, .14)), 0 30px 70px -20px rgba(6, 16, 50, .6), 0 0 0 .5px rgba(0, 0, 0, .12); overflow: hidden; }
.fb-search { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 16px 0 20px; cursor: text; }
.fb-lead { width: 22px; height: 22px; flex: none; color: var(--fg2); }
.fb-search input, .fb-q { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; font: 400 22px/58px var(--sys); letter-spacing: -.01em; color: var(--fg); caret-color: #0a84ff; white-space: nowrap; overflow: hidden; }
.fb-search input::placeholder { color: var(--fg2); }
.fb-q:empty::before { content: "Search clipboard"; color: var(--fg2); }
.fb-q.typing::after { content: ""; display: inline-block; width: 2px; height: 24px; margin-left: 1px; vertical-align: -4px; background: #0a84ff; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.fb-more { width: 26px; height: 26px; flex: none; color: var(--fg2); }
.fb-sep { height: .5px; margin: 0 16px; background: var(--sep); }
.fb-chips { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; }
.fb-chips::-webkit-scrollbar { display: none; }
.fb-chips:empty { display: none; }
.chip { flex: 0 0 auto; height: 30px; padding: 0 16px; border: 0; border-radius: 15px; display: inline-flex; align-items: center; gap: 5px; font: 400 13px/1 var(--sys); color: var(--fg); background: var(--btn); box-shadow: inset 0 0 0 .5px var(--sel-edge); white-space: nowrap; cursor: default; animation: fadein .18s ease-out; }
.chip.on { background: var(--chip-on); font-weight: 600; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .35), 0 1px 3px rgba(0, 0, 0, .2); }
button.chip { cursor: pointer; }
@keyframes fadein { from { opacity: 0; } }
.fb-list { padding: 0 8px 8px; }
.row { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 10px 0 8px; border-radius: 12px; cursor: default; }
.row.sel { background: var(--sel); box-shadow: inset 0 0 0 .5px var(--sel-edge); }
.rt { flex: 1; min-width: 0; }
.rt1 { display: block; font-size: 14px; line-height: 18px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt2 { display: flex; align-items: center; gap: 4px; font-size: 11.5px; line-height: 15px; color: var(--fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt2 svg { width: 10px; height: 10px; flex: none; }
.cp { width: 24px; height: 24px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; background: var(--btn); color: var(--fg); cursor: pointer; }
.cp svg { width: 12px; height: 12px; }
.cp:hover { filter: brightness(1.15); }
.cp.done { background: #30d158; color: #fff; }

/* row icons, as RowIcon.css */
.ic { width: 32px; height: 32px; flex: none; position: relative; display: grid; place-items: center; }
.ic-tile { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(#5ac8fa, #0a7aff); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3), 0 1px 2px rgba(0, 0, 0, .3); color: #fff; }
.ic-tile svg { width: 20px; height: 20px; }
.ic-doc { width: 24px; height: 30px; border-radius: 3px; position: relative; background: linear-gradient(#fff, #ececf0); box-shadow: 0 .5px 1.5px rgba(0, 0, 0, .35); }
.ic-doc::after { content: ""; position: absolute; left: 5px; right: 5px; top: 8px; height: 13px; background: repeating-linear-gradient(#b8b8c0 0 1.5px, transparent 1.5px 4px); }
.ic-doc.code::after { content: "{ }"; background: none; font: 700 9px var(--sys); color: #6e6e78; top: 9px; left: 0; right: 0; height: auto; text-align: center; }
.ic-sw { width: 26px; height: 26px; border-radius: 13px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .4), 0 1px 3px rgba(0, 0, 0, .35); }
.ic-th { width: 32px; height: 24px; border-radius: 5px; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .3), 0 1px 3px rgba(0, 0, 0, .4); overflow: hidden; }
.ic-file { width: 26px; height: 32px; }

/* tiny generated pictures for image items */
.pic-dash { background:
  linear-gradient(to top, #2563eb 0 38%, transparent 38%) 12% 100% / 10% 100% no-repeat,
  linear-gradient(to top, #2563eb 0 62%, transparent 62%) 30% 100% / 10% 100% no-repeat,
  linear-gradient(to top, #60a5fa 0 48%, transparent 48%) 48% 100% / 10% 100% no-repeat,
  linear-gradient(to top, #2563eb 0 80%, transparent 80%) 66% 100% / 10% 100% no-repeat,
  linear-gradient(to top, #fbbf24 0 92%, transparent 92%) 84% 100% / 10% 100% no-repeat,
  linear-gradient(#f8fafc, #e8eef8); }
.pic-hill { background:
  radial-gradient(circle at 72% 32%, #fff7d6 0 7%, transparent 8%),
  radial-gradient(120% 70% at 30% 100%, #1f5130 0 45%, transparent 46%),
  radial-gradient(110% 60% at 85% 105%, #2f6b3c 0 50%, transparent 51%),
  linear-gradient(#f59e0b, #f97316 45%, #7c3aed); }

/* preview card */
.fb-preview[hidden] { display: none; }
.fb-preview { margin-top: 8px; border-radius: 22px; max-height: 300px; display: flex; flex-direction: column; }
.pv-h { flex: none; padding: 12px 18px 10px; border-bottom: .5px solid var(--sep); font-size: 12px; line-height: 16px; color: var(--fg2); }
.pv-b { padding: 14px 18px 16px; font-size: 13px; line-height: 19px; overflow: auto; }
.pv-b pre { margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.pv-link { color: #0a84ff; overflow-wrap: anywhere; }
.pv-img { height: 160px; border-radius: 8px; }
.pv-col { display: flex; align-items: center; gap: 16px; }
.pv-col i { width: 64px; height: 64px; border-radius: 14px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .4), 0 2px 8px rgba(0, 0, 0, .3); }
.pv-col b { display: block; font-size: 18px; }

/* hero demo layout */
.demo { position: absolute; left: 50%; top: calc(28px + clamp(28px, 6%, 60px)); width: min(560px, calc(100% - 2 * var(--inset) - 32px)); transform: translateX(-50%); }
.demo .fb-list { max-height: 258px; overflow-y: auto; scrollbar-width: none; }
.demo .fb-list::-webkit-scrollbar { display: none; }
.demo .fb-preview { max-height: 210px; }
.demo-note { margin-top: 10px; min-height: 20px; text-align: center; font: 500 13px/1.4 var(--sys); color: #fff; text-shadow: 0 1px 6px rgba(8, 20, 60, .5); }
.demo-hint { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; padding: 0 calc(var(--inset) + 16px); font: 500 13px/1 var(--sys); color: rgba(255, 255, 255, .92); }
.demo-hint .kc { font-size: 12px; color: #0f1a2e; --key-top: #fff; --key-bot: #e9edf5; --key-edge: #9fb3d9; }
.fb.pre { opacity: 0; transform: scale(.98) translateY(-8px); }
.fb.opening { transition: opacity .22s ease-out, transform .32s cubic-bezier(.2, .9, .3, 1.15); }
.fb.opening .row { animation: rowin .36s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(140ms + var(--i, 0) * 45ms); }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- story: the day ---------- */
.story { position: relative; height: calc(10 * 72svh + 100svh); margin-top: clamp(56px, 8vw, 120px); }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.stage-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(20px, 3vw, 48px); padding: clamp(20px, 3.5vh, 44px) var(--gut) clamp(28px, 4vh, 48px); max-width: 1440px; width: 100%; margin: 0 auto; position: relative; z-index: 1; }
.st-text { display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 3vh, 32px); }
.clock { display: flex; align-items: baseline; gap: .12em; font: 800 clamp(64px, 9.5vw, 148px)/.9 var(--disp); font-stretch: 118%; letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 2px 30px rgba(10, 25, 80, .35); }
.clock small { font-size: .26em; font-weight: 700; letter-spacing: 0; font-stretch: 100%; opacity: .85; }
.agenda { list-style: none; margin: 0; padding: 0; border-left: 1.5px solid rgba(255, 255, 255, .35); }
.agenda li { position: relative; padding: 0 0 0 22px; color: rgba(255, 255, 255, .62); transition: color .25s; }
.agenda li::before { content: ""; position: absolute; left: -5.5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: #1e40af; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55); transition: background .25s, box-shadow .25s; }
.agenda li.past::before { background: rgba(255, 255, 255, .7); box-shadow: none; }
.agenda li.now { color: #fff; }
.agenda li.now::before { background: var(--bolt); box-shadow: 0 0 0 4px rgba(251, 191, 36, .3); }
.ag-t { display: flex; gap: 12px; align-items: baseline; padding: 3px 0; font-size: 15px; line-height: 1.35; }
.ag-t time { width: 4.9em; flex: none; font-variant-numeric: tabular-nums; font-size: 13.5px; opacity: .85; }
.ag-t b { font-weight: 600; }
.ag-c { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1); }
.ag-c > p { overflow: hidden; padding-left: calc(4.9em * 13.5 / 15 + 12px); font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .88); max-width: 32em; }
.agenda li.now .ag-c { grid-template-rows: 1fr; }
.agenda li.now .ag-c > p { padding-bottom: 8px; }

.scene { position: relative; min-height: 0; }
.win-box { position: absolute; left: 0; top: 4%; width: 66%; height: 50%; transition: left .6s cubic-bezier(.2, .8, .2, 1), top .6s cubic-bezier(.2, .8, .2, 1), width .6s cubic-bezier(.2, .8, .2, 1), height .6s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.fb-wrap { position: absolute; right: 0; top: 34%; width: min(430px, 64%); transition: left .6s cubic-bezier(.2, .8, .2, 1), right .6s cubic-bezier(.2, .8, .2, 1), top .6s cubic-bezier(.2, .8, .2, 1), width .6s cubic-bezier(.2, .8, .2, 1), opacity .25s, transform .3s; }
.fb-wrap .fb { width: 100%; }
.scene.summon .win-box { left: 2%; top: 8%; width: 96%; height: 84%; filter: saturate(.9) brightness(.97); }
.scene.summon .fb-wrap { right: calc(50% - min(270px, 46%)); top: 13%; width: min(540px, 92%); }
.scene.closed .fb-wrap { opacity: 0; transform: scale(.98); }
#st-list .row { transition: height .35s cubic-bezier(.2, .8, .2, 1), opacity .25s, margin .35s; overflow: hidden; }
#st-list .row.gone { height: 0; opacity: 0; }
#st-list .row.new { animation: rowdrop .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes rowdrop { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
#st-preview { transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1); }
#st-preview:not(.on) { opacity: 0; transform: translateY(-8px); pointer-events: none; }

/* mock windows */
.win { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: light-dark(#fff, #1f2330); color: light-dark(#1d1d1f, #ececf1); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 22px 60px -18px rgba(6, 16, 50, .55); font: 13px/1.45 var(--sys); opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.win.on { opacity: 1; transform: none; }
.tb { flex: none; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: light-dark(#f3f4f7, #2a2f3d); border-bottom: .5px solid light-dark(rgba(0, 0, 0, .08), rgba(255, 255, 255, .08)); font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.tb i { width: 12px; height: 12px; border-radius: 50%; flex: none; background: #ff5f57; }
.tb i + i { background: #febc2e; }
.tb i + i + i { background: #28c840; margin-right: 8px; }
.wb { flex: 1; min-height: 0; padding: 16px 18px; overflow: hidden; }
.selx { border-radius: 3px; transition: background .2s, color .2s; }
.win.sel .selx { background: rgba(37, 99, 235, .28); box-shadow: 0 0 0 2px rgba(37, 99, 235, .28); }
.bars i { display: block; height: 9px; margin: 9px 0; border-radius: 5px; background: light-dark(#e6e9ef, #313748); }
.url { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; margin-bottom: 14px; border-radius: 8px; background: light-dark(#eef0f4, #2b3140); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.swgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.swgrid i { aspect-ratio: 1; border-radius: 8px; }
.prop { display: flex; justify-content: space-between; padding: 7px 0; border-top: .5px solid light-dark(#e6e9ef, #313748); }
.code { font: 12.5px/1.7 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre; }
.code .k { color: light-dark(#a626a4, #d58cf6); }
.code .s { color: light-dark(#c2410c, #fdba74); }
.code .n { color: light-dark(#1d4ed8, #93c5fd); }
.files { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: center; font-size: 11.5px; }
.files > div { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 8px 4px; border-radius: 8px; overflow-wrap: break-word; }
.files svg { width: 40px; height: 50px; }
.win.sel .files .selx { background: rgba(37, 99, 235, .22); }
.shot { position: relative; height: 100%; border-radius: 8px; background: light-dark(#f6f8fb, #262b38); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shot > div { border-radius: 8px; background: light-dark(#fff, #1f2330); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1); }
.shot .pic-dash { grid-column: 1 / -1; }
.crop { position: absolute; inset: 10px; border: 1.5px dashed #2563eb; border-radius: 6px; opacity: 0; transition: opacity .2s; }
.win.sel .crop { opacity: 1; background: rgba(37, 99, 235, .08); }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.win.sel .flash { animation: flash .5s ease-out; }
@keyframes flash { 20% { opacity: .8; } }
.mailh { display: grid; gap: 4px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: .5px solid light-dark(#e6e9ef, #313748); color: light-dark(#5b6375, #a3abbd); }
.chat { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.msg { align-self: flex-start; max-width: 78%; padding: 8px 12px; border-radius: 16px; background: light-dark(#e9ebf0, #2c3242); }
.msg.me { align-self: flex-end; color: #fff; background: #0a84ff; }
.msg small { display: block; font-size: 11px; opacity: .7; }
.compose { margin-top: auto; display: flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 20px; box-shadow: inset 0 0 0 1px light-dark(#d8dce5, #3a4152); overflow-wrap: anywhere; }
.compose .pasted { color: #0a84ff; }
.compose .pasted:empty { display: none; }
.compose::after { content: ""; display: inline-block; width: 1.5px; height: 17px; margin-left: 1px; background: #0a84ff; animation: caret 1s steps(1) infinite; flex: none; }

.keytoast { position: absolute; left: 50%; bottom: 3%; z-index: 4; display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 16px; font-size: 22px; background: rgba(15, 26, 60, .35); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3); opacity: 0; transform: translate(-50%, 10px) scale(.96); transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1.3); pointer-events: none; }
.keytoast.on { opacity: 1; transform: translate(-50%, 0); }
.keytoast .kc { font-size: 20px; --key-top: #fff; --key-bot: #eef1f6; --key-edge: #8ea4cf; color: #0f1a2e; }
.keytoast.on .kc { animation: press .5s .15s both; }
@keyframes press { 40% { transform: translateY(.1em); box-shadow: 0 .02em 0 var(--key-edge), inset 0 0 0 .5px rgba(15, 26, 46, .12); } }
.st-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .15); z-index: 2; }
.st-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--bolt); }

/* ---------- features ---------- */
.features { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 120px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 820; font-stretch: 106%; line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.sec-head p { color: var(--ink2); font-size: 18px; max-width: 30em; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 64px); }
.feat { display: grid; align-content: start; gap: 10px; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.feat svg { width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 4px; }
.feat svg .hl { stroke: var(--blue); }
.feat h3 { font-size: 22px; font-weight: 750; font-stretch: 104%; letter-spacing: -.015em; line-height: 1.15; }
.feat p { color: var(--ink2); font-size: 16px; }

/* ---------- shortcuts ---------- */
.shortcuts { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); background: var(--mist); }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.sc-left { display: grid; gap: 28px; }
.bigkeys { --d: 0; display: flex; gap: clamp(10px, 1.4vw, 18px); font-size: clamp(13px, 1.5vw, 19px); padding: 10px 0 8px; }
.bigkey { position: relative; height: 7em; border-radius: 1em; background: linear-gradient(var(--key-top), var(--key-bot)); box-shadow: 0 calc(.55em - var(--d) * .45em) 0 var(--key-edge), 0 calc(1em - var(--d) * .6em) calc(1.6em - var(--d) * .8em) rgba(15, 26, 46, calc(.18 - var(--d) * .08)), inset 0 0 0 1px rgba(15, 26, 46, .1), inset 0 2px 0 rgba(255, 255, 255, .5); transform: translateY(calc(var(--d) * .45em)); color: var(--ink); }
.bk-opt { width: 8em; }
.bk-space { flex: 1; max-width: 26em; }
.bk-sym { position: absolute; right: .7em; top: .45em; font-size: 1.7em; font-weight: 400; }
.bk-word { position: absolute; left: .9em; bottom: .7em; font-size: 1.1em; font-weight: 500; }
.bigkey.down { --d: 1 !important; }
.keys { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule); }
.keys > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.keys dt { font-size: 17px; white-space: nowrap; color: var(--ink2); }
.keys dd { margin: 0; font-size: 15px; line-height: 1.35; }

/* ---------- install ---------- */
.install { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(72px, 10vw, 140px); }
.steps { --p: 0; list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.steps::before, .steps::after { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 3px; border-radius: 2px; background: var(--rule); }
.steps::after { background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.steps li { position: relative; z-index: 1; display: grid; align-content: start; gap: 10px; }
.dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; font: 800 18px/1 var(--disp); background: var(--paper); color: var(--ink2); box-shadow: inset 0 0 0 2.5px var(--rule); transition: background .3s, color .3s, box-shadow .3s; }
.steps li.done .dot { background: var(--blue); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 18%, transparent); }
.steps h3 { font-size: 21px; font-weight: 750; letter-spacing: -.015em; }
.steps p { color: var(--ink2); font-size: 16px; }

/* ---------- CTA + footer ---------- */
.cta { padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); text-align: center; overflow: hidden; }
.cta-in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 26px; }
.cta img { width: clamp(88px, 10vw, 128px); height: auto; filter: drop-shadow(0 20px 40px rgba(6, 16, 50, .45)); }
.cta h2 { color: #fff; font-size: clamp(40px, 6.4vw, 92px); font-weight: 850; max-width: 13em; }
.cta p { color: rgba(255, 255, 255, .85); font-size: 15px; }
.cta .ctas { justify-content: center; }
.foot { padding-top: 36px; padding-bottom: 36px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; font-size: 14px; color: var(--ink2); }
.foot-in nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-in nav a { color: var(--ink2); text-decoration: none; }
.foot-in nav a:hover { color: var(--ink); }
.foot-in > p { margin-left: auto; }

/* ---------- narrower ---------- */
@media (max-width: 1000px) {
  .hero-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .stage-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding-top: 18px; padding-bottom: 22px; }
  .st-text { justify-content: start; gap: 10px; }
  .clock { font-size: clamp(52px, 15vw, 88px); }
  .agenda { border-left: 0; }
  .agenda li { display: none; padding-left: 0; }
  .agenda li.now { display: block; }
  .agenda li::before { display: none; }
  .ag-c > p { padding-left: 0; }
  .win-box { width: 100%; height: 38%; top: 0; }
  .fb-wrap { width: 100%; top: 44%; }
  .scene.summon .win-box { left: 0; width: 100%; top: 0; height: 100%; }
  .scene.summon .fb-wrap { right: 0; width: 100%; top: 6%; }
  #st-list { max-height: 158px; overflow: hidden; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-left: 62px; }
  .steps::before, .steps::after { left: 20.5px; right: auto; top: 22px; bottom: 22px; width: 3px; height: auto; }
  .steps::after { transform-origin: 50% 0; transform: scaleY(var(--p)); }
  .steps .dot { position: absolute; left: -62px; top: -4px; }
  .foot-in > p { margin-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .menubar > span:not(.mb-right) { display: none; }
  .ag-t time { display: none; }
  .files { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .files > div:nth-child(3) { display: none; }
  .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .screen { height: 600px; --r: 22px; }
  .demo .fb-list { max-height: 208px; }
  .fb-search input, .fb-q { font-size: 19px; }
  .demo-hint { gap: 8px 14px; font-size: 12px; }
  .ctas .btn { flex: 1 1 auto; }
}
@media (max-height: 720px) and (min-width: 861px) {
  .ag-t { padding: 1px 0; font-size: 14px; }
  .clock { font-size: clamp(56px, 7vw, 110px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
