/* Grab — product reveal */

:root {
  --bg: #050505;
  --bg-1: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #181818;
  --fg: #f5f4ef;
  --fg-2: #b6b5af;
  --fg-3: #6a6a64;
  --fg-4: #3d3d39;
  --line: rgba(245, 244, 239, 0.08);
  --line-strong: rgba(245, 244, 239, 0.18);
  --accent: oklch(0.9 0.2 130);
  --accent-soft: oklch(0.9 0.2 130 / 0.16);
  --accent-glow: oklch(0.9 0.2 130 / 0.4);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--accent); color: #000; }

html, body {
  background: var(--bg);
  color: var(--fg);
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Typography utilities --------------------------------------------------- */

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-2);
}
.mono-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.mono-tag::before {
  content: "";
  width: 5px; height: 5px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Display sizes ---------------------------------------------------------- */

.display {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-wrap: balance;
}
.display-xxl  { font-size: clamp(72px, 18vw, 320px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.86; }
.display-xl   { font-size: clamp(56px, 9.5vw, 168px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.92; }
.display-l    { font-size: clamp(40px, 6.4vw, 112px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.96; }
.display-m    { font-size: clamp(28px, 3.6vw, 60px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
.display-s    { font-size: clamp(20px, 1.6vw, 28px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }

.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }

/* Layout ----------------------------------------------------------------- */

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.section { position: relative; padding: 160px 0; }
.divider {
  height: 1px; background: var(--line); margin: 0;
}

/* Nav -------------------------------------------------------------------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  background: linear-gradient(to bottom, rgba(5,5,5,0.7), rgba(5,5,5,0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(5,5,5,0.85);
  border-bottom: 1px solid var(--line);
}
.nav-wordmark {
  font-family: var(--sans);
  font-size: 18px; font-weight: 700; letter-spacing: -0.04em; text-transform: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-wordmark::before {
  content: "";
  width: 22px; height: 22px;
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent-glow);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.nav-links { display: flex; gap: 28px; color: var(--fg-2); }
.nav-links a { color: inherit; text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--fg); color: #000; border-color: var(--fg); }
.nav-cta::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 35%, black 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-eyebrow {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 40px;
  margin-bottom: 60px;
}
.hero-eyebrow .right { color: var(--fg-3); }
.hero-title-wrap {
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: clamp(120px, 24vw, 420px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.85;
  font-family: var(--sans);
}
.hero-title .period { color: var(--accent); }
.hero-sub {
  margin-top: 22px;
  font-size: clamp(20px, 2.2vw, 32px);
  color: var(--fg-2);
  letter-spacing: -0.01em;
}
.hero-sub em { font-family: var(--serif); font-style: italic; color: var(--fg); font-size: 1.08em; }
.hero-stage {
  position: relative;
  margin-top: -20px;
  display: flex; justify-content: center;
  z-index: 1;
}
.hero-image {
  position: relative;
  width: min(80vw, 980px);
  filter: drop-shadow(0 60px 80px rgba(0,0,0,0.7));
}
.hero-image img {
  width: 100%;
  border-radius: 6px;
  /* the source image already has dark studio bg, so blend it */
  mix-blend-mode: lighten;
}
.hero-image::before {
  content: "";
  position: absolute;
  left: 10%; right: 10%; bottom: -40px; height: 200px;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, transparent 40%, var(--bg) 80%);
  pointer-events: none;
}

.hero-bottom {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: end;
  padding: 80px 40px 0;
}
.hero-fact { color: var(--fg-2); max-width: 260px; }
.hero-fact strong { color: var(--fg); display: block; margin-bottom: 6px; font-weight: 500; }
.scroll-cue {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-3);
}
.scroll-cue .line { width: 60px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); width: 30%;
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateX(-100%); } 100% { transform: translateX(330%); } }

/* Animation-based reveal — survives if .fade-up class is stripped from
   text-bearing elements: when no rule matches, browser defaults apply
   (visible). When .fade-up is present, animation is paused at the "from"
   frame (opacity:0/translateY) until .in is added by IntersectionObserver. */
.fade-up { animation: fade-up-in 1.1s cubic-bezier(.2,.8,.2,1) paused both; }
.fade-up.in { animation-play-state: running; }
@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.7s; }

/* Promise pinned --------------------------------------------------------- */

.promise { height: 220vh; position: relative; }
.promise-pin {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 0 8vw;
}
.promise-text {
  font-size: clamp(28px, 4.8vw, 80px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-align: left;
  max-width: 1500px;
  text-wrap: balance;
}
.promise-text .word { transition: color 0.2s, opacity 0.2s; display: inline-block; padding-right: 0.22em; }
.promise-text .accent { color: var(--accent); font-family: var(--serif); font-style: italic; font-weight: 400; }

/* Three steps ------------------------------------------------------------ */

.steps { height: 360vh; position: relative; }
.steps-pin {
  position: sticky; top: 0; height: 100vh;
  overflow: hidden;
}
.steps-stage {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr;
}
.steps-left { padding: 0 40px 0 60px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.steps-right { position: relative; }

.step-counter { display: flex; align-items: baseline; gap: 14px; color: var(--fg-3); }
.step-counter .num { font-family: var(--sans); font-size: 80px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--fg); transition: color 0.4s; }
.step-counter .total { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; }
.step-title { font-size: clamp(48px, 6.4vw, 120px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; }
.step-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.step-body { color: var(--fg-2); font-size: 19px; max-width: 460px; line-height: 1.5; }

.step-progress { display: flex; gap: 6px; margin-top: 20px; }
.step-progress .pip { width: 56px; height: 2px; background: var(--line-strong); position: relative; overflow: hidden; }
.step-progress .pip-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 0.3s; }

/* Step visuals (right pane) */
.step-vis { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.5s; }
.step-vis.active { opacity: 1; }

/* TAP visual */
.tap-vis {
  position: relative;
  width: 460px; height: 580px;
  background: linear-gradient(180deg, #1a1a1a, #0c0c0c);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.tap-vis::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.04), transparent);
  animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 0%,100% { left: -100%; } 50% { left: 100%; } }
.tap-reader {
  width: 220px; padding: 22px 18px;
  background: rgba(0,0,0,0.6); border: 1px solid var(--line);
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  position: relative;
}
.tap-reader-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bg-2);
}
.tap-reader-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2); }
.tap-card {
  position: absolute;
  width: 220px; height: 138px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2a2a2a, #161616);
  border: 1px solid rgba(255,255,255,0.08);
  bottom: 60px; left: 50%; transform: translateX(-50%);
  animation: tap-pulse 2.6s ease-in-out infinite;
  display: flex; padding: 14px;
  flex-direction: column; justify-content: space-between;
}
.tap-card .chip { width: 28px; height: 22px; background: linear-gradient(135deg, #c8a35a, #6f5630); border-radius: 4px; }
.tap-card .stripe { display: flex; gap: 4px; }
.tap-card .stripe span { width: 6px; height: 14px; background: rgba(255,255,255,0.2); border-radius: 1px; }
@keyframes tap-pulse {
  0%, 100% { transform: translate(-50%, 30px); opacity: 0; }
  35% { transform: translate(-50%, -12px); opacity: 1; }
  65% { transform: translate(-50%, -12px); opacity: 1; }
}
.tap-rings { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.tap-rings .ring {
  position: absolute; top: 50%; left: 50%;
  width: 80px; height: 80px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: tap-ring 2.6s ease-out infinite;
}
.tap-rings .ring:nth-child(2) { animation-delay: 0.3s; }
.tap-rings .ring:nth-child(3) { animation-delay: 0.6s; }
@keyframes tap-ring {
  0% { width: 80px; height: 80px; opacity: 0.7; }
  100% { width: 280px; height: 280px; opacity: 0; }
}
.tap-status {
  position: absolute; top: 28px; right: 28px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 6px;
}
.tap-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

/* GRAB visual */
.grab-vis {
  position: relative; width: 480px; height: 580px;
}
.cabinet {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #161616, #060606);
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.cabinet-door {
  position: absolute; inset: 24px 24px 24px 90px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(.6,.2,.2,1);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
}
.cabinet-door.open {
  transform: perspective(1200px) rotateY(-58deg);
}
.cabinet-shelf {
  position: absolute; left: 110px; right: 24px;
  height: 70px;
  border-bottom: 1px solid var(--line-strong);
  display: flex; gap: 8px; align-items: end; padding: 4px 8px;
}
.cabinet-shelf.s1 { top: 90px; }
.cabinet-shelf.s2 { top: 220px; }
.cabinet-shelf.s3 { top: 350px; }
.cabinet-shelf.s4 { top: 480px; }
.cabinet-shelf .led {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  display: flex; gap: 6px; padding: 0 12px;
}
.cabinet-shelf .led span {
  flex: 1; height: 100%; background: var(--accent); opacity: 0.8;
  box-shadow: 0 0 8px var(--accent-glow);
}
.item {
  height: 56px; flex: 1; max-width: 36px; border-radius: 2px;
  transition: opacity 0.5s, transform 0.5s;
}
.item.bottle { background: linear-gradient(180deg, #2a2a2a 0%, #2a2a2a 18%, var(--bottle, #5a8a40) 18%); border-radius: 4px 4px 1px 1px; }
.item.removed { opacity: 0; transform: translateY(-30px); }
.cabinet-strip {
  position: absolute; top: 24px; bottom: 24px; left: 24px; width: 60px;
  background: linear-gradient(180deg, #0a0a0a, #050505);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; padding: 24px 0; gap: 28px;
}
.cabinet-screen {
  width: 36px; height: 56px; background: #0a0a0a; border: 1px solid var(--line); border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 7px; color: var(--accent); letter-spacing: 0.05em; text-align: center; line-height: 1.2;
}
.cabinet-nfc {
  width: 36px; height: 36px; border: 1px solid var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
}
.cabinet-icon { width: 24px; height: 24px; opacity: 0.5; }

/* Hand reaching in */
.hand {
  position: absolute;
  width: 80px; height: 110px;
  top: 240px; right: -40px;
  background: linear-gradient(135deg, #d8c3a0, #a08560);
  border-radius: 30px 30px 50% 50% / 40px 40px 80px 80px;
  opacity: 0; transition: all 1s ease;
  box-shadow: -20px 10px 30px rgba(0,0,0,0.5);
}
.hand.reaching {
  transform: translateX(-200px) rotate(-10deg);
  opacity: 0.9;
}

/* GO visual */
.go-vis {
  position: relative;
  width: 460px; height: 580px;
  background: linear-gradient(180deg, #0e0e0e, #060606);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px;
  gap: 24px;
}
.go-receipt {
  width: 280px; padding: 32px 28px 24px;
  background: var(--fg);
  color: #000;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  transform: rotate(-2deg);
}
.go-receipt::before, .go-receipt::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 12px;
  background:
    radial-gradient(circle at 6px 6px, var(--bg) 4px, transparent 5px) 0 0/12px 12px;
}
.go-receipt::before { top: -1px; transform: scaleY(-1); }
.go-receipt::after { bottom: -1px; }
.go-receipt h4 { font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: -0.03em; margin-bottom: 14px; text-transform: uppercase; }
.go-receipt-line { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed rgba(0,0,0,0.15); }
.go-receipt-line:last-of-type { border-bottom: 0; }
.go-receipt-total { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 8px; border-top: 2px solid #000; font-size: 14px; font-weight: 700; font-family: var(--sans); }

.go-qr {
  width: 120px; height: 120px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  display: grid; grid-template-columns: repeat(11, 1fr); gap: 1px;
}
.go-qr i { display: block; }
.go-qr i.on { background: #000; }
.go-confirm {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.go-confirm .check {
  width: 22px; height: 22px; border: 1.5px solid var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
}

/* Cabinet section -------------------------------------------------------- */

.cabinet-section { padding: 200px 0; }
.cabinet-display { position: relative; padding: 60px 40px; display: flex; gap: 60px; align-items: center; }
.cabinet-img {
  position: relative;
  width: 60%;
  flex-shrink: 0;
}
.cabinet-img img { width: 100%; mix-blend-mode: lighten; }
.cabinet-img::before {
  content: ""; position: absolute; inset: -40px;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 65%);
  filter: blur(60px); z-index: -1;
}
.callout {
  position: absolute;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg);
  pointer-events: none;
  opacity: 0; transform: translateX(20px);
  transition: opacity 0.7s, transform 0.7s;
}
.callout.in { opacity: 1; transform: none; }
.callout .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 16px var(--accent-glow);
  flex-shrink: 0;
  position: relative;
}
.callout .dot::before {
  content: ""; position: absolute; inset: -4px;
  border: 1px solid var(--accent); border-radius: 50%;
  animation: callout-pulse 2.4s ease-out infinite;
}
@keyframes callout-pulse {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
.callout .line { width: 60px; height: 1px; background: var(--line-strong); }
.callout .lbl { white-space: nowrap; background: rgba(0,0,0,0.6); padding: 6px 10px; border: 1px solid var(--line); backdrop-filter: blur(8px); }
.callout .lbl small { display: block; font-size: 9px; color: var(--fg-3); margin-top: 3px; letter-spacing: 0.14em; }

/* Right caption stack */
.cabinet-caption { flex: 1; max-width: 480px; }

/* Weight precision ------------------------------------------------------- */

.weight-section {
  background: var(--bg-1);
  position: relative;
}
.weight-stage { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.shelf {
  position: relative;
  background: linear-gradient(180deg, #0d0d0d, #060606);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  font-family: var(--mono);
}
.shelf-row { display: flex; align-items: end; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.shelf-row:last-of-type { border-bottom: 0; }
.shelf-zone { width: 70px; font-size: 10px; letter-spacing: 0.14em; color: var(--fg-3); }
.shelf-product {
  flex: 1; display: flex; align-items: end; gap: 8px; height: 110px;
}
.shelf-cell {
  flex: 1;
  background: linear-gradient(180deg, var(--cell, #2a3a1a), color-mix(in oklab, var(--cell, #2a3a1a) 50%, #000));
  border-radius: 3px;
  position: relative;
  transition: opacity 1s, height 0.8s ease, transform 0.8s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: flex; align-items: end; justify-content: center;
  padding-bottom: 8px;
}
.shelf-cell::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 30%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent);
  border-radius: 3px;
}
.shelf-cell.gone { opacity: 0; transform: translateY(-30px); }
.shelf-readout {
  width: 130px;
  text-align: right;
  font-size: 13px; color: var(--fg);
  letter-spacing: 0.04em;
}
.shelf-readout .weight { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--fg); transition: color 0.4s; }
.shelf-readout .weight.changed { color: var(--accent); }
.shelf-readout .delta { font-size: 10px; letter-spacing: 0.14em; color: var(--fg-3); margin-top: 4px; }
.shelf-readout .delta.changed { color: var(--accent); }

.shelf-led {
  position: absolute; bottom: 8px; left: 28px; right: 28px;
  height: 2px;
  display: flex; gap: 4px;
  pointer-events: none;
}
.shelf-led span { flex: 1; background: var(--accent); opacity: 0.75; box-shadow: 0 0 8px var(--accent-glow); }

.weight-meta { font-family: var(--mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.14em; padding-top: 12px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 4px; }

/* Anything fits ---------------------------------------------------------- */

.anything-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 60px;
}
.anything-cell {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-1);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px;
  overflow: hidden;
}
.anything-cell .glyph {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.anything-cell h5 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.anything-cell p { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--fg-3); text-transform: uppercase; }
.anything-cell.feature {
  grid-column: span 2; aspect-ratio: 2;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
}
.anything-cell.feature h5 { font-size: 28px; }
.anything-cell.feature .glyph .berries {
  width: 240px; height: 160px;
  background: radial-gradient(circle at 30% 40%, #ff5757 0%, #d11b1b 22%, transparent 24%) 0 0/44px 44px,
              radial-gradient(circle at 30% 40%, #ff7070 0%, #c92020 22%, transparent 24%) 24px 22px/44px 44px;
  filter: drop-shadow(0 8px 14px rgba(180,30,30,0.4));
}
.anything-cell.feature small { color: var(--accent); font-family: var(--mono); font-size: 11px; }

/* App section ------------------------------------------------------------ */

.app-section { padding: 200px 0; }
.app-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.phone {
  width: 320px;
  height: 660px;
  background: linear-gradient(180deg, #1a1a1a, #060606);
  border: 1px solid var(--line-strong);
  border-radius: 44px;
  padding: 14px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 60px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.phone::before {
  content: "";
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px;
  background: #000; border-radius: 14px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.phone-status {
  display: flex; justify-content: space-between; padding: 12px 28px 0;
  font-family: var(--mono); font-size: 11px; color: var(--fg);
  font-weight: 600;
}
.phone-content { padding: 60px 24px 24px; flex: 1; overflow: hidden; }
.phone-h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.phone-h1 + p { color: var(--fg-3); font-size: 12px; margin-top: 4px; }
.phone-stats { display: flex; gap: 14px; margin-top: 22px; }
.phone-stat { flex: 1; padding: 14px; background: var(--bg-2); border-radius: 10px; }
.phone-stat .v { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.phone-stat .l { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--fg-3); margin-top: 4px; text-transform: uppercase; }
.phone-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.phone-rows { margin-top: 22px; }
.phone-row .swatch { width: 36px; height: 36px; border-radius: 6px; flex-shrink: 0; }
.phone-row .info { flex: 1; min-width: 0; }
.phone-row .info b { font-size: 13px; font-weight: 600; display: block; }
.phone-row .info span { font-family: var(--mono); font-size: 9px; color: var(--fg-3); letter-spacing: 0.12em; text-transform: uppercase; }
.phone-row .qty { font-family: var(--mono); font-size: 12px; color: var(--accent); }

/* Specs ------------------------------------------------------------------ */

.specs { padding: 160px 0; background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 80px;
  border-left: 1px solid var(--line);
}
.spec {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 200px;
  justify-content: space-between;
  position: relative;
}
.spec .v { font-size: 64px; font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; }
.spec .v sup { font-size: 22px; font-weight: 500; vertical-align: top; margin-left: 4px; color: var(--fg-2); letter-spacing: 0; }
.spec .v em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.spec .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--fg-3); text-transform: uppercase; }
.spec .d { color: var(--fg-2); font-size: 13px; line-height: 1.4; }

/* Closing ---------------------------------------------------------------- */

.closing { padding: 220px 0 140px; text-align: center; position: relative; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 60%, var(--accent-soft), transparent 50%);
  filter: blur(60px);
  opacity: 0.7;
}
.closing-eyebrow { display: flex; justify-content: center; }
.closing h2 { font-size: clamp(56px, 9vw, 168px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.95; margin-top: 28px; text-wrap: balance; }
.closing h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.closing-actions { display: flex; gap: 14px; justify-content: center; margin-top: 56px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--fg); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); background: var(--fg); color: #000; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

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

.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
}
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--fg); }

/* Eyebrow row helper */
.eyebrow-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 36px;
}

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

/* Tablets / small laptops */
@media (max-width: 1080px) {
  .steps-stage { grid-template-columns: 1fr; }
  .steps-left { padding: 40px; }
  .steps-right { display: none; }
  .cabinet-display { flex-direction: column; }
  .cabinet-img { width: 100%; }
  .weight-stage, .app-stage { grid-template-columns: 1fr; gap: 40px; }
  .anything-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-form-grid { grid-template-columns: 1fr; }
  .cta-form-actions { flex-direction: column; align-items: stretch; }
}

/* Phones (covers Galaxy S23 portrait at 393px and most tablets in portrait) */
@media (max-width: 768px) {
  /* Tighter horizontal gutters everywhere */
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }

  /* Nav: drop section links, keep wordmark + CTA */
  .nav { padding: 12px 18px; }
  .nav-links { display: none; }
  .nav-wordmark { font-size: 16px; gap: 8px; }
  .nav-wordmark::before { width: 18px; height: 18px; }
  .nav-cta { padding: 8px 14px; font-size: 10px; letter-spacing: 0.14em; }

  /* Hero */
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-eyebrow {
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 32px;
  }
  .hero-title { font-size: clamp(72px, 22vw, 140px); line-height: 0.9; }
  .hero-sub { font-size: 18px; margin-top: 14px; }
  .hero-image { width: 92vw; }
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 48px 20px 0;
  }
  .hero-fact {
    max-width: none;
    margin-left: 0 !important;
    text-align: left !important;
  }
  .scroll-cue { display: none; }

  /* Eyebrow / weight-meta rows wrap on small screens */
  .eyebrow-row { flex-wrap: wrap; gap: 8px 14px; margin-bottom: 22px; }
  .weight-meta { flex-wrap: wrap; gap: 6px 12px; }

  /* Promise */
  .promise { height: 180vh; }
  .promise-pin { padding: 0 20px; }
  .promise-text { font-size: clamp(24px, 6.4vw, 40px); line-height: 1.18; }

  /* Three steps */
  .steps { height: 320vh; }
  .steps-left { padding: 28px 20px; gap: 18px; }
  .step-counter .num { font-size: 52px; }
  .step-counter .total { font-size: 11px; }
  .step-title { font-size: clamp(36px, 9vw, 64px); }
  .step-body { font-size: 16px; }
  .step-progress .pip { width: 40px; }

  /* Cabinet section: callouts are illegible at this size — hide them and
     let the caption do the explaining */
  .cabinet-section { padding: 100px 0; }
  .cabinet-display { padding: 24px 0; gap: 28px; }
  .callout { display: none; }
  .cabinet-caption { max-width: none; }

  /* Weight section: tighter shelf row layout */
  .weight-section { padding: 100px 0; }
  .shelf { padding: 16px; }
  .shelf-row { gap: 10px; padding: 12px 0; }
  .shelf-zone { width: 70px; font-size: 9px; }
  .shelf-product { height: 76px; gap: 4px; }
  .shelf-readout { width: 86px; }
  .shelf-readout .weight { font-size: 17px; }

  /* Anything fits */
  .anything-grid { margin-top: 40px; }
  .anything-cell { padding: 16px; }
  .anything-cell h5 { font-size: 15px; }
  .anything-cell.feature h5 { font-size: 22px; }
  .anything-cell.feature .glyph .berries { width: 160px; height: 110px; }

  /* App / phone mock */
  .app-section { padding: 100px 0; }
  .phone { width: 280px; height: 580px; border-radius: 38px; }
  .phone-content { padding: 56px 18px 18px; }

  /* Specs */
  .specs { padding: 100px 0; }
  .specs-grid { margin-top: 40px; }
  .spec { padding: 22px 16px; min-height: 150px; gap: 6px; }
  .spec .v { font-size: 40px; }
  .spec .v sup { font-size: 14px; }
  .spec .d { font-size: 12px; }

  /* Closing */
  .closing { padding: 100px 0 80px; }
  .closing h2 { font-size: clamp(44px, 13vw, 88px); margin-top: 22px; }

  /* CTA form */
  .cta-form { padding: 22px 18px; margin: 36px 0 0; border-radius: 12px; }
  .cta-form-grid { gap: 14px; }
  .cta-field { font-size: 10.5px; gap: 6px; }
  .cta-field input,
  .cta-field select,
  .cta-field textarea {
    padding: 12px 14px;
    font-size: 16px;             /* 16px+ avoids iOS Safari zoom on focus */
    border-radius: 10px;
  }
  .cta-form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 22px;
  }
  .cta-form-actions .btn { width: 100%; justify-content: center; }
  .cta-form-fineprint { text-align: center; }
  .cta-form-success { padding: 26px 22px; margin: 36px 0 0; }

  /* Buttons */
  .btn { padding: 14px 22px; }

  /* Footer */
  .footer { padding: 40px 0 28px; }
  .footer-row { gap: 12px; }
  .footer-links { gap: 14px; flex-wrap: wrap; }
}

/* Very narrow phones — Galaxy S23 portrait at 360–393px */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: clamp(64px, 22vw, 100px); }
  .hero-sub { font-size: 16px; }
  .step-title { font-size: clamp(32px, 11vw, 52px); }
  .step-counter .num { font-size: 44px; }
  .promise-text { font-size: clamp(22px, 7vw, 32px); line-height: 1.2; }
  .closing h2 { font-size: clamp(40px, 14vw, 72px); }
  .spec .v { font-size: 36px; }
  .shelf-zone { width: 60px; }
  .shelf-readout { width: 76px; }
  .shelf-readout .weight { font-size: 16px; }
  .cta-form { padding: 18px 14px; }
}

/* CTA contact form ------------------------------------------------------- */
.cta-form {
  margin: 56px auto 0;
  width: 100%;
  max-width: 760px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: 14px;
  padding: 36px 36px 32px;
}
.cta-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.cta-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;                  /* let grid track shrink below content */
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.cta-field em { font-style: normal; color: var(--fg-4); text-transform: none; letter-spacing: 0.04em; }
.cta-field-full { grid-column: 1 / -1; }
.cta-field input,
.cta-field select,
.cta-field textarea {
  width: 100%;                   /* override input intrinsic size on mobile */
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--fg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.cta-field input::placeholder,
.cta-field textarea::placeholder { color: var(--fg-4); }
.cta-field input:focus,
.cta-field select:focus,
.cta-field textarea:focus {
  border-color: var(--accent);
  background: var(--bg-3);
}
.cta-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%),
                    linear-gradient(135deg, var(--fg-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.cta-field textarea { resize: vertical; min-height: 84px; }

.cta-form-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-form-actions button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.cta-form-fineprint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}

.cta-form-error {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 80, 80, 0.4);
  background: rgba(220, 80, 80, 0.08);
  color: #f3b8b8;
  font-size: 14px;
  border-radius: 8px;
}
.cta-form-error a { color: inherit; text-decoration: underline; }

.cta-form-success {
  margin: 56px auto 0;
  max-width: 560px;
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  padding: 32px 36px;
  border-radius: 14px;
  text-align: center;
}
.cta-form-success p {
  margin-top: 12px;
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.55;
}
