/* Aplica landing: stone ground, near-black ink, one green (the app's 'applied'), Switzer, the dark app on screen like a sheet on a desk. */
:root {
  --bg: #edece8;
  --surface: #e1dfd9;
  --raised: #f6f6f4;
  --ink: #17150f;
  --muted: #4d493f;
  --accent: #1f6b47;
  --accent-ink: #f6f6f4;
  --edge: rgba(23, 21, 15, 0.12);

  --font: 'Switzer', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 1.4rem + 5.6vw, 6rem);

  --margin: clamp(16px, 3vw, 40px);
  --gap: clamp(112px, 13vw, 200px);
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 var(--font); letter-spacing: -0.005em; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.h2 { font-size: var(--step-head); line-height: 1.02; }
.small { font-size: var(--step-small); color: var(--muted); }
.note { font-size: var(--step-small); color: var(--muted); margin: 18px 0 0; }

.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; border-radius: 999px; transition: transform .2s var(--ease), background-color .2s; }
.button:hover { background: #185a3b; transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(.98); }
.link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(23,21,15,.3); transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--accent); }

/* the recorded app sits in a quiet frame */
.frame { position: relative; border-radius: var(--radius); overflow: hidden; background: #0a0b0f; aspect-ratio: 16 / 10; }
.frame video { width: 100%; height: 100%; object-fit: cover; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--margin); background: var(--bg); }
.nav-mark { font-weight: 600; font-size: var(--step-body); letter-spacing: -0.02em; text-decoration: none; }
.nav-links { display: flex; gap: 28px; font-size: var(--step-small); }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { justify-self: end; font-size: var(--step-small); font-weight: 600; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); transition: background-color .2s; }
.nav-cta:hover { background: var(--accent); }

/* hero: the claim, then the product doing its job */
.hero { padding: clamp(56px, 8vw, 120px) var(--margin) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.hero-copy { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.045em; max-width: 17ch; }
.lead { font-size: var(--step-lead); line-height: 1.4; color: var(--ink); max-width: 46ch; margin: 28px 0 0; }
.hero-actions { margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.hero-media { grid-column: 2 / span 10; margin: clamp(56px, 7vw, 96px) 0 0; }
.hero-media figcaption { margin-top: 14px; font-size: var(--step-small); color: var(--muted); display: flex; gap: 16px; align-items: baseline; }
.pause { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* features: a pinned screen on the left, the descriptions scroll on the right */
.features { padding: var(--gap) var(--margin) 0; }
.features .h2 { max-width: 14ch; margin-bottom: clamp(48px, 6vw, 96px); }
.feat-split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.feat-stage { grid-column: 1 / span 7; position: sticky; top: 96px; align-self: start; height: calc(100svh - 128px); display: flex; align-items: center; }
.feat-stage .frame { width: 100%; }
.feat-stage video { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.feat-stage video.is-on { opacity: 1; }
.feat-list { grid-column: 9 / span 4; }
.feat { min-height: 78svh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.feat h3 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.08; color: var(--muted); transition: color .4s var(--ease); }
.feat p { margin: 18px 0 0; color: var(--muted); transition: color .4s var(--ease); }
.feat.is-on h3, .feat.is-on p:not(.small) { color: var(--ink); }
.feat-media { display: none; }

/* never: the one dark field on the page, the claim on the left, the five refusals on the right */
.never { margin: var(--gap) var(--margin) 0; padding: clamp(40px, 6vw, 88px); background: var(--ink); color: var(--bg); border-radius: 28px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.never-copy { grid-column: 1 / span 5; }
.never-copy .h2 { max-width: 10ch; }
.never-copy p { margin: 28px 0 0; max-width: 36ch; }
.never-list { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; counter-reset: n; display: flex; flex-direction: column; gap: 36px; }
.never-list li { counter-increment: n; display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 8px; }
.never-list li::before { content: counter(n, decimal-leading-zero); grid-row: span 2; color: #7fd3a4; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: .45em; font-size: var(--step-small); }
.never-list b { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; }
.never-list span { margin-top: 8px; color: #cfcbc2; }
.never :focus-visible { outline-color: #7fd3a4; }

/* questions: the index on the left, one answer on the right */
.questions { padding: var(--gap) var(--margin) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.q-index { grid-column: 1 / span 5; }
.q-head { font-size: var(--step-head); line-height: 1.02; margin-bottom: 40px; }
.q-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.q-list button { display: flex; align-items: baseline; gap: 14px; width: 100%; text-align: left; background: none; border: 0; padding: 10px 0; cursor: pointer; font-size: var(--step-body); color: var(--muted); transition: color .2s; }
.q-list button::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #c9c1af; transform: translateY(-2px); transition: background-color .2s; }
.q-list button:hover { color: var(--ink); }
.q-list button[aria-selected="true"] { color: var(--ink); }
.q-list button[aria-selected="true"]::before { background: var(--accent); }
.q-pane { grid-column: 7 / span 6; position: sticky; top: 120px; align-self: start; padding-top: calc(var(--step-head) + 40px); }
.q-pane p { margin: 0; font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; animation: rise .3s var(--ease); }

/* close: the claim on the left, the downloads as a panel on the right */
.close { margin: var(--gap) var(--margin) 0; padding: clamp(40px, 6vw, 88px); background: var(--surface); border-radius: 28px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.close-copy { grid-column: 1 / span 6; }
.close h2 { font-size: var(--step-head); line-height: 1.02; max-width: 11ch; }
.close-copy p { margin: 24px 0 0; max-width: 40ch; }
.cmd { display: inline-block; margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: var(--raised); font: 500 var(--step-small)/1.4 ui-monospace, 'SFMono-Regular', Menlo, monospace; overflow-wrap: anywhere; }
.dl { grid-column: 8 / span 5; background: var(--raised); border-radius: var(--radius); padding: 8px; }
.dl-head { margin: 0; padding: 12px 14px 10px; font-size: var(--step-small); color: var(--muted); }
.dl-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px; border-radius: 10px; text-decoration: none; transition: background-color .2s; }
.dl-row span:last-child { color: var(--muted); font-size: var(--step-small); }
.dl-row:hover, .dl-row.is-you { background: var(--surface); }
.dl-row.is-you span:first-child::after { content: ' · this PC'; color: var(--accent); }

.foot { margin-top: var(--gap); padding: 28px var(--margin) 32px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; font-size: var(--step-small); color: var(--muted); }
.foot span:last-child { justify-self: end; text-align: right; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.foot span:last-child img { max-width: 100%; height: auto; margin-top: 10px; vertical-align: middle; }

/* entrances */
.rise { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rise.is-in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition-duration: 0s !important; }
}

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero-media { grid-column: 1 / -1; }
  .feat-stage { display: none; }
  .feat-list { grid-column: 1 / -1; }
  .feat { min-height: 0; padding: 0 0 72px; }
  .feat-media { display: block; margin-bottom: 24px; }
  .feat h3, .feat p { color: var(--ink); }
  .feat p.small { color: var(--muted); }
  .q-index, .q-pane { grid-column: 1 / -1; }
  .q-pane { position: static; padding-top: 24px; }
  .close-copy, .dl { grid-column: 1 / -1; }
  .never-copy, .never-list { grid-column: 1 / -1; }
  .never-list { margin-top: 40px; }
  .dl { margin-top: 40px; }
  .foot { grid-template-columns: 1fr; gap: 10px; }
  .foot span:last-child { justify-self: start; text-align: left; }
}
