/* Cart Tracker landing — iOS-inspired redesign (v2026-09-29) */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --brand: #0f7a5f;
  --brand-strong: #0b634d;
  --brand-soft: rgba(15, 122, 95, 0.1);
  --warn: #ff9f0a;
  --danger: #ff3b30;
  --glass: rgba(251, 251, 253, 0.72);
  --glass-line: rgba(0, 0, 0, 0.06);
  --tile-dark: #0b0b0c;
  --tile-dark-text: #f5f5f7;
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.28), 0 12px 24px -12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 18px 40px -24px rgba(0, 0, 0, 0.22);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1080px;
  color-scheme: only light;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* critically-damped-ish spring with a hint of settle */
    --spring: linear(0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%, 0.849 31.5%,
      0.937 38.1%, 0.968 41.8%, 0.991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 85.6%, 1);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.has-open-dialog {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Navigation (glass bar) ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--glass-line);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  height: 52px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-2);
  font-size: 13px;
  letter-spacing: 0;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  transition: transform 0.25s var(--spring), background-color 0.2s ease;
}

.nav-cta:hover {
  text-decoration: none;
  background: var(--brand-strong);
}

.nav-cta:active {
  transform: scale(0.95);
  transition-duration: 0.1s;
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }
}

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(52px + clamp(48px, 9vh, 96px)) var(--gutter) 0;
  text-align: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 72%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(40% 30% at 20% 40%, rgba(255, 196, 0, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--line);
  margin-bottom: 22px;
}

#hero-title {
  display: flex;
  flex-direction: column;
  align-items: inherit;
}

.eyebrow {
  display: block;
  color: var(--text-2);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.hero-title {
  display: block;
  font-size: clamp(44px, 8.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  padding-bottom: 0.06em;
}

.hero-title .w {
  display: inline-block;
}

.hero-lead {
  max-width: 560px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.018em;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 32px;
}

.store-badge {
  display: block;
  width: 180px;
  height: 53px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--spring), box-shadow 0.3s ease;
}

.store-badge span {
  display: block;
  width: 100%;
  height: 100%;
  background: url("googleplay.png") no-repeat;
  background-size: 114.21% 251.78%;
  background-position: 52% 51%;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.45);
}

.store-badge:active {
  transform: scale(0.96);
  transition-duration: 0.1s;
}

.link-arrow {
  font-size: 17px;
  font-weight: 500;
}

.link-arrow span {
  display: inline-block;
  transition: transform 0.3s var(--spring);
}

.link-arrow:hover span {
  transform: translateX(3px);
}

.hero-legal {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  font-size: 12px;
}

.hero-legal a {
  color: var(--text-3);
}

/* device mock */

.hero-stage {
  position: relative;
  width: min(100%, 400px);
  margin-top: clamp(48px, 8vh, 80px);
  perspective: 1400px;
}

.device {
  position: relative;
  width: 300px;
  margin: 0 auto;
  padding: 11px;
  border-radius: 50px;
  background: linear-gradient(145deg, #3a3a3c, #0c0c0d 45%, #2a2a2c);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  transform-origin: 50% 100%;
  will-change: transform;
}

.device-screen {
  position: relative;
  aspect-ratio: 640 / 1387;
  overflow: hidden;
  border-radius: 40px;
  background: #faf9ff;
  isolation: isolate;
}

/* punch-hole camera: the screenshots are from Android */
.device-island {
  position: absolute;
  top: 1.7%;
  left: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: #050505;
  box-shadow: inset 0 0 0 2px #1c1c1e;
  z-index: 5;
}

.statusbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.6%;
  padding: 0 9% 0 10%;
  color: #1d1d1f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  transition: color 0.4s ease;
}

.statusbar svg {
  width: 40px;
  height: auto;
  fill: currentColor;
}

.device-screen.is-dark .statusbar {
  color: #fff;
}

/* app screens: iOS-style push navigation */
.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transform: translate3d(100%, 0, 0);
  box-shadow: -12px 0 30px -10px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.62s cubic-bezier(0.32, 0.72, 0, 1),
    filter 0.62s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.screen.is-active {
  transform: none;
  z-index: 2;
}

.screen.is-past {
  transform: translate3d(-28%, 0, 0);
  filter: brightness(0.72);
  box-shadow: none;
  z-index: 1;
}

/* re-position a screen without it visibly sliding (e.g. before a push or pop) */
.screen.no-anim {
  transition: none !important;
}

/* tab switches cross-fade in place, like switching tabs in the app's dock */
.screen.tab-enter {
  z-index: 3;
  opacity: 0;
  box-shadow: none;
  transition: opacity 0.32s ease;
}

.screen.tab-enter.tab-in {
  opacity: 1;
}

/* spotlight on the part of the screen the step talks about */
.spot {
  position: absolute;
  z-index: 3;
  border-radius: 16px;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--brand) 85%, white),
    0 0 0 200vmax rgba(10, 12, 20, 0.3);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease-out),
    left 0.6s var(--ease-out),
    top 0.6s var(--ease-out),
    width 0.6s var(--ease-out),
    height 0.6s var(--ease-out);
}

.spot.is-on {
  opacity: 1;
}

/* simulated finger tap */
.tap {
  position: absolute;
  z-index: 4;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 6px 18px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
}

.tap.is-tapping {
  animation: tap-press 0.9s var(--ease-out) both;
}

.tap.is-tapping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  animation: tap-ring 0.9s var(--ease-out) 0.25s both;
}

@keyframes tap-press {
  0% { opacity: 0; transform: scale(1.5); }
  25% { opacity: 1; transform: scale(1); }
  45% { transform: scale(0.82); }
  70% { opacity: 1; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(0.9); }
}

@keyframes tap-ring {
  from { opacity: 0.9; transform: scale(0.9); }
  to { opacity: 0; transform: scale(2.4); }
}

/* Apple-style callouts: a hairline from the real UI element to a short label */
.callouts {
  position: absolute;
  inset: 11px;
  pointer-events: none;
}

.callout {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  width: calc(100% - var(--x) + 40px);
  height: 0;
}

.callout::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.callout-line {
  flex: 1;
  height: 1px;
  /* mid gray reads on the light app screen and on both page themes */
  background: #8e8e93;
  transform-origin: left;
}

.callout p {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 170px;
  transform: translateY(-50%);
  text-align: left;
}

.callout strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.callout p span {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.3;
}

.motion-ready .callout::before {
  transition: transform 0.5s var(--spring) var(--d);
}

.motion-ready .callout-line {
  transition: transform 0.7s var(--ease-out) calc(var(--d) + 0.1s);
}

.motion-ready .callout p {
  transition:
    opacity 0.6s var(--ease-out) calc(var(--d) + 0.45s),
    filter 0.6s var(--ease-out) calc(var(--d) + 0.45s),
    translate 0.8s var(--ease-out) calc(var(--d) + 0.45s);
}

.motion-ready .callouts:not(.is-shown) .callout::before {
  transform: scale(0);
}

.motion-ready .callouts:not(.is-shown) .callout-line {
  transform: scaleX(0);
}

.motion-ready .callouts:not(.is-shown) .callout p {
  opacity: 0;
  filter: blur(6px);
  translate: -8px 0;
}

@media (max-width: 999px) {
  .callouts {
    display: none;
  }
}

@media (max-width: 640px) {
  .device {
    width: 260px;
  }

}

.hero-scroll {
  display: none;
}

@media (min-width: 1000px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 40px;
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin: 0 auto;
    min-height: min(100svh, 920px);
    padding-top: calc(52px + 40px);
    padding-bottom: 40px;
    text-align: left;
  }

  .hero::before {
    inset: 0 -50vw;
    background:
      radial-gradient(38% 60% at 72% 55%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
      radial-gradient(30% 40% at 30% 30%, rgba(255, 196, 0, 0.07), transparent 70%);
  }

  .hero-copy {
    align-items: flex-start;
  }

  .hero-title {
    font-size: clamp(56px, 6.4vw, 84px);
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-stage {
    margin-top: 0;
    justify-self: center;
    width: auto;
    padding-right: 200px;
  }
}

/* ---------- Proof ---------- */

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 96px) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 0 12px;
}

.proof-item + .proof-item {
  border-left: 1px solid var(--line);
}

.proof-item strong {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.proof-item > span {
  color: var(--text-2);
  font-size: 14px;
}

.proof-star {
  margin-left: 4px;
  color: var(--warn);
  font-size: 0.7em;
  vertical-align: 0.18em;
}

@media (max-width: 760px) {
  .proof {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
  }

  .proof-item:nth-child(3) {
    border-left: 0;
  }
}

/* ---------- Sections ---------- */

.section {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) var(--gutter) 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.kicker {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-head h2,
.closing h2 {
  font-size: clamp(34px, 5.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-head > p:not(.kicker) {
  margin-top: 18px;
  color: var(--text-2);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.42;
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 460px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: var(--bg-alt);
  overflow: hidden;
  transition: transform 0.5s var(--spring);
}

@media (hover: hover) {
  .tile:hover {
    transform: scale(1.012);
  }
}

.tile-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  min-height: 420px;
}

.tile-wide .tile-copy {
  flex: 1 1 52%;
}

.tile-wide .tile-visual {
  flex: 1 1 48%;
}

.tile-dark {
  background: var(--tile-dark);
  color: var(--tile-dark-text);
}

.tile-dark .tile-copy > p:not(.tile-label) {
  color: #a1a1a6;
}

.tile-label {
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.tile-dark .tile-label {
  color: #30d19b;
}

.tile h3 {
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.tile-copy > p:not(.tile-label) {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 17px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line);
}

.tile-dark .chips li {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.tile-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* real app crops */

.shot-float {
  flex: 1;
  align-items: center;
}

.shot-card {
  width: min(100%, 360px);
  border-radius: 22px;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--line);
  transform: rotate(-1.5deg);
  transition: transform 1s var(--spring) 0.15s;
}

.motion-ready .reveal:not(.in-view) .shot-card {
  transform: translateY(48px) rotate(-5deg) scale(0.96);
}

.shot-peek {
  align-self: stretch;
  align-items: flex-end;
  margin-bottom: calc(clamp(28px, 4vw, 44px) * -1);
}

.shot-frame {
  position: relative;
  width: min(100%, 340px);
  height: 380px;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  background: #faf9ff;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
}

.shot-frame-dark {
  background: #1b1b1b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.shot-frame img {
  width: 100%;
  will-change: transform;
}

.shot-scroller {
  position: relative;
  will-change: transform;
}

/* sparkle mark used for AI features */
.ai-spark {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -1px;
  background: linear-gradient(135deg, #7cf5c9, #6aa8ff 55%, #c792ff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.5 4.9 3.1 7.5 8 8-4.9.5-7.5 3.1-8 8-.5-4.9-3.1-7.5-8-8 4.9-.5 7.5-3.1 8-8z'/%3E%3Cpath d='M19 14.5c.2 2 1.3 3.1 3.3 3.3-2 .2-3.1 1.3-3.3 3.3-.2-2-1.3-3.1-3.3-3.3 2-.2 3.1-1.3 3.3-3.3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.5 4.9 3.1 7.5 8 8-4.9.5-7.5 3.1-8 8-.5-4.9-3.1-7.5-8-8 4.9-.5 7.5-3.1 8-8z'/%3E%3Cpath d='M19 14.5c.2 2 1.3 3.1 3.3 3.3-2 .2-3.1 1.3-3.3 3.3-.2-2-1.3-3.1-3.3-3.3 2-.2 3.1-1.3 3.3-3.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tile-dark .tile-label {
  display: flex;
  align-items: center;
}

.chips .chip-ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) padding-box,
    linear-gradient(135deg, #7cf5c9, #6aa8ff 55%, #c792ff) border-box;
  border: 1px solid transparent;
  box-shadow: none;
}

/* iOS Visual Look Up–style label, pinned to the carton in the camera view */
.ai-label {
  position: absolute;
  left: 50%;
  top: 53%;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.62);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5), inset 0 0 0 0.5px rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  scale: 0.8;
  transition: opacity 0.4s var(--ease-out), scale 0.6s var(--spring);
}

/* appears once the first scan sweep has passed over the product */
.in-view .ai-label {
  opacity: 1;
  scale: 1;
  transition-delay: 1.9s;
}

.scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 14%;
  height: 2px;
  border-radius: 2px;
  background: #30d19b;
  box-shadow: 0 0 16px 2px rgba(48, 209, 155, 0.7);
  opacity: 0;
}

.in-view .scan-line {
  animation: scan-sweep 2.4s var(--ease-in-out) 0.5s 2 both;
}

@keyframes scan-sweep {
  0% { top: 14%; opacity: 0; }
  12% { opacity: 1; }
  50% { top: 50%; }
  88% { opacity: 1; }
  100% { top: 14%; opacity: 0; }
}

@media (max-width: 800px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .tile,
  .tile-wide {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
}

/* ---------- Scroll story (live app) ---------- */

.story {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) var(--gutter) 0;
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}

.story-media {
  --dev-w: min(320px, calc((100vh - 170px) / 2.167 + 22px));
  position: sticky;
  top: calc(50vh - (var(--dev-w) - 22px) * 1.084 + 2px);
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.device-story {
  width: var(--dev-w);
  transform: none;
}

.story-dots {
  display: flex;
  gap: 7px;
}

.story-dots span {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--text) 22%, transparent);
  transition: width 0.45s var(--spring), background-color 0.3s ease;
}

.story-dots span.is-active {
  width: 22px;
  background: var(--text);
}

.story-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88vh;
  opacity: 0.25;
  transition: opacity 0.5s var(--ease-out);
}

.story-step:first-child {
  min-height: 70vh;
}

.story-step.is-active {
  opacity: 1;
}

.story-step-shot {
  display: none;
}

.story-num {
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.story-step h3 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.story-step > p:last-child {
  margin-top: 14px;
  max-width: 420px;
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .story-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* phone stays pinned up top; the copy scrolls up beneath it */
  .story-media {
    --dev-w: min(232px, calc(52vh / 2.167 + 22px));
    top: 52px;
    z-index: 3;
    margin: 0 calc(var(--gutter) * -1);
    padding: 14px var(--gutter) 28px;
    gap: 12px;
    background: linear-gradient(var(--bg) 82%, color-mix(in srgb, var(--bg) 0%, transparent));
  }

  .story-step,
  .story-step:first-child {
    justify-content: flex-start;
    min-height: 62vh;
    padding-top: 12px;
    text-align: center;
    align-items: center;
  }

  .story-step:last-child {
    min-height: 40vh;
  }

  .story-step h3 {
    font-size: 26px;
  }

  .story-step > p:last-child {
    font-size: 16px;
    max-width: 340px;
  }
}

/* ---------- Loop ---------- */

.loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.loop-step {
  padding: 28px 24px 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}

.loop-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 700;
}

.loop-step h3 {
  font-size: 21px;
  letter-spacing: -0.025em;
}

.loop-step p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
}

@media (max-width: 900px) {
  .loop {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .loop {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pricing ---------- */

.compare {
  max-width: 880px;
  margin: 0 auto;
}

.compare-title {
  margin-bottom: 18px;
  font-size: 24px;
  letter-spacing: -0.03em;
  text-align: center;
}

.compare-scroll {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.compare-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table th[scope="row"],
.compare-table thead th:first-child {
  text-align: left;
  font-weight: 500;
}

.compare-table thead th {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.row-note {
  display: block;
  margin-top: 2px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 400;
}

.status-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  vertical-align: middle;
  position: relative;
}

.is-included .status-icon {
  background: var(--brand);
}

.is-included .status-icon::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.is-not-included .status-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-3);
}

.limited-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 159, 10, 0.14);
  color: #b25000;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 700px) {
  .compare-table {
    min-width: 0;
    font-size: 14px;
  }

  .compare-table th,
  .compare-table td {
    padding: 14px 10px;
  }

  .compare-table th[scope="row"],
  .compare-table thead th:first-child {
    padding-left: 16px;
  }

  .compare-table thead th {
    font-size: 11px;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border: solid var(--text-2);
  border-width: 0 2px 2px 0;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.45s var(--spring);
}

.faq-item[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq-body p {
  padding: 0 4px 24px;
  max-width: 640px;
  color: var(--text-2);
  font-size: 17px;
}

.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size 0.5s var(--ease-out), opacity 0.4s ease, content-visibility 0.5s allow-discrete;
}

.faq-item[open]::details-content {
  block-size: auto;
  opacity: 1;
}

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

.closing {
  padding: clamp(96px, 14vw, 160px) var(--gutter);
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.closing-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  border-radius: 18px;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--line);
}

.closing-inner > p:not(.kicker) {
  margin: 18px 0 32px;
  max-width: 520px;
  color: var(--text-2);
  font-size: clamp(18px, 2vw, 21px);
}

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

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--text-2);
}

/* ---------- Announcement dialog (sheet) ---------- */

.announcement-dialog {
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  filter: blur(6px);
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.5s var(--spring),
    filter 0.35s var(--ease-out),
    overlay 0.5s allow-discrete,
    display 0.5s allow-discrete;
}

.announcement-dialog[open] {
  opacity: 1;
  transform: none;
  filter: none;
}

@starting-style {
  .announcement-dialog[open] {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    filter: blur(6px);
  }
}

.announcement-dialog::backdrop {
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}

.announcement-dialog[open]::backdrop {
  background: rgba(0, 0, 0, 0.36);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@starting-style {
  .announcement-dialog[open]::backdrop {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
  }
}

.announcement-dialog-surface {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  padding: clamp(28px, 4vw, 44px);
}

.announcement-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s var(--spring);
}

.announcement-close:active {
  transform: scale(0.9);
}

.announcement-copy .section-kicker {
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
}

.announcement-copy h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  padding-right: 32px;
}

.announcement-copy p:not(.section-kicker) {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 16px;
}

.announcement-summary {
  align-self: start;
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-alt);
}

.announcement-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.announcement-summary h3 {
  margin-top: 14px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.announcement-summary ul {
  margin: 12px 0 22px;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 15px;
}

.announcement-summary li + li {
  margin-top: 6px;
}

.announcement-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.announcement-cta:hover {
  text-decoration: none;
  background: var(--brand-strong);
}

@media (max-width: 760px) {
  .announcement-dialog-surface {
    grid-template-columns: 1fr;
  }
}

/* ---------- Motion ---------- */

/* Intro choreography: only when JS confirms motion is allowed */
.motion-ready [data-intro] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
}

.motion-ready.is-loaded [data-intro] {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.9s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 0.9s var(--ease-out);
}

.motion-ready.is-loaded [data-intro="1"] { transition-delay: 0s; transform: none; }
.motion-ready.is-loaded [data-intro="2"] { transition-delay: 0.08s; }
.motion-ready.is-loaded [data-intro="4"] { transition-delay: 0.55s; }
.motion-ready.is-loaded [data-intro="5"] { transition-delay: 0.68s; }
.motion-ready.is-loaded [data-intro="6"] { transition-delay: 0.78s; }
.motion-ready.is-loaded [data-intro="3"] { transition-delay: 0.5s; transition-duration: 1.2s, 1.4s, 1.2s; }

.motion-ready [data-intro="1"] {
  transform: scale(0.6);
}

.motion-ready.is-loaded [data-intro="1"] {
  transition: opacity 0.6s var(--ease-out), transform 0.9s var(--spring), filter 0.6s var(--ease-out);
}

.motion-ready [data-intro="3"] {
  transform: translateY(80px);
}

.motion-ready .hero-title .w {
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(10px);
}

.motion-ready.is-loaded .hero-title .w {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity 0.8s var(--ease-out),
    transform 1s var(--ease-out),
    filter 0.8s var(--ease-out);
  transition-delay: calc(0.14s + var(--i) * 0.055s);
}

/* Scroll reveals */
.motion-ready .reveal {
  transition:
    opacity 0.8s var(--ease-out) var(--d, 0s),
    transform 1s var(--ease-out) var(--d, 0s),
    filter 0.8s var(--ease-out) var(--d, 0s);
}

.motion-ready .reveal:not(.in-view) {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(6px);
}

.motion-ready .tile.reveal.in-view {
  transition:
    opacity 0.8s var(--ease-out) var(--d, 0s),
    transform 0.5s var(--spring),
    filter 0.8s var(--ease-out) var(--d, 0s);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
    transition-delay: 0s !important;
  }

  .device {
    transform: none !important;
  }

  .screen {
    transition: opacity 0.2s ease !important;
    transform: none !important;
    filter: none !important;
    opacity: 0;
  }

  .screen.is-active {
    opacity: 1;
  }

  .tap {
    display: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
