/* ============================================================
   Brand My iPhone — Apple-inspired design system
   ============================================================ */

:root {
  --black: #000000;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-dark: rgba(255, 255, 255, 0.16);
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-dark: #2997ff;
  --green: #30d158;
  --orange: #ff9f0a;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 48px;
  --sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.dialog-open { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

p { margin: 0; }
img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; }

::selection { background: rgba(0, 113, 227, 0.22); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 22px;
}
.wrap-wide { max-width: 1240px; }

/* ---------------- Global navigation ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  height: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: #f5f5f7;
  font-size: 12px;
  letter-spacing: 0;
  opacity: 0.86;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}
.nav a:hover { opacity: 1; text-decoration: none; }

.nav-brand {
  font-size: 13px !important;
  font-weight: 600;
  opacity: 1 !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-logo {
  width: 15px;
  height: 22px;
  border-radius: 4px;
  border: 1.4px solid #f5f5f7;
  position: relative;
  flex: none;
}
.nav-logo::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 1.4px;
  border-radius: 2px;
  background: #f5f5f7;
}

.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 5px 13px;
  border-radius: 980px;
  opacity: 1 !important;
  font-weight: 400;
}
.nav-cta:hover { background: var(--blue-hover); }

.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.nav-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.7);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-size: 17px;
  line-height: 1.2;
  padding: 12px 24px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
  text-decoration: none;
}
.btn:hover { background: var(--blue-hover); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-ghost:hover { background: rgba(0, 113, 227, 0.06); }

.btn-ghost-dark {
  background: transparent;
  color: var(--blue-dark);
  border: 1px solid rgba(41, 151, 255, 0.55);
}
.btn-ghost-dark:hover { background: rgba(41, 151, 255, 0.12); }

.btn-sm { font-size: 14px; padding: 8px 17px; }

.link-arrow {
  font-size: 19px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow.on-dark { color: var(--blue-dark); }

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

.hero {
  background: var(--black);
  color: #f5f5f7;
  text-align: center;
  padding: 44px 0 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto;
  height: 70%;
  background: radial-gradient(50% 60% at 50% 40%, rgba(80, 110, 190, 0.28), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  font-size: 19px;
  line-height: 1.2;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  letter-spacing: -0.03em;
  line-height: 1.03;
}
.hero h1 span {
  display: block;
  background: linear-gradient(92deg, #b8bcc6, #ffffff 26%, #9fb4e6 58%, #ffffff 82%, #a5a9b4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.36;
  color: #b8b8bd;
  max-width: 40ch;
  margin: 14px auto 0;
  font-weight: 400;
}

.hero-links {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ---------------- 3D device ---------------- */

.stage {
  position: relative;
  --w: clamp(168px, 18vw, 218px);
  --h: calc(var(--w) * 2.09);
  --t: calc(var(--w) * 0.111);
  --r: calc(var(--w) * 0.138);
  height: calc(var(--h) + 132px);
  margin-top: 0;
  padding-bottom: 62px;
  perspective: 1450px;
  perspective-origin: 50% 46%;
  display: grid;
  place-items: center;
  touch-action: pan-y;
  cursor: grab;
}
.stage.dragging { cursor: grabbing; }

.stage::after {
  content: "";
  position: absolute;
  bottom: 46px;
  width: 30%;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(50% 50%, rgba(0, 0, 0, 0.85), transparent 72%);
  filter: blur(14px);
  z-index: 0;
}

.device {
  --ry: -24deg;
  --rx: 6deg;
  position: relative;
  z-index: 1;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
}

.slab {
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  background: linear-gradient(
    90deg,
    #9aa0ad 0%, #4b4b55 3.5%, #1b1b20 12%, #33333b 30%, #17171b 50%,
    #33333b 70%, #1b1b20 88%, #4b4b55 96.5%, #9aa0ad 100%
  );
}

.face {
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  backface-visibility: hidden;
  overflow: hidden;
}

.face-back {
  transform: translateZ(calc(var(--t) / 2));
  background:
    linear-gradient(118deg, transparent 30%, rgba(255, 255, 255, 0.055) 43%, transparent 52%),
    radial-gradient(120% 70% at 20% 8%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(90% 60% at 84% 94%, rgba(255, 255, 255, 0.08), transparent 62%),
    linear-gradient(162deg, #34343a 0%, #17171b 30%, #212126 58%, #0b0b0d 100%);
  box-shadow:
    inset 0 1.4px 0 rgba(255, 255, 255, 0.3),
    inset 1.4px 0 0 rgba(255, 255, 255, 0.16),
    inset -1.4px 0 0 rgba(255, 255, 255, 0.08),
    inset 0 -1.4px 0 rgba(255, 255, 255, 0.06);
}

.face-front {
  transform: translateZ(calc(var(--t) / -2)) rotateY(180deg);
  background: #050506;
  box-shadow:
    inset 0 1.4px 0 rgba(255, 255, 255, 0.28),
    inset 1.4px 0 0 rgba(255, 255, 255, 0.14),
    inset -1.4px 0 0 rgba(255, 255, 255, 0.08);
  padding: calc(var(--w) * 0.026);
}

.screen {
  position: absolute;
  inset: calc(var(--w) * 0.027);
  border-radius: calc(var(--r) - var(--w) * 0.022);
  overflow: hidden;
  background: #eef0f5;
}

.bloom { position: absolute; inset: 0; background: linear-gradient(180deg, #fbfcfe, #e7eaf1); }

.petal {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 34%;
  height: 44%;
  margin-left: -17%;
  transform-origin: 50% 100%;
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(126, 141, 178, 0.72));
  mix-blend-mode: multiply;
  opacity: 0.42;
}

.screen-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(13% 8% at 50% 50%, rgba(38, 44, 72, 0.5), transparent 72%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.42) 6%, transparent 30%);
  pointer-events: none;
}

.island {
  position: absolute;
  top: calc(var(--w) * 0.045);
  left: 50%;
  transform: translateX(-50%);
  width: 33%;
  height: calc(var(--w) * 0.098);
  border-radius: 999px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 9%;
}
.island::after {
  content: "";
  width: calc(var(--w) * 0.036);
  height: calc(var(--w) * 0.036);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #2b3d68, #05070d 68%);
  box-shadow: inset 0 0 0 1px rgba(120, 150, 220, 0.35);
}

/* camera island on the back */
.camera {
  position: absolute;
  top: 3.2%;
  left: 5.6%;
  width: 33.5%;
  height: 16.4%;
  border-radius: 30%;
  background: linear-gradient(150deg, #3a3a41, #141417 46%, #232327);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2px 10px rgba(0, 0, 0, 0.5);
  transform: translateZ(1px);
}

.lens {
  position: absolute;
  left: 7%;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(150deg, #55555d, #0e0e11 55%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
}
.lens::after {
  content: "";
  width: 58%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #4a6cb8 0%, #101527 42%, #000 100%);
  box-shadow: inset 0 0 4px rgba(120, 170, 255, 0.6);
}
.lens-1 { top: 6%; }
.lens-2 { bottom: 6%; }

.flash {
  position: absolute;
  right: 12%;
  top: 15%;
  width: 21%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 34%, #fffdf2, #d9d2b6 55%, #6b6552);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2);
}
.mic {
  position: absolute;
  right: 19%;
  bottom: 22%;
  width: 7%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0b0b0d;
}

.magsafe {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 62%, rgba(255, 255, 255, 0.045) 63%, transparent 78%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.etch {
  display: none;
  position: absolute;
  bottom: 3.4%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: calc(var(--w) * 0.05);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: rgba(255, 255, 255, 0.24);
  font-weight: 500;
  pointer-events: none;
}

.side-btn {
  position: absolute;
  left: 50%;
  width: var(--t);
  border-radius: 2px;
  background: linear-gradient(180deg, #3d3d43, #1a1a1d);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
}
.btn-power { top: 25%; height: 9.5%; transform: translateX(-50%) rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.btn-vol-up { top: 21%; height: 6.5%; transform: translateX(-50%) rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.btn-vol-dn { top: 29.5%; height: 6.5%; transform: translateX(-50%) rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.btn-action { top: 14.5%; height: 5%; transform: translateX(-50%) rotateY(-90deg) translateZ(calc(var(--w) / 2)); }

/* auction hotspots on the back */
.spots { position: absolute; inset: 0; transform: translateZ(1.5px); }

.spot-hit {
  position: absolute;
  border: 1.5px dashed rgba(255, 255, 255, 0.38);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.spot-hit:hover {
  background: rgba(41, 151, 255, 0.3);
  border-color: rgba(41, 151, 255, 0.9);
  color: #fff;
}
.spot-hit.claimed {
  border-style: solid;
  border-color: rgba(48, 209, 88, 0.75);
  background: rgba(48, 209, 88, 0.22);
  color: #eafff0;
}

.stage-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5f5f7;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 980px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s var(--ease);
}
.chip:hover { background: rgba(255, 255, 255, 0.2); }
.chip[aria-pressed="true"] { background: #f5f5f7; color: #1d1d1f; border-color: #f5f5f7; }

.drag-hint {
  font-size: 12px;
  color: #86868b;
  margin-top: 2px;
  padding-bottom: 26px;
}

/* ---------------- Hero stat strip ---------------- */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0;
}
.hero-stats > div {
  background: #000;
  padding: 26px 16px;
  text-align: center;
}
.hero-stats dt {
  font-size: 12px;
  color: #86868b;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-stats dd {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #f5f5f7;
}

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

.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--black); color: #f5f5f7; }
.section-dark .muted { color: #86868b; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.section-dark .kicker { color: var(--blue-dark); }

h2.display {
  font-size: clamp(34px, 5.2vw, 56px);
  letter-spacing: -0.024em;
  line-height: 1.07;
}
h2.display span { color: var(--muted); }
.section-dark h2.display span { color: #86868b; }

.lede {
  font-size: 21px;
  line-height: 1.42;
  color: var(--ink-soft);
  margin-top: 16px;
}
.section-dark .lede { color: #b8b8bd; }

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

/* ---------------- Live auction ---------------- */

.auction-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin-bottom: 26px;
}
.auction-bar .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.clock {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.auction-bar small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.legend b {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  margin-right: 6px;
}

.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}

.spot-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.spot-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09); }

.spot-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.spot-tag {
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}
.spot-card h3 { font-size: 22px; margin-top: 6px; }
.spot-card .placement { font-size: 14px; color: var(--muted); }

.spot-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
}
.spot-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.spot-status.open { color: var(--muted); }
.spot-status.open i { background: var(--line); }
.spot-status.led { color: #1a7f37; }

.spot-card-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.price small { display: block; font-size: 12px; color: var(--muted); }
.price strong { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.price em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }

.loading-state, .error-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 44px 0;
}

/* ---------------- Feature cards ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.card {
  border-radius: var(--radius-lg);
  padding: 36px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}
.card.dark { background: #1d1d1f; color: #f5f5f7; }
.card.dark p { color: #a1a1a6; }
.card.blue { background: linear-gradient(150deg, #0a84ff, #0040a3); color: #fff; }
.card.blue p { color: rgba(255, 255, 255, 0.86); }
.card h3 { font-size: 26px; }
.card p { color: var(--ink-soft); font-size: 16px; line-height: 1.45; }
.big-number {
  font-size: clamp(48px, 7vw, 74px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.big-number span { font-size: 0.44em; vertical-align: super; margin-left: 2px; }

.card ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.card li { display: flex; gap: 12px; font-size: 16px; align-items: baseline; }
.card li b { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 13px; }

/* ---------------- Steps ---------------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.steps li { background: #fff; display: grid; grid-template-columns: 66px 1fr; gap: 18px; padding: 30px 28px; }
.section-alt .steps li { background: #fff; }
.step-n {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.steps h3 { font-size: 21px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 16px; }

/* ---------------- Tech specs ---------------- */

.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.specs div { background: #0a0a0a; padding: 26px 22px; }
.specs dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #86868b; }
.specs dd { margin: 8px 0 0; font-size: 19px; font-weight: 500; }

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

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-size: 19px;
  font-weight: 500;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
  color: var(--blue);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 44px 24px 0; color: var(--muted); font-size: 17px; }

/* ---------------- Final CTA ---------------- */

.final { text-align: center; padding: 110px 0; }
.final h2 { font-size: clamp(36px, 6vw, 66px); letter-spacing: -0.028em; }
.final p { font-size: 21px; color: #a1a1a6; margin: 18px auto 30px; max-width: 42ch; }

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

footer { background: var(--bg-alt); padding: 34px 0 44px; font-size: 12px; color: var(--muted); }
footer .wrap > * + * { margin-top: 12px; }
footer a { color: var(--blue); }
.footer-rule { border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------------- Bid dialog ---------------- */

.bid-dialog {
  border: none;
  padding: 0;
  border-radius: var(--radius-lg);
  width: min(560px, calc(100vw - 32px));
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}
.bid-dialog::backdrop { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); }

.dialog-shell { padding: 34px; position: relative; }
.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.dialog-close:hover { background: #e8e8ed; }
.dialog-heading h2 { font-size: 30px; margin: 4px 0 4px; }
.dialog-heading p { color: var(--muted); font-size: 15px; }

#bid-form { display: grid; gap: 14px; margin-top: 24px; }
.form-row { display: grid; gap: 14px; }
.two-col { grid-template-columns: 1fr 1fr; }

#bid-form label { display: block; font-size: 13px; color: var(--muted); }
#bid-form label > input,
#bid-form label > .amount-input { margin-top: 6px; }
#bid-form label > small { display: block; margin-top: 6px; }
#bid-form label span { color: #a1a1a6; }
#bid-form input[type="text"],
#bid-form input[type="email"],
#bid-form input[type="number"],
#bid-form input:not([type]) {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  width: 100%;
}
#bid-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16); }
#bid-form input:disabled { color: #6e6e73; background: #f5f5f7; cursor: not-allowed; }
#bid-form.payment-ready .logo-drop { opacity: 0.55; pointer-events: none; }

.amount-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.amount-input b { padding: 0 4px 0 14px; font-size: 18px; color: var(--muted); font-weight: 400; }
.amount-input input { border: none !important; box-shadow: none !important; font-size: 22px !important; font-weight: 600; padding-left: 4px !important; }
.amount-label small { color: var(--muted); font-size: 12px; }

.terms-label { display: grid !important; grid-template-columns: auto 1fr; align-items: start; gap: 10px !important; font-size: 13px !important; line-height: 1.4; }
.terms-label input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); }

.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-status { display: none; font-size: 14px; color: #b3261e; }
.form-status.visible { display: block; }
.form-status.success { color: #1a7f37; }

.payment-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: #fbfbfd;
}
.payment-panel[hidden] { display: none; }
.payment-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.payment-panel-head > div { display: grid; gap: 2px; }
.payment-panel-head strong { color: var(--ink); font-size: 14px; }
.payment-panel-head > strong { font-size: 18px; }
.payment-panel-head small { color: var(--muted); font-size: 11px; }
.payment-panel > p { color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 12px; }
.payment-edit { border: 0; padding: 0; margin-top: 10px; background: transparent; color: var(--blue); font: inherit; font-size: 12px; cursor: pointer; }
.payment-edit:hover { text-decoration: underline; }

.submit-bid { width: 100%; margin-top: 4px; }
.privacy-note { font-size: 12px; color: var(--muted); text-align: center; }

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: rgba(29, 29, 31, 0.94);
  backdrop-filter: blur(14px);
  color: #f5f5f7;
  padding: 13px 22px;
  border-radius: 980px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 200;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Reveal ---------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

@media (max-width: 860px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 16px; }
  .nav-hide { display: none; }
  .section { padding: 66px 0; }
  .card { padding: 28px; min-height: 0; }
  .steps li { grid-template-columns: 46px 1fr; padding: 24px 20px; }
}

@media (max-width: 560px) {
  .specs { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .hero { padding-top: 48px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats > div { padding: 18px; display: flex; align-items: baseline; justify-content: space-between; }
  .hero-stats dd { font-size: 24px; }
  .two-col { grid-template-columns: 1fr; }
  .dialog-shell { padding: 26px 22px; }
  .stage { height: 60vh; }
  .spot-card-foot { flex-direction: column; align-items: stretch; gap: 12px; }
}

@media (max-height: 780px) {
  .stage { --w: clamp(150px, 15vw, 186px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ---------------- Apple mark on the back ---------------- */

.apple-mark {
  position: absolute;
  top: 47%;
  left: 50%;
  width: 19%;
  height: auto;
  transform: translate(-50%, -50%) translateZ(0.6px);
  fill: #34343b;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.22))
    drop-shadow(0 -0.5px 0 rgba(0, 0, 0, 0.75));
  opacity: 1;
  pointer-events: none;
}

/* ---------------- Sponsor logos on the device ---------------- */

.spot-hit.has-logo {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  padding: 7%;
}
.spot-hit.has-logo.claimed { border-color: rgba(48, 209, 88, 0.55); background: rgba(48, 209, 88, 0.1); }
.spot-hit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.spot-hit .num { line-height: 1; }
.spot-hit.has-logo .num { display: none; }

.spot-card-head .brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 5px;
  background: var(--bg-alt);
  padding: 2px;
}

/* ---------------- Logo upload ---------------- */

.logo-field { display: block; }
.logo-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.logo-label span { color: #a1a1a6; }

.logo-drop {
  position: relative;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--bg-alt);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.logo-drop:hover { border-color: var(--blue); background: rgba(0, 113, 227, 0.04); }
.logo-drop.dragover { border-color: var(--blue); background: rgba(0, 113, 227, 0.08); }
.logo-drop.filled {
  border-style: solid;
  border-color: #d2d2d7;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fff 0%, #fbfbfd 100%);
}

.logo-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.logo-drop.filled input[type="file"] { pointer-events: none; }
.logo-drop.filled .logo-empty,
.logo-drop:not(.filled) .logo-preview,
.logo-empty[hidden],
.logo-preview[hidden] { display: none; }

.logo-empty { text-align: center; pointer-events: none; }
.logo-empty strong { display: block; font-size: 15px; color: var(--blue); font-weight: 500; }
.logo-empty small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

.logo-preview {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.logo-chip {
  width: 46px;
  height: 46px;
  border: 1px solid #e5e5ea;
  border-radius: 9px;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
  padding: 5px;
  overflow: hidden;
}
.logo-chip img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-preview-copy { min-width: 0; }
.logo-preview strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logo-preview small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.logo-preview small.warn { color: #b3261e; }
.logo-clear {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 980px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.logo-clear:hover { border-color: var(--ink); color: var(--ink); }


/* ---------------- Live viewers ---------------- */

.viewer-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 9px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.7);
  animation: pulse 2.2s infinite;
}

.hero-stats dd .viewer-dot { width: 10px; height: 10px; margin-right: 10px; }

.auction-bar-side { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.viewer-pill {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  background: var(--bg-alt);
  border-radius: 980px;
  padding: 8px 16px;
  white-space: nowrap;
}
.viewer-pill strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 4px; }

@media (max-width: 560px) {
  .auction-bar-side { width: 100%; justify-content: space-between; }
  .logo-preview { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; }
  .logo-chip { width: 42px; height: 42px; }
  .logo-clear { padding-inline: 10px; }
}
