/* Yoink website. Fluent surfaces, Windows type, one ultramarine accent, the logo's plum for one band. */

:root {
  --ground: #f3f3f6;
  --paper: #fbfbfc;
  --card: #ffffff;
  --desk: #e3e1ee;
  --chrome: #f0eff4;
  --ink: #1b1b1f;
  --ink2: #55545f;
  --ink3: #6b6a75;
  --hair: rgba(0, 0, 0, .08);
  --stroke: rgba(0, 0, 0, .11);
  --stroke-strong: rgba(0, 0, 0, .2);
  --accent-l: #2f3bcb;
  --accent-d: #9aa3ff;
  --accent: var(--accent-l);
  --on-accent: #ffffff;
  --accent-hover: color-mix(in srgb, var(--accent) 90%, #fff);
  --accent-press: color-mix(in srgb, var(--accent) 84%, #000);
  --accent-subtle: color-mix(in srgb, var(--accent) 11%, transparent);
  --plum: #2a1d66;
  --plum-raised: #36297a;
  --plum-ink2: #d3cdf3;
  --local: #0f7b0f;
  --cloud: #9d5d00;
  --warn-bg: #fff6e8;
  --warn-stroke: rgba(157, 93, 0, .28);
  --shadow-window: 0 8px 24px rgba(0, 0, 0, .14), 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, .14);

  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --section: clamp(88px, 11vw, 152px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-std: cubic-bezier(.33, 1, .68, 1);
  --ease-sine: cubic-bezier(.37, 0, .63, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #18171d;
    --paper: #1f1e25;
    --card: #28272f;
    --desk: #2b2838;
    --chrome: #222129;
    --ink: #f4f3f8;
    --ink2: #bdbbca;
    --ink3: #a3a1b2;
    --hair: rgba(255, 255, 255, .08);
    --stroke: rgba(255, 255, 255, .12);
    --stroke-strong: rgba(255, 255, 255, .24);
    --accent: var(--accent-d);
    --on-accent: #0e1040;
    --accent-hover: color-mix(in srgb, var(--accent) 88%, #fff);
    --accent-press: color-mix(in srgb, var(--accent) 82%, #000);
    --accent-subtle: color-mix(in srgb, var(--accent) 16%, transparent);
    --plum: #241954;
    --plum-raised: #30246a;
    --local: #6ccb5f;
    --cloud: #f2b450;
    --warn-bg: #2d2416;
    --warn-stroke: rgba(242, 180, 80, .3);
    --shadow-window: 0 8px 24px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .3);
    --shadow-float: 0 8px 24px rgba(0, 0, 0, .45);
  }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code, .mono { font-family: var(--mono); font-size: .9em; }
code { background: var(--accent-subtle); padding: .08em .35em; border-radius: 4px; overflow-wrap: anywhere; }
strong { font-weight: 600; }
em { font-style: normal; font-weight: 600; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico--accent { color: var(--accent); }

.wrap { width: min(100%, calc(var(--wrap) + var(--gutter) * 2)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 12px; top: 12px; translate: 0 -200%; z-index: 100; padding: 10px 16px; background: var(--card); color: var(--ink); border-radius: 6px; box-shadow: var(--shadow-float); }
.skip:focus { translate: 0 0; }

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: .02em .42em .06em;
  border: 1px solid var(--stroke);
  border-bottom-color: var(--stroke-strong);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  font: 600 .78em/1.5 var(--font);
  text-align: center;
  vertical-align: .08em;
  white-space: nowrap;
}

.h2 {
  font: 600 clamp(2.05rem, 1.35rem + 2.7vw, 3.5rem)/1.06 var(--display);
  letter-spacing: -.022em;
  max-width: 18ch;
}
.h3 { font: 600 1.25rem/1.3 var(--display); }
.h4 { font: 600 1.0625rem/1.35 var(--font); }
.lede { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.5; color: var(--ink2); max-width: 46ch; }
.fineprint { font-size: .875rem; line-height: 1.5; color: var(--ink2); }
.muted { color: var(--ink2); }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 6px;
  font: 600 .9375rem/1 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease-std), color .15s var(--ease-std), transform .15s var(--ease-std);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn--accent {
  background: var(--accent); color: var(--on-accent);
  border-color: color-mix(in srgb, var(--accent) 80%, #fff);
  border-bottom-color: color-mix(in srgb, var(--accent) 70%, #000);
}
.btn--accent:hover { background: var(--accent-hover); }
.btn--accent:active { background: var(--accent-press); color: color-mix(in srgb, var(--on-accent) 82%, transparent); }
.btn--big { height: 54px; padding: 0 24px 0 20px; border-radius: 8px; font-size: 1.0625rem; gap: 10px; }
.btn--big .ico { width: 22px; height: 22px; }
.btn--small { height: 34px; padding: 0 12px; font-size: .875rem; }
.btn--quiet {
  background: var(--card); color: var(--ink);
  border-color: var(--stroke); border-bottom-color: var(--stroke-strong);
}
.btn--quiet:hover { background: color-mix(in srgb, var(--card) 94%, var(--ink)); }
.btn--quiet:active { background: color-mix(in srgb, var(--card) 90%, var(--ink)); color: var(--ink2); }
.btn--tiny { height: 30px; padding: 0 10px; font-size: .8125rem; gap: 6px; }
.btn--tiny .ico { width: 16px; height: 16px; }
.btn.is-done { color: var(--local); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; font-size: inherit; }

/* Header */

.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 0%, transparent);
  border-bottom: 1px solid transparent;
  transition: background-color .2s var(--ease-std), border-color .2s var(--ease-std);
}
.top.is-stuck { background: var(--ground); border-bottom-color: var(--hair); }
.top__inner { display: flex; align-items: center; gap: 24px; height: 64px; width: min(100%, calc(var(--wrap) + var(--gutter) * 2)); margin-inline: auto; padding-inline: var(--gutter); }
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.1875rem/1 var(--display); }
.lockup img { width: 28px; height: 28px; border-radius: 6px; }
.top__nav { display: flex; gap: 4px; margin-left: auto; }
.top__nav a { padding: 8px 12px; border-radius: 6px; color: var(--ink2); text-decoration: none; font-size: .9375rem; }
.top__nav a:hover { color: var(--ink); background: var(--hair); }
.top .btn { margin-left: 8px; }

/* Hero */

.hero { padding-top: clamp(28px, 6vw, 72px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
}
.hero__title { font: 600 clamp(3rem, 1.4rem + 6.6vw, 6rem)/.98 var(--display); letter-spacing: -.03em; }
.hero__line { display: block; }
.hero__side { display: grid; gap: 28px; padding-bottom: .5rem; }
.hero__lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--ink2); max-width: 44ch; }
.hero__lede kbd { font-size: .74em; }
.cta { display: grid; gap: 12px; justify-items: start; }
.cta__meta { font-size: .875rem; color: var(--ink2); font-variant-numeric: tabular-nums; }
.cta__os { font-size: .875rem; color: var(--ink2); max-width: 40ch; }

/* The grab: the headline phrase inside capture corners */

.grab { position: relative; display: inline-block; padding: .02em .14em .06em; margin-left: -.14em; margin-top: .08em; }
.grab__text { color: var(--ink); }
.grab__lit { position: absolute; inset: 0; padding: inherit; color: var(--accent); white-space: nowrap; clip-path: inset(0 0 0 0); }
.grab__scan { position: absolute; top: .1em; bottom: .12em; left: 100%; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); opacity: 0; }
.c { position: absolute; width: .2em; height: .2em; border: 0 solid var(--accent); }
.grab .c { border-width: max(3px, .045em); }
.c--tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 4px; }
.c--tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 4px; }
.c--bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 4px; }
.c--br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 4px; }
.grab .c--tl { border-right-width: 0; border-bottom-width: 0; }
.grab .c--tr { border-left-width: 0; border-bottom-width: 0; }
.grab .c--bl { border-right-width: 0; border-top-width: 0; }
.grab .c--br { border-left-width: 0; border-top-width: 0; }

.grab.is-playing .c { animation: corner-in .24s var(--ease-out) both; }
.grab.is-playing .grab__lit { animation: lit-sweep 1.08s var(--ease-sine) .32s both; }
.grab.is-playing .grab__scan { animation: scan-sweep 1.08s var(--ease-sine) .32s both, scan-fade .3s var(--ease-std) 1.4s both; }
@keyframes corner-in { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: none; } }
.grab.is-playing .c--tl { transform-origin: 100% 100%; }
@keyframes lit-sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scan-sweep { from { left: 0; opacity: 1; } to { left: 100%; opacity: 1; } }
@keyframes scan-fade { from { opacity: 1; } to { opacity: 0; } }

/* Stage: illustrative desktop */

.stage { margin: clamp(40px, 6vw, 72px) 0 0; }
.desk {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start;
  padding: clamp(18px, 3vw, 36px) clamp(18px, 3vw, 36px) 76px;
  border-radius: 12px; background: var(--desk);
  border: 1px solid var(--hair);
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.desk.is-capturing { cursor: crosshair; touch-action: none; }

.win { position: relative; background: var(--card); border: 1px solid var(--stroke); border-radius: 8px; box-shadow: var(--shadow-window); overflow: hidden; }
.win__bar { display: flex; align-items: center; height: 34px; padding: 0 0 0 12px; background: var(--chrome); font-size: .75rem; color: var(--ink2); }
.win__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__caps { display: flex; height: 100%; }
.win__caps i { position: relative; width: 40px; height: 100%; }
.win__caps i::before { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.win__caps i:nth-child(1)::before { width: 10px; height: 1px; background: var(--ink2); }
.win__caps i:nth-child(2)::before { width: 9px; height: 9px; border: 1px solid var(--ink2); border-radius: 2px; }
.win__caps i:nth-child(3)::before, .win__caps i:nth-child(3)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--ink2); translate: -50% -50%; rotate: 45deg; }
.win__caps i:nth-child(3)::after { rotate: -45deg; }

.win--player { z-index: 1; }
.win--notepad { z-index: 2; margin: 72px 0 0 -40px; }

.video { position: relative; container-type: inline-size; background: #17120f; touch-action: none; cursor: crosshair; outline: none; }
.video__frame {
  aspect-ratio: 16 / 9.4; padding: 6.5cqi 7cqi 0;
  color: #f6ecdc; font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(120% 90% at 85% 20%, rgba(214, 160, 92, .18), transparent 60%),
    #221a15;
}
.video__tag { font: 600 1.7cqi/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #e2b366; margin-bottom: 2.4cqi; }
.video__title { font-size: 5.6cqi; line-height: 1.08; font-style: italic; margin-bottom: 3cqi; }
.video__list { list-style: none; margin: 0 0 2.6cqi; padding: 0; font-size: 3.05cqi; line-height: 1.55; }
.video__list li::before { content: ""; display: inline-block; width: .42em; height: .42em; margin: 0 .6em .12em 0; border-radius: 50%; background: #e2b366; }
.video__note { display: inline-block; font-size: 2.7cqi; padding: .3em .7em; border-radius: 4px; background: rgba(246, 236, 220, .12); }
.video__controls { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #0f0c0a; color: #e9e3da; font-size: .75rem; font-variant-numeric: tabular-nums; }
.video__controls .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.video__track { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.video__track span { display: block; width: 38%; height: 100%; border-radius: inherit; background: #e9e3da; }
.w { border-radius: 2px; transition: background-color .2s var(--ease-std); }

.notepad__menu { display: flex; gap: 16px; padding: 6px 12px; font-size: .75rem; color: var(--ink2); border-bottom: 1px solid var(--hair); background: var(--chrome); }
.notepad__body { position: relative; min-height: 230px; padding: 14px 16px 20px; font: 400 .875rem/1.6 var(--mono); color: var(--ink); background: var(--card); }
.notepad__paste { display: inline; white-space: pre-wrap; }
.notepad__paste .fresh { background: var(--accent-subtle); border-radius: 2px; }
.caret { display: inline-block; width: 1px; height: 1.15em; margin-left: 1px; vertical-align: -.2em; background: var(--ink); animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pastekey { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 4px; opacity: 0; transform: translateY(6px); transition: opacity .18s var(--ease-std), transform .18s var(--ease-std); }
.pastekey.is-on { opacity: 1; transform: none; }

.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; background: var(--chrome); border-top: 1px solid var(--hair); }
.taskbar__tray { display: flex; align-items: center; gap: 14px; color: var(--ink2); font-size: .75rem; font-variant-numeric: tabular-nums; }
.taskbar__tray .ico { width: 16px; height: 16px; }
.taskbar__yoink { width: 18px; height: 18px; border-radius: 4px; }
.taskbar__clock { padding-left: 4px; }
.desk.is-capturing .taskbar__yoink { outline: 2px solid var(--accent); outline-offset: 3px; }

.veil { position: absolute; inset: 0; z-index: 5; background: rgba(0, 0, 0, .3); animation: fade-in .15s var(--ease-std); }
.veil.has-sel { background: transparent; }
@keyframes fade-in { from { opacity: 0; } }
.hint {
  position: absolute; left: 50%; top: 16px; translate: -50% 0;
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px; border-radius: 8px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--stroke);
  box-shadow: var(--shadow-float); font-size: .875rem; white-space: nowrap;
}
.hint__sep { width: 1px; height: 18px; background: var(--stroke); }
.hint__muted { color: var(--ink2); font-size: .8125rem; }
.hint kbd { font-size: .75rem; }

.sel { position: absolute; z-index: 6; pointer-events: none; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 2px; }
.desk .sel { box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .3); }
.sel .c { width: 14px; height: 14px; margin: -3px; }
.sel .c--tl { border-right-width: 0; border-bottom-width: 0; }
.sel .c--tr { border-left-width: 0; border-bottom-width: 0; }
.sel .c--bl { border-right-width: 0; border-top-width: 0; }
.sel .c--br { border-left-width: 0; border-top-width: 0; }

/* Pill + scan mark (the app's progress pill, redrawn from its spec) */

.pill {
  position: absolute; z-index: 7;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 172px; height: 44px; padding: 0 14px;
  border-radius: 8px; background: var(--paper); color: var(--ink2);
  border: 1px solid var(--stroke); box-shadow: var(--shadow-float);
  font-size: .9375rem; white-space: nowrap;
  transform-origin: center;
}
.pill.is-morphing { transition: left .2s var(--ease-std), top .2s var(--ease-std), width .2s var(--ease-std), height .2s var(--ease-std), border-radius .2s var(--ease-std); }
.pill.is-morphing > * { opacity: 0; }
.pill > * { transition: opacity .12s var(--ease-std) .08s; }
.pill.is-copied { color: var(--ink); }
.pill.is-leaving { opacity: 0; transform: translateY(-6px) scale(.98); transition: opacity .15s var(--ease-std), transform .15s var(--ease-std); }
.pill::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent);
}
.pill.is-pulse::after { animation: pulse .52s var(--ease-out) both; }
@keyframes pulse { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(1.9); } }

.scanmark { width: 40px; height: 24px; flex: none; overflow: visible; }
.scanmark * { vector-effect: non-scaling-stroke; }
.scanmark__corners { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; transform-origin: 20px 12px; transition: transform .24s var(--ease-out); }
.scanmark__lines path { fill: none; stroke: color-mix(in srgb, var(--ink2) 45%, transparent); stroke-width: 2; stroke-linecap: round; }
.scanmark__lit path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.scanmark__wash { fill: var(--accent-subtle); opacity: 0; }
.scanmark__litwash { fill: var(--accent-subtle); stroke: none; }
.scanmark-slot { display: contents; }
.scanmark__bar { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.scanmark__check { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; }
.scanmark__clip { transform: translateX(0); }

.pill.is-reading .scanmark__clip { animation: scan-move 1.8s infinite; }
.pill.is-reading .scanmark__bar { animation: scan-move 1.8s infinite, bar-fade 1.8s infinite; }
.pill.is-reading .scanmark__lit { animation: lit-fade 1.8s infinite; }
@keyframes scan-move {
  0% { transform: translateX(0); animation-timing-function: var(--ease-sine); }
  60%, 100% { transform: translateX(26px); }
}
@keyframes bar-fade { 0%, 58% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes lit-fade { 0%, 70% { opacity: 1; } 90%, 100% { opacity: 0; } }

.pill.is-copied .scanmark__lit, .pill.is-copied .scanmark__lines, .pill.is-copied .scanmark__bar { opacity: 0; transition: opacity .12s var(--ease-std); }
.pill.is-copied .scanmark__corners { transform: scale(.9); }
.pill.is-copied .scanmark__wash { opacity: 1; transition: opacity .24s var(--ease-out); }
.pill.is-copied .scanmark__check { stroke-dashoffset: 0; transition: stroke-dashoffset .24s var(--ease-out); }

/* How it works */

.how { padding-top: var(--section); }
.steps {
  list-style: none; margin: clamp(32px, 4vw, 56px) 0 20px; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--paper); border: 1px solid var(--hair); border-radius: 12px;
}
.step { padding: clamp(24px, 3vw, 40px); display: grid; align-content: start; gap: 12px; }
.step + .step { border-left: 1px solid var(--hair); }
.step p { color: var(--ink2); }
.step kbd { font-size: .74em; }
.step__visual { height: 132px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin-bottom: 12px; }
.step__n { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: .5em; border-radius: 50%; background: var(--accent-subtle); color: var(--accent); font-size: .8em; font-variant-numeric: tabular-nums; vertical-align: .1em; }
.key {
  display: grid; place-items: center; height: 72px; min-width: 72px; padding: 0 16px;
  border: 1px solid var(--stroke); border-bottom: 5px solid var(--stroke-strong); border-radius: 10px;
  background: var(--card); font: 600 1.25rem/1 var(--font); color: var(--ink);
  transition: transform .08s var(--ease-std), border-bottom-width .08s var(--ease-std), color .08s;
}
.key--wide { min-width: 96px; }
.key.is-down { transform: translateY(3px); border-bottom-width: 2px; color: var(--accent); }
.step__visual--hint img, .step__visual--pill img { border-radius: 8px; }
.step__visual--hint img { width: min(316px, 100%); box-shadow: var(--shadow-float); }
.step__visual--pill img { width: 250px; max-width: 100%; }

/* Scenes */

.scenes { padding-top: var(--section); }
.scenes__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 48px; align-items: end; }
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 2px; margin: clamp(28px, 3.5vw, 44px) 0 20px; padding: 3px;
  background: var(--hair); border-radius: 8px;
}
.tabs [role="tab"] {
  height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--ink2);
  font-size: .9375rem; cursor: pointer; white-space: nowrap;
}
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--card); border-color: var(--stroke); color: var(--accent); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }

.scene {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  background: var(--paper); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden;
}
.scene__view { position: relative; display: grid; place-items: center; min-height: 380px; padding: clamp(20px, 4vw, 48px); background: var(--desk); }
.scene__side { display: grid; align-content: center; gap: 24px; padding: clamp(24px, 3.5vw, 48px); }
.scene__why { font-size: 1.125rem; line-height: 1.55; max-width: 36ch; }
.scene .sel { opacity: 0; box-shadow: none; }
.scene.is-run .sel { animation: sel-in .24s var(--ease-out) both; }
@keyframes sel-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.scene .sel::after { content: ""; position: absolute; inset: 0; background: var(--accent-subtle); }

.capture-row {
  min-height: 92px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start;
  padding: 14px 14px 14px 16px; border-radius: 8px; background: var(--card); border: 1px solid var(--stroke);
  position: relative;
}
.capture-row::before { content: ""; position: absolute; left: 4px; top: 17px; width: 3px; height: 16px; border-radius: 2px; background: var(--accent); }
.capture-row.is-empty::before { display: none; }
.capture-row .ico { margin-top: 2px; color: var(--ink2); }
.capture-row__text { font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; min-height: 1.45em; }
.capture-row__text.is-code { font-family: var(--mono); font-size: .9375rem; }
.capture-row__meta { grid-column: 2; font-size: .8125rem; color: var(--ink2); }
.capture-row__actions { grid-column: 2; margin-top: 10px; display: flex; gap: 8px; }
.capture-row.is-empty { color: var(--ink2); place-items: center start; }
.capture-row .pill { position: static; width: 172px; }
.capture-row.is-reading { grid-template-columns: 1fr; place-items: center; }

.mock { position: relative; font-size: 15px; line-height: 1.5; color: #1b1b1f; }
.mock--call { width: min(100%, 520px); background: #1e1f24; color: #e8e8ee; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-window); }
.call__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; }
.call__muted { color: #a9a9b6; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--red { background: #e5484d; }
.call__slide { margin: 0 14px; padding: 26px 28px; border-radius: 6px; background: #fdfcf8; color: #23232a; font-family: "Segoe UI", Arial, sans-serif; }
.call__slide p { font-size: 15px; padding: 2px 0; }
.call__slide .call__h { font-size: 24px; font-weight: 700; margin-bottom: 10px; color: #0b5d4f; }
.call__people { display: flex; gap: 8px; padding: 12px 14px 14px; }
.call__people span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #34353d; font-size: 12px; font-weight: 600; }

.mock--letter { width: min(100%, 440px); padding: 34px 36px 40px; background: #f7f4ec; color: #2a2722; font-family: "Times New Roman", Georgia, serif; font-size: 16px; rotate: -1.3deg; box-shadow: 0 10px 28px rgba(0, 0, 0, .16); filter: contrast(.96); }
.mock--letter p + p { margin-top: 12px; }
.letter__from { font-weight: 700; font-size: 14px; line-height: 1.35; margin-bottom: 22px; }
.letter__ref { font-weight: 700; }

.mock--error { width: min(100%, 420px); background: #f9f9f9; border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-window); font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 14px; }
.err__bar { display: flex; align-items: center; justify-content: space-between; height: 32px; padding-left: 12px; font-size: 12px; color: #444; }
.err__x { display: grid; place-items: center; width: 44px; height: 32px; }
.err__x .ico { width: 14px; height: 14px; }
.err__body { display: flex; gap: 14px; padding: 12px 22px 22px; background: #fff; }
.err__icon { color: #c42b1c; }
.err__icon .ico { width: 28px; height: 28px; }
.err__h { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.err__muted { color: #555; }
.err__foot { display: flex; justify-content: flex-end; padding: 14px 20px; background: #f3f3f3; border-top: 1px solid rgba(0, 0, 0, .06); }
.err__btn { display: grid; place-items: center; min-width: 96px; height: 32px; border-radius: 4px; background: #005fb8; color: #fff; font-weight: 600; }

.mock--chat { width: min(100%, 460px); padding: 18px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-window); font-family: "Segoe UI", Arial, sans-serif; }
.chat__who { font-weight: 600; font-size: 14px; }
.chat__who span { font-weight: 400; color: #666; }
.chat__msg { font-size: 15px; margin: 2px 0 10px; }
.chat__img { padding: 10px; background: #e9ebef; border-radius: 6px; }
.sheet { background: #fff; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 14px; border: 1px solid #c8ccd2; }
.sheet__row { display: grid; grid-template-columns: 1fr 1fr 1.3fr; }
.sheet__row span { padding: 5px 8px; border-right: 1px solid #dde0e4; border-bottom: 1px solid #dde0e4; white-space: nowrap; }
.sheet__row--head { background: #f0f2f5; font-weight: 700; }

.mock--poster { display: flex; align-items: center; gap: 28px; width: min(100%, 460px); padding: 30px; background: #f5e9d6; color: #3b2414; border-radius: 6px; box-shadow: var(--shadow-window); font-family: Georgia, serif; }
.poster__h { font-size: 30px; font-style: italic; line-height: 1.05; margin-bottom: 8px; }
.poster__qr { width: 132px; height: 132px; flex: none; border-radius: 4px; }

/* History */

.history { padding-top: var(--section); }
.history__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.history__copy { display: grid; gap: 20px; position: sticky; top: 96px; }
.spots { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spots button {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--stroke); border-radius: 6px;
  background: var(--card); cursor: pointer; font-size: .9375rem; text-align: left;
}
.spots button:hover { background: color-mix(in srgb, var(--card) 94%, var(--ink)); }
.spots button[aria-pressed="true"] { background: var(--accent-subtle); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.spot-desc { min-height: 3.2em; color: var(--ink2); font-size: 1rem; max-width: 40ch; }
.shot { margin: 0; display: grid; gap: 12px; }
.shot__inner { position: relative; }
.shot__frame { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--stroke); box-shadow: var(--shadow-window); background: var(--paper); }
.spot {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%);
  border-radius: 6px; background: var(--accent-subtle); outline: 2px solid var(--accent); outline-offset: 3px;
  opacity: 0; transform: scale(1.04); transition: opacity .18s var(--ease-std), transform .24s var(--ease-out); pointer-events: none;
}
.spot.is-on { opacity: 1; transform: none; }

/* Privacy */

.private { margin-top: var(--section); padding: var(--section) 0; background: var(--plum); color: #fff; }
.h2--on-plum { max-width: 24ch; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin-top: clamp(36px, 4.5vw, 64px); border-radius: 12px; overflow: hidden; }
.mode { background: var(--plum-raised); padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 12px; align-content: start; }
.mode p { color: var(--plum-ink2); font-size: 1.0625rem; max-width: 44ch; }
.mode__h { display: flex; align-items: center; gap: 12px; font: 600 1.5rem/1.2 var(--display); }
.mode__tag { margin-left: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); font: 600 .75rem/1.3 var(--font); color: #fff; }
.led { width: 10px; height: 10px; border-radius: 50%; }
.led--local { background: #6ccb5f; box-shadow: 0 0 0 4px rgba(108, 203, 95, .18); }
.led--cloud { background: #f2b450; box-shadow: 0 0 0 4px rgba(242, 180, 80, .18); }
.truths { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 36px; color: var(--plum-ink2); }
.truths li { display: flex; align-items: center; gap: 10px; }
.truths .ico { color: #fff; }
.private :focus-visible { outline-color: #fff; }

/* Themes */

.themes { padding-top: var(--section); }
.themes__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.themes__copy { display: grid; gap: 20px; }
.swatches { border: 0; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.swatches legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.swatches label {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px;
  border: 1px solid var(--stroke); border-radius: 8px; background: var(--card); cursor: pointer; font-size: .9375rem;
}
.swatches label:hover { background: color-mix(in srgb, var(--card) 94%, var(--ink)); }
.swatches input { position: absolute; opacity: 0; pointer-events: none; }
.swatches label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.swatches label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--bg); border: 1px solid var(--stroke-strong); position: relative; }
.sw::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--sw); }
.phone { margin: 0; display: grid; gap: 12px; justify-items: center; }
.phone img { width: min(100%, 330px); border-radius: 12px; border: 1px solid var(--stroke); box-shadow: var(--shadow-window); transition: opacity .18s var(--ease-std); }
.phone img.is-swapping { opacity: 0; }

/* More */

.more { padding-top: var(--section); }
.feats { list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.feats li { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 22px 0 26px; border-top: 1px solid var(--hair); }
.feats .ico { grid-row: span 2; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.feats p { color: var(--ink2); font-size: 1rem; }

/* Download */

.get { padding-top: var(--section); }
.get__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
}
.get__grid > * { min-width: 0; }
.get__main { display: grid; gap: 24px; justify-items: start; align-content: start; }
.get__mark { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.facts { margin: 8px 0 0; width: 100%; border-top: 1px solid var(--hair); }
.facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.facts dt { color: var(--ink2); font-size: .9375rem; }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; }
.facts__hash dd { display: grid; gap: 10px; justify-items: start; }
.hash { display: block; background: none; padding: 0; font-size: .8125rem; line-height: 1.5; word-break: break-all; color: var(--ink); }

.get__side { display: grid; gap: 20px; align-content: start; }
.notice { display: grid; gap: 12px; padding: 22px 24px; border-radius: 8px; background: var(--warn-bg); border: 1px solid var(--warn-stroke); }
.notice h3 { display: flex; align-items: center; gap: 10px; }
.notice h3 .ico { color: var(--cloud); }
.notice p { font-size: .9375rem; color: var(--ink); }
.cmd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 6px; background: var(--card); border: 1px solid var(--stroke); }
.cmd code { background: none; padding: 0; font-size: .8125rem; }
.install__h { margin-top: 12px; }
.install { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.install li { counter-increment: s; position: relative; padding-left: 40px; min-height: 26px; color: var(--ink2); }
.install li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-subtle); color: var(--accent); font-size: .8125rem; font-weight: 600; }
.install strong { color: var(--ink); }
.install .mono { overflow-wrap: anywhere; }

/* FAQ */

.faq { padding: var(--section) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq__list { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 2px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .ico { color: var(--ink2); transition: transform .2s var(--ease-std); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 2px 22px; color: var(--ink2); max-width: 62ch; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .22s var(--ease-std), content-visibility .22s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* Footer */

.foot { border-top: 1px solid var(--hair); padding: 36px 0 48px; }
.foot__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 16px; }
.foot__provida { color: var(--ink2); font-size: .9375rem; padding-left: 16px; border-left: 1px solid var(--stroke); }
.foot__meta { color: var(--ink2); font-size: .875rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .9375rem; }
.foot__nav a { color: var(--ink2); text-decoration: none; }
.foot__nav a:hover { color: var(--ink); text-decoration: underline; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; translate: -50% 0;
  padding: 12px 18px; border-radius: 8px; background: var(--paper); color: var(--ink); border: 1px solid var(--stroke);
  box-shadow: var(--shadow-float); font-size: .9375rem;
  animation: toast-in .18s var(--ease-std);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.show-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .hide-touch { display: none; }
  .show-touch { display: inline; }
}

/* Stage footer */
.stage__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; font-size: .9375rem; color: var(--ink2); }
.stage__foot kbd { font-size: .78em; }
.stage__note { margin-left: auto; font-size: .8125rem; }

/* Responsive */

@media (max-width: 1080px) {
  .top__nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .history__grid { grid-template-columns: 1fr; }
  .history__copy { position: static; }
  .scene { grid-template-columns: 1fr; }
  .scene__view { min-height: 340px; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .get__grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--hair); }
  .step__visual { height: auto; min-height: 88px; }
  .scenes__head { grid-template-columns: 1fr; }
  .themes__grid { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .desk { grid-template-columns: 1fr; padding: 14px 14px 62px; }
  .win--notepad { margin: -18px 18px 0 28px; }
  .notepad__body { min-height: 120px; }
  .video__frame { aspect-ratio: auto; padding: 6cqi 6cqi 5cqi; }
  .video__tag { font-size: 2.8cqi; }
  .video__title { font-size: 7.6cqi; }
  .video__list { font-size: 5cqi; }
  .video__note { font-size: 4.4cqi; }
  .shot__frame { overflow-x: auto; overscroll-behavior-x: contain; }
  .shot__inner { min-width: 640px; }
  .win__caps i { width: 30px; }
  .hint { font-size: .8125rem; gap: 8px; padding: 0 10px; }
  .hint__sep, .hint kbd, .hint__muted { display: none; }
  .stage__note { margin-left: 0; width: 100%; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .tabs::-webkit-scrollbar { display: none; }
  .feats { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock--poster { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; }
  .mock--letter { padding: 26px 24px 30px; }
  .call__slide { padding: 18px 18px; }
  .sheet { font-size: 12.5px; }
  .sheet__row span { padding: 4px 6px; }
  .key { height: 60px; min-width: 60px; font-size: 1.0625rem; }
  .key--wide { min-width: 80px; }
}

@media (max-width: 480px) {
  .hide-narrow { display: none; }
  .btn--big { width: 100%; }
  .cta { justify-items: stretch; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .foot__brand { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .caret { animation: none; }
  .pill.is-reading .scanmark__clip, .pill.is-reading .scanmark__bar { animation: none; transform: none; }
  .pill.is-reading .scanmark__lit { animation: none; opacity: 0; }
  .grab__scan { display: none; }
}

@media (forced-colors: active) {
  .sel, .spot { outline: 2px solid Highlight; }
  .c { border-color: Highlight; }
  .btn { border: 1px solid ButtonText; }
}
