/* $APPLCAT — the fruit company keynote parody.
   variance 3 · motion 4 · density 3. One accent (apple red), one radius
   system (12px), one light theme in apple's two-grey rhythm. */

:root {
  --bg: #fbfbfd;          /* apple's page grey, not pure white */
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --hairline: #d2d2d7;
  --accent: #d5352a;      /* the mascot's apple red */
  --accent-ink: #b02a21;
  --radius: 12px;
  --nav-h: 48px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(210, 210, 215, 0.55);
}
.nav-inner {
  max-width: 980px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 28px; padding: 0 20px;
}
.nav-mark {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em; color: var(--ink);
}
.nav-mark:hover { text-decoration: none; }
.nav-mark img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 24px; margin: 0 auto; }
.nav-links a { color: var(--ink); font-size: 13px; opacity: 0.85; }
.nav-links a:hover { opacity: 1; text-decoration: none; color: var(--accent-ink); }
.nav-ca {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-2); background: var(--bg-alt);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 6px 12px; cursor: pointer; transition: color .15s, border-color .15s;
}
.nav-ca:hover { color: var(--ink); border-color: var(--ink-2); }

/* ── hero ────────────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 64px) 20px 40px;
  text-align: center;
}
.hero-kicker {
  font-size: 17px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.02em;
}
.hero-title {
  font-size: clamp(64px, 14vw, 152px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
  margin-top: 2px;
}
.hero-sub {
  font-size: clamp(21px, 3.4vw, 28px);
  font-weight: 500; color: var(--ink-2); letter-spacing: -0.01em;
  margin-top: 6px;
}
.hero-links {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  margin-top: 18px; font-size: 17px;
}
.link-arrow { font-weight: 500; }
.link-arrow::after { content: " \203A"; }
.hero-figure { max-width: 560px; margin: 28px auto 0; }
.hero-figure img { width: 100%; }
.hero-price {
  font-size: 14px; color: var(--ink-2); margin-top: 10px;
}

/* ── drops (signature section) ───────────────────────── */
.drops {
  background: var(--bg-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 88px 0 0;
  text-align: center;
}
.drops-copy { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.drops-copy h2 {
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
}
.drops-copy p {
  font-size: 19px; color: var(--ink-2); margin-top: 14px; line-height: 1.45;
}
.drops-stage { position: relative; margin-top: 40px; overflow: hidden; }
.drops-banner { width: 100%; min-height: 260px; object-fit: cover; }
.chutes { position: absolute; inset: 0; pointer-events: none; }
.chute {
  position: absolute; top: -90px;
  width: 44px;
  animation: fall linear infinite;
  will-change: transform;
}
.chute svg { width: 100%; height: auto; }
@keyframes fall {
  from { transform: translateY(-10%) rotate(-4deg); }
  25%  { transform: translateY(28vh) rotate(3deg); }
  50%  { transform: translateY(56vh) rotate(-3deg); }
  75%  { transform: translateY(84vh) rotate(4deg); }
  to   { transform: translateY(115vh) rotate(-2deg); }
}

/* ── how ─────────────────────────────────────────────── */
.how { max-width: 980px; margin: 0 auto; padding: 96px 20px; text-align: center; }
.section-kicker {
  font-size: 15px; font-weight: 600; color: var(--accent);
  text-transform: none; letter-spacing: 0.02em;
}
.section-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700; letter-spacing: -0.025em; margin-top: 4px;
}
.how-steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 48px; text-align: left;
}
.how-steps li {
  background: var(--bg-alt);
  border-radius: calc(var(--radius) + 6px);
  padding: 28px 24px 30px;
}
.how-steps li:nth-child(2) {
  background: var(--ink); color: var(--bg);
}
.how-steps li:nth-child(2) p { color: #a1a1a6; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fdf4f3;
  font-size: 14px; font-weight: 700;
}
.how-steps h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin-top: 14px; }
.how-steps p { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin-top: 6px; }
.how-note {
  max-width: 560px; margin: 44px auto 0;
  font-size: 15px; color: var(--ink-2); line-height: 1.55;
}

/* ── live ────────────────────────────────────────────── */
.live {
  background: var(--bg-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 96px 20px;
  text-align: center;
}
.live-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 14px; color: var(--ink-2);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #b6b6bb;
}
.dot.on { background: #2fa14e; box-shadow: 0 0 0 4px rgba(47, 161, 78, 0.14); }
.dot.paper { background: var(--accent); box-shadow: 0 0 0 4px rgba(213, 53, 42, 0.12); }
.live-grid {
  max-width: 900px; margin: 36px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.live-cell {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 12px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.live-num {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.live-label { font-size: 12.5px; color: var(--ink-2); }
.live-feed {
  max-width: 640px; margin: 40px auto 0; text-align: left;
}
.live-feed h3 { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.live-feed ul { list-style: none; margin-top: 10px; }
.live-feed li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 2px; font-size: 14px;
  border-bottom: 1px solid var(--hairline);
}
.live-feed li .t { color: var(--ink-2); white-space: nowrap; }
.feed-empty { color: var(--ink-2); }

/* ── specs ───────────────────────────────────────────── */
.specs { max-width: 720px; margin: 0 auto; padding: 96px 20px; }
.specs .section-title { text-align: center; }
.specs-table { margin-top: 44px; }
.specs-table > div {
  display: grid; grid-template-columns: 160px 1fr; gap: 16px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}
.specs-table dt { color: var(--ink-2); font-weight: 500; }
.specs-table dd { line-height: 1.45; }
.mono { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.specs-cta {
  display: flex; justify-content: center; gap: 14px; margin-top: 44px; flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent); color: #fdf4f3;
  font-size: 16px; font-weight: 600;
  padding: 13px 28px; border-radius: 999px;
  transition: background .15s;
}
.btn-primary:hover { background: var(--accent-ink); text-decoration: none; }
.btn-ghost {
  font: inherit; font-size: 16px; font-weight: 600;
  color: var(--accent-ink); background: none;
  border: 1px solid var(--accent-ink); border-radius: 999px;
  padding: 13px 28px; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--accent); border-color: var(--accent); color: #fdf4f3; }

/* ── footer ──────────────────────────────────────────── */
.footer { background: var(--bg-alt); border-top: 1px solid var(--hairline); }
.footer-inner { max-width: 720px; margin: 0 auto; padding: 36px 20px 48px; }
.footer-links { display: flex; gap: 22px; font-size: 13px; }
.footer-legal {
  margin-top: 16px; font-size: 11.5px; color: var(--ink-2); line-height: 1.6;
}

/* ── toast ───────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 500;
  padding: 11px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── reveals ─────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chute { animation: none; display: none; }
  .toast { transition: none; }
}

/* ── responsive ──────────────────────────────────────── */
@media (max-width: 820px) {
  .how-steps { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .specs-table > div { grid-template-columns: 1fr; gap: 3px; }
  .live-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
}
