/* =========================================================================
   KeyDeck — keydeck.io
   Shares the app's palette so the site, the product and the documentation
   read as one thing. Type and spacing are scaled up: this is a page you
   scroll, not a UI you work in.
   ========================================================================= */

:root {
  --ink: #05060a;
  --ink-2: #0b0d14;
  --panel: rgba(30, 30, 45, 0.62);
  --line: rgba(120, 122, 140, 0.18);
  --line-2: rgba(120, 122, 140, 0.32);

  --white: #ffffff;
  --text: #c9cbd6;
  --dim: #82859a;
  --faint: #5a5d70;

  --green: #1ca270;
  --green-lt: #4cc99a;
  --pink: #f26990;
  --cyan: #81dcd3;
  --amber: #deba3a;

  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', Consolas, monospace;

  --r: 14px;
  --r-lg: 22px;
  --nav-h: 60px;
  --pad: clamp(20px, 5vw, 48px);
  --measure: 62ch;
  --section: clamp(76px, 11vw, 152px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:where(:focus, :focus-visible) { outline: none; }
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--green-lt); outline-offset: 3px; border-radius: 6px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Slow drifting glow behind everything. Fixed, so it reads as depth rather
   than as an element that scrolls with the content. */
body::before {
  content: '';
  position: fixed; inset: -30vh -20vw;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42vw 42vw at 22% 12%, rgba(28, 162, 112, 0.16), transparent 62%),
    radial-gradient(38vw 38vw at 82% 42%, rgba(242, 105, 144, 0.11), transparent 62%),
    radial-gradient(46vw 46vw at 50% 96%, rgba(59, 130, 246, 0.09), transparent 64%);
  animation: drift 34s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.wrap { width: min(1220px, 100%); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 1; }
.narrow { width: min(880px, 100%); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 1; }

/* ---- Navigation --------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 80;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 26px;
  padding-inline: var(--pad);
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--white); flex: none; }
.brand svg { width: 26px; height: 26px; }
.brand b { font-size: 16px; font-weight: 640; letter-spacing: -0.01em; }
.mark-frame { fill: rgba(28,162,112,0.14); stroke: var(--green); stroke-width: 1.6; }
.mark-k { fill: none; stroke: var(--green-lt); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mark-dot { fill: var(--pink); }

.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--green); color: #04170f; box-shadow: 0 6px 24px rgba(28,162,112,.3); }
.btn--primary:hover { background: var(--green-lt); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(28,162,112,.4); }
.btn--ghost { border-color: var(--line-2); color: var(--white); }
.btn--ghost:hover { border-color: var(--green); background: rgba(28,162,112,.08); transform: translateY(-1px); }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---- Type --------------------------------------------------------------- */

h1, h2, h3, h4 { color: var(--white); letter-spacing: -0.03em; line-height: 1.05; font-weight: 660; }
.display { font-size: clamp(40px, 7.4vw, 86px); }
h2 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.08; }
h3 { font-size: clamp(20px, 2.4vw, 27px); line-height: 1.2; letter-spacing: -0.02em; }
h4 { font-size: 17px; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-lt); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 1.5px; background: currentColor; opacity: .55; }

.lede { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.55; color: var(--dim); max-width: var(--measure); }
p { max-width: var(--measure); }
.mono { font-family: var(--mono); }
.hl { color: var(--white); }
.grad {
  background: linear-gradient(96deg, var(--white) 12%, var(--green-lt) 52%, var(--cyan) 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

section { padding-block: var(--section); position: relative; z-index: 1; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; }

/* ---- Reveal-on-scroll --------------------------------------------------- */

[data-reveal] { opacity: 0; transform: translateY(26px); }
[data-reveal].in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
[data-reveal][data-d="1"].in { transition-delay: .09s; }
[data-reveal][data-d="2"].in { transition-delay: .18s; }
[data-reveal][data-d="3"].in { transition-delay: .27s; }
[data-reveal][data-d="4"].in { transition-delay: .36s; }

/* ---- App window --------------------------------------------------------- */

.device {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2);
  background: #12131b;
  box-shadow: 0 50px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.device-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 18, .8);
}
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #34364a; display: block; }
.device-bar i:nth-child(1) { background: #f0665c; }
.device-bar i:nth-child(2) { background: #f2bd4c; }
.device-bar i:nth-child(3) { background: #4fc57e; }
.device-bar span { margin-left: 8px; font-size: 11.5px; color: var(--faint); font-family: var(--mono); }
.device-stage { position: relative; line-height: 0; }
.device-stage img { display: block; width: 100%; height: auto; }

/* ---- Hero --------------------------------------------------------------- */

.hero { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(40px, 7vw, 90px); text-align: center; }
.hero .lede { margin-inline: auto; margin-top: clamp(20px, 2.4vw, 28px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.hero-note { margin: 18px auto 0; font-size: 13.5px; color: var(--faint); }

/* ---- Showcase carousel --------------------------------------------------
   Full-bleed band. The active capture sits centred with its neighbours
   peeking in at either edge, so it reads as a carousel without needing
   arrows. Captures already carry their own window chrome — no .device here.
   ------------------------------------------------------------------------ */

.showcase {
  padding-block: clamp(30px, 5vw, 64px) 0;
  overflow: hidden;
  position: relative; z-index: 1;
}

/* Feathering the band's edges keeps the peeking neighbours from being cut
   dead by the viewport. It lives on the wrapper, not the track — a mask on a
   transformed element travels with it. */
.car-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.car-track {
  position: relative;
  display: flex; align-items: center;
  gap: clamp(16px, 2.2vw, 38px);
  transition: transform .85s cubic-bezier(.22, .75, .25, 1);
  will-change: transform;
}

.car-slide {
  flex: none;
  width: min(1080px, 74vw);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 50px 120px rgba(0, 0, 0, .72);
  opacity: .26;
  transform: scale(.945);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, .75, .25, 1);
}
.car-slide.on { opacity: 1; transform: none; }
.car-slide img { display: block; width: 100%; height: auto; }

/* ---- Labels + progress -------------------------------------------------- */

.car-foot { margin-top: clamp(30px, 4vw, 52px); text-align: center; }

.car-tabs {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px clamp(10px, 2vw, 30px);
}
.car-tab {
  border: 0; background: none; cursor: pointer; padding: 6px 4px 0;
  font: inherit; font-size: 15px; font-weight: 550;
  color: var(--faint);
  min-width: 108px;
  transition: color .25s ease;
}
.car-tab:hover {
  color: var(--pink);
  text-shadow: 0 0 16px rgba(242, 105, 144, .7), 0 0 34px rgba(242, 105, 144, .3);
}
.car-tab.on { color: var(--white); text-shadow: none; }

/* The bar under the active label fills over the dwell time, so the carousel
   tells you when it is about to move rather than moving without warning. */
.car-tab i {
  display: block; position: relative; overflow: hidden;
  height: 2px; margin-top: 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}
.car-tab i::after {
  content: ''; position: absolute; inset: 0 100% 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--green-lt));
}
.car-tab.on i::after { animation: car-fill var(--car-dur, 5.5s) linear forwards; }
.showcase[data-paused] .car-tab.on i::after { animation-play-state: paused; }
@keyframes car-fill { to { inset: 0 0 0 0; } }

.car-say {
  margin: 22px auto 0; max-width: 46ch;
  font-size: 16px; color: var(--dim);
  transition: opacity .3s ease;
}
.car-say[data-fade] { opacity: 0; }

@media (max-width: 720px) {
  .car-slide { width: 86vw; }
  .car-tab { font-size: 13.5px; min-width: 0; flex: 1 1 40%; }
  .car-say { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .car-slide { opacity: 1; transform: none; }
  .car-tab.on i::after { inset: 0; animation: none; }
}

/* ---- Scroll story ------------------------------------------------------- */

.story-grid { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,.82fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.story-grid > * { min-width: 0; }
.story-stage { position: sticky; top: calc(var(--nav-h) + 6vh); }
.story-stage .device-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.3,1);
}
.story-stage .device-stage img.on { opacity: 1; transform: none; }
.story-stage .device-stage { aspect-ratio: 1397 / 1154; }

/* The spotlight that walks around the screenshot as the copy advances. */
.spot {
  position: absolute; border-radius: 8px; pointer-events: none;
  border: 1.5px solid var(--green-lt);
  background: rgba(76, 201, 154, .07);
  box-shadow: 0 0 0 100vmax rgba(5, 6, 10, .46), 0 0 30px rgba(28,162,112,.35);
  opacity: 0;
  transition: opacity .5s ease, left .8s cubic-bezier(.3,.8,.3,1), top .8s cubic-bezier(.3,.8,.3,1),
              width .8s cubic-bezier(.3,.8,.3,1), height .8s cubic-bezier(.3,.8,.3,1);
}
.spot.on { opacity: 1; }

.story-steps { display: grid; }
.step { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; padding-block: 3vh; }
.step-n {
  font-family: var(--mono); font-size: 12px; color: var(--faint);
  letter-spacing: .1em; margin-bottom: 14px;
}
.step h3 { margin-bottom: 14px; opacity: .45; transition: opacity .5s ease; }
.step p { opacity: .35; transition: opacity .5s ease; }
.step.on h3, .step.on p { opacity: 1; }
.step.on .step-n { color: var(--green-lt); }

/* ---- Cards -------------------------------------------------------------- */

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.card {
  position: relative; padding: 28px; border-radius: var(--r-lg);
  background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: rgba(28,162,112,.4); transform: translateY(-3px); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--dim); max-width: none; }
.card-ico {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: rgba(28,162,112,.12); border: 1px solid rgba(28,162,112,.3);
}
.card-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--green-lt); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Folder tree -------------------------------------------------------- */

.tree {
  font-family: var(--mono); font-size: clamp(11.5px, 1.15vw, 13.5px); line-height: 1.85;
  padding: 28px clamp(18px, 2.2vw, 28px); border-radius: var(--r-lg);
  background: rgba(8, 9, 15, .82); border: 1px solid var(--line);
  overflow-x: auto; white-space: pre; color: var(--dim); min-width: 0;
}
.tree b { color: var(--amber); font-weight: 500; }
.tree i { color: var(--faint); font-style: normal; }
.tree span { display: block; opacity: 0; transform: translateX(-10px); }
.tree.in span { animation: line .5s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes line { to { opacity: 1; transform: none; } }

/* ---- Marquee ------------------------------------------------------------ */

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-row { display: flex; gap: 12px; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.chip {
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--text);
  font-size: 14.5px; background: rgba(255,255,255,.02);
}
.chip b { color: var(--green-lt); font-weight: 600; }

/* ---- Stats -------------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 26px; }
.stat b { display: block; font-family: var(--mono); font-size: clamp(34px, 4.6vw, 50px); color: var(--white); font-weight: 650; letter-spacing: -.03em; }
.stat span { display: block; font-size: 14px; color: var(--faint); margin-top: 6px; }

/* ---- Split -------------------------------------------------------------- */

/* Grid tracks are min-content-sized by default, so one wide child - the folder
   tree, which is white-space: pre - would drag the column past the viewport. */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.split > * { min-width: 0; }
.split--flip .split-media { order: -1; }

/* ---- Quote / mission ---------------------------------------------------- */

.quote { border-left: 2px solid var(--green); padding-left: clamp(20px, 3vw, 34px); }
.quote p { font-size: clamp(19px, 2.4vw, 27px); line-height: 1.42; color: var(--white); letter-spacing: -.02em; max-width: 30ch; }
.quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 14px; color: var(--faint); }

/* ---- Store buttons ------------------------------------------------------ */

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  color: var(--white); text-decoration: none; min-width: 190px;
  transition: border-color .2s ease, background .2s ease;
}
.store:hover { border-color: var(--line-2); background: rgba(255,255,255,.06); }
.store[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.store svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 10.5px; color: var(--faint); letter-spacing: .05em; text-transform: uppercase; }
.store b { display: block; font-size: 15px; font-weight: 600; margin-top: 1px; }

/* ---- Badges / notes ----------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid rgba(222,186,58,.4); color: var(--amber); background: rgba(222,186,58,.08);
}
.note {
  padding: 18px 22px; border-radius: var(--r);
  border: 1px solid var(--line); border-left: 3px solid var(--green);
  background: rgba(28,162,112,.06); font-size: 15px; max-width: none;
}
.note strong { color: var(--white); }

/* ---- CTA ---------------------------------------------------------------- */

.cta { text-align: center; }
.cta .btn { margin-top: 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ---- Footer ------------------------------------------------------------- */

.foot { border-top: 1px solid var(--line); padding-block: 54px 40px; position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot h5 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; font-weight: 700; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot a { color: var(--dim); text-decoration: none; font-size: 14.5px; }
.foot a:hover { color: var(--white); }
.foot-tag { font-size: 14.5px; color: var(--faint); max-width: 32ch; margin-top: 14px; }
.foot-copy { display: block; margin-top: 10px; }

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 940px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-stage { position: sticky; top: calc(var(--nav-h) + 8px); margin-bottom: 20px; }
  .step { min-height: 62vh; }
  .split, .split--flip .split-media { grid-template-columns: 1fr; order: 0; }
  .g2, .pillars { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-end .btn { padding: 9px 15px; font-size: 13.5px; }
  .foot-grid { grid-template-columns: 1fr; }
  .stat b { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .tree span { opacity: 1; transform: none; }
}

/* =========================================================================
   SlateDeck — the phone / tablet page
   The slate is drawn live rather than screenshotted: the app is still in
   development, and a running clock reads truer than a frozen picture.
   ========================================================================= */

.hero--split { text-align: left; }
.hero--split .lede, .hero--split p { margin-inline: 0; }
.hero--split .hero-cta { justify-content: flex-start; }
.hero-split-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero-split-grid > * { min-width: 0; }

.phone {
  position: relative; width: min(300px, 78vw); margin-inline: auto;
  padding: 11px; border-radius: 46px;
  background: linear-gradient(160deg, #24263a, #0e0f18 60%);
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 110px rgba(0,0,0,.72), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.phone::before {
  content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px; border-radius: 999px; background: #06070c; z-index: 3;
}
.phone-screen {
  position: relative; border-radius: 36px; overflow: hidden;
  aspect-ratio: 9 / 19.5; background: #04050a;
  display: flex; flex-direction: column;
}
.phone--wide { width: min(560px, 100%); border-radius: 30px; padding: 13px; }
.phone--wide::before { display: none; }
.phone--wide .phone-screen { aspect-ratio: 4 / 3; border-radius: 20px; }

/* The slate face ---------------------------------------------------------- */

.slate { flex: 1; display: flex; flex-direction: column; font-family: var(--mono); color: #eef0f6; }
.slate-status {
  display: flex; justify-content: space-between; align-items: flex-end;
  height: 34px; padding: 0 18px 3px; flex: none;
  font-size: 9.5px; letter-spacing: .06em; color: #6d7288;
}
.slate-clap {
  display: flex; height: 30px; flex: none;
  background: repeating-linear-gradient(101deg, #f2f4fa 0 11.5%, #0a0b12 11.5% 23%);
  transform-origin: 0% 100%;
}
.slate.snap .slate-clap { animation: clap .5s cubic-bezier(.3,1.4,.4,1); }
@keyframes clap { 0% { transform: rotate(-15deg) } 55% { transform: rotate(2.5deg) } 100% { transform: none } }

.slate-body { flex: 1; display: flex; flex-direction: column; padding: 14px 13px 12px; gap: 9px; }
.slate-tc {
  font-size: clamp(20px, 6.4vw, 30px); font-weight: 600; letter-spacing: .02em;
  color: var(--green-lt); text-align: center; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(76,201,154,.45);
}
.slate-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.slate-cell {
  border: 1px solid rgba(255,255,255,.14); border-radius: 9px; padding: 7px 6px 8px;
  background: rgba(255,255,255,.03); text-align: center; min-width: 0;
}
.slate-cell u { display: block; font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: #7b8098; text-decoration: none; }
.slate-cell b { display: block; font-size: clamp(17px, 5vw, 23px); font-weight: 640; margin-top: 3px; letter-spacing: -.01em; }
.slate-cell.hot { border-color: rgba(242,105,144,.55); background: rgba(242,105,144,.1); }
.slate-cell.hot b { color: var(--pink); }
/* The running log fills the space a real slate wastes, and gives the loop
   somewhere to put each take once it has been saved. */
.slate-recent { margin-top: 4px; min-height: 92px; }
.slate-recent > u {
  display: block; font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #6d7288; text-decoration: none; margin-bottom: 7px;
}
.slate-recent span {
  display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 8px; align-items: baseline;
  padding: 5px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 10px;
  animation: slid .45s cubic-bezier(.2,.8,.3,1);
}
.slate-recent span b { color: #dfe2ec; font-weight: 640; letter-spacing: .02em; }
.slate-recent span i { font-style: normal; color: #797e94; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slate-recent span.new b { color: var(--green-lt); }
@keyframes slid { from { opacity: 0; transform: translateY(-7px); } }

.slate-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.slate-meta span {
  font-size: 9.5px; letter-spacing: .06em; padding: 4px 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13); color: #9ba0b6; white-space: nowrap;
}
.slate-meta span.live { border-color: rgba(240,102,92,.5); color: #f0665c; }
.slate-meta span.live::before { content: '●'; margin-right: 5px; animation: blip 1.1s steps(1) infinite; }
@keyframes blip { 50% { opacity: .15 } }
.slate-bar { display: flex; gap: 7px; padding: 0 13px 15px; }
.slate-key {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 10px;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.13); color: #9ba0b6;
}
.slate-key.go { background: rgba(28,162,112,.16); border-color: rgba(28,162,112,.5); color: var(--green-lt); }
.slate-toast {
  position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 4;
  padding: 10px 13px; border-radius: 11px; font-size: 11.5px; font-family: var(--mono);
  background: rgba(9,10,17,.94); border: 1px solid rgba(28,162,112,.4); color: var(--green-lt);
  opacity: 0; transform: translateY(9px); transition: opacity .35s ease, transform .35s ease;
}
.slate-toast.on { opacity: 1; transform: none; }

/* ---- Numbered steps ----------------------------------------------------- */

.flow { display: grid; gap: 2px; counter-reset: flow; }
.flow li {
  list-style: none; counter-increment: flow;
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.flow li:last-child { border-bottom: 1px solid var(--line); }
.flow li::before {
  content: counter(flow, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; color: var(--green-lt);
  padding-top: 4px; letter-spacing: .04em;
}
.flow h4 { margin-bottom: 5px; }
.flow p { color: var(--dim); font-size: 15.5px; }

/* ---- Bare feature list -------------------------------------------------- */

.ticks { display: grid; gap: 13px; list-style: none; margin-top: 26px; }
.ticks li { position: relative; padding-left: 32px; font-size: 15.5px; color: var(--dim); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(28,162,112,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234cc99a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4.5 4.5L19 7'/%3E%3C/svg%3E") center/11px no-repeat;
  border: 1px solid rgba(28,162,112,.3);
}
.ticks strong { color: var(--white); font-weight: 600; }

/* ---- Disclosure --------------------------------------------------------- */

.faq { display: grid; gap: 0; margin-top: 34px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 2px; cursor: pointer; list-style: none;
  color: var(--white); font-weight: 600; font-size: 17.5px; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 13px; height: 13px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details[open] summary { color: var(--green-lt); }
.faq-body { padding: 0 2px 24px; color: var(--dim); font-size: 15.5px; display: grid; gap: 12px; }
.faq-body p { max-width: 72ch; }

/* ---- Download page ------------------------------------------------------ */

.dl {
  padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg);
  background: var(--panel); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.dl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 8px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 22px; font-size: 13.5px; color: var(--faint); font-family: var(--mono); }
.spec { display: grid; grid-template-columns: 150px 1fr; gap: 2px 22px; font-size: 15px; }
.spec dt { color: var(--faint); padding: 11px 0; border-top: 1px solid var(--line); }
.spec dd { color: var(--text); padding: 11px 0; border-top: 1px solid var(--line); }

/* ---- About page --------------------------------------------------------- */

.person { display: grid; grid-template-columns: 128px 1fr; gap: clamp(20px, 3vw, 34px); align-items: start; }
.avatar {
  width: 128px; height: 128px; border-radius: 30px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 40px; font-weight: 640; color: var(--green-lt);
  background: linear-gradient(150deg, rgba(28,162,112,.2), rgba(242,105,144,.14));
  border: 1px solid var(--line-2);
}
.contact {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 8px;
  padding: 15px 24px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--white);
  font-size: 17px; font-weight: 600; transition: border-color .2s ease, background .2s ease;
}
.contact:hover { border-color: var(--green); background: rgba(28,162,112,.09); }
.contact svg { width: 19px; height: 19px; fill: none; stroke: var(--green-lt); stroke-width: 1.8; }

.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.pillar { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.pillar b { display: block; color: var(--white); font-size: 17px; margin-bottom: 8px; letter-spacing: -.01em; }
.pillar p { font-size: 15px; color: var(--dim); max-width: none; }

@media (max-width: 940px) {
  .hero-split-grid { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; gap: 0; }
  .spec dt { padding-bottom: 0; border-top: 1px solid var(--line); }
  .spec dd { padding-top: 4px; border-top: 0; }
}

/* ---- Take log (the tablet view) ----------------------------------------- */

.log { flex: 1; display: flex; flex-direction: column; font-family: var(--mono); background: #06070d; min-height: 0; }
.log-head {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08); font-size: 11px; color: var(--faint); letter-spacing: .08em;
}
.log-head b { color: var(--white); font-weight: 600; letter-spacing: -.01em; font-size: 12.5px; }
.log-head .live { margin-left: auto; color: var(--green-lt); }
.log-rows { flex: 1; overflow: hidden; }
.log-row {
  display: grid; grid-template-columns: 58px 1fr 74px 22px; gap: 10px; align-items: center;
  padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 11.5px; color: #8b90a6;
}
.log-row b { color: #eef0f6; font-weight: 600; }
.log-row i { font-style: normal; color: var(--faint); letter-spacing: .02em; }
.log-row .ok { color: var(--green-lt); text-align: center; }
.log-row.pick { background: rgba(28,162,112,.07); }
.log-row.pick b { color: var(--green-lt); }
.log-scene { padding: 9px 14px 7px; font-size: 9.5px; letter-spacing: .18em; color: var(--faint); background: rgba(255,255,255,.025); }

/* =========================================================================
   Waitlist modal
   A native <dialog>, so focus trapping, Esc-to-close and inertness of the
   page behind it are the browser's problem rather than ours.
   ========================================================================= */

.wl { border: 0; padding: 0; background: transparent; color: inherit; }
.wl:not([open]) { display: none; }
.wl[open] {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  display: grid; place-items: center;
  padding: var(--pad);
  overflow: auto;
}
.wl::backdrop {
  background: rgba(3, 4, 8, .74);
  backdrop-filter: blur(14px) saturate(.9);
  -webkit-backdrop-filter: blur(14px) saturate(.9);
  animation: wl-fade .28s ease;
}
@keyframes wl-fade { from { opacity: 0; } }

.wl-card {
  position: relative; width: min(460px, 100%);
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 60% at 8% 0%, rgba(28, 162, 112, .16), transparent 62%),
    radial-gradient(70% 70% at 100% 100%, rgba(242, 105, 144, .13), transparent 60%),
    rgba(13, 15, 23, .97);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 110px rgba(0, 0, 0, .78), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  overflow: hidden;
  animation: wl-pop .34s cubic-bezier(.2, .8, .3, 1);
}
/* A hairline of the brand gradient across the top edge. */
.wl-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--green) 22%, var(--green-lt) 50%, var(--pink) 82%, transparent);
}
@keyframes wl-pop { from { opacity: 0; transform: translateY(16px) scale(.975); } }

.wl-x {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 9px; background: none; cursor: pointer;
  color: var(--faint); transition: color .18s ease, background .18s ease;
}
.wl-x:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.wl-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.wl-card h2 { font-size: clamp(26px, 4vw, 33px); margin-bottom: 12px; }
.wl-card p { font-size: 15.5px; color: var(--dim); max-width: none; }

.wl-form { display: grid; gap: 12px; margin-top: 26px; }
.wl-field {
  display: flex; align-items: center; gap: 11px;
  padding: 0 6px 0 16px; height: 52px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.wl-field:focus-within {
  border-color: var(--green);
  background: rgba(28, 162, 112, .07);
  box-shadow: 0 0 0 4px rgba(28, 162, 112, .14);
}
.wl-field svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--faint); stroke-width: 1.7; transition: stroke .2s ease; }
.wl-field:focus-within svg { stroke: var(--green-lt); }
.wl-field input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: none; outline: none;
  font: inherit; font-size: 15.5px; color: var(--white);
}
.wl-field input::placeholder { color: var(--faint); }
.wl-field .btn { height: 40px; padding: 0 20px; flex: none; }

.wl-fine { font-size: 12.5px; color: var(--faint); text-align: center; }
.wl-fine a { color: var(--dim); text-decoration: none; }
.wl-fine a:hover { color: var(--green-lt); }

/* Success state ---------------------------------------------------------- */

.wl-done { display: none; text-align: center; padding: 8px 0 2px; }
.wl[data-done] .wl-ask { display: none; }
.wl[data-done] .wl-done { display: block; animation: wl-pop .38s cubic-bezier(.2, .8, .3, 1); }
.wl-tick {
  width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(28, 162, 112, .14); border: 1px solid rgba(28, 162, 112, .45);
  box-shadow: 0 0 34px rgba(28, 162, 112, .32);
}
.wl-tick svg { width: 26px; height: 26px; fill: none; stroke: var(--green-lt); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wl-tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: wl-draw .5s .12s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes wl-draw { to { stroke-dashoffset: 0; } }
.wl-done p { margin-inline: auto; max-width: 34ch; }
.wl-done .btn { margin-top: 24px; }

@media (max-width: 460px) {
  .wl-field { height: auto; flex-wrap: wrap; padding: 8px; border-radius: var(--r); }
  .wl-field input { height: 38px; padding-inline: 8px; flex-basis: 100%; }
  .wl-field > svg { display: none; }
  .wl-field .btn { width: 100%; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .wl-card, .wl[data-done] .wl-done, .wl::backdrop { animation: none; }
  .wl-tick path { stroke-dashoffset: 0; animation: none; }
}
