/* ---------- TOKENS ---------- */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --ink-soft: #555555;
  --ink-mute: #888888;
  --rule: #e5e5e5;
  --rule-strong: #0a0a0a;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --s8: 128px;

  --pad-x: clamp(24px, 5vw, 80px);
  --pad-x-section: clamp(24px, 6vw, 112px);

  --max-w: 1320px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-snap: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "ss01";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- TYPE ATOMS ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow--dark { color: rgba(255,255,255,0.7); }

.display {
  font-size: clamp(48px, 8.2vw, 108px);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 0.95;
  color: var(--ink);
}

.title {
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.04;
  color: var(--ink);
}
.title--soft { color: var(--ink-soft); font-weight: 500; }
.title--dark { color: var(--paper); }

.lede {
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 400;
  letter-spacing: -0.011em;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 58ch;
}
.lede--dark { color: rgba(255,255,255,0.72); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.011em;
  border-radius: 2px;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  border: 0.5px solid var(--ink);
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn--inverse { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--large { padding: 18px 36px; font-size: 15px; }

.btn-text {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: -0.011em;
  border-bottom: 0.5px solid var(--rule);
  padding-bottom: 2px;
  margin-left: var(--s3);
  transition: color 0.2s var(--ease);
}
.btn-text:hover { color: var(--ink); }
.btn-text--dark { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }
.btn-text--dark:hover { color: var(--paper); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--rule); }

.nav__logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: -0.011em;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }

.nav__phone {
  font-size: 13px;
  letter-spacing: -0.011em;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--pad-x) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--s6);
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero__copy {
  max-width: 560px;
}
.hero__copy .eyebrow { margin-bottom: var(--s3); }
.hero__copy .display { margin-bottom: var(--s4); }
.hero__copy .lede { margin-bottom: var(--s5); }

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* ---------- AI BOT WIDGET ---------- */
.bot {
  width: 100%;
  max-width: 520px;
  border: 0.5px solid var(--ink);
  background: var(--paper);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bot__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 0.5px solid var(--rule);
}
.bot__pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.4); }
  60% { box-shadow: 0 0 0 6px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}
.bot__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.011em;
  margin-right: auto;
}
.bot__status {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.bot__stream {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.msg {
  display: flex;
  width: 100%;
  animation: slideIn 0.4s var(--ease) both;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg--bot { justify-content: flex-start; }
.msg--user { justify-content: flex-end; }

.msg__bubble {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 3px;
  font-size: 13.5px;
  letter-spacing: -0.011em;
  line-height: 1.5;
  color: var(--ink);
}
.msg--bot .msg__bubble {
  background: #f4f4f5;
}
.msg--user .msg__bubble {
  background: var(--ink);
  color: var(--paper);
}
.msg__bubble p + p { margin-top: 6px; }
.msg__bubble strong { font-weight: 600; }

.msg__quote {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 0.5px solid var(--rule);
}
.msg__quote-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.msg__quote-value {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.011em;
  text-align: right;
}

.msg__cta {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.011em;
  border-radius: 2px;
  text-decoration: none;
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 14px;
  background: #f4f4f5;
  border-radius: 3px;
}
.typing span {
  width: 5px; height: 5px;
  background: var(--ink-mute);
  border-radius: 50%;
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 60%, 100% { opacity: 0.25; }
  30% { opacity: 1; }
}

.bot__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 14px;
}
.chip {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: transparent;
  border: 0.5px solid var(--rule);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.chip:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.bot__form {
  display: flex;
  align-items: center;
  border-top: 0.5px solid var(--rule);
}
.bot__input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 16px 18px;
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: transparent;
  -webkit-appearance: none;
}
.bot__input::placeholder { color: var(--ink-mute); }
.bot__send {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: opacity 0.2s var(--ease);
}
.bot__send:hover { opacity: 0.6; }
.bot__send:focus-visible { outline: 0.5px solid var(--ink); outline-offset: 2px; }

.bot__small {
  padding: 10px 18px 12px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-top: 0.5px solid var(--rule);
  background: #fafafa;
}
.bot__small a {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 0.5px solid var(--rule);
}

/* ---------- MACBOOK ---------- */
.hero__stage {
  position: relative;
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2200px;
  perspective-origin: 50% 80%;
}

.macbook {
  position: relative;
  width: min(600px, 90%);
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--tilt, 0) * 1deg));
  transition: transform 0.6s var(--ease);
}

/* LID */
.macbook__lid {
  position: relative;
  width: 100%;
  transform-origin: bottom center;
  transform-style: preserve-3d;
  --open-deg: -98deg;
  transform: rotateX(var(--open-deg));
  transition: transform 1.4s var(--ease-snap);
}
.macbook.is-open .macbook__lid {
  --open-deg: -7deg;
}

.macbook__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #1d1d1f;
  border-radius: 10px 10px 2px 2px;
  padding: 9px;
  box-shadow:
    inset 0 0 0 1px #000,
    inset 0 -1px 0 0 rgba(255,255,255,0.04);
}

.macbook__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18%;
  height: 8px;
  background: #000;
  border-radius: 0 0 6px 6px;
  z-index: 2;
}

.macbook__display {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.04) 0%, transparent 60%),
    linear-gradient(135deg, #131316 0%, #0a0a0a 100%);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.macbook__display::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, transparent 25%);
  pointer-events: none;
}

/* HINGE */
.macbook__hinge {
  position: relative;
  width: 100%;
  height: 3px;
  background: linear-gradient(to bottom, #2c2c2e 0%, #1d1d1f 50%, #2c2c2e 100%);
  z-index: 3;
}

/* BASE */
.macbook__base {
  position: relative;
  width: 104%;
  margin-left: -2%;
  height: 16px;
  background:
    linear-gradient(to bottom,
      #d8d9dc 0%,
      #c4c5c9 30%,
      #a8a9ad 70%,
      #8e8f93 100%);
  border-radius: 1px 1px 18px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.1),
    0 2px 0 rgba(0,0,0,0.05);
}

.macbook__base::before {
  /* the slot/groove on the front of the lid */
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 14%;
  height: 4px;
  background: linear-gradient(to bottom, #555 0%, #2c2c2e 100%);
  border-radius: 0 0 4px 4px;
  transform: translateX(-50%);
}

.macbook__keyboard,
.macbook__trackpad {
  display: none;
}

.macbook__shadow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 36px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.18) 0%, transparent 70%);
  filter: blur(8px);
  z-index: -1;
}

/* UI CARD on screen */
.ui-card {
  width: 78%;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 18px 22px;
  color: white;
  font-size: 11px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease) 0.6s, transform 0.6s var(--ease) 0.6s;
}
.macbook.is-open .ui-card { opacity: 1; transform: translateY(0); }

.ui-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ui-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 6px rgba(48, 209, 88, 0.6);
}
.ui-card__label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.ui-card__device {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin-bottom: 3px;
}

.ui-card__detail {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  letter-spacing: -0.005em;
  margin-bottom: 10px;
}

.ui-card__rule {
  height: 0.5px;
  background: rgba(255,255,255,0.1);
  margin: 8px 0;
}

.ui-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
}

.ui-card__price {
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.018em;
}

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: var(--s6) var(--pad-x);
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  max-width: var(--max-w);
  margin: 0 auto;
}

.stat {
  padding: var(--s4) var(--s3) 0 0;
  border-top: 0.5px solid var(--ink);
  margin-top: -1px;
}

.stat__num {
  font-size: clamp(40px, 4.8vw, 72px);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 0.95;
  margin-bottom: var(--s3);
  color: var(--ink);
}

.stat__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- SECTION ---------- */
.section {
  padding: var(--s8) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__head {
  margin-bottom: var(--s7);
  max-width: 920px;
}
.section__head .eyebrow { margin-bottom: var(--s3); }

/* ---------- CYCLE (repairs auto-rotating) ---------- */
.cycle {
  padding: var(--s5) 0 var(--s4);
  border-top: 0.5px solid var(--ink);
  border-bottom: 0.5px solid var(--ink);
}

.cycle__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s4);
}

.cycle__n {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.cycle__pl {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cycle__pl strong {
  display: inline-block;
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 600;
  letter-spacing: -0.018em;
  text-transform: none;
  margin-left: 10px;
  color: var(--ink);
  vertical-align: baseline;
}

.cycle__main {
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: var(--s5);
  color: var(--ink);
  min-height: 1em;
}

.cycle__n,
.cycle__main,
.cycle__pl strong {
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
  will-change: opacity, transform;
}

.cycle.is-flipping .cycle__n,
.cycle.is-flipping .cycle__main,
.cycle.is-flipping .cycle__pl strong {
  opacity: 0;
  transform: translateY(-10px);
}

.cycle__progress {
  display: flex;
  gap: 6px;
}

.cycle__bar {
  flex: 0 0 auto;
  width: 36px;
  height: 1px;
  background: var(--rule);
  cursor: pointer;
  transition: background 0.3s var(--ease), height 0.3s var(--ease), transform 0.3s var(--ease);
  transform-origin: left center;
}
.cycle__bar:hover { background: var(--ink-soft); }
.cycle__bar.active {
  background: var(--ink);
  height: 2px;
  width: 64px;
}

/* ---------- DEVICE PICKER ---------- */
.picker-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: var(--s5);
  align-items: stretch;
}
.picker-col { display: flex; flex-direction: column; }

.picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  border-top: 0.5px solid var(--rule);
  padding-top: var(--s4);
}

.dev {
  font-family: var(--font);
  background: transparent;
  border: 0;
  padding: var(--s4) var(--s2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  border-radius: 6px;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}

.dev:hover {
  background: #fafafa;
  transform: translateY(-2px);
}

.dev__art {
  display: block;
  width: 100%;
  max-width: 140px;
  aspect-ratio: 14 / 10;
}
.dev__art svg { width: 100%; height: 100%; display: block; }

.dev__name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.011em;
  color: var(--ink);
}

.picker__hint {
  margin-top: var(--s4);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  text-align: center;
}
.picker__hint a {
  color: var(--ink);
  border-bottom: 0.5px solid var(--rule);
}

/* ---------- PROTECT CARD ---------- */
.protect {
  background: #f5f5f7;
  border-radius: 18px;
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  border-top: 0.5px solid transparent;
  margin-top: 0;
}

.protect__visual {
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #ebebed 100%);
  padding: var(--s3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.protect__visual svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}

.protect__body {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  flex: 1;
}

.protect__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.011em;
  color: #cc0000;
  margin-bottom: 2px;
}

.protect__title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 4px;
}

.protect__price {
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: -0.011em;
  line-height: 1.5;
  margin-bottom: var(--s3);
}
.protect__price strong {
  color: var(--ink);
  font-weight: 600;
}

.protect__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.protect__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  letter-spacing: -0.011em;
  line-height: 1.5;
  color: var(--ink);
}
.protect__list .check {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ink);
}

.protect__more {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.35s var(--ease);
}
.protect.is-expanded .protect__more {
  max-height: 480px;
  opacity: 1;
}
.protect__list--more {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
}
.protect__exclusions {
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  line-height: 1.5;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
}

.protect__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--s3);
}
.protect__btn {
  flex: 1;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.011em;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  border: 0.5px solid var(--ink);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.protect__btn:hover { opacity: 0.88; }
.protect__btn--outline {
  background: transparent;
  color: var(--ink);
}
.protect__btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
}

/* ---------- ABOUT THIS MAC MODAL ---------- */
.atm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,20,22,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  padding: 24px;
}

.atm-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.atm {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  background: #f5f5f7;
  border-radius: 12px;
  box-shadow:
    0 0 0 0.5px rgba(0,0,0,0.1),
    0 22px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.3s var(--ease);
}
.atm-overlay.is-open .atm { transform: scale(1) translateY(0); }

/* Window chrome */
.atm__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #e8e8ea;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}
.atm__lights {
  display: flex;
  gap: 6px;
}
.light {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: default;
}
.light--close { background: #ff5f57; cursor: pointer; }
.light--close:hover { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
.light--min { background: #febc2e; }
.light--max { background: #28c840; }

.atm__chrome-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.atm__steps {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.atm__step.active { color: var(--ink); }
.atm__sep { color: var(--ink-mute); }

/* Step panels */
.atm__step-panel {
  padding: var(--s4) var(--s4) var(--s3);
  display: none;
  overflow-y: auto;
  max-height: calc(100vh - 110px);
}
.atm__step-panel.active { display: block; animation: panelIn 0.32s var(--ease) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.atm__hero {
  width: 120px;
  height: 96px;
  margin: 0 auto var(--s2);
}
.atm__hero svg { width: 100%; height: 100%; }

.atm__device {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 6px;
  color: var(--ink);
}

.atm__sub {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: -0.005em;
  margin-bottom: var(--s4);
  line-height: 1.5;
}
.atm__sub em { font-style: normal; color: var(--ink); }

.atm__field {
  margin-bottom: var(--s2);
}
.atm__label {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.atm__input {
  width: 100%;
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: -0.011em;
  color: var(--ink);
  padding: 10px 12px;
  background: var(--paper);
  border: 0.5px solid #d4d5d8;
  border-radius: 4px;
  outline: 0;
  transition: border-color 0.2s var(--ease);
}
.atm__input:focus { border-color: var(--ink); }
.atm__input--area { resize: vertical; min-height: 56px; line-height: 1.45; }

.atm__or {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: var(--s2) 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.atm__or::before, .atm__or::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--rule);
}

.atm__upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 0.5px dashed #b8b9bd;
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  margin-bottom: var(--s2);
}
.atm__upload:hover { border-color: var(--ink); color: var(--ink); }

.atm__primary {
  width: 100%;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.011em;
  color: var(--paper);
  background: var(--ink);
  padding: 12px 18px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  margin-top: var(--s3);
  transition: opacity 0.2s var(--ease);
}
.atm__primary:hover { opacity: 0.88; }

.atm__ghost {
  width: 100%;
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--ink-soft);
  background: transparent;
  padding: 10px;
  border: 0;
  cursor: pointer;
  margin-top: 6px;
  transition: color 0.2s var(--ease);
}
.atm__ghost:hover { color: var(--ink); }

/* Step 2: Quote */
.atm__specs {
  display: grid;
  gap: 6px;
  padding: var(--s3) var(--s3);
  background: var(--paper);
  border: 0.5px solid var(--rule);
  border-radius: 4px;
  margin-bottom: var(--s3);
}
.atm__specs div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
}
.atm__specs dt { color: var(--ink-soft); letter-spacing: -0.005em; }
.atm__specs dd { color: var(--ink); font-weight: 500; letter-spacing: -0.011em; }

.atm__quote-card {
  background: var(--paper);
  border: 0.5px solid var(--ink);
  border-radius: 4px;
  padding: var(--s3);
}
.atm__quote-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  padding: 6px 0;
}
.atm__quote-label { color: var(--ink-soft); letter-spacing: -0.005em; }
.atm__quote-value { font-weight: 500; color: var(--ink); letter-spacing: -0.011em; }
.atm__quote-row--total {
  border-top: 0.5px solid var(--rule);
  margin-top: 6px;
  padding-top: 12px;
}
.atm__quote-price {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.022em;
}

/* Step 3: lock */
.atm__lock {
  width: 44px; height: 44px;
  margin: 0 auto var(--s3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 0.5px solid var(--rule);
  border-radius: 50%;
  color: var(--ink);
}

/* Step 4: success + label */
.atm__success {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s3);
}

/* Royal Mail label preview */
.label {
  background: var(--paper);
  border: 0.5px solid var(--ink);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: var(--s3);
  font-family: -apple-system, "SF Mono", "Helvetica Neue", monospace;
  font-size: 10px;
  line-height: 1.45;
  color: var(--ink);
}
.label__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--ink);
  margin-bottom: 12px;
}
.label__rm {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #cc0000;
}
.label__rm-bar {
  width: 4px;
  height: 14px;
  background: #cc0000;
}
.label__service {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  border: 0.5px solid var(--ink);
  padding: 3px 8px;
}
.label__addr {
  margin-bottom: 10px;
}
.label__addr-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-bottom: 3px;
}
.label__addr-value {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* fake barcode */
.label__barcode {
  height: 38px;
  background:
    repeating-linear-gradient(90deg,
      var(--ink) 0px,
      var(--ink) 1px,
      transparent 1px,
      transparent 3px,
      var(--ink) 3px,
      var(--ink) 5px,
      transparent 5px,
      transparent 7px,
      var(--ink) 7px,
      var(--ink) 10px,
      transparent 10px,
      transparent 12px,
      var(--ink) 12px,
      var(--ink) 13px,
      transparent 13px,
      transparent 17px
    );
  margin: 8px 0 12px;
  border-top: 0.5px solid var(--ink);
  border-bottom: 0.5px solid var(--ink);
}

.label__foot {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 0.5px solid var(--rule);
}
.label__foot-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.label__foot-value {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.atm__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.atm__actions .atm__primary,
.atm__actions .atm__ghost { margin-top: 0; }
.atm__actions .atm__ghost { border: 0.5px solid var(--rule); border-radius: 4px; }

.atm__divider {
  height: 0.5px;
  background: var(--rule);
  margin: var(--s4) 0 var(--s3);
}

.atm__label-h {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s2);
}

.atm__schedule {
  display: grid;
  gap: 8px;
  margin-bottom: var(--s3);
}
.schedule__opt {
  font-family: var(--font);
  background: var(--paper);
  border: 0.5px solid var(--rule);
  padding: 12px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  transition: border-color 0.2s var(--ease);
}
.schedule__opt:hover { border-color: var(--ink); }
.schedule__opt.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.schedule__opt.active .schedule__opt-d { color: rgba(255,255,255,0.7); }

.schedule__opt-t {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.011em;
}
.schedule__opt-d {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}

/* ---------- DARK CTA (with video bg) ---------- */
.cta-dark {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s8) var(--pad-x);
  overflow: hidden;
  isolation: isolate;
}

.cta-dark__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* nudge contrast so text reads */
  filter: brightness(0.85) saturate(1.05);
}

.cta-dark__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.7) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(0,0,0,0.55) 0%, transparent 60%);
  pointer-events: none;
}

.cta-dark__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
}

.cta-dark .eyebrow { margin-bottom: var(--s4); }
.cta-dark .title {
  margin-bottom: var(--s4);
  max-width: 1000px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.cta-dark .lede {
  margin-bottom: var(--s5);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.cta-dark__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* Video controls (bottom-right) */
.cta-dark__controls {
  position: absolute;
  bottom: var(--s4);
  right: var(--pad-x);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.cta-dark__control {
  width: 38px;
  height: 38px;
  border: 0.5px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--paper);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.cta-dark__control:hover {
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.5);
  transform: scale(1.05);
}
.cta-dark__control:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}

/* Icon visibility toggled by state classes */
.cta-dark__control .icon-play  { display: none; }
.cta-dark__control .icon-pause { display: block; }
.cta-dark__control.is-paused .icon-play  { display: block; }
.cta-dark__control.is-paused .icon-pause { display: none; }

.cta-dark__control .icon-sound { display: none; }
.cta-dark__control .icon-mute  { display: block; }
.cta-dark__control.is-unmuted .icon-sound { display: block; }
.cta-dark__control.is-unmuted .icon-mute  { display: none; }

/* ---------- STORES ---------- */
.stores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
}

.store {
  padding-top: var(--s4);
  border-top: 0.5px solid var(--ink);
}

.store__city {
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: var(--s4);
}

.store__addr {
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: -0.011em;
  line-height: 1.6;
  margin-bottom: var(--s2);
}

.store__phone {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.011em;
  color: var(--ink);
  margin-bottom: var(--s2);
}

.store__hours {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- CLOSER ---------- */
.closer {
  padding: var(--s8) var(--pad-x);
  text-align: center;
  border-top: 0.5px solid var(--rule);
}

.closer__inner {
  max-width: 760px;
  margin: 0 auto;
}

.closer .eyebrow { margin-bottom: var(--s4); }

.closer__title {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: var(--s3);
}

.closer__sub {
  font-size: clamp(15px, 1.25vw, 19px);
  color: var(--ink-soft);
  letter-spacing: -0.011em;
  margin-bottom: var(--s5);
}

.closer__small {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  margin-top: var(--s3);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: var(--s7) var(--pad-x) var(--s4);
  border-top: 0.5px solid var(--rule);
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin-bottom: var(--s6);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
  margin-bottom: var(--s6);
  padding-bottom: var(--s5);
  border-bottom: 0.5px solid var(--rule);
}

.footer__cols .eyebrow { margin-bottom: var(--s3); }

.footer__cols a {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: -0.011em;
  line-height: 2;
  transition: color 0.2s var(--ease);
}
.footer__cols a:hover { color: var(--ink); }

.footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- STICKY MOBILE CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.011em;
  border-radius: 4px;
  z-index: 90;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- MOBILE ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px var(--pad-x) 64px;
    gap: var(--s5);
  }
  .hero__stage { min-height: 320px; order: -1; }
  .macbook { width: min(440px, 80%); }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-top: 0.5px solid var(--ink); }

  .nav__links { display: none; }

  .picker-row { grid-template-columns: 1fr; gap: var(--s4); }
  .picker { grid-template-columns: repeat(3, 1fr); gap: var(--s1); }
  .protect { padding: var(--s3); }
  .stores { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--s4); }
}

@media (max-width: 640px) {
  .section { padding: var(--s6) var(--pad-x); }
  .section__head { margin-bottom: var(--s5); }
  .cta-dark { padding: var(--s7) var(--pad-x); }
  .closer { padding: var(--s7) var(--pad-x); }
  .footer { padding: var(--s5) var(--pad-x) 100px; }

  .stores { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .picker { grid-template-columns: repeat(2, 1fr); }

  .cycle__main { font-size: clamp(40px, 13vw, 64px); }
  .cycle__bar { width: 22px; }
  .cycle__bar.active { width: 40px; }

  .hero__copy .display { font-size: clamp(40px, 12vw, 64px); }
  .hero__copy .btn { display: none; }
  .hero__actions .btn-text { margin-left: 0; }

  .sticky-cta { display: block; }
  body { padding-bottom: 80px; }

  .footer__legal { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .macbook__lid { transform: rotateX(-7deg); }
  .ui-card { opacity: 1; transform: none; }
}
