/* Self-hosted Inter (variable) so every OS renders the same crisp type. Without
   this, non-Apple platforms fall back to Segoe UI/Arial and the whole site looks
   off. Same-origin file keeps it inside the CSP (no external font CDN allowed). */
@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;   /* never adopt the OS dark theme; form controls stay light too */
  /* Yellow is the brand accent + logo color. Bright marigold for fills/buttons
     (with near-black text on top); a deeper gold for small glyphs/text on white
     so they stay legible — same hue, honest contrast. */
  --accent: #f6b40a;          /* fills, buttons, shapes */
  --accent-hover: #ffc22b;    /* button hover — brighter, feels lifted */
  --accent-deep: #8f5a00;     /* accent-colored text/glyphs on white (AA ≥4.5:1) */
  --accent-ink: #1c1400;      /* text placed on top of a yellow surface */
  --accent-tint: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-glow: rgba(246, 180, 10, .30);

  --ink: #1a1712;
  --ink-2: #5c554c;
  --ink-3: #8a8178;
  --bg: #ffffff;
  --bg-2: #faf8f5;
  --bg-3: #f3efe9;
  --line: #e9e3db;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(26,23,18,.04), 0 8px 30px rgba(26,23,18,.06);
  --radius: 16px;
  --maxw: 1080px;
  --font: "Inter var", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Strong custom easings — the built-in CSS curves are too weak (Emil). */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Light mode only — the site does not follow the OS dark-mode setting. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Plus-grid background ----------
   Tiny + markers tiled on a 96px grid (pure-CSS SVG, crisp on retina),
   masked so it fades toward the edges and never fights the content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cpath d='M48 43.5v9M43.5 48h9' stroke='%231a1712' stroke-opacity='0.10' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 12%, #000 35%, transparent 82%);
          mask-image: radial-gradient(120% 100% at 50% 12%, #000 35%, transparent 82%);
}
body > * { position: relative; z-index: 1; }
@media (max-width: 860px) { body::before { background-size: 72px 72px; } }
@media (max-width: 560px) { body::before { background-size: 56px 56px; } }
a { color: inherit; text-decoration: none; }
/* Tasteful text selection — a soft accent wash, not the harsh browser blue. */
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 17px; }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-name { letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.nav-links a:not(.btn) { transition: color 150ms ease; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; border-radius: 12px;
  padding: 12px 20px;
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out), background 200ms var(--ease-out);
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
/* Instant press feedback — the UI must feel like it heard you (Emil). */
.btn:active { transform: scale(0.97); }

.btn-small { padding: 8px 15px; font-size: 14px; background: var(--accent); color: var(--accent-ink); border-radius: 10px; font-weight: 650; }
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.btn-lg { padding: 15px 30px; font-size: 16.5px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }

/* Hover only where there's a real pointer — touch taps shouldn't stick hover. */
@media (hover: hover) and (pointer: fine) {
  .btn-small:hover { transform: translateY(-1px); background: var(--accent-hover); }
  .btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: 72px 28px 40px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-tint);
  padding: 6px 11px; border-radius: 999px; margin-bottom: 20px;
}
/* Size-specific tracking: large display text wants tighter letters (Apple). */
.hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.lede { margin-top: 20px; font-size: 18px; color: var(--ink-2); max-width: 30em; }
.lede strong { color: var(--ink); font-weight: 650; }
.cta-row { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.cta-note { font-size: 14px; color: var(--ink-3); font-weight: 500; }

/* ---------- Waitlist ---------- */
.waitlist { margin-top: 30px; max-width: 440px; }
.wl-field {
  display: flex; gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 6px;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
/* Soft accent focus ring — the field feels responsive when it gains focus. */
.wl-field:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}
.waitlist[data-state="invalid"] .wl-field { border-color: #d24d3a; box-shadow: 0 0 0 4px color-mix(in srgb, #d24d3a 12%, transparent); }
.waitlist[data-state="success"] .wl-field { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.wl-input {
  flex: 1; min-width: 0; border: none; background: transparent;
  padding: 10px 12px; font-size: 15px; font-family: var(--font); color: var(--ink);
}
.wl-input:focus { outline: none; }
.wl-input::placeholder { color: var(--ink-3); }
.wl-input:read-only { color: var(--ink-2); }
/* Kill the browser's ugly blue/yellow autofill background — paint it back to
   the field color and freeze the flash so it stays clean. */
.wl-input:-webkit-autofill,
.wl-input:-webkit-autofill:hover,
.wl-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 100px var(--card) inset;
  caret-color: var(--ink);
  transition: background-color 100000s ease-out 0s;
}

.wl-btn { position: relative; flex: none; overflow: hidden; }
.wl-btn:disabled { opacity: .5; cursor: not-allowed; }
.wl-btn-label, .wl-btn-check {
  display: inline-flex; transition: transform 220ms var(--ease-out), opacity 180ms ease;
}
.wl-btn-check { position: absolute; inset: 0; align-items: center; justify-content: center; opacity: 0; transform: translateY(120%); font-weight: 800; }
.waitlist[data-state="loading"] .wl-btn-label { opacity: .0; }
.waitlist[data-state="loading"] .wl-btn::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
  border: 2px solid color-mix(in srgb, var(--accent-ink) 35%, transparent);
  border-top-color: var(--accent-ink); border-radius: 50%;
  animation: wl-spin .6s linear infinite;
}
.waitlist[data-state="success"] .wl-btn-label { opacity: 0; transform: translateY(-120%); }
.waitlist[data-state="success"] .wl-btn-check { opacity: 1; transform: translateY(0); }
@keyframes wl-spin { to { transform: rotate(360deg); } }

.wl-msg {
  font-size: 13.5px; color: var(--ink-2); margin-top: 0; padding-left: 4px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 240ms var(--ease-out), opacity 200ms ease, margin-top 240ms var(--ease-out);
}
.wl-msg:not(:empty) { max-height: 60px; opacity: 1; margin-top: 12px; }
.wl-msg.wl-err { color: #c0402d; }
.wl-msg.wl-ok  { color: var(--accent-deep); font-weight: 550; }
.wl-fix {
  border: none; background: none; padding: 0; cursor: pointer;
  color: var(--accent-deep); font: inherit; font-weight: 650; text-decoration: underline;
  text-underline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .wl-btn-label, .wl-btn-check, .wl-msg, .wl-field { transition: opacity 150ms ease; }
  .waitlist[data-state="loading"] .wl-btn::after { animation-duration: 1.2s; }
}
.trust { list-style: none; display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.trust li { position: relative; font-size: 13.5px; color: var(--ink-2); padding-left: 20px; }
.trust li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* ---------- Hero mockup ---------- */
.hero-visual { display: flex; justify-content: center; }
.menubar { width: min(300px, 100%); }
.menubar-strip {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  background: var(--bg-3); border: 1px solid var(--line); border-bottom: none;
  border-radius: 12px 12px 0 0; padding: 7px 14px; color: var(--ink-2); font-size: 12.5px;
}
.mb-icon { display: inline-flex; color: var(--ink-2); }
.mb-icon.active { color: var(--accent-deep); }
.mb-time { font-variant-numeric: tabular-nums; }
.menu {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 0 0 14px 14px; padding: 7px; box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.menu-header { font-size: 12px; color: var(--ink-3); padding: 6px 10px 8px; font-weight: 500; }
.menu-item {
  font-size: 13.5px; color: var(--ink); padding: 6px 10px; border-radius: 6px;
  display: flex; align-items: center; justify-content: space-between; position: relative;
  transition: background 80ms ease, color 80ms ease; cursor: default;
}
.menu-item.strong { font-weight: 600; }
/* macOS-style highlight: full-width accent bar on hover, dark text on our yellow. */
.menu-item:hover { background: var(--accent); color: var(--accent-ink); }
/* the trial line is info, not a command — it shouldn't highlight */
.menu-item.muted { color: var(--ink-3); font-size: 12.5px; cursor: default; }
.menu-item.muted:hover { background: transparent; color: var(--ink-3); }
.menu-item.check::before {
  content: "✓"; position: absolute; left: 10px; opacity: 0; color: var(--accent-deep); font-weight: 700;
}
.menu-item.check { padding-left: 26px; }
.menu-item.check.on::before { opacity: 1; }
.menu-item.check:hover::before { color: var(--accent-ink); }
.chev { color: var(--ink-3); font-size: 15px; line-height: 1; margin-left: 12px; }
.menu-item:hover .chev { color: var(--accent-ink); }
.menu-sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* Submenu flyout — "Awake for…" opens its time options on hover, like macOS. */
.menu-item.has-sub > .submenu {
  position: absolute; top: -7px; left: calc(100% + 4px);
  min-width: 176px; padding: 6px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateX(-6px) scale(0.98);
  transform-origin: left top;
  transition: opacity 130ms var(--ease-out), transform 130ms var(--ease-out), visibility 0s linear 130ms;
  z-index: 6;
}
.menu-item.has-sub:hover > .submenu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 130ms var(--ease-out), transform 130ms var(--ease-out);
}
.submenu .menu-item { justify-content: flex-start; }
/* flip the flyout to the left on narrower viewports so it never runs off-screen */
@media (max-width: 1200px) {
  .menu-item.has-sub > .submenu { left: auto; right: calc(100% + 4px); transform-origin: right top; }
}

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 76px 28px; }
.section-title { font-size: 34px; letter-spacing: -.02em; font-weight: 700; text-align: center; }
.section-sub { text-align: center; color: var(--ink-2); margin-top: 12px; font-size: 17px; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform 200ms var(--ease-out), border-color 200ms ease, box-shadow 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    box-shadow: 0 2px 4px rgba(26,23,18,.04), 0 14px 40px rgba(26,23,18,.09);
  }
}
.card-n {
  display: block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: .1em;
  color: var(--accent-deep);
  margin-bottom: 14px;
}

/* ---------- Animated card vignettes ----------
   Tiny recreations of the real UI, looping slowly. Only transform/opacity
   (plus one background crossfade) animate; long dead-still holds between
   moves; everything stops under prefers-reduced-motion. */
.demo {
  height: 112px; margin-bottom: 16px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  overflow: hidden; position: relative;
  font-size: 12.5px; color: var(--ink-2);
}

/* 01 — the macOS-style switch flipping on */
.demo .sw {
  width: 42px; height: 26px; border-radius: 13px;
  background: var(--line); position: relative; flex: none;
  animation: sw-track 6s ease-in-out infinite;
}
.demo .sw::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18);
  animation: sw-knob 6s cubic-bezier(0.23,1,0.32,1) infinite;
}
@keyframes sw-track { 0%,38% { background: var(--line); } 46%,88% { background: var(--accent); } 96%,100% { background: var(--line); } }
@keyframes sw-knob  { 0%,38% { transform: translateX(0); } 46%,88% { transform: translateX(16px); } 96%,100% { transform: translateX(0); } }

/* 02 — timed-session submenu, highlight stepping down the rows */
.demo .mini-menu {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 4px; width: 150px; position: relative; font-size: 12px; color: var(--ink);
}
.demo .mini-menu .row { padding: 5px 9px; position: relative; z-index: 1; }
.demo .mini-menu .hl {
  position: absolute; left: 4px; right: 4px; top: 4px; height: 26px;
  border-radius: 5px; background: var(--accent-tint); z-index: 0;
  animation: hl-step 7.5s cubic-bezier(0.23,1,0.32,1) infinite;
}
@keyframes hl-step {
  0%,26%   { transform: translateY(0); }
  33%,59%  { transform: translateY(26px); }
  66%,92%  { transform: translateY(52px); }
  100%     { transform: translateY(0); }
}

/* 03 — lid folds shut on its hinge (real rotateX, not a squash); light stays on */
.demo .laptop {
  display: flex; flex-direction: column; align-items: center;
  perspective: 360px;              /* gives the fold real depth */
}
.demo .lid {
  width: 86px; height: 52px;
  border: 2px solid var(--ink-2); border-bottom: none;
  border-radius: 7px 7px 2px 2px; background: var(--card);
  transform-origin: bottom center; /* the hinge */
  backface-visibility: hidden;
  animation: lid-close 7s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.demo .deck {
  width: 100px; height: 6px; border-radius: 2px 2px 5px 5px;
  background: var(--ink-2); position: relative; margin-top: 1px;
  box-shadow: 0 3px 6px rgba(0,0,0,.06);
}
.demo .deck::after { /* power light that stays awake */
  content: ""; position: absolute; right: 8px; top: 1px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  animation: light-pulse 7s ease-in-out infinite;
}
/* rotateX folds the screen down onto the base along its bottom hinge; a hair
   short of 90° so a thin closed-lid edge stays visible instead of vanishing. */
@keyframes lid-close {
  0%, 30%  { transform: rotateX(0deg); }
  52%, 82% { transform: rotateX(-83deg); }
  100%     { transform: rotateX(0deg); }
}
@keyframes light-pulse { 0%,40% { opacity: .4; } 52%,82% { opacity: 1; } 95%,100% { opacity: .4; } }

/* 04 — display dims while the Mac keeps working */
.demo .screen {
  width: 92px; height: 58px; border-radius: 7px;
  border: 2px solid var(--ink-2); background: var(--card);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.demo .screen .sun { color: var(--accent); display: inline-flex; }
.demo .screen .dim {
  position: absolute; inset: 0; background: #080602; opacity: 0;
  animation: dim 6.5s ease-in-out infinite;
}
@keyframes dim { 0%,34% { opacity: 0; } 46%,84% { opacity: .55; } 96%,100% { opacity: 0; } }

/* 05 — battery drains to the guard line, then Awake steps aside */
.demo .batt {
  width: 72px; height: 30px; border: 2px solid var(--ink-2); border-radius: 7px;
  position: relative; flex: none;
}
.demo .batt::after { /* cap */
  content: ""; position: absolute; right: -7px; top: 8px;
  width: 4px; height: 10px; border-radius: 0 2px 2px 0; background: var(--ink-2);
}
.demo .batt .fill {
  position: absolute; inset: 4px; border-radius: 3px; background: var(--accent);
  transform-origin: left center;
  animation: drain 8s linear infinite;
}
.demo .batt .guard { /* the 20% guard line */
  position: absolute; left: 20%; top: -6px; bottom: -6px; width: 1px;
  background: var(--accent-deep); opacity: .5;
}
@keyframes drain {
  0%       { transform: scaleX(0.9); }
  55%      { transform: scaleX(0.2); }  /* hits the guard */
  62%,88%  { transform: scaleX(0.2); }  /* guard holds — no further drain */
  100%     { transform: scaleX(0.9); }
}

/* 06 — near-zero CPU next to the heavyweights */
.demo .cpu { display: grid; gap: 8px; width: 150px; font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: var(--ink-3); }
.demo .cpu .prow { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; }
.demo .cpu .bar { height: 6px; border-radius: 3px; background: var(--line); transform-origin: left center; }
.demo .cpu .b1 { animation: breathe1 5s ease-in-out infinite; }
.demo .cpu .b2 { animation: breathe2 5s ease-in-out infinite; }
.demo .cpu .awake-row { color: var(--ink); }
.demo .cpu .b3 { background: var(--accent); animation: none; transform: scaleX(0.04); }
@keyframes breathe1 { 0%,100% { transform: scaleX(0.62); } 50% { transform: scaleX(0.74); } }
@keyframes breathe2 { 0%,100% { transform: scaleX(0.38); } 50% { transform: scaleX(0.3); } }

@media (prefers-reduced-motion: reduce) {
  .demo *, .demo *::before, .demo *::after { animation: none !important; }
}
.card h3 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- How ---------- */
.how { background: var(--bg-2); max-width: none; }
.steps {
  list-style: none; max-width: var(--maxw); margin: 44px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0 28px;
}
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-n {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}
.steps h3 { font-size: 16.5px; margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- Pricing (3 selectable tiers) ----------
   Emil rules: ONE accent (the selected card's CTA + ring), 600 weight max,
   tight tracking, baseline-aligned price, state indication on selection,
   press feedback, transitions (not keyframes) with the custom ease-out. */
.pricing .section-sub { max-width: 44ch; margin-left: auto; margin-right: auto; }
.tiers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; max-width: 880px; margin: 52px auto 0; align-items: stretch;
}
.tier {
  position: relative; background: var(--card); cursor: pointer;
  border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px;
  display: flex; flex-direction: column;
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 160ms ease;
}
.tier:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tier:active { transform: scale(0.99); }   /* press feedback (Emil) */
@media (hover: hover) and (pointer: fine) {
  .tier:not(.selected):hover { border-color: color-mix(in srgb, var(--ink) 14%, var(--line)); box-shadow: var(--shadow); }
}
/* Selected state — accent ring (inset, so no layout shift) + a filled check +
   the CTA turns yellow. This is the "I picked this" confirmation. */
.tier.selected {
  border-color: transparent;
  box-shadow: inset 0 0 0 2px var(--accent), 0 2px 4px rgba(26,23,18,.04), 0 16px 40px rgba(26,23,18,.09);
}

/* Selection indicator — outline circle that fills with a check when chosen. */
.tier-select {
  position: absolute; top: 26px; right: 26px; width: 20px; height: 20px;
  border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent);
  display: grid; place-items: center;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out);
}
.tier-select::after {
  content: "✓"; font-size: 11px; font-weight: 800; color: var(--accent-ink);
  opacity: 0; transform: scale(0.6);
  transition: opacity 140ms var(--ease-out), transform 160ms var(--ease-out);
}
.tier.selected .tier-select { border-color: var(--accent); background: var(--accent); }
.tier.selected .tier-select::after { opacity: 1; transform: scale(1); }

.tier-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); height: 20px; display: flex; align-items: center; gap: 8px; }
.tier-tag { font-size: 11px; font-weight: 600; color: var(--bg); background: var(--ink); padding: 3px 9px; border-radius: 999px; }
/* Price — $ and unit BOTH sit on the baseline with the number (balanced). */
.tier-price { display: flex; align-items: baseline; margin-top: 18px; }
.tier-price .cur { font-size: 22px; font-weight: 600; color: var(--ink); margin-right: 1px; }
.tier-price .amt { font-size: 46px; font-weight: 600; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.tier-price .per { font-size: 15px; color: var(--ink-2); margin-left: 6px; }
.tier-sub { font-size: 13px; color: var(--ink-2); margin-top: 10px; height: 18px; }
.tier-sub strong { color: var(--ink); font-weight: 600; }
/* Hairline divider before the feature block — same y on every card = aligned. */
.tier-feat {
  list-style: none; margin: 22px 0 24px; padding-top: 22px; display: grid; gap: 12px;
  border-top: 1px solid var(--line);
}
.tier-feat li { position: relative; padding-left: 23px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.tier-feat li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--ink-3); font-weight: 700; font-size: 11.5px; }
.tier-feat .feat-head { padding-left: 0; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.tier-feat .feat-head::before { content: none; }

/* CTA styling is driven by selection: ghost by default, yellow when selected. */
.tier-cta { margin-top: auto; }   /* pin to bottom, align across cards */
.tier .tier-cta {
  background: transparent; color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 20%, transparent);
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.tier.selected .tier-cta { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .tier:not(.selected) .tier-cta:hover { border-color: color-mix(in srgb, var(--ink) 42%, transparent); background: var(--bg-2); }
  .tier.selected .tier-cta:hover { background: var(--accent-hover); }
}

@media (max-width: 780px) {
  .tiers { grid-template-columns: 1fr; max-width: 400px; gap: 20px; }
}

/* ---------- Download ---------- */
.download { text-align: center; }
.dl-card {
  max-width: 480px; margin: 40px auto 0; text-align: left;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-appicon {
  flex: none; width: 56px; height: 56px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink);
}
.dl-os { font-size: 20px; letter-spacing: -.01em; }
.dl-sub { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.dl-desc { margin-top: 16px; color: var(--ink-2); font-size: 14.5px; }
.dl-card .btn-block { margin-top: 18px; }
.dl-meta {
  margin-top: 10px; text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px; letter-spacing: .02em; color: var(--ink-3);
}
.dl-reqs { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.dl-reqs h3 {
  font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
}
.dl-reqs p { color: var(--ink-2); font-size: 14px; }
.dl-trust { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.dl-trust li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 13.5px; }
.dl-trust li::before {
  content: "✓"; position: absolute; left: 2px; color: var(--accent-deep); font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); max-width: none; }
.faq-grid {
  max-width: var(--maxw); margin: 40px auto 0; padding: 0 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px;
}
.faq-grid h3 { font-size: 16px; margin-bottom: 6px; }
.faq-grid p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line); flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.footer-brand .brand-mark { color: var(--accent); }
.footer-copy { color: var(--ink-3); font-size: 13.5px; }
.footer-links { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--ink-2); }
.footer-links a { transition: color 150ms ease; }
.footer-links a:hover { color: var(--ink); }
.footer-social {
  display: inline-flex; align-items: center; gap: 14px;
  margin-left: 6px; padding-left: 20px;
  border-left: 1px solid var(--line);
}
.footer-social a { display: inline-flex; color: var(--ink-3); transition: color 150ms ease; }
.footer-social a:hover { color: var(--ink); }

/* ---------- Scroll reveal ----------
   Enter animation: fade + a short rise, ease-out, under 300ms, gently
   staggered. Only transform/opacity (GPU). JS adds .in-view when visible. */
/* Gated behind html.js so no-JS users still see all content (no invisible page). */
.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal.in-view {
  opacity: 1; transform: none;
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}
/* Stagger cards/steps within a group so they cascade, not pop all at once. */
.js .grid .reveal.in-view { transition-delay: calc(var(--i, 0) * 55ms); }
.js .steps .reveal.in-view { transition-delay: calc(var(--i, 0) * 55ms); }

/* Reduced motion: keep the fade for comprehension, drop the movement (Apple). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; }
  .js .reveal.in-view { transition: opacity 200ms ease; }
  .btn:active { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 40px; gap: 26px; }
  .hero-copy, .hero-visual { min-width: 0; max-width: 100%; }
  .hero-copy { order: 1; }
  .hero-visual { order: 3; }
  .hero h1 { font-size: 40px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-links a:not(.btn) { display: none; }
  .hero h1 { font-size: 33px; }
  .grid { grid-template-columns: 1fr; }
  .section { padding: 56px 22px; }
  .section-title { font-size: 27px; }
}

/* ---------- Floating AI-agent logos ---------- */
body{ overflow-x: clip; }                 /* clip logos reaching into the margins, no scrollbar */
.hero{ position: relative; }
.hero-copy, .hero-visual{ position: relative; z-index: 1; }
.agents{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.agent{
  position:absolute; width:60px; height:60px; border-radius:16px;
  background:#fff; border:1px solid var(--line);
  box-shadow:0 10px 26px rgba(26,23,18,.10), inset 0 1px 0 rgba(255,255,255,.7);
  display:grid; place-items:center;
  will-change:transform; animation:agentfloat var(--dur,20s) ease-in-out infinite; animation-delay:var(--dl,0s);
}
.agent svg{ width:30px; height:30px; }
.agent.claude{ color:#d97757; }           /* Anthropic clay */
.agent.openai{ color:#0d0d0d; }
.agent.cursor{ color:#111; }
@keyframes agentfloat{
  0%{transform:translate3d(0,0,0) rotate(0)}
  30%{transform:translate3d(var(--ax,12px),var(--ay,-14px),0) rotate(2deg)}
  60%{transform:translate3d(var(--bx,-12px),var(--by,8px),0) rotate(-2deg)}
  85%{transform:translate3d(var(--cx,10px),var(--cy,14px),0) rotate(1deg)}
  100%{transform:translate3d(0,0,0) rotate(0)}
}
@media (prefers-reduced-motion: reduce){ .agent{ animation:none; } }
/* Below wide desktop the page margins can't hold the scattered/absolute logos
   (they get clipped or, at some zooms, land in a hide-band). So keep the layout
   as-is but drop the three tiles into a clean full-width row that spans the hero
   — beneath the two columns on a wide-ish window, beneath the stacked copy on
   mobile. Placed after the base .agents/.agent rules so it wins on source order. */
@media (max-width: 1250px){
  .hero .agents{
    display:flex; position:static; inset:auto;
    grid-column:1 / -1; order:5;
    justify-content:center; align-items:center; gap:14px; margin-top:10px;
  }
  .hero .agent{
    position:static; top:auto; left:auto; animation:none;
    width:56px; height:56px;
  }
}

/* ---------- Apple trust badges ---------- */
.badges{ display:flex; align-items:center; gap:10px; margin-bottom:22px; flex-wrap:wrap; }
.badge{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; color:var(--ink-2);
  border:1px solid var(--line); background:var(--card); padding:6px 12px; border-radius:999px; box-shadow:0 1px 2px rgba(26,23,18,.04); }
.badge svg.apple{ width:13px; height:15px; color:var(--ink); margin-top:-2px; }
