/* CamLamp site: cool stone and aluminium neutrals, soft raised surfaces,
   red-orange and blue accents, very round cards and pill buttons, faint
   hand-drawn line art. body.dark is the Ultra page. */

:root {
  --bg: #f1f2f3;
  --bg-deep: #e5e7e9;
  --surface: #f8f9f9;
  --surface-hi: #ffffff;
  --ink: #1c1e20;
  --ink-2: #62686e;
  --ink-3: #a2a7ac;
  --line: #d6dadd;
  --line-soft: #e4e7e9;
  --red: #eb5b43;
  --red-deep: #c9452f;
  --blue: #1f8cf4;
  --teal: #4e8a93;
  --green: #34b76a;
  --orange: #f29a38;
  --charcoal: #2e3134;
  --black: #121212;

  --r-xl: 44px;
  --r-lg: 34px;
  --r: 26px;
  --shadow-card: 0 18px 36px -14px rgba(24, 30, 36, 0.18), 0 2px 6px rgba(24, 30, 36, 0.05);
  --shadow-soft: 0 10px 28px rgba(24, 30, 36, 0.07);
  --edge: inset 0 0 0 1px rgba(255, 255, 255, 0.7);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --serif: 'Newsreader', Georgia, serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ultra: linear-gradient(90deg, #ff5f45, #ffb03a, #3ad6a0, #3a8bff, #b45cff);
}

body.dark {
  --bg: #0c0c0e;
  --bg-deep: #141416;
  --surface: #18181b;
  --surface-hi: #1f1f23;
  --ink: #f3f1ee;
  --ink-2: #a3a09b;
  --ink-3: #66635f;
  --line: #26262a;
  --line-soft: #222225;
  --shadow-card: 0 24px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.4);
  --edge: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
}

main {
  overflow-x: clip;
}

img,
canvas,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 999px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.anchor {
  scroll-margin-top: 90px;
}

/* ---------- Background: line art and viewfinder chrome ---------- */

.lineart {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.lineart .ribbon-out {
  fill: none;
  stroke: var(--line);
  stroke-width: 74;
  stroke-linecap: round;
  opacity: 0.55;
}

.lineart .ribbon-in {
  fill: none;
  stroke: var(--bg);
  stroke-width: 72;
  stroke-linecap: round;
}

.lineart .thread {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  opacity: 0.8;
}

.chrome {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

.chrome .corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--ink-3);
  opacity: 0.7;
}

.chrome .corner.tl { top: 14px; left: 14px; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 14px; }
.chrome .corner.tr { top: 14px; right: 14px; border-top-width: 1.5px; border-right-width: 1.5px; border-top-right-radius: 14px; }
.chrome .corner.bl { bottom: 14px; left: 14px; border-bottom-width: 1.5px; border-left-width: 1.5px; border-bottom-left-radius: 14px; }
.chrome .corner.br { bottom: 14px; right: 14px; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: 14px; }

.chrome .mark {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--line);
  border-radius: 2px;
}

.chrome .barcode {
  position: absolute;
  left: 22px;
  top: 52%;
  width: 18px;
  height: 64px;
  background: repeating-linear-gradient(0deg, var(--ink-3) 0 1px, transparent 1px 3px, var(--ink-3) 3px 5px, transparent 5px 6px);
  opacity: 0.5;
}

.chrome .vtext {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .chrome .mark,
  .chrome .barcode,
  .chrome .vtext {
    display: none;
  }
}

@media (max-width: 640px) {
  .chrome {
    display: none;
  }
}

/* ---------- Layout and type ---------- */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: clamp(64px, 10vw, 128px) 0;
}

.section.tight {
  padding: clamp(40px, 6vw, 80px) 0;
}

.stack > * + * {
  margin-top: var(--gap, 16px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head > div > * + * {
  margin-top: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 12px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.eyebrow .n {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--red);
}

.display {
  font-size: clamp(56px, 8.6vw, 124px);
  line-height: 0.88;
  letter-spacing: -0.055em;
  font-weight: 700;
  margin: 0;
}

.h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin: 0;
}

.h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0;
}

.muted {
  color: var(--ink-3);
}

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 32em;
  margin: 0;
  letter-spacing: -0.01em;
}

.lead strong {
  color: var(--ink);
  font-weight: 600;
}

.small {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

.count {
  color: var(--ink-3);
  font-weight: 500;
}

.inline-link {
  color: var(--blue);
  font-weight: 500;
  cursor: pointer;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 15.5px;
}

.ticks li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent);
}

.ticks li b {
  color: var(--ink);
  font-weight: 600;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 64px;
  padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

/* Clear over the top of the page; frosted with a hairline once it scrolls under (site.js). */
.nav.scrolled,
.nav.open {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line-soft);
}

.nav .brand svg {
  height: 14px;
  width: auto;
}

.nav .links {
  display: flex;
  gap: 2px;
  margin: 0 auto;
}

.nav .links a {
  white-space: nowrap;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s;
}

.nav .links a:hover,
.nav .links a[aria-current] {
  color: var(--ink);
}

.nav .links a.ultra-link,
.nav .links a.ultra-link[aria-current] {
  background: var(--ultra);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.nav .menu-btn {
  display: none;
}

/* Configure: the web panel, a part of the product, so a control of its own
   rather than a section link: its pixel mark in a pill, like the app's. */
.nav-configure {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--surface-hi);
  box-shadow: inset 0 0 0 1px var(--line-soft), 0 1px 2px rgba(24, 30, 36, 0.05);
  color: var(--blue);
  transition: box-shadow 0.25s, transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1.4);
}

.nav-configure:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 35%, transparent), 0 8px 18px -8px color-mix(in srgb, var(--blue) 55%, transparent);
}

.nav-configure svg {
  height: 9px;
  width: auto;
}

/* The web panel's own header: just the wordmark, centred. */
.nav-app {
  justify-content: center;
}

.nav-app .brand svg {
  height: 16px;
}

/* Discord: a quiet icon that takes its colour on hover. */
.nav-discord {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}

.nav-discord:hover {
  color: #5865f2;
  background: var(--bg-deep);
}

.nav-discord span {
  display: none;
}

/* "Contact us": a small menu with the Discord and email (site.js). */
.contact-menu {
  position: fixed;
  z-index: 1000;
  display: grid;
  gap: 2px;
  width: 290px;
  padding: 6px;
  border-radius: 22px;
  background: var(--surface-hi);
  box-shadow: 0 24px 48px -16px rgba(24, 30, 36, 0.35), 0 2px 8px rgba(24, 30, 36, 0.08), var(--edge);
  color: var(--ink);
  animation: contact-pop 0.18s cubic-bezier(0.3, 0.7, 0.4, 1.2);
}

.contact-menu[data-side='above'] {
  transform-origin: bottom center;
}

.contact-menu[hidden] {
  display: none;
}

@keyframes contact-pop {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}

.contact-option:hover,
.contact-option:focus-visible {
  background: var(--bg);
  outline: none;
}

.contact-option i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  color: #fff;
}

.contact-option.discord i {
  background: #5865f2;
}

.contact-option.mail i {
  background: var(--ink);
}

.contact-option svg {
  width: 20px;
  height: 20px;
}

.contact-option span {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}

.contact-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--ink-2);
}

.nav-discord:hover {
  transform: translateY(-1px);
}

.nav-discord svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 1080px) {
  .nav .nav-new {
    margin-right: auto;
  }

  .nav .links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    margin: 0;
    padding: 8px max(var(--gutter), 12px) 18px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-soft);
  }

  .nav.open .links {
    display: flex;
  }

  .nav .links a {
    padding: 12px 0;
    font-size: 17px;
  }

  .nav .links a.ultra-link {
    align-self: flex-start;
  }

  .nav .menu-btn {
    display: grid;
  }
}

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

/* ---------- Buttons and chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1.4), box-shadow 0.25s, background 0.2s, opacity 0.2s;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.96);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.btn[hidden] {
  display: none;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--blue) 65%, transparent);
}

.btn-soft {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft), var(--edge);
}

/* A plain white button with a rainbow glow behind it. The face is its own
   layer: in the button's stacking context the glow would cover a background. */
.btn-ultra {
  position: relative;
  isolation: isolate;
  color: #0c0c0e;
}

.btn-ultra::before,
.btn-ultra::after {
  content: '';
  position: absolute;
  border-radius: inherit;
}

.btn-ultra::before {
  inset: 0 4px;
  z-index: -2;
  background: var(--ultra);
  filter: blur(16px);
  opacity: 1;
}

.btn-ultra::after {
  inset: 0;
  z-index: -1;
  background: #fff;
}

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

/* The price inside a blue button, in a white pill at its right end. */
.price-chip {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 0 14px;
  margin-right: -14px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  transition: color 0.4s;
}

.btn-sm .price-chip {
  min-height: 30px;
  padding: 0 11px;
  margin-right: -11px;
  font-size: 14px;
}

.express-on .order-btn .price-chip {
  color: #138a66;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08), var(--edge);
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1.4), opacity 0.2s;
  flex: none;
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn.sm {
  width: 34px;
  height: 34px;
}

.icon-btn.sm svg {
  width: 14px;
  height: 14px;
}

.ghost {
  visibility: hidden;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--edge), 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.chip b {
  color: var(--ink);
  font-weight: 600;
}

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

/* ---------- The 3D calculator ---------- */

.stage {
  position: relative;
  touch-action: pan-y;
}

.stage .calc3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.stage.is-ready .calc3d-canvas {
  opacity: 1;
}

.stage.is-dragging .calc3d-canvas {
  cursor: grabbing;
}

.stage .ground {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 32%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(24, 30, 36, 0.15);
  filter: blur(16px);
}

/* A still of the opening pose (scripts/poster.html), there from the first
   paint until the 3D view has faded in over it. Sized the way the 3D view
   sizes the model: to the stage's height, and smaller in stages narrower than
   0.62 wide per 1 tall, where calc3d.js widens its view. */
.stage-poster {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: min(100cqh, 161.3cqw);
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.3s 0.9s; /* after the canvas's 0.9s fade-in */
}

.stage.is-ready .stage-poster {
  opacity: 0;
}

/* A label pinned to a point on the model: red dot, hairline, text. */
.pin {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  pointer-events: none;
  will-change: transform;
}

.pin > span,
.pin::before {
  opacity: 0;
  transition: opacity 0.4s;
}

.pin.on > span,
.pin.on::before {
  opacity: 1;
  transition-delay: 0.7s;
}

.pin::before {
  content: '';
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 22%, transparent);
}

.pin span {
  position: absolute;
  top: -8px;
  white-space: nowrap;
  font: 600 13px/1.25 var(--font);
  color: var(--red-deep);
}

.pin span::before {
  content: '';
  position: absolute;
  top: 8px;
  height: 1px;
  width: var(--lead, 64px);
  background: color-mix(in srgb, var(--red) 55%, transparent);
}

.pin.left span {
  right: calc(var(--lead, 64px) + 12px);
  text-align: right;
}

.pin.left span::before {
  right: calc(-1 * var(--lead, 64px) - 8px);
}

.pin.right span {
  left: calc(var(--lead, 64px) + 12px);
}

.pin.right span::before {
  left: calc(-1 * var(--lead, 64px) - 8px);
}

.pin small {
  display: block;
  font-weight: 500;
  color: var(--ink-2);
  font-size: 11.5px;
}

.lcd-bezel {
  background: linear-gradient(160deg, #3a3d40, #212325);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.lcd-bezel canvas {
  width: 100%;
  height: auto;
  border-radius: 6px;
  image-rendering: pixelated;
}

.stage .lcd-bezel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(80%, 380px);
  transform: translate(-50%, -50%);
}

/* ---------- The story: a pinned calculator beside scrolling chapters ---------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.story-stage {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}

.story-stage .stage {
  width: 100%;
  height: 100%;
  container-type: size; /* for .stage-poster's cqh/cqw */
}

.story-steps {
  grid-column: 1;
  grid-row: 1;
}

.chapter {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  max-width: 32rem;
  padding: 80px 0;
  opacity: 0.25;
  transition: opacity 0.6s;
}

.chapter.current {
  opacity: 1;
}

/* The app, sliding in beside the calculator in the last chapter. */
/* Scaled to a real iPhone beside the calculator; home.js sets --s. */
.stage-phone {
  --w: 290px;
  --s: 0.7;
  position: absolute;
  right: 2%;
  top: 54%;
  z-index: 4;
  width: 290px;
  opacity: 0;
  transform-origin: right center;
  transform: translate(30%, -50%) scale(calc(var(--s) * 0.94));
  transition: opacity 0.7s, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.stage.with-phone .stage-phone {
  opacity: 1;
  transform: translate(0, -50%) scale(var(--s));
}

.chapter-phone {
  display: none;
}

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

  .story-stage {
    grid-column: 1;
    height: 60vh;
    padding-top: 112px;
    z-index: 2;
    background: var(--bg);
    box-shadow: 0 18px 18px -6px var(--bg);
  }

  .story-stage .stage {
    height: 100%;
  }

  .story-stage .calc3d-canvas,
  .story-stage .stage-poster {
    -webkit-mask-image: linear-gradient(#000 82%, transparent);
    mask-image: linear-gradient(#000 82%, transparent);
  }

  .story-steps {
    grid-row: 2;
  }

  .chapter {
    min-height: 62vh;
    justify-content: flex-start;
    padding: 24px 0 48px;
  }

  .stage-phone,
  .pin {
    display: none;
  }

  .chapter-phone {
    --w: 290px;
    display: block;
    width: 100%;
    margin-top: 12px;
  }
}

/* ---------- Phone mock ---------- */

.phone {
  --w: 320px;
  position: relative;
  isolation: isolate;
  width: var(--w);
  max-width: 100%;
  aspect-ratio: 9 / 19.2;
  margin: 0 auto;
  border-radius: 54px;
  padding: 10px;
  background: var(--surface-hi);
  box-shadow: 0 50px 80px -30px rgba(24, 30, 36, 0.35), 0 0 0 1px var(--line-soft), inset 0 0 0 1px #fff;
  color: var(--ink);
}

.phone .screen {
  position: relative;
  height: 100%;
  border-radius: 45px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.phone .island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 92px;
  height: 27px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #111;
  z-index: 5;
}

.phone .sbar {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 26px 0;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
}

.phone .sbar .icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.phone .sbar .icons svg {
  height: 11px;
  width: auto;
}

.hotspot-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px 2px 5px;
  margin-left: -8px;
  border-radius: 99px;
  background: var(--green);
  color: #fff;
}

.hotspot-pill svg {
  width: 13px;
  height: 13px;
}

.phone .content {
  position: relative;
  flex: 1;
  overflow: hidden;
  padding: 12px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 0 4px;
}

.app-head h5 {
  margin: 0;
  font-size: 27px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.app-head p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}

.app-head.center {
  align-items: center;
}

.app-head.center h5 {
  font-size: 16px;
  letter-spacing: -0.02em;
  text-align: center;
}

.done-link,
.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.app-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05), var(--edge);
}

.app-card h6 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-card h6 .note {
  margin-left: auto;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-2);
}

.app-hero {
  display: grid;
  place-items: center;
}

.mini-calc {
  width: 62%;
  padding: 11px 11px 0;
  border-radius: 20px 20px 14px 14px;
  background: linear-gradient(170deg, #fbfbfc, #dfe2e5);
  box-shadow: 0 16px 24px -12px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.mini-calc canvas {
  width: 100%;
  height: auto;
  border-radius: 5px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 4px #46514a, 0 0 0 5px #2c302d;
}

.mini-keys {
  display: flex;
  justify-content: space-between;
  margin: 12px -11px 0;
  padding: 8px 11px;
  background: #2b2a29;
}

.mini-keys i {
  width: 16%;
  height: 6px;
  border-radius: 4px;
  background: #eceef0;
}

.calc-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-row .id {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font: 700 11px/1 var(--mono);
  flex: none;
}

.calc-row b {
  display: block;
  font-size: 14px;
}

.calc-row span {
  font-size: 12px;
  color: var(--ink-2);
}

.calc-row time {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-3);
}

.row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.row-head .link {
  color: var(--blue);
  font-size: 13px;
}

.mini-solves {
  display: flex;
  gap: 10px;
  padding: 2px 2px 10px;
}

.mini-solve {
  --c: var(--red);
  flex: none;
  width: 128px;
  height: 148px;
  border-radius: 24px;
  background: var(--c);
  color: #fff;
  padding: 13px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 18px -8px color-mix(in srgb, var(--c) 80%, transparent);
}

.mini-solve.blue { --c: var(--blue); }
.mini-solve.teal { --c: var(--teal); }

.mini-solve b {
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.mini-solve .a {
  margin-top: auto;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
}

.mini-solve small {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.72);
}

.ios-toggle {
  position: relative;
  width: 42px;
  height: 26px;
  border-radius: 99px;
  background: #d8dbde;
  flex: none;
  transition: background 0.25s;
}

.ios-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1.2);
}

.ios-toggle.on {
  background: var(--green);
}

.ios-toggle.on::after {
  transform: translateX(16px);
}

.ios-row .ios-toggle {
  margin-left: auto;
}

.id-boxes {
  display: flex;
  gap: 8px;
}

.id-boxes span {
  flex: 1;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font: 700 22px/1 var(--mono);
  background: var(--bg);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  list-style: none;
}

.step {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
}

.step i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--blue) 35%, transparent);
  flex: none;
}

.step i::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2.4px solid #fff;
  border-bottom: 2.4px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

.app-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--green) 14%, var(--surface));
  color: #1f7a45;
  font-weight: 600;
  font-size: 14px;
}

.app-done svg {
  width: 18px;
  height: 18px;
}

.ios-group {
  display: flex;
  flex-direction: column;
}

.ios-head {
  padding: 0 14px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ios-sec {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--edge);
  overflow: hidden;
}

.ios-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  border-top: 1px solid var(--line-soft);
}

.ios-row:first-child {
  border-top: 0;
}

.ios-val {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-2);
  font-size: 12.5px;
}

.ios-val.ok {
  color: var(--green);
  font-weight: 600;
}

.ios-val svg,
.tick svg {
  width: 14px;
  height: 14px;
}

.tick {
  width: 16px;
  color: var(--blue);
  display: grid;
  place-items: center;
}

.ios-foot {
  padding: 7px 14px 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-3);
}

.plus-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--charcoal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* The lock screen. */
.phone.locked .screen {
  background:
    radial-gradient(120% 70% at 20% 10%, #f2b58f, transparent 60%),
    radial-gradient(120% 80% at 90% 90%, #7fa7d9, transparent 60%),
    #d9c9bd;
  color: #fff;
}

.lock {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 22px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.12);
}

.lock-date {
  font-size: 17px;
  font-weight: 600;
}

.lock-time {
  font-size: 88px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.lock-bottom {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 34px 34px;
}

.lock-bottom i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.lock-bottom svg {
  width: 20px;
  height: 20px;
}

/* ---------- Setup ---------- */

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 960px) {
  .setup-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
    margin: 0 auto;
  }
}

.setup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 26px 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card), var(--edge);
  overflow: hidden;
}

.setup-card .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font: 600 15px/1 var(--mono);
  box-shadow: 0 8px 16px -6px color-mix(in srgb, var(--red) 70%, transparent);
}

.setup-card h3 {
  margin: 6px 0 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.setup-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* A phone, cut off at the card's bottom edge. */
.phone-crop {
  --w: 290px;
  height: 380px;
  margin-top: auto;
  padding-top: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}

/* The calculator's screen in the setup card, between the text and the app. */
.lcd-chip {
  position: relative;
  z-index: 1;
  width: 64%;
  margin: 14px auto -40px;
  padding: 8px;
  border-radius: 14px;
  background: linear-gradient(160deg, #3a3d40, #212325);
  box-shadow: var(--shadow-card);
  transform: rotate(-2deg);
}

.phone-crop.short {
  height: 300px;
}

.lcd-chip canvas {
  width: 100%;
  height: auto;
  border-radius: 4px;
  image-rendering: pixelated;
}

.once {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card), var(--edge);
}

.once-phone {
  --w: 280px;
}

@media (max-width: 800px) {
  .once {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Lamp+ ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1000px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card), var(--edge);
}

.plan.own {
  background: var(--charcoal);
  color: #fff;
  --ink-2: rgba(255, 255, 255, 0.7);
}

.plan-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.plan-price b {
  display: block;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.plan-price span {
  font-size: 13px;
  color: var(--ink-2);
}

.plan p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  flex: 1;
}

.plan .btn {
  align-self: flex-start;
}

.plan.own .ticks li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14.5px;
}

/* ---------- Demo ---------- */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 900px) {
  .demo {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 28px;
  background: var(--bg-deep);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tabs button {
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.tabs button[aria-pressed='true'] {
  background: var(--surface-hi);
  color: var(--ink);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.finder {
  position: relative;
  padding: 18px;
  margin-top: 16px;
}

.finder .bracket {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 0 solid var(--red);
  transition: margin 0.5s cubic-bezier(0.3, 0.8, 0.3, 1.2);
}

.finder .b1 { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 14px; }
.finder .b2 { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 14px; }
.finder .b3 { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 14px; }
.finder .b4 { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 14px; }

.finder.focusing .bracket {
  margin: 10px;
}

.finder.focusing .sheet {
  animation: focus 1.6s ease-in-out;
}

@keyframes focus {
  0% { filter: blur(3px); }
  40% { filter: blur(0.5px); }
  60% { filter: blur(1.6px); }
  100% { filter: blur(0); }
}

.finder .flash {
  position: absolute;
  inset: 18px;
  border-radius: 20px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.finder.shot .flash {
  animation: flash 0.7s ease-out;
}

@keyframes flash {
  0% { opacity: 0.95; }
  100% { opacity: 0; }
}

.finder .af {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--surface-hi);
  box-shadow: var(--shadow-soft);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--red);
  opacity: 0;
  transition: opacity 0.3s;
}

.finder.focusing .af {
  opacity: 1;
}

.sheet {
  position: relative;
  background: #fbf9f4 repeating-linear-gradient(0deg, transparent 0 31px, rgba(31, 140, 244, 0.08) 31px 32px);
  border-radius: 20px;
  padding: 24px 24px 26px;
  color: #26231f;
  font-family: var(--serif);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 24px 40px -20px rgba(24, 30, 36, 0.3);
  overflow: hidden;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e9e4da;
  font: 600 11px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9b958c;
}

.sheet-q {
  display: flex;
  gap: 10px;
  font-size: 21px;
  line-height: 1.35;
}

.sheet-q b {
  font-weight: 600;
}

.sheet-q p {
  margin: 0;
}

.sheet .choices {
  list-style: none;
  padding: 0 0 0 26px;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 19px;
}

.sheet .choices b {
  font-weight: 600;
  margin-right: 8px;
}

.sheet .answer-lines {
  padding: 18px 0 0 26px;
  display: grid;
  gap: 22px;
}

.sheet .answer-lines i {
  height: 1px;
  background: #d8d2c6;
}

.calc-face {
  padding: 22px 22px 26px;
  border-radius: 34px 34px 26px 26px;
  background: linear-gradient(170deg, #fbfbfc, #dde0e3);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.calc-brand {
  margin: 0 0 14px 4px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #6a7075;
}

.calc-face canvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 8px #46514a, 0 0 0 10px #2c302d;
}

.demo-controls {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 26px 6px 0;
}

.demo-status {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pager {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 500;
}

.pager[hidden] {
  display: none;
}

/* ---------- Order ---------- */

.order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(20px, 4vw, 48px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card), var(--edge);
}

@media (max-width: 900px) {
  .order {
    grid-template-columns: minmax(0, 1fr);
  }
}

.gallery {
  display: grid;
  gap: 12px;
}

@media (min-width: 901px) {
  .order-media {
    position: sticky;
    top: 96px;
  }
}

.gallery-main {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: var(--shadow-card);
}

.gallery-main img,
.gallery-main video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.16s;
}

.gallery-main [hidden] {
  display: none;
}

/* The video's thumbnail: a play mark over its poster. */
.thumb-video {
  position: relative;
}

.thumb-video::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%231c1e20'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.gallery-main img.fading {
  opacity: 0;
}

.gallery-note {
  order: 3;
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.gallery-thumbs button {
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  opacity: 0.6;
  box-shadow: var(--edge);
  transition: opacity 0.2s, box-shadow 0.2s;
}

.gallery-thumbs button:hover {
  opacity: 0.85;
}

.gallery-thumbs button[aria-pressed='true'] {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-info {
  display: grid;
  gap: 30px;
  align-content: start;
}

.order-head {
  display: grid;
  gap: 12px;
}

.order-head .lead {
  margin: 0;
}

/* ---- Price: the regular price struck through in red, as big as the drop
   price so the discount reads at a glance; shipping and the drop below. ---- */
.price-block {
  display: grid;
  gap: 10px;
  container-type: inline-size;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

.price b,
.price s {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price s,
.was {
  color: var(--ink-3);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-decoration: line-through var(--red) 0.08em;
  font-variant-numeric: tabular-nums;
}

.price-sub {
  display: flex;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.price-sub .ship {
  font-weight: 600;
  color: var(--ink);
}

/* The drop on one strip: its name and savings, then the countdown. */
.drop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 6px 14px 6px 6px;
  border-radius: 16px;
  background: #fbe9d4;
  color: #9a5410;
}

.drop:not(:has(*)) {
  display: none;
}

.drop .drop-badge {
  padding: 0;
  background: none;
}

.drop .countdown {
  margin-left: auto;
}

/* Too narrow for one line: the countdown gets its own, under the savings. */
@container (max-width: 430px) {
  .drop {
    padding: 8px 14px 10px 8px;
  }

  .drop .countdown {
    flex-basis: 100%;
    margin-left: 6px;
  }
}

/* "Launch Drop · Save $50 · ends Nov 12" */
.drop-badge {
  align-self: flex-start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 7px 14px 7px 7px;
  border-radius: 18px; /* stays tidy when it wraps on a phone */
  background: #fbe9d4;
  color: #9a5410;
  font-size: 13px;
  font-weight: 600;
}

.drop-badge b {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
}

/* The countdown: tiles by default, one line of text when compact. */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
}

.countdown-label {
  margin-right: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.countdown-unit {
  display: grid;
  justify-items: center;
  min-width: 44px;
  padding: 6px 6px 5px;
  border-radius: 12px;
  background: var(--surface-hi);
  box-shadow: var(--edge), 0 1px 3px rgba(24, 30, 36, 0.08);
  line-height: 1;
}

.countdown-unit b {
  font: 600 17px/1 var(--mono);
  font-variant-numeric: tabular-nums;
}

.countdown-unit i {
  margin-top: 3px;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

[data-countdown='compact'] {
  gap: 5px;
  color: inherit;
}

[data-countdown='compact'] .countdown-label {
  margin-right: 2px;
  color: inherit;
  font-weight: 500;
}

[data-countdown='compact'] .countdown-unit {
  display: inline;
  min-width: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

[data-countdown='compact'] .countdown-unit b {
  font-size: 13px;
}

[data-countdown='compact'] .countdown-unit i {
  margin: 0;
  font: 500 13px/1 var(--mono);
  text-transform: none;
  letter-spacing: 0;
  color: inherit;
  opacity: 0.7;
}

/* ---- Options: model, shipping and batteries, in one outlined style. ---- */
.options {
  display: grid;
  gap: 22px;
}

.opt {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.opt-label {
  float: left; /* lets a <legend> sit in the grid like a heading */
  width: 100%;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.opt-label span {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-2);
}

/* Every choice: an outlined row that fills with blue once picked. */
.model,
.express,
#battery-options {
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.models-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.model {
  --glow: var(--blue);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px 10px 10px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
}

.model input,
.addon input,
.express input,
.agree input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.model:has(input:checked),
.addon:has(input:checked) {
  background: color-mix(in srgb, var(--blue) 7%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--blue) 55%, transparent);
}

.model:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.model img {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  object-fit: cover;
}

.model-text {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}

.model-text b {
  white-space: nowrap;
}

.model-text > span {
  font-size: 13px;
  color: var(--ink-2);
}

/* CamLamp Ultra: a small dark screen with the pixel mark, a rainbow edge that
   slowly turns and a soft glow, like the Ultra page's button. */
@property --ultra-turn {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.ultra-tile {
  --glow: #b45cff;
  isolation: isolate;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border: 1.5px solid transparent;
  background:
    radial-gradient(rgba(255, 255, 255, 0.07) 0.7px, transparent 1px) 0 0 / 5px 5px padding-box,
    linear-gradient(#0e0e11, #0e0e11) padding-box,
    conic-gradient(from var(--ultra-turn), #ff5f45, #ffb03a, #3ad6a0, #3a8bff, #b45cff, #ff5f45) border-box;
  box-shadow: none;
  color: #fff;
  animation: ultra-turn 6s linear infinite;
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1.4);
}

.ultra-tile::before {
  content: '';
  position: absolute;
  inset: 6px 10px;
  z-index: -1;
  border-radius: inherit;
  background: var(--ultra);
  filter: blur(14px);
  opacity: 0.35;
  transition: opacity 0.3s;
}

.ultra-tile:hover {
  transform: translateY(-1px);
}

.ultra-tile:hover::before {
  opacity: 0.75;
}

.ultra-tile:active {
  transform: scale(0.98);
}

@keyframes ultra-turn {
  to {
    --ultra-turn: 360deg;
  }
}

.ultra-tile-mark {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.ultra-tile-mark svg {
  display: block;
}

.ultra-tile-mark span:first-child svg {
  height: 6px;
}

.ultra-tile-mark span:last-child svg {
  height: 17px;
}

/* "Coming 2027", turning into "I’m interested →" on hover. */
.ultra-tile-soon {
  display: grid;
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.ultra-tile-soon span {
  grid-area: 1 / 1;
  justify-self: end;
  padding: 5px 10px;
  border-radius: 999px;
  transition: opacity 0.2s, transform 0.2s;
}

.ultra-tile-soon span:first-child {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.ultra-tile-soon span:last-child {
  background: #fff;
  color: #0e0e11;
  opacity: 0;
  transform: translateY(3px);
}

.ultra-tile:hover .ultra-tile-soon span:first-child {
  opacity: 0;
  transform: translateY(-3px);
}

.ultra-tile:hover .ultra-tile-soon span:last-child {
  opacity: 1;
  transform: none;
}

.ultra-tile:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ultra-tile {
    animation: none;
  }
}

@media (max-width: 520px) {
  .model {
    gap: 10px;
    padding: 8px 10px 8px 8px;
  }

  .model img {
    width: 36px;
    height: 36px;
  }

  .model-text b {
    white-space: normal;
  }

  /* The Ultra tile stacks its mark over "Coming 2027". */
  .ultra-tile {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
  }

  .ultra-tile-soon span {
    justify-self: start;
  }
}

.express {
  --glow: var(--green);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  cursor: pointer;
  isolation: isolate;
  transition: background 0.4s, box-shadow 0.4s;
}

/* Express on: the card picks up a green shade and a light sweeps across it. */
.express::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.8) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%;
  background-position: 100% 0;
  opacity: 0;
}

.express-on .express {
  background: linear-gradient(120deg, color-mix(in srgb, var(--green) 16%, var(--bg)), color-mix(in srgb, var(--blue) 10%, var(--bg)));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--green) 45%, transparent),
    0 12px 28px -14px color-mix(in srgb, var(--green) 70%, transparent);
}

.express-on .express::before {
  animation: sweep 0.9s ease-out;
}

@keyframes sweep {
  from {
    opacity: 1;
    background-position: 100% 0;
  }

  to {
    opacity: 1;
    background-position: 0 0;
  }
}


.express input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.express input:checked + .ios-toggle {
  background: var(--green);
}

.express input:checked + .ios-toggle::after {
  transform: translateX(16px);
}

.express input:focus-visible + .ios-toggle {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.express-text,
.addon-text {
  display: grid;
  line-height: 1.3;
}

.express-text span,
.addon-text span {
  font-size: 13px;
  color: var(--ink-2);
}

/* Battery add-ons: one outlined list, a hairline between rows. */
#battery-options {
  display: grid;
  overflow: hidden;
}

.addon {
  --glow: var(--blue);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
}

.addon + .addon {
  border-top: 1px solid var(--line-soft);
}

.addon:first-child {
  border-radius: 18px 18px 0 0;
}

.addon:last-child {
  border-radius: 0 0 18px 18px;
}

.addon .radio {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-hi);
  box-shadow: inset 0 0 0 1.5px var(--ink-3);
  transition: box-shadow 0.2s;
}

.addon input:checked ~ .radio {
  box-shadow: inset 0 0 0 6px var(--blue);
}

.addon input:focus-visible ~ .radio {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.addon .rec {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--green) 16%, transparent);
  color: #1f7a45;
  font: 600 11px/1.5 var(--font);
  vertical-align: 2px;
}

.addon-price {
  margin-left: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---- Checkout: the agreement, the button and what's reassuring. ---- */
.checkout {
  display: grid;
  gap: 14px;
}

/* Agreeing to the terms and the exam notice, before ordering. */
.agree {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
}

.agree b {
  color: var(--red-deep);
}

.agree a {
  color: var(--blue);
  font-weight: 500;
}

.agree .check {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--surface-hi);
  box-shadow: inset 0 0 0 1.5px var(--ink-3);
  transition: background 0.2s, box-shadow 0.2s;
}

.agree input:checked + .check {
  background: var(--blue);
  box-shadow: none;
}

.agree input:checked + .check::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.agree input:focus-visible + .check {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.agree.nudge {
  animation: nudge 0.45s ease;
}

@keyframes nudge {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.order-btn.is-locked {
  opacity: 0.55;
  box-shadow: none;
}

.order-btn {
  --glow: var(--blue);
  width: 100%;
  min-height: 60px;
  font-size: 17px;
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1.4), box-shadow 0.4s, background 0.4s;
}

.express-on .order-btn {
  background: linear-gradient(110deg, var(--blue), #18a87e);
  box-shadow: 0 14px 30px -10px color-mix(in srgb, #18a87e 70%, transparent);
}

/* A glow that runs out from the edge of whatever was clicked (order.js). */
.glow-click {
  position: relative;
}

.glow-click::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}

.glow-click.glowing::after {
  animation: edge-glow 0.7s ease-out;
}

@keyframes edge-glow {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--glow) 70%, transparent), 0 0 18px 2px color-mix(in srgb, var(--glow) 60%, transparent),
      inset 0 0 0 2px rgba(255, 255, 255, 0.85), inset 0 0 18px color-mix(in srgb, var(--glow) 45%, transparent);
  }

  100% {
    opacity: 0;
    box-shadow: 0 0 0 14px transparent, 0 0 40px 14px transparent, inset 0 0 0 2px transparent, inset 0 0 18px transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow-click.glowing::after,
  .express-on .express::before {
    animation: none;
  }
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--ink-2);
}

.trust > * {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust svg {
  width: 15px;
  height: 15px;
}

/* ---- After checkout: eBay, what you need and the small print. ---- */
.ebay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ebay-btn {
  --glow: #0064d2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line);
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1.4);
}

.ebay-btn:hover {
  transform: translateY(-1px);
}

.ebay-btn:active {
  transform: scale(0.96);
}

/* No listing yet: grayed out, with "Coming soon" under "Prefer eBay?". */
.ebay > span {
  display: grid;
}

.ebay small {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}

.ebay-btn.is-off {
  cursor: default;
  opacity: 0.55;
  filter: grayscale(1);
  box-shadow: inset 0 0 0 1px var(--line);
}

.ebay-btn.is-off:hover,
.ebay-btn.is-off:active {
  transform: none;
}

.ebay-btn.is-off.glowing::after {
  animation: none;
}

/* eBay's wordmark, in its four colours. */
.ebay-logo {
  display: inline-flex;
  font: 700 24px/1 Helvetica, Arial, sans-serif;
  letter-spacing: -0.09em;
  margin-top: -2px;
}

.ebay-logo b:nth-child(1) { color: #e53238; }
.ebay-logo b:nth-child(2) { color: #0064d2; }
.ebay-logo b:nth-child(3) { color: #f5af02; }
.ebay-logo b:nth-child(4) { color: #86b817; }

.needs {
  display: grid;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.needs h3 {
  margin: 0;
  font-size: 16px;
}

.order-page {
  padding-top: clamp(32px, 5vw, 64px);
}

/* The 404 page: the calculator's error screen above the message. */
.lost {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  text-align: center;
}

.lost .stack {
  justify-items: center;
}

.lost .btn-row {
  justify-content: center;
}

.lost-lcd {
  width: min(340px, 78vw);
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(160deg, #3a3d40, #212325);
  box-shadow: var(--shadow-card);
}

.lost-lcd canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  image-rendering: pixelated;
}

/* The pre-order band on the CamLamp page. */
.buy-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card), var(--edge);
}

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

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 900px) {
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

details.faq {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-soft), var(--edge);
  padding: 0 22px;
}

details.faq + details.faq {
  margin-top: 10px;
}

details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

details.faq summary::after {
  content: '+';
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-2);
  transition: transform 0.25s;
}

details.faq[open] summary::after {
  transform: rotate(45deg);
}

details.faq .a {
  padding: 0 0 20px;
  color: var(--ink-2);
  font-size: 15px;
}

details.faq .a p {
  margin: 0;
}

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

.footer {
  padding-top: 40px;
  padding-bottom: 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 0 8px 36px;
}

.footer-logo svg {
  height: 18px;
  width: auto;
  color: var(--ink);
}

.footer-grid h6 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer-grid a {
  display: block;
  padding: 4px 0;
  color: var(--ink-2);
  font-size: 15px;
}

.footer-grid a:hover {
  color: var(--ink);
}

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

  .footer-grid > :first-child {
    grid-column: span 2;
  }
}

.caption-bar {
  --c: var(--black);
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  padding: 18px clamp(20px, 4vw, 54px);
  border-radius: 22px;
  background: var(--c);
  color: #fff;
}

.caption-bar.ultra {
  background: var(--ultra);
  color: #0c0c0e;
}

.caption-bar .year {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  padding-right: clamp(10px, 1.4vw, 18px);
  border-right: 1.5px solid currentColor;
}

.caption-bar .date {
  font-size: 15px;
  line-height: 1.1;
  font-weight: 600;
  margin-left: calc(-1 * clamp(4px, 1.6vw, 24px));
}

.caption-bar .name {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.caption-bar .sig {
  margin-left: auto;
}

.caption-bar .sig svg {
  height: 16px;
  width: auto;
}

@media (max-width: 520px) {
  .caption-bar .name {
    display: none;
  }
}

.legal {
  margin: 16px 8px 0;
  font-size: 12px;
  color: var(--ink-3);
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Reveal on scroll ---------- */

/* Fade-ins. site.js hides only what starts below the screen (.waiting) and
   fades it in on scroll, so what's on screen at load is never hidden: not for
   people, and not for search engines, which render without scrolling. */
.reveal {
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.reveal.waiting {
  opacity: 0;
  transform: translateY(26px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.waiting {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

}

/* ---------- Ultra ---------- */

.ultra-hero {
  position: relative;
  min-height: 100vh;
  margin-top: -76px;
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.ultra-field {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  max-width: none;
  z-index: -1;
  filter: blur(46px) saturate(1.4);
  opacity: 0.5;
}

.ultra-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 50% at 50% 40%, transparent, var(--bg) 85%);
}

.ultra-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}

.ultra-mark {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2vw, 22px);
}

.ultra-mark .mark-small svg {
  height: clamp(16px, 2vw, 24px);
  width: auto;
}

.ultra-mark .mark-small svg rect {
  fill: var(--ink);
}

.ultra-mark .mark-big svg {
  height: clamp(90px, 15vw, 190px);
  width: auto;
  filter: drop-shadow(0 20px 50px rgba(180, 92, 255, 0.35));
}

.ultra-tag {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.ultra-tag span {
  background: var(--ultra);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ultra-device {
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 1 / 2.05;
  margin: 18px 0 8px;
  padding: 20px;
  border-radius: 46px 46px 64px 64px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 60px 120px -40px rgba(58, 139, 255, 0.45);
}

.ultra-screen {
  position: relative;
  height: 38%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05);
}

.ultra-screen canvas {
  width: 100%;
  height: 100%;
  filter: blur(5px) saturate(1.3);
  transform: scale(1.1);
}

.ultra-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), transparent 50%);
}

.ultra-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
  filter: blur(1.5px);
}

.ultra-keys i {
  height: 26px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.waitlist {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card), var(--edge);
}

.waitlist-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

.waitlist-form input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  outline: none;
}

.waitlist-form input:focus {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.waitlist-form.done input,
.waitlist-form.done button {
  opacity: 0.5;
  pointer-events: none;
}

.discord-row {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.btn-discord {
  background: #5865f2;
  color: #fff;
}

.btn-discord svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 520px) {
  .waitlist-form {
    flex-direction: column;
  }
}

/* ---------- Legal pages ---------- */

.legal-page {
  padding-top: clamp(40px, 6vw, 72px);
}

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  font-size: 16.5px;
  line-height: 1.65;
}

.legal-doc h1 {
  margin-top: 4px;
}

.legal-doc h2 {
  margin: 24px 0 0;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.legal-doc p,
.legal-doc ul {
  margin: 0;
  color: var(--ink-2);
}

.legal-doc ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-doc b {
  color: var(--ink);
}

.legal-doc a {
  color: var(--blue);
}

/* A business detail that still needs filling in (STORE.business). */
mark.todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--orange) 28%, transparent);
  color: var(--ink);
}

/* The exam notice, where it needs to be seen. */
.notice {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--red) 9%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 30%, transparent);
  font-size: 14.5px;
  line-height: 1.5;
}

.notice b {
  color: var(--red-deep);
}

.notice p {
  margin: 0;
  color: var(--ink-2);
}

.exam-line b {
  color: var(--ink-2);
  font-weight: 600;
}

/* ---------- Configure (/configure) ----------
   The iPhone app's Configure screen for computers: the calculator on the
   left showing its own screen, the settings cards on the right. */






/* The pixel CONFIGURE mark, like the app's wordmark headers. */




.cfg-connected {
  display: grid;
  gap: 18px;
}


.cfg-connected[hidden] {
  display: none;
}






.cfg-help summary {
  cursor: pointer;
  width: max-content;
  font-size: 13px;
  color: var(--ink-3);
  list-style: none;
}

.cfg-help summary::-webkit-details-marker {
  display: none;
}

.cfg-help summary:hover,
.cfg-help[open] summary {
  color: var(--ink-2);
}

.cfg-help ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-3);
}

.cfg-msg:empty {
  display: none;
}

/* Adding a network: the app's checklist (ProgressSteps.swift). */
.cfg-progress {
  list-style: none;
  margin: 2px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cfg-progress li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
}

.cfg-progress li.pending {
  color: var(--ink-2);
}

.cfg-progress li.running {
  font-weight: 600;
}

.cfg-step {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  transition: background 0.25s, box-shadow 0.25s;
}

.cfg-step svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.done .cfg-step {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--blue) 45%, transparent);
}

.failed .cfg-step {
  background: var(--red);
  color: #fff;
}

.running .cfg-step {
  background: var(--surface);
  box-shadow: inset 0 0 0 2.5px color-mix(in srgb, var(--blue) 25%, transparent);
  position: relative;
}

.running .cfg-step::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--blue);
  animation: cfg-spin 0.8s linear infinite;
}

@keyframes cfg-spin {
  to {
    transform: rotate(1turn);
  }
}

.cfg-msg.bad {
  color: var(--red-deep);
}

.cfg-slots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cfg-slot {
  border-radius: 22px;
  background: var(--surface-hi);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: box-shadow 0.2s;
}

.cfg-slot.open {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.cfg-slot-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  text-align: left;
}

.cfg-slot-head b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cfg-slot.empty .cfg-slot-head b {
  font-weight: 500;
  color: var(--ink-3);
}

.cfg-slot-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
}

.cfg-slot.empty .cfg-slot-icon {
  background: var(--bg-deep);
  color: var(--ink-3);
}

.cfg-slot-icon svg,
.cfg-chev svg {
  width: 18px;
  height: 18px;
}

.cfg-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-deep);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.cfg-chev {
  color: var(--ink-3);
  transition: transform 0.2s;
}

.cfg-slot.open .cfg-chev {
  transform: rotate(90deg);
}

.cfg-editor {
  display: grid;
  gap: 12px;
  padding: 4px 16px 18px;
}

.cfg-kind {
  justify-self: start;
}

.cfg-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.cfg-field input,
.cfg-field select {
  height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  box-shadow: inset 0 0 0 1px var(--line);
  outline: none;
  appearance: none;
}

.cfg-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.cfg-field input:focus,
.cfg-field select:focus {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.cfg-hint[hidden] {
  display: none;
}

.cfg-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 0;
  font-size: 15px;
}

.cfg-facts dt {
  color: var(--ink-2);
}

.cfg-facts dd {
  margin: 0;
}

.cfg-update {
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
  font-weight: 600;
}

.cfg-update[hidden] {
  display: none;
}


/* Configure is a computer page: its button stays off phones and tablets. */
@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  .nav .nav-configure {
    display: none;
  }
}

/* ---------- CamLamp 2.0 ---------- */

/* "New 2.0" beside the nav's wordmark. */
.nav-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  margin-left: 10px;
  padding: 0 10px 0 3px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  font: 600 12.5px/1 var(--font);
  color: var(--ink);
  transition: background 0.2s;
}

.nav-new:hover {
  background: var(--surface-hi);
}

.nav-new b,
.chip-new em,
.new-tag b {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 600 10.5px/1 var(--font);
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 360px) {
  .nav-new span {
    display: none;
  }
}

.chip-new {
  padding-left: 5px;
}

.new-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--edge), 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 14px;
  font-weight: 600;
}

.new-tag b {
  font-size: 11.5px;
  padding: 5px 10px;
}

/* The app's Tether pill (phone.js tetherPillHTML), in iOS points of --u. */
.tether-pill {
  --u: 1px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: calc(12 * var(--u));
  min-height: calc(58 * var(--u));
  padding: calc(8 * var(--u)) calc(8 * var(--u)) calc(8 * var(--u)) calc(20 * var(--u));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 calc(10 * var(--u)) calc(20 * var(--u)) rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* The red glow behind it while tethered. */
.tether-pill::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 calc(10 * var(--u));
  border-radius: inherit;
  background: var(--red);
  filter: blur(calc(18 * var(--u)));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tether-pill[data-tether='tethered']::before {
  opacity: 0.55;
}

.tether-word svg {
  height: calc(20 * var(--u));
  width: auto;
  color: var(--ink-3);
  transition: color 0.4s ease;
}

.tether-pill[data-tether='on'] .tether-word svg {
  color: var(--ink);
}

.tether-pill[data-tether='tethered'] .tether-word svg {
  color: var(--red);
}

.tether-btn {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--u));
  height: calc(46 * var(--u));
  margin-left: auto;
  padding: 0 calc(18 * var(--u)) 0 calc(14 * var(--u));
  border-radius: 999px;
  background: var(--charcoal);
  color: #fff;
  font: 600 calc(15 * var(--u)) / 1 var(--font);
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.tether-btn svg {
  width: calc(16 * var(--u));
  height: calc(16 * var(--u));
  stroke-width: 2.4;
}

.tether-btn .off-label,
.tether-pill[data-tether='off'] .tether-btn .on-label {
  display: none;
}

.tether-pill[data-tether='off'] .tether-btn .off-label {
  display: inline;
}

.tether-pill[data-tether='off'] .tether-btn {
  background: var(--bg);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* In the phone mocks it floats along the bottom, like the app's. */
.phone .tether-pill {
  --u: 0.72px;
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 13px;
  z-index: 4;
}

/* The pinned scene (tether.js): the scroll runs past while the stage stays. */
.tether {
  position: relative;
  padding-top: clamp(64px, 10vw, 128px);
}

.tether-intro {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.tether-intro .lead {
  max-width: 30em;
}

.tether-scroll {
  height: 300vh;
}

.tether-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 90px var(--gutter) var(--gutter);
}

.tether-stage {
  position: relative;
  isolation: isolate;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  border-radius: var(--r-xl);
  background: radial-gradient(120% 90% at 50% 40%, #1d1b1a, #121110);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  color: #fff;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.tether-splash {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  max-width: none;
}

.tether-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 28px clamp(20px, 4vw, 56px) 0;
  min-height: 0;
}

.tether-calc {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: clamp(220px, 24vw, 320px);
}

.tether-calc .calc-face {
  width: 100%;
  padding: 18px 18px 22px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

/* "On its own · asking Claude" or "Tethered · on your iPhone". */
.tether-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.tether-mode i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: background 0.4s, box-shadow 0.4s;
}

.tether-mode [data-mode='tethered'],
.tether-stage[data-state='tethered'] .tether-mode [data-mode='edge'],
.tether-stage[data-state='fast'] .tether-mode [data-mode='edge'] {
  display: none;
}

.tether-stage[data-state='tethered'] .tether-mode [data-mode='tethered'],
.tether-stage[data-state='fast'] .tether-mode [data-mode='tethered'] {
  display: inline;
}

.tether-stage[data-state='tethered'] .tether-mode i,
.tether-stage[data-state='fast'] .tether-mode i {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(235, 91, 67, 0.25);
}

/* The link: pixels between the calculator and the pill. */
.tether-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 46px;
}

.tether-link i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.3s, box-shadow 0.3s;
}

/* Looking for the calculator: pixels run from the phone towards it. */
.tether-stage[data-state='linking'] .tether-link i {
  animation: tether-seek 0.9s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.1s);
}

.tether-link i:nth-child(1) { --i: 0; }
.tether-link i:nth-child(2) { --i: 1; }
.tether-link i:nth-child(3) { --i: 2; }
.tether-link i:nth-child(4) { --i: 3; }
.tether-link i:nth-child(5) { --i: 4; }
.tether-link i:nth-child(6) { --i: 5; }
.tether-link i:nth-child(7) { --i: 6; }

@keyframes tether-seek {
  0%, 100% { background: rgba(255, 255, 255, 0.14); }
  50% { background: rgba(255, 255, 255, 0.8); }
}

.tether-stage[data-state='tethered'] .tether-link i,
.tether-stage[data-state='fast'] .tether-link i {
  background: var(--red);
  box-shadow: 0 0 10px rgba(235, 91, 67, 0.7);
}

.tether-pill-wrap {
  margin-bottom: 46px;
}

.tether-pill-wrap .tether-pill {
  --u: 1.25px;
}

/* Turning Tether on: the button presses in. */
.tether-stage[data-state='linking'] .tether-btn {
  animation: tether-press 0.45s cubic-bezier(0.3, 0.7, 0.4, 1.4);
}

@keyframes tether-press {
  0% { transform: scale(1); }
  35% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Captions: one at a time, at the bottom of the stage. */
.tether-captions {
  list-style: none;
  margin: 0;
  padding: 0 clamp(24px, 4vw, 56px) clamp(28px, 4vw, 48px);
  display: grid;
}

.tether-captions li {
  grid-area: 1 / 1;
  max-width: 30em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tether-stage[data-step='edge'] li[data-step='edge'],
.tether-stage[data-step='tethered'] li[data-step='tethered'],
.tether-stage[data-step='fast'] li[data-step='fast'] {
  opacity: 1;
  transform: none;
}

.tether-captions h3 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.tether-captions p {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.tether-dots {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(32px, 4vw, 52px);
  display: flex;
  gap: 8px;
}

.tether-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.4s ease, background 0.4s ease;
}

.tether-stage[data-step='edge'] .tether-dots [data-step='edge'],
.tether-stage[data-step='tethered'] .tether-dots [data-step='tethered'],
.tether-stage[data-step='fast'] .tether-dots [data-step='fast'] {
  width: 26px;
  background: #fff;
}

@media (max-width: 760px) {
  .tether-sticky {
    padding-top: 82px;
  }

  .tether-scene {
    flex-direction: column;
    gap: 10px;
    padding-top: 22px;
  }

  .tether-calc {
    width: min(62vw, 250px);
    gap: 12px;
  }

  .tether-calc .calc-face {
    padding: 12px 12px 14px;
    border-radius: 24px 24px 18px 18px;
  }

  .tether-calc .calc-brand {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .tether-link {
    flex-direction: column;
    gap: 5px;
    margin: 0;
  }

  .tether-link i {
    width: 6px;
    height: 6px;
  }

  .tether-pill-wrap {
    margin: 0;
  }

  .tether-pill-wrap .tether-pill {
    --u: 1px;
  }

  .tether-dots {
    top: 22px;
    bottom: auto;
  }
}

@media (max-height: 700px) and (max-width: 760px) {
  .tether-link {
    display: none;
  }

  .tether-calc {
    width: min(52vw, 200px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tether-captions li,
  .tether-stage[data-state='linking'] .tether-link i,
  .tether-stage[data-state='linking'] .tether-btn {
    transition: none;
    animation: none;
  }
}

/* The two ways to run, under the scene. */
.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(40px, 6vw, 72px);
}

@media (max-width: 860px) {
  .modes {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mode-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card), var(--edge);
  overflow: hidden;
}

.mode-card h3 {
  margin: 8px 0 0;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.mode-card > p {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 28em;
}

.mode-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
}

.mode-icon svg {
  width: 22px;
  height: 22px;
}

.mode-mark {
  display: flex;
  align-items: center;
  height: 48px;
}

.mode-mark svg {
  height: 22px;
  width: auto;
  color: var(--red);
  filter: drop-shadow(0 0 10px rgba(235, 91, 67, 0.55));
}

.mode-card.tethered {
  background: radial-gradient(90% 70% at 85% 0%, rgba(235, 91, 67, 0.22), transparent 70%), #171615;
  box-shadow: var(--shadow-card);
  color: #fff;
}

.mode-card.tethered > p,
.mode-card.tethered .ticks li {
  color: rgba(255, 255, 255, 0.62);
}

.mode-card.tethered .ticks li b {
  color: #fff;
}

/* Configure: the app or the web panel. */
.anywhere {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 860px) {
  .anywhere {
    grid-template-columns: minmax(0, 1fr);
  }
}

.anywhere-calc {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.anywhere-calc .calc-face {
  width: 100%;
}

.anywhere-ways {
  display: grid;
  gap: 14px;
}

.way {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-soft), var(--edge);
}

.way h3 {
  margin: 2px 0 4px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.way p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.way-icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
}

.way-icon svg {
  width: 21px;
  height: 21px;
}

/* The web panel's launcher: its pixel mark and a button, like the app's pill. */
.launch {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  padding: 9px 9px 9px 26px;
  border-radius: 999px;
  background: var(--surface-hi);
  box-shadow: var(--shadow-card), var(--edge);
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1.4), box-shadow 0.25s;
}

.launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -14px color-mix(in srgb, var(--blue) 45%, transparent), var(--edge);
}

.launch:active {
  transform: scale(0.98);
}

.launch-mark svg {
  height: 17px;
  width: auto;
  color: var(--blue);
}

.launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  margin-left: auto;
  padding: 0 22px 0 24px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.launch-btn i {
  display: grid;
}

.launch-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.launch:hover .launch-btn svg {
  transform: translateX(3px);
}

@media (max-width: 420px) {
  .launch {
    padding-left: 18px;
  }

  .launch-mark svg {
    height: 12px;
  }

  .launch-btn {
    padding: 0 16px 0 18px;
    font-size: 15px;
  }
}

/* Order: Express ships without batteries. */
.addon:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- The hero (hero.js) ---------- */

/* The track is how far the page scrolls while the stage stays pinned:
   hero.js turns that distance into the assembly's progress. */
.hero {
  position: relative;
  margin-top: -64px; /* under the nav */
  background: var(--bg);
}

.hero-track {
  height: 420vh;
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

/* The dot matrix, fading out towards the top so the words sit on stone. */
.hero-pixels {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  max-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 6%, #000 42%);
  mask-image: linear-gradient(to bottom, transparent 6%, #000 42%);
}

/* At first: the words, centred near the top. */
.hero-copy {
  position: absolute;
  z-index: 2;
  top: calc(64px + clamp(40px, 8vh, 96px));
  left: var(--gutter);
  right: var(--gutter);
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
  will-change: transform, opacity;
}

.hero-title {
  margin: 0;
  font-size: clamp(54px, 9.4vw, 152px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.hero-title span {
  color: var(--red);
}

.hero-lead {
  max-width: 32em;
  margin: 0;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  text-wrap: balance;
}

.hero-copy .btn-row {
  justify-content: center;
  margin-top: 6px;
}

/* At the end: the calculator in the middle, two tiles either side. */
.hero-bento {
  position: absolute;
  inset: calc(64px + 20px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 0.9fr) minmax(0, 0.72fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: 'camera calc tether' 'alone calc ui';
  gap: 16px 28px;
  max-width: 1180px;
  margin: 0 auto;
  /* Depth for the tiles swinging round the calculator. */
  perspective: 1600px;
}

.tile-camera { grid-area: camera; }
.tile-alone { grid-area: alone; }
.tile-tether { grid-area: tether; }
.tile-ui { grid-area: ui; }

/* Shorter than their rows: each pair sits together beside the calculator. */
.hero-bento .tile {
  height: min(100%, clamp(220px, 34vh, 300px));
}

.tile-camera,
.tile-tether {
  align-self: end;
}

.tile-alone,
.tile-ui {
  align-self: start;
}

/* The calculator's cell. Its photo has room around the body for the shadow:
   the body is 83% of its height from 8.4% down, so the photo is sized and
   placed to centre the body in the cell at 88% of its height. */
.hero-slot {
  grid-area: calc;
  position: relative;
  container-type: size;
  z-index: 1;
}

.hero-calc {
  --h: 106cqh;
  position: absolute;
  top: -3cqh;
  left: calc(50% - var(--h) * 1400 / 2600 / 2);
  width: calc(var(--h) * 1400 / 2600);
  height: var(--h);
  transform-origin: 0 0;
  will-change: transform;
}

.hero-calc img {
  display: block;
  width: 100%;
  height: 100%;
  /* The wall's shadow, faded out before the photo's bottom edge. */
  -webkit-mask-image: linear-gradient(to bottom, #000 91%, transparent);
  mask-image: linear-gradient(to bottom, #000 91%, transparent);
}

/* The live screen, where the render's screen is (studio.js prints the rect). */
.hero-lcd {
  position: absolute;
  left: 27.31%;
  top: 16.06%;
  width: 45.34%;
  height: 16.26%;
  max-width: none;
  mix-blend-mode: multiply;
  opacity: 0.92;
}

/* While the calculator still runs off the bottom, it fades into the stone. */
.hero-stage::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(120px, 18vh, 200px);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg));
  opacity: var(--fade, 1);
  pointer-events: none;
  z-index: 1;
}

/* ---- The tiles ---- */

.tile {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: clamp(18px, 1.6vw, 24px);
  border-radius: 26px;
  background: var(--surface-hi);
  box-shadow: 0 1px 2px rgba(24, 30, 36, 0.05), 0 20px 40px -24px rgba(24, 30, 36, 0.22), inset 0 0 0 1px rgba(24, 30, 36, 0.05);
  overflow: hidden;
  will-change: transform, opacity;
}

.tile-text {
  position: relative;
  display: grid;
  gap: 6px;
}

.tile-eyebrow {
  font: 600 11.5px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.tile h2 {
  margin: 0;
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.tile p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 24em;
}

/* The camera: the back of CamLamp, its foot off, under the words. */
.tile-camera {
  background: #101113;
  color: #fff;
}

.tile-camera img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  filter: brightness(0.92) contrast(1.05);
}

.tile-camera::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 11, 12, 0.88), rgba(10, 11, 12, 0.2) 55%, transparent);
}

.tile-camera .tile-text {
  z-index: 1;
}

.tile-camera p {
  color: rgba(255, 255, 255, 0.7);
}

/* On its own: Wi-Fi drawn in pixels (hero.js). */
.tile-wifi {
  margin: auto 0 auto;
  align-self: flex-start;
  width: clamp(60px, 5.4vw, 84px);
  color: var(--red);
}

.tile-wifi svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(235, 91, 67, 0.35));
}

/* Tether: the app's pill, glowing, on graphite. */
.tile-tether {
  background: radial-gradient(90% 80% at 50% 30%, rgba(235, 91, 67, 0.22), transparent 70%), #141517;
  color: #fff;
}

.tile-tether p {
  color: rgba(255, 255, 255, 0.62);
}

.tile-pill {
  margin: auto 0;
  align-self: center;
}

.tile-pill .tether-pill {
  --u: clamp(0.8px, 0.07vw, 1px);
}

/* The interface: CamLamp's own screen, crisp, in a dark bezel. */
.tile-ui {
  gap: 14px;
}

.ui-screen {
  align-self: flex-start;
  width: min(100%, 230px);
  margin: auto 0;
  padding: 7px;
  border-radius: 12px;
  background: linear-gradient(160deg, #3a3d40, #212325);
  box-shadow: 0 14px 28px -14px rgba(24, 30, 36, 0.45);
}

.ui-screen canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  image-rendering: pixelated;
}

/* ---- Without the assembly: phones, short screens, reduced motion ---- */

.hero.static .hero-track {
  height: auto;
}

.hero.static .hero-stage {
  position: relative;
  height: auto;
  overflow: visible;
  padding: calc(64px + clamp(36px, 7vh, 72px)) var(--gutter) clamp(48px, 8vw, 96px);
}

.hero.static .hero-stage::after {
  display: none;
}

.hero.static .hero-copy {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
}

.hero.static .hero-bento {
  position: relative;
  inset: auto;
  margin: clamp(28px, 6vw, 48px) auto 0;
  max-width: 760px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto;
  grid-template-areas: 'calc calc' 'camera tether' 'alone ui';
}

.hero.static .hero-slot {
  height: min(118vw, 640px);
}

.hero.static .tile {
  min-height: 260px;
  height: auto;
  align-self: stretch;
}

@media (max-width: 560px) {
  .hero.static .hero-bento {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'calc' 'camera' 'alone' 'tether' 'ui';
  }

  .hero.static .tile {
    min-height: 230px;
  }
}

/* ---------- The web panel (/configure): a console, not a page of the site ---------- */

/* Graphite: the components above follow these tokens. */
body.console {
  --bg: #0f1012;
  --bg-deep: #0a0b0c;
  --surface: #17181b;
  --surface-hi: #1e2023;
  --ink: #eceef0;
  --ink-2: #9aa1a8;
  --ink-3: #61686f;
  --line: #2a2d31;
  --line-soft: #212327;
  --charcoal: #2a2d31;
  --edge: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-card: 0 24px 48px -28px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.35);
  /* A faint dot matrix, the brand's grid. */
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.3px);
  background-size: 18px 18px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.console-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 56px) var(--gutter) 48px;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

@media (max-width: 900px) {
  .console-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Modules: hairline panels with a pixel title and a mono note. */
.module,
.console-device {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.module[hidden],
.device-action[hidden] {
  display: none;
}

.console-modules {
  display: grid;
  gap: 18px;
}

.console-modules .cfg-connected {
  gap: 18px;
}

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
}

.module-title svg {
  display: block;
  height: 10px;
  width: auto;
  color: var(--ink-2);
}

.module-meta {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}

.module-lead {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* The device: its screen, a status light, its facts and the one button. */
@media (min-width: 901px) {
  .console-device {
    position: sticky;
    top: 88px;
  }
}

.console-device .module-title svg {
  color: var(--red);
}

.device-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.device-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: background 0.3s, box-shadow 0.3s;
}

.device-state[data-state='busy'] i {
  background: var(--orange);
  animation: state-pulse 1s ease-in-out infinite;
}

.device-state[data-state='on'] {
  color: var(--ink-2);
}

.device-state[data-state='on'] i {
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 22%, transparent), 0 0 12px var(--green);
}

@keyframes state-pulse {
  50% {
    opacity: 0.35;
  }
}

.device-screen {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, #26282b, #0b0c0d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.device-screen canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  image-rendering: pixelated;
  box-shadow: 0 0 40px rgba(196, 204, 180, 0.07);
}

.device-facts {
  margin: 0;
}

.device-facts dt {
  font: 500 11px/1.6 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.device-action {
  display: grid;
  gap: 10px;
}

.device-action .btn {
  width: 100%;
}

/* Getting started: three numbered lines. */
.console-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.console-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 12px;
  row-gap: 2px;
}

.console-steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  font: 500 13px/1 var(--mono);
  color: var(--ink-2);
}

.console-steps b {
  font-weight: 600;
}

.console-steps span {
  font-size: 14px;
  color: var(--ink-2);
}

/* Fields: mono labels, dark wells, a blue focus. */
body.console .cfg-field span {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

body.console .cfg-field input,
body.console .cfg-field select {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
}

body.console .cfg-field input:focus,
body.console .cfg-field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent);
}

body.console .cfg-slot {
  border-radius: 12px;
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px var(--line);
}

body.console .tabs {
  border-radius: 12px;
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px var(--line);
}

body.console .tabs button {
  border-radius: 8px;
}

body.console .tabs button[aria-pressed='true'] {
  background: var(--surface-hi);
  box-shadow: inset 0 0 0 1px var(--line);
}

body.console .btn-soft {
  background: var(--surface-hi);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* The header and footer, on graphite. */
body.console .nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}

.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px var(--gutter) 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-3);
}

.console-footer svg {
  height: 10px;
  width: auto;
  color: var(--ink-3);
}

.console-footer nav {
  display: flex;
  gap: 18px;
}

.console-footer a:hover {
  color: var(--ink);
}

/* Configure: Forget calculator, quiet until you mean it. */
.cfg-forget-calc {
  justify-self: start;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red-deep);
}

.cfg-forget-calc:hover {
  text-decoration: underline;
}

/* Sold out (STORE.inStock false): the order page's waitlist, in the checkout's place. */
.sold-out {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--r);
  background: var(--surface-hi);
  box-shadow: var(--shadow-soft), var(--edge);
  scroll-margin-top: 100px;
}

.sold-out h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.sold-out > p {
  margin: 0;
  color: var(--ink-2);
}

.sold-out > .next-batch {
  margin-top: -6px;
  color: var(--ink);
  font-weight: 600;
}

.sold-out .waitlist-form {
  max-width: none;
  margin-top: 4px;
}

/* ---------- camlamp.com/app: the iPhone app's install page ---------- */

.app-page {
  padding-top: clamp(48px, 8vw, 96px);
}

.app-install {
  max-width: 560px;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 12px 32px -12px rgba(0, 0, 0, 0.3);
}

.app-install .h1 {
  margin: 10px 0 0;
}

.app-install .lead {
  margin: 0;
}

.app-install .btn[aria-disabled='true'] {
  opacity: 0.35;
  pointer-events: none;
}

.app-install .small {
  margin: 0;
  min-height: 1.5em;
}

.app-help {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line, rgba(0, 0, 0, 0.1));
  text-align: left;
  width: 100%;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}

.app-help h2 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.app-help p,
.app-help ol {
  margin: 0 0 10px;
}

.app-help ol {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
