/* Taskhouse site. System font, a dark stage for the app, a light band for reading, one blue accent for Download and Buy.
   Motion uses transform and opacity, with Emil Kowalski's curves. Without JS (no .js on <html>) nothing is hidden. */
:root {
  --stage: #000;
  --stage-1: #0b0b0d;
  --stage-2: #121215;
  --stage-3: #1c1c20;
  --stage-ink: #f5f5f7;
  --stage-ink-2: #a1a1a6;
  --stage-ink-3: #6e6e73;
  --stage-line: rgba(255, 255, 255, 0.09);
  --stage-line-2: rgba(255, 255, 255, 0.16);
  --paper: #fff;
  --paper-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-dark: #2997ff;
  --attention: #ff9f0a;
  --attention-soft: rgba(255, 159, 10, 0.16);
  --ok: #30d158;
  --err: #ff453a;
  --wrap: 1180px;
  --gutter: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.01em;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.home { background: var(--stage); color: var(--stage-ink); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.9em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--paper); padding: 8px 12px; border-radius: 8px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(41, 151, 255, 0.6); outline-offset: 2px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background-color 300ms ease;
}
.nav.is-scrolled { background: rgba(10, 10, 12, 0.9); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 54px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--stage-ink); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: #c7c7cc; font-size: 13px; transition: color 200ms ease; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav .btn { padding: 6px 15px; font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 980px; background: var(--accent); color: #fff;
  font: inherit; font-size: 17px; font-weight: 500; border: 0; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms ease, transform 160ms var(--ease-out), box-shadow 300ms ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active, .btn-film:active { transform: scale(0.97); }
.btn-glow { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 10px 40px rgba(0, 113, 227, 0.45); }
.btn-ghost-dark { background: rgba(255, 255, 255, 0.06); color: var(--stage-ink); border: 1px solid var(--stage-line-2); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.12); }
.btn-film {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 980px;
  border: 1px solid var(--stage-line-2); background: rgba(255, 255, 255, 0.06); color: var(--stage-ink);
  font: inherit; font-size: 17px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.btn-film .play { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #000; padding-left: 2px; transition: transform 300ms var(--ease-out); }
.btn-film .film-len { color: var(--stage-ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .btn-film:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
  .btn-film:hover .play { transform: scale(1.1); }
}

/* ---------- Shared section bits ---------- */
.section { padding: 136px 0; position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--attention); margin-bottom: 14px; }
.section-head { text-align: center; max-width: 840px; margin: 0 auto; }
.section-head h2 { font-size: clamp(38px, 5.8vw, 68px); line-height: 1.04; letter-spacing: -0.04em; }
.section-head p { margin-top: 20px; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--stage-ink-2); }
.section-head .kicker { margin-top: 0; font-size: 15px; line-height: 1.4; color: var(--attention); }
.grad-text { background: linear-gradient(180deg, #fff 30%, #9a9aa0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.warm-text { background: linear-gradient(100deg, #ffd08a, #ff9f0a 55%, #ff7a1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pulse-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--attention); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--attention); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(3); opacity: 0; } }
.shot-frame { border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); }
@keyframes fade-in { to { opacity: 1; } }

/* Reveals (JS adds .is-in once; --i staggers a batch) */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); }
.js .reveal.is-in {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), filter 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 92px 0 32px; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(60% 45% at 50% 18%, #000, transparent 75%);
  mask-image: radial-gradient(60% 45% at 50% 18%, #000, transparent 75%);
}
.hero-light {
  position: absolute; left: 50%; top: 34%; width: 1400px; height: 900px; margin-left: -700px;
  background: radial-gradient(45% 45% at 50% 50%, rgba(255, 159, 10, 0.26), rgba(255, 120, 10, 0.07) 50%, transparent 72%);
  animation: light-drift 24s ease-in-out infinite alternate;
}
.hero-light-2 {
  position: absolute; left: 6%; top: 52%; width: 700px; height: 600px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(41, 151, 255, 0.16), transparent 70%);
  animation: light-drift 30s ease-in-out infinite alternate-reverse;
}
@keyframes light-drift { from { transform: translate3d(-4%, 0, 0) scale(1); } to { transform: translate3d(4%, -3%, 0) scale(1.08); } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 980px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stage-line-2); font-size: 14px; color: var(--stage-ink);
}
.hero-badge .tag { display: inline-flex; align-items: center; gap: 7px; background: var(--attention-soft); color: var(--attention); font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 980px; }
.hero h1 { margin-top: 28px; font-size: clamp(46px, 8.4vw, 108px); line-height: 0.98; letter-spacing: -0.05em; }
.hero h1 .w { display: inline-block; }
.hero .lede { max-width: 780px; margin: 28px auto 0; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; color: var(--stage-ink-2); }
.rotator { display: inline-grid; justify-items: center; vertical-align: bottom; color: var(--stage-ink); font-weight: 600; }
.rotator span { grid-area: 1 / 1; white-space: nowrap; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), filter 500ms var(--ease-out); }
html:not(.js) .rotator span + span { visibility: hidden; }
.js .rotator span { opacity: 0; transform: translateY(60%); filter: blur(4px); }
.js .rotator span.is-on { opacity: 1; transform: none; filter: none; }
.js .rotator span.is-off { opacity: 0; transform: translateY(-60%); filter: blur(4px); }
.hero .ctas { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 38px; }
.hero .fine { margin-top: 16px; font-size: 14px; color: var(--stage-ink-3); }
.js .intro { opacity: 0; transform: translateY(14px); filter: blur(8px); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }

/* The composition: the canvas, with the real Inbox and the iPhone floating at different depths */
.stagec { position: relative; max-width: 1280px; margin: 72px auto 0; padding: 0 var(--gutter); perspective: 2400px; }
.js .stagec { opacity: 0; transform: translateY(50px); animation: rise-in 1300ms var(--ease-out) 650ms forwards; }
@keyframes rise-in { to { opacity: 1; transform: none; } }
.stagec-canvas { position: relative; margin: 0 6%; transform-origin: 50% 0; transform: rotateX(calc((1 - var(--p, 1)) * 18deg)) scale(calc(0.9 + var(--p, 1) * 0.1)); }
.stagec-canvas img { border-radius: 14px; box-shadow: 0 50px 140px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.layer { position: absolute; z-index: 2; transform: translate3d(calc(var(--mx, 0) * var(--d, 0) * 1px), calc(var(--my, 0) * var(--d, 0) * 1px), 0); transition: transform 700ms var(--ease-out); }
.float-inbox { left: 0; top: 24%; width: 21%; --d: 16; }
.float-inbox img { border-radius: 12px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.14); }
.float-phone { right: 1%; top: 30%; width: 15.5%; --d: 26; }
.float-note { right: 7%; top: -5%; width: 340px; --d: 10; }
.js .float-inbox > * { opacity: 0; animation: slide-l 1100ms var(--ease-out) 1300ms forwards; }
.js .float-phone > * { opacity: 0; animation: slide-r 1100ms var(--ease-out) 1450ms forwards; }
@keyframes slide-l { from { opacity: 0; transform: translate(-40px, 24px); } to { opacity: 1; transform: none; } }
@keyframes slide-r { from { opacity: 0; transform: translate(40px, 24px); } to { opacity: 1; transform: none; } }
.mac-note {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; text-align: left; padding: 12px 14px; border-radius: 18px;
  background: rgba(44, 44, 48, 0.78); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); font-size: 13px; line-height: 1.3; color: var(--stage-ink);
}
.mac-note img { width: 38px; height: 38px; }
.mac-note .top { display: flex; justify-content: space-between; color: var(--stage-ink-2); font-size: 12px; }
.mac-note strong { display: block; color: #fff; font-size: 13px; margin-top: 1px; }
.mac-note code { display: block; color: #d1d1d6; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.js .float-note .mac-note { opacity: 0; transform: translateY(-18px) scale(0.97); animation: note-in 700ms var(--ease-drawer) 2300ms forwards; }
@keyframes note-in { to { opacity: 1; transform: none; } }
.hot { position: absolute; border-radius: 10px; pointer-events: none; box-shadow: 0 0 0 2px rgba(255, 159, 10, 0.95), 0 0 30px 6px rgba(255, 159, 10, 0.35); animation: hot-breathe 2.6s ease-in-out infinite; }
@keyframes hot-breathe {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 159, 10, 0.95), 0 0 24px 4px rgba(255, 159, 10, 0.3); }
  50% { box-shadow: 0 0 0 2px rgba(255, 159, 10, 0.6), 0 0 44px 10px rgba(255, 159, 10, 0.45); }
}
.hot-frame { left: 73.2%; top: 13%; width: 18.5%; height: 25.3%; }
.js .hot-frame { opacity: 0; animation: fade-in 500ms ease 2000ms forwards, hot-breathe 2.6s ease-in-out 2000ms infinite; }

/* Phone frame */
.phone { border-radius: 44px; padding: 9px; background: linear-gradient(145deg, #3a3a3e, #1c1c1e); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12) inset; }
.phone img { border-radius: 36px; width: 100%; }
.phone-screen { position: relative; }
.float-phone .phone { border-radius: 30px; padding: 6px; }
.float-phone .phone img { border-radius: 25px; }

/* ---------- Agents marquee ---------- */
.agents { padding: 56px 0 24px; overflow: hidden; }
.agents-title { text-align: center; color: var(--stage-ink-3); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 22px; }
.marquee { display: flex; width: max-content; max-width: 100%; margin: 0 auto; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; padding: 0 6px; margin: 0; list-style: none; flex: none; animation: marquee 40s linear infinite; }
.marquee-track li { font-family: var(--mono); font-size: 14px; color: var(--stage-ink); padding: 10px 16px; border-radius: 12px; white-space: nowrap; background: var(--stage-2); border: 1px solid var(--stage-line); }
.marquee-track li::before { content: "\276F"; color: var(--attention); margin-right: 8px; font-size: 12px; }
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Zoom story: a pinned canvas that zooms into what matters ---------- */
.story { position: relative; height: 420vh; margin-top: 56px; }
.story-pin { position: sticky; top: 54px; height: calc(100vh - 54px); display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.story-steps li { padding: 18px 20px; border-radius: 16px; border: 1px solid transparent; color: var(--stage-ink-3); transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease; }
.story-steps li h3 { font-size: 21px; color: inherit; }
.story-steps li p { font-size: 15px; margin-top: 6px; line-height: 1.45; color: var(--stage-ink-2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 600ms var(--ease-out), opacity 400ms ease; }
.story-steps li.is-on { background: var(--stage-2); border-color: var(--stage-line); color: var(--stage-ink); }
.story-steps li.is-on p { max-height: 140px; opacity: 1; }
html:not(.js) .story-steps li p { max-height: none; opacity: 1; }
.story-steps .num { font-family: var(--mono); font-size: 12px; color: var(--attention); display: block; margin-bottom: 4px; }
.story-view { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3024 / 1964; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1); background: #19191b; }
.story-view img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; transform: translate(var(--tx, 0%), var(--ty, 0%)) scale(var(--s, 1)); transition: transform 1100ms var(--ease-in-out); will-change: transform; }
.story-view .vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.55); border-radius: 16px; }
.story-progress { position: absolute; right: 16px; top: 16px; display: flex; gap: 6px; }
.story-progress span { width: 28px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); transition: background-color 300ms ease; }
.story-progress span.is-on { background: var(--attention); }
.story-key { position: absolute; left: 16px; top: 14px; display: flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 12px; background: rgba(30, 30, 34, 0.8); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--stage-line-2); font-size: 14px; opacity: 0; transition: opacity 400ms ease; }
.story-key kbd { font-family: var(--font); font-size: 13px; padding: 2px 7px; border-radius: 6px; background: #3a3a3e; border-bottom: 2px solid #232326; }
.story[data-step="3"] .story-key { opacity: 1; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.cell {
  position: relative; overflow: hidden; border-radius: 26px; padding: 30px; min-height: 340px;
  background: linear-gradient(180deg, var(--stage-2), var(--stage-1)); border: 1px solid var(--stage-line);
  display: flex; flex-direction: column; transition: border-color 300ms ease;
}
.cell::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms ease; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 159, 10, 0.09), transparent 60%); }
@media (hover: hover) and (pointer: fine) { .cell:hover::before { opacity: 1; } .cell:hover { border-color: var(--stage-line-2); } }
.cell .kicker { font-size: 13px; margin-bottom: 10px; }
.cell h3 { font-size: 24px; line-height: 1.18; letter-spacing: -0.03em; }
.cell .sub { margin-top: 10px; color: var(--stage-ink-2); font-size: 15px; line-height: 1.5; max-width: 480px; }
.cell .art { margin-top: auto; padding-top: 26px; position: relative; }
.c-inbox { grid-column: span 4; grid-row: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 32px; }
.c-inbox .copy { display: flex; flex-direction: column; }
.c-term, .c-crash, .c-acct, .c-auto, .c-prop { grid-column: span 2; }
.c-phone { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; }
.c-local { grid-column: span 3; }
.c-phone .copy { display: flex; flex-direction: column; }

/* Inbox cell: the real Inbox, with a highlight stepping through its four kinds of item */
.inbox-real { position: relative; align-self: center; }
.inbox-real img { border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.inbox-hl { position: absolute; left: 1.5%; width: 97%; top: var(--t, 11.6%); height: var(--h, 19.4%); border-radius: 10px; pointer-events: none; box-shadow: 0 0 0 2px var(--attention), 0 0 34px 6px rgba(255, 159, 10, 0.3); transition: top 700ms var(--ease-in-out), height 700ms var(--ease-in-out); }
html:not(.js) .inbox-hl { display: none; }
.kinds { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 8px; padding-top: 26px; }
.kinds li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--stage-ink-2); font-size: 15px; border: 1px solid transparent; transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease; }
.kinds li b { color: inherit; font-weight: 600; display: block; }
.kinds li small { display: block; font-size: 13px; color: var(--stage-ink-3); }
.kinds li.is-on { background: var(--stage-3); color: var(--stage-ink); border-color: var(--stage-line); }
.kinds .k { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.k-q { background: rgba(255, 159, 10, 0.15); color: var(--attention); }
.k-a { background: rgba(255, 159, 10, 0.15); color: var(--attention); }
.k-e { background: rgba(255, 69, 58, 0.15); color: var(--err); }
.k-r { background: rgba(48, 209, 88, 0.15); color: var(--ok); }

/* Terminal cell */
.term { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; background: #08080a; border: 1px solid var(--stage-line); border-radius: 14px; padding: 12px 14px; min-height: 196px; }
.term-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--stage-ink-2); font-family: var(--font); font-size: 12px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #1c1c1f; }
.term-head b { color: var(--stage-ink); font-weight: 600; }
.term-head .st { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-dark); }
.term-head .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: live-blue 1.6s ease-out infinite; }
@keyframes live-blue { 0% { box-shadow: 0 0 0 0 rgba(41, 151, 255, 0.5); } 100% { box-shadow: 0 0 0 6px rgba(41, 151, 255, 0); } }
.term .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e5e5ea; }
.term .d { color: #8e8e93; }
.term .g { color: var(--ok); }
.term .b { color: var(--accent-dark); }
.js .term .l { opacity: 0; }
.js .term.is-run .l { animation: line-in 7s var(--ease-out) infinite; animation-delay: calc(var(--n) * 0.6s); }
@keyframes line-in { 0% { opacity: 0; transform: translateY(4px); } 6%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.term .l:nth-child(2) { --n: 1; } .term .l:nth-child(3) { --n: 2; } .term .l:nth-child(4) { --n: 3; } .term .l:nth-child(5) { --n: 4; } .term .l:nth-child(6) { --n: 5; }
.caret { display: inline-block; width: 7px; height: 13px; background: #e5e5ea; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Process cell */
.procs { font-family: var(--mono); font-size: 13px; background: #08080a; border: 1px solid var(--stage-line); border-radius: 14px; padding: 6px 12px; }
.proc { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 2px; color: var(--stage-ink); border-bottom: 1px solid #1c1c1f; }
.proc:last-child { border-bottom: 0; }
.proc.sub { padding-left: 20px; }
.proc-state { margin-left: auto; color: var(--stage-ink-2); }
.proc-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ok); animation: live 2s ease-out infinite; }
.proc-dot.attn { background: var(--attention); animation-name: live-attn; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.45); } 100% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); } }
@keyframes live-attn { 0% { box-shadow: 0 0 0 0 rgba(255, 159, 10, 0.5); } 100% { box-shadow: 0 0 0 8px rgba(255, 159, 10, 0); } }
.proc-app .proc-dot { animation: app-dot 6s steps(1) infinite; }
.proc-app .name { animation: app-name 6s steps(1) infinite; }
.proc-app .state-on { animation: app-on 6s steps(1) infinite; }
.proc-app .state-off { position: absolute; right: 2px; opacity: 0; color: var(--stage-ink-3); animation: app-off 6s steps(1) infinite; }
@keyframes app-dot { 0%, 49% { background: var(--ok); } 50%, 100% { background: #48484a; box-shadow: none; } }
@keyframes app-name { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.4; } }
@keyframes app-on { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes app-off { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }

/* Accounts cell */
.acct { display: grid; gap: 10px; }
.acct-row { background: #08080a; border: 1px solid var(--stage-line); border-radius: 14px; padding: 12px 14px; font-size: 13px; }
.acct-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--stage-ink); }
.acct-top b { font-weight: 600; }
.acct-top small { color: var(--stage-ink-3); font-size: 12px; font-weight: 400; margin-left: 6px; }
.acct-top .ok { color: var(--ok); font-size: 12px; white-space: nowrap; }
.meter { display: grid; grid-template-columns: 52px minmax(0, 1fr) 34px; align-items: center; gap: 10px; margin-top: 9px; color: var(--stage-ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.bar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 5px; background: var(--accent-dark); transform-origin: 0 50%; transform: scaleX(var(--v)); transition: transform 1400ms var(--ease-out); }
.js .acct:not(.is-run) .bar span { transform: scaleX(0); }
.acct .bar-1 { --v: 0.22; }
.acct .bar-2 { --v: 0.64; }
.acct .bar-3 { --v: 0.31; }
.js .acct .bar-2 { transition-delay: 150ms; }
.js .acct .bar-3 { transition-delay: 300ms; }

/* Automations cell */
.autos { display: grid; gap: 8px; }
.auto { display: flex; align-items: center; gap: 12px; background: #08080a; border: 1px solid var(--stage-line); border-radius: 14px; padding: 11px 14px; font-size: 13px; }
.auto .ai { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(41, 151, 255, 0.14); color: var(--accent-dark); flex: none; }
.auto b { display: block; color: var(--stage-ink); font-weight: 600; }
.auto small { color: var(--stage-ink-3); font-size: 12px; }
.toggle { margin-left: auto; width: 34px; height: 20px; border-radius: 20px; background: var(--accent-dark); position: relative; flex: none; transition: background-color 300ms ease; }
.toggle::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transform: translateX(14px); transition: transform 300ms var(--ease-drawer); }
.js .autos:not(.is-run) .toggle { background: #3a3a3c; }
.js .autos:not(.is-run) .toggle::after { transform: none; }
.js .autos .auto:nth-child(2) .toggle, .js .autos .auto:nth-child(2) .toggle::after { transition-delay: 250ms; }
.js .autos .auto:nth-child(3) .toggle, .js .autos .auto:nth-child(3) .toggle::after { transition-delay: 500ms; }

/* Proposal cell */
.prop { position: relative; background: #08080a; border: 1px solid var(--stage-line); border-radius: 16px; padding: 14px 16px; font-size: 13px; }
.prop-top { display: flex; justify-content: space-between; color: var(--stage-ink-2); font-size: 12px; }
.prop-top .q { color: var(--attention); font-weight: 600; }
.prop h4 { margin: 8px 0 4px; font-size: 15px; color: var(--stage-ink); letter-spacing: -0.01em; }
.prop p { color: var(--stage-ink-2); line-height: 1.45; }
.prop-actions { display: flex; gap: 8px; margin-top: 12px; }
.prop-actions span { padding: 6px 12px; border-radius: 8px; font-size: 12px; background: #2c2c2e; color: var(--stage-ink); }
.prop-actions .yes { background: var(--accent); color: #fff; }
.js .prop.is-run .yes { animation: press 6s ease infinite; }
.prop-done { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; gap: 4px; align-content: center; background: rgba(8, 8, 10, 0.94); color: var(--ok); font-weight: 600; opacity: 0; }
.prop-done small { color: var(--stage-ink-2); font-weight: 400; }
.js .prop.is-run .prop-done { animation: done 6s ease infinite; }
@keyframes press { 0%, 48% { transform: none; box-shadow: none; } 52% { transform: scale(0.94); box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.35); } 56%, 100% { transform: none; box-shadow: none; } }
@keyframes done { 0%, 56% { opacity: 0; } 62%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* Phone cell: hold to approve fills the real button */
.c-phone .phone { width: 100%; padding: 6px; border-radius: 32px; align-self: center; }
.c-phone .phone img { border-radius: 26px; }
.hold { position: absolute; left: 3.8%; width: 92.4%; top: 81.1%; height: 6.5%; border-radius: 7px; overflow: hidden; pointer-events: none; }
.hold::after { content: ""; position: absolute; inset: 0; background: rgba(255, 69, 58, 0.34); transform-origin: 0 50%; transform: scaleX(0); }
.js .is-run .hold::after { animation: hold 3.4s linear infinite; }
@keyframes hold { 0%, 18% { transform: scaleX(0); opacity: 1; } 50% { transform: scaleX(1); opacity: 1; } 64%, 100% { transform: scaleX(1); opacity: 0; } }

/* Local cell: what runs where */
.diagram { display: grid; grid-template-columns: minmax(0, 1.25fr) 56px minmax(0, 1fr); align-items: center; }
.mac-box { border: 1px solid var(--stage-line-2); border-radius: 16px; padding: 12px; background: #08080a; }
.mac-box > small, .remote > small { display: block; color: var(--stage-ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.node { font-family: var(--mono); font-size: 12px; padding: 8px 10px; border-radius: 10px; background: var(--stage-3); color: var(--stage-ink); margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; }
.node em { font-style: normal; color: var(--stage-ink-3); }
.link { height: 2px; background: repeating-linear-gradient(90deg, var(--stage-ink-3) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: flow 1.2s linear infinite; }
@keyframes flow { to { background-position: 24px 0; } }
.remote { border: 1px dashed var(--stage-line-2); border-radius: 16px; padding: 12px; font-size: 12px; color: var(--stage-ink-2); }
.remote b { display: block; color: var(--stage-ink); font-size: 13px; margin-top: 2px; }
.remote p + p { margin-top: 8px; }

/* ---------- Views (tabs) ---------- */
.tour { margin-top: 56px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: center; }
.tour-tabs { display: flex; flex-direction: column; gap: 6px; }
.tour-tabs button { position: relative; text-align: left; font: inherit; color: var(--stage-ink-2); cursor: pointer; background: transparent; border: 1px solid transparent; border-radius: 16px; padding: 16px 18px 20px; transition: background-color 250ms ease, color 250ms ease, transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.tour-tabs button:active { transform: scale(0.98); }
.tour-tabs button[aria-selected="true"] { background: var(--stage-2); color: var(--stage-ink); border-color: var(--stage-line); }
.tab-name { display: block; font-size: 19px; font-weight: 600; }
.tab-desc { display: block; font-size: 15px; line-height: 1.4; margin-top: 4px; color: var(--stage-ink-2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 400ms var(--ease-out), opacity 300ms ease; }
.tour-tabs button[aria-selected="true"] .tab-desc { max-height: 80px; opacity: 1; }
.tab-bar { position: absolute; left: 18px; right: 18px; bottom: 9px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; opacity: 0; transition: opacity 200ms ease; }
.tab-bar span { display: block; height: 100%; background: var(--attention); transform: scaleX(0); transform-origin: 0 50%; }
.tour-tabs button[aria-selected="true"] .tab-bar { opacity: 1; }
.tour.is-playing .tour-tabs button[aria-selected="true"] .tab-bar span { animation: tab-progress 6s linear forwards; }
.tour.is-paused .tour-tabs button[aria-selected="true"] .tab-bar span { animation-play-state: paused; }
@keyframes tab-progress { to { transform: scaleX(1); } }
.tour-stage { display: grid; }
.tour-panel { grid-area: 1 / 1; transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), filter 600ms var(--ease-out); }
.tour-panel[hidden] { display: block; visibility: hidden; opacity: 0; transform: scale(0.98); filter: blur(6px); }
.tour-panel.is-active { visibility: visible; opacity: 1; transform: none; filter: none; }

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 72px; }
.number { border: 1px solid var(--stage-line); border-radius: 24px; padding: 32px 28px; background: linear-gradient(180deg, var(--stage-2), transparent); }
.number .n { font-size: clamp(44px, 5.5vw, 68px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.number .n small { font-size: 0.42em; color: var(--stage-ink-2); letter-spacing: 0; font-weight: 500; margin-left: 4px; }
.number p { margin-top: 12px; color: var(--stage-ink-2); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing { overflow: hidden; isolation: isolate; text-align: center; }
.pricing-glow { position: absolute; left: 50%; top: 22%; width: 1200px; height: 900px; margin-left: -600px; z-index: -1; pointer-events: none; background: radial-gradient(40% 40% at 50% 50%, rgba(41, 151, 255, 0.2), rgba(41, 151, 255, 0.04) 55%, transparent 72%); }
.billing { position: relative; display: inline-flex; margin-top: 36px; padding: 4px; border-radius: 980px; background: var(--stage-2); border: 1px solid var(--stage-line); }
.billing button { position: relative; z-index: 1; font: inherit; font-size: 15px; border: 0; background: transparent; padding: 9px 20px; border-radius: 980px; cursor: pointer; color: var(--stage-ink-2); transition: color 250ms ease, transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.billing button[aria-pressed="true"] { color: #000; background: #fff; }
.js .billing button[aria-pressed="true"] { background: transparent; }
.billing button:active { transform: scale(0.97); }
.billing-thumb { display: none; }
.js .billing-thumb { display: block; position: absolute; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 980px; background: #fff; transform: translateX(var(--tx, 4px)); width: var(--tw, 0); transition: transform 450ms var(--ease-drawer), width 450ms var(--ease-drawer); }
.save { color: var(--ok); font-size: 12px; font-weight: 600; margin-left: 6px; }
.billing button[aria-pressed="true"] .save { color: #1f7a35; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; max-width: 1000px; margin: 48px auto 0; text-align: left; align-items: stretch; }
.plan { position: relative; border-radius: 28px; padding: 36px 34px; display: flex; flex-direction: column; background: rgba(18, 18, 21, 0.8); border: 1px solid var(--stage-line); }
.plan h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.plan .tagline { color: var(--stage-ink-2); font-size: 15px; margin-top: 6px; }
.price-row { display: flex; align-items: flex-end; gap: 10px; margin: 30px 0 8px; min-height: 80px; }
.price { display: flex; align-items: flex-start; font-size: 76px; font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.price .cur { font-size: 0.42em; margin: 0.12em 0.06em 0 0; letter-spacing: 0; color: var(--stage-ink-2); }
.per { color: var(--stage-ink-2); font-size: 16px; line-height: 1.3; padding-bottom: 6px; }
.per b { display: block; color: var(--stage-ink); font-weight: 500; }
.price-note { font-size: 14px; color: var(--stage-ink-2); min-height: 21px; }
.price-note strong { color: var(--ok); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 28px 0 32px; font-size: 15px; }
.plan li { padding: 11px 0 11px 32px; border-top: 1px solid var(--stage-line); position: relative; color: var(--stage-ink); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border-left: 2px solid var(--accent-dark); border-bottom: 2px solid var(--accent-dark); transform: rotate(-45deg); }
.plan li.tbd { color: var(--attention); }
.plan li.tbd::before { border-color: var(--attention); }
.plan .btn { margin-top: auto; width: 100%; }
.plan .fine { margin-top: 12px; font-size: 13px; color: var(--stage-ink-3); text-align: center; }
.plan.pro { background: linear-gradient(180deg, rgba(16, 28, 48, 0.95), rgba(11, 11, 13, 0.95) 65%); border-color: transparent; box-shadow: 0 40px 120px rgba(41, 151, 255, 0.16); }
.plan.pro::before {
  content: ""; position: absolute; inset: -1px; border-radius: 29px; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--angle, 0deg), rgba(41, 151, 255, 0.18) 0deg, #2997ff 50deg, #ff9f0a 100deg, rgba(41, 151, 255, 0.18) 160deg, rgba(41, 151, 255, 0.18) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin-border 6s linear infinite;
}
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --angle: 360deg; } }
.plan-badge { position: absolute; top: -14px; left: 34px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(90deg, #0071e3, #2997ff); padding: 6px 12px; border-radius: 980px; box-shadow: 0 8px 20px rgba(0, 113, 227, 0.4); }
.pro-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: #000; background: linear-gradient(90deg, #ffd08a, #ff9f0a); padding: 3px 8px; border-radius: 6px; }
[data-period="yearly"] .monthly-only, [data-period="monthly"] .yearly-only { display: none; }
.js .plans .monthly-only, .js .plans .yearly-only { animation: swap-in 450ms var(--ease-out); }
@keyframes swap-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
.perks-title { margin: 72px 0 0; font-size: 15px; color: var(--stage-ink-2); font-weight: 500; }
.perks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 1000px; margin: 20px auto 0; text-align: left; }
.perk { border: 1px solid var(--stage-line); border-radius: 18px; padding: 18px; background: rgba(18, 18, 21, 0.8); }
.perk .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(41, 151, 255, 0.12); color: var(--accent-dark); margin-bottom: 14px; }
.perk b { display: block; font-size: 15px; }
.perk span { display: block; color: var(--stage-ink-2); font-size: 13px; margin-top: 4px; line-height: 1.4; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; color: var(--stage-ink-3); font-size: 13px; }
.bill-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; max-width: 1000px; margin: 64px auto 0; text-align: left; }
.bill-faq div { padding: 20px 0; border-top: 1px solid var(--stage-line); }
.bill-faq h4 { font-size: 16px; color: var(--stage-ink); letter-spacing: -0.01em; }
.bill-faq p { margin-top: 6px; font-size: 15px; color: var(--stage-ink-2); line-height: 1.5; }
@media (hover: hover) and (pointer: fine) { .plan { transition: transform 300ms var(--ease-out); } .plan:hover { transform: translateY(-4px); } }

/* ---------- Download ---------- */
.download { text-align: center; overflow: hidden; isolation: isolate; }
.download-glow { position: absolute; left: 50%; top: 0; width: 900px; height: 640px; margin-left: -450px; z-index: -1; background: radial-gradient(45% 45% at 50% 40%, rgba(255, 159, 10, 0.24), transparent 70%); animation: glow 5s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: 0.7; } to { opacity: 1; } }
.app-icon { width: 148px; height: 148px; margin: 0 auto 28px; filter: drop-shadow(0 24px 50px rgba(255, 159, 10, 0.3)); }
.download .cta-row { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.reqs { margin-top: 18px; font-size: 14px; color: var(--stage-ink-3); }
.reqs a { color: var(--accent-dark); }

/* ---------- FAQ (light reading band) ---------- */
.light { background: var(--paper); color: var(--ink); }
.light .section-head p { color: var(--ink-2); }
.faq { max-width: 820px; margin: 48px auto 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 300; color: var(--ink-2); transition: transform 300ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; color: var(--ink-2); font-size: 17px; }
.faq .answer p + p { margin-top: 12px; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 400ms var(--ease-out), content-visibility 400ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ---------- Footer ---------- */
.footer { background: var(--paper-2); color: var(--ink-2); font-size: 12px; padding: 32px 0 48px; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.footer a { color: var(--ink); }
.home .footer { background: var(--stage); color: var(--stage-ink-3); border-top: 1px solid var(--stage-line); padding: 72px 0 48px; font-size: 13px; }
.home .footer a { color: var(--stage-ink-2); }
.home .footer a:hover { color: var(--stage-ink); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 32px; width: 100%; }
.footer-grid h2 { margin: 0 0 14px; font-size: 13px; color: var(--stage-ink); font-weight: 600; letter-spacing: 0; }
.footer-grid nav { display: block; margin-left: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand .brand { font-size: 17px; }
.footer-brand p { margin-top: 14px; max-width: 300px; line-height: 1.5; }
.footer-legal { width: 100%; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--stage-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Film dialog ---------- */
.film { padding: 0; border: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%; opacity: 1; transform: none; transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out), overlay 300ms allow-discrete, display 300ms allow-discrete; }
.film:not([open]) { opacity: 0; transform: scale(0.96); }
@starting-style { .film[open] { opacity: 0; transform: scale(0.96); } }
.film::backdrop { background: rgba(0, 0, 0, 0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: opacity 300ms ease, overlay 300ms allow-discrete, display 300ms allow-discrete; }
.film:not([open])::backdrop { opacity: 0; }
@starting-style { .film[open]::backdrop { opacity: 0; } }
.film-inner { position: relative; }
.film video { display: block; width: 100%; height: auto; border-radius: 14px; background: #000; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); }
.film-close { position: absolute; top: -48px; right: 0; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, 0.16); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.film-close:hover { background: rgba(255, 255, 255, 0.26); }
.film-close:active { transform: scale(0.94); }

/* ---------- Document pages (privacy, terms, changelog, thanks, 404) ---------- */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.1; }
.doc .updated { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.doc h2 { font-size: 26px; margin: 48px 0 14px; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 17px; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li + li { margin-top: 6px; }
.doc .lead { margin-top: 24px; font-size: 21px; line-height: 1.4; color: var(--ink-2); }
.doc .btn { margin-top: 28px; }
.table-wrap { overflow-x: auto; margin: 16px 0; -webkit-overflow-scrolling: touch; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
.doc th { font-weight: 600; }
.release { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 40px; }
.release h2 { margin: 0; }
.release .date { color: var(--ink-2); font-size: 15px; margin-top: 4px; }

/* ---------- Grain, separators and the headline shine ---------- */
body.home::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#why::before, #features::before, #day::before, #views::before, #keys::before, #pricing::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(900px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}
.shine { background: linear-gradient(100deg, #ffd08a, #ff9f0a 38%, #fff1d2 50%, #ff9f0a 62%, #ff7a1a); background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .shine.intro { animation: rise 900ms var(--ease-out) forwards, shine 7s ease-in-out 1.6s infinite; animation-delay: calc(var(--i, 0) * 70ms + 80ms), 1.6s; }
@keyframes shine { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }

/* ---------- Before and after ---------- */
.compare { --cut: 50%; position: relative; margin-top: 56px; aspect-ratio: 2400 / 1559; border-radius: 18px; overflow: hidden; background: #0b0b0d; box-shadow: 0 50px 140px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare-before { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(80% 90% at 20% 10%, #23304a, #121620 55%, #0b0b0d); }
.tw { position: relative; width: 84%; height: 82%; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #1c1c1e; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12); font-family: var(--mono); font-size: clamp(9px, 1.1vw, 14px); color: #d1d1d6; }
.tw-bar { position: relative; flex: none; height: 2.4em; display: flex; align-items: center; justify-content: center; background: #2b2b2e; color: var(--stage-ink-2); font-family: var(--font); }
.tw-bar .dots { position: absolute; left: 1em; display: flex; gap: 0.5em; }
.tw-bar .dots i { width: 0.9em; height: 0.9em; border-radius: 50%; background: #ff5f57; }
.tw-bar .dots i + i { background: #febc2e; }
.tw-bar .dots i + i + i { background: #28c840; }
.tw-tabs { flex: none; display: flex; background: #2b2b2e; border-top: 1px solid #3a3a3e; font-family: var(--font); }
.tw-tabs span { flex: 1 1 0; min-width: 0; padding: 0.55em 0.6em; text-align: center; color: var(--stage-ink-3); border-left: 1px solid #3a3a3e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-tabs span.on { background: #1c1c1e; color: var(--stage-ink); }
.tw-body { flex: 1; padding: 1em 1.2em; line-height: 1.75; overflow: hidden; }
.tw-body .d { color: #8e8e93; }
.tw-body .g { color: var(--ok); }
.tw-q { position: absolute; left: 4%; bottom: 6%; display: flex; align-items: center; gap: 0.7em; max-width: 44%; padding: 0.8em 1em; border-radius: 12px; background: rgba(44, 44, 48, 0.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--stage-line-2); font-family: var(--font); color: var(--stage-ink); }
.tw-q span { flex: none; display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--attention-soft); color: var(--attention); font-weight: 700; }
.compare-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut)); }
.compare-after img { width: 100%; height: 100%; }
.compare-tag { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 980px; font-size: 13px; font-weight: 600; color: var(--stage-ink); background: rgba(20, 20, 24, 0.75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--stage-line-2); }
.compare-tag.tag-after { left: auto; right: 14px; color: var(--attention); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); transition: transform 200ms var(--ease-out); }
.compare.is-drag .compare-handle span { transform: scale(0.92); }
.compare:has(.compare-range:focus-visible) .compare-handle span { outline: 3px solid rgba(41, 151, 255, 0.7); outline-offset: 3px; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 2000px; }
.compare-range::-moz-range-thumb { width: 60px; height: 2000px; border: 0; }

/* ---------- A day with Taskhouse ---------- */
.day { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.day-head { position: sticky; top: 140px; }
.day-head .section-head { text-align: left; margin: 0; }
.day-list { --fill: 0; position: relative; list-style: none; margin: 0; padding: 0; }
.day-list::before, .day-list::after { content: ""; position: absolute; left: 81px; top: 10px; bottom: 40px; width: 2px; border-radius: 2px; background: var(--stage-line-2); }
.day-list::after { background: linear-gradient(180deg, var(--accent-dark), var(--attention) 40%, var(--err) 65%, var(--ok)); transform-origin: 50% 0; transform: scaleY(var(--fill)); }
html:not(.js) .day-list::after { transform: none; }
.day-list li { position: relative; z-index: 1; display: grid; grid-template-columns: 56px 28px minmax(0, 1fr); gap: 0 12px; padding-bottom: 44px; }
.day-list time { font-family: var(--mono); font-size: 14px; color: var(--stage-ink-3); padding-top: 3px; text-align: right; transition: color 400ms ease; }
.day-dot { justify-self: center; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: var(--stage-ink-3); box-shadow: 0 0 0 4px var(--stage); transition: transform 400ms var(--ease-out), box-shadow 400ms ease; }
.day-dot.k-b { background: var(--accent-dark); }
.day-dot.k-q, .day-dot.k-a { background: var(--attention); }
.day-dot.k-e { background: var(--err); }
.day-dot.k-r { background: var(--ok); }
.js .day-list li:not(.is-lit) .day-dot { transform: scale(0.6); }
.day-list li.is-lit .day-dot { box-shadow: 0 0 0 4px var(--stage), 0 0 0 9px rgba(255, 255, 255, 0.08); }
.day-list li.is-lit time { color: var(--stage-ink); }
.day-list h3 { font-size: 21px; line-height: 1.25; }
.day-list h3 code { font-size: 0.85em; color: var(--attention); }
.day-list p { margin-top: 6px; font-size: 16px; color: var(--stage-ink-2); line-height: 1.5; }
.chip { display: inline-block; margin-top: 12px; padding: 5px 10px; border-radius: 8px; font-family: var(--mono); font-size: 12px; color: var(--stage-ink-2); background: var(--stage-2); border: 1px solid var(--stage-line); }
.chip-q { color: var(--attention); }
.chip-e { color: #ff6961; }
.chip-r { color: var(--ok); }

/* ---------- Keyboard shortcuts ---------- */
.keys { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 36px; margin-top: 56px; align-items: center; }
.keycaps { display: grid; gap: 8px; }
.keycaps button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; align-items: center; text-align: left; font: inherit; color: var(--stage-ink-2); background: transparent; border: 1px solid transparent; border-radius: 18px; padding: 14px 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 250ms ease, border-color 250ms ease, transform 160ms var(--ease-out); }
.keycaps button:active { transform: scale(0.98); }
.keycaps .caps { grid-row: span 2; display: flex; gap: 4px; }
.keycaps b { font-size: 16px; font-weight: 600; color: var(--stage-ink-2); transition: color 250ms ease; }
.keycaps small { font-size: 13px; color: var(--stage-ink-3); line-height: 1.35; }
.keycaps button[aria-selected="true"] { background: var(--stage-2); border-color: var(--stage-line); }
.keycaps button[aria-selected="true"] b { color: var(--stage-ink); }
.keycaps kbd { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; font-family: var(--font); font-size: 15px; color: var(--stage-ink); background: linear-gradient(180deg, #313136, #1d1d21); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 3px 0 #000, inset 0 1px 0 rgba(255, 255, 255, 0.1); transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out), color 250ms ease; }
.keycaps button[aria-selected="true"] kbd { color: var(--attention); box-shadow: 0 3px 0 #000, 0 0 0 1px rgba(255, 159, 10, 0.45), 0 0 22px rgba(255, 159, 10, 0.22); }
.keycaps button.is-press kbd { transform: translateY(3px); box-shadow: 0 0 0 #000, 0 0 0 1px rgba(255, 159, 10, 0.6); }
.key-stage { display: grid; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1); background: #19191b; }
.key-panel { grid-area: 1 / 1; overflow: hidden; aspect-ratio: 2000 / 1299; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), filter 500ms var(--ease-out); }
.key-panel img { width: 100%; height: 100%; }
.key-panel[hidden] { display: block; visibility: hidden; opacity: 0; transform: scale(0.98); filter: blur(6px); }
.key-panel.is-active { visibility: visible; opacity: 1; transform: none; filter: none; }
.key-zoom img { transform-origin: 0 0; transform: translate(-184%, -157%) scale(2.6); }

@media (max-width: 1060px) {
  .day { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .day-head { position: static; }
  .day-head .section-head { text-align: center; margin: 0 auto; }
  .keys { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .keycaps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .keycaps button { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 12px 8px; gap: 8px; }
  .keycaps .caps { grid-row: auto; }
  .keycaps small { display: none; }
  .keycaps b { font-size: 13px; }
}
@media (max-width: 760px) {
  .compare { aspect-ratio: 4 / 5; }
  .compare-after img { object-fit: cover; object-position: 78% 0; }
  .compare-after .hot-frame { display: none; }
  .tw { width: 90%; height: 86%; font-size: 11px; }
  .tw-tabs span:nth-child(n+5) { display: none; }
  .tw-q { max-width: 46%; left: 5%; font-size: 10px; }
  .day-list::before, .day-list::after { left: 63px; }
  .day-list li { grid-template-columns: 44px 24px minmax(0, 1fr); gap: 0 8px; padding-bottom: 36px; }
  .day-list time { font-size: 12px; }
  .day-list h3 { font-size: 19px; }
  .day-list p { font-size: 15px; }
  .keycaps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Responsive ---------- */
.story-caption { display: none; margin-top: 14px; text-align: center; font-size: 15px; line-height: 1.4; color: var(--stage-ink-2); min-height: 42px; }
@media (max-width: 1060px) {
  .story-pin { grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: center; }
  .story-steps { grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .story-steps li { padding: 10px 12px; }
  .story-steps li h3 { font-size: 14px; letter-spacing: -0.01em; }
  .story-steps li p { display: none; }
  .story-caption { display: block; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-inbox, .c-phone, .c-local { grid-column: span 2; }
  .c-inbox { grid-row: auto; }
  .c-term, .c-crash, .c-acct, .c-auto { grid-column: span 1; }
  .c-prop { grid-column: span 2; }
  .tour { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tour-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tabs button { flex: 1 0 auto; padding: 10px 14px 14px; text-align: center; }
  .tab-name { font-size: 15px; }
  .tab-desc { display: none; }
  .tab-bar { left: 14px; right: 14px; bottom: 5px; }
  .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .section { padding: 96px 0; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 56px; }
  .hero-badge { font-size: 13px; }
  .stagec { margin-top: 84px; }
  .stagec-canvas { margin: 0; }
  .float-inbox { display: none; }
  .float-phone { width: 25%; right: -1%; top: 38%; }
  .float-note { width: 250px; right: 2%; top: -17%; }
  .mac-note { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 9px 11px; border-radius: 14px; font-size: 11px; }
  .mac-note img { width: 28px; height: 28px; }
  .mac-note strong { font-size: 12px; }
  .mac-note .top, .mac-note code { font-size: 11px; }
  .story { height: 380vh; }
  .story-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-key { left: 10px; top: 10px; font-size: 11px; padding: 5px 8px; }
  .story-key kbd { font-size: 11px; padding: 1px 5px; }
  .story-progress { right: 10px; top: 10px; }
  .story-progress span { width: 16px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .c-inbox, .c-phone, .c-local, .c-term, .c-crash, .c-acct, .c-auto, .c-prop { grid-column: auto; }
  .c-inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox-real { width: 100%; max-width: 300px; margin: 0 auto; }
  .c-phone { grid-template-columns: minmax(0, 1fr) 118px; gap: 16px; }
  .cell { padding: 22px; min-height: 0; }
  .cell h3 { font-size: 22px; }
  .diagram { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .link { height: 28px; width: 2px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--stage-ink-3) 0 6px, transparent 6px 12px); background-size: 2px 24px; animation: none; }
  .numbers { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan.pro { order: -1; }
  .plan { padding: 32px 22px 26px; }
  .price { font-size: 64px; }
  .perks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .perk:last-child { grid-column: 1 / -1; }
  .bill-faq { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .intro, .js .stagec, .js .float-inbox > *, .js .float-phone > *, .js .float-note .mac-note, .js .hot-frame { animation: fade-in 300ms ease forwards; transform: none; filter: none; }
  .hero-light, .hero-light-2, .pulse-dot::after, .proc-dot, .hot, .download-glow, .plan.pro::before, .link, .caret, .term-head .st::before { animation: none; }
  .js .hot-frame { opacity: 1; }
  .stagec-canvas, .layer { transform: none !important; }
  .marquee { width: auto; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .marquee-track[aria-hidden] { display: none; }
  .js .reveal { transform: none; filter: none; }
  .js .reveal.is-in { transition: opacity 300ms ease; }
  .story-view img { transition: opacity 300ms ease; }
  .inbox-hl { transition: none; }
  .js .term .l { opacity: 1; animation: none !important; }
  .proc-app .proc-dot, .proc-app .state-on, .proc-app .state-off, .proc-app .name { animation: none; }
  .js .prop .yes, .js .prop .prop-done, .js .hold::after { animation: none !important; }
  .tour-panel, .tour-panel[hidden] { transform: none; filter: none; transition: opacity 200ms ease; }
  .billing-thumb { transition: none; }
  .js .plans .monthly-only, .js .plans .yearly-only { animation: none; }
  .js .rotator span { transition: none; transform: none; filter: none; }
  .film, .film::backdrop { transition: none; }
  .plan:hover { transform: none; }
  .js .shine.intro { animation: fade-in 300ms ease forwards; }
  .key-panel, .key-panel[hidden] { transform: none; filter: none; transition: opacity 200ms ease; }
  .day-dot, .keycaps kbd { transition: none; }
  .js .day-list li:not(.is-lit) .day-dot { transform: none; }
}
