:root {
  --bg: #0B0D0C;
  --panel: #15181A;
  --panel-edge: #24292C;
  --amber: #F2A93B;
  --amber-deep: #C97C1B;
  --red: #E63946;
  --green: #3ECF8E;
  --oled: #8FFFC9;
  --text: #F2F2EF;
  --muted: #868D91;
  --mono: 'JetBrains Mono', monospace;
  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --serif: 'Fraunces', serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Device stage --- */

.device-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8vh 0 6vh;
}

.walkie {
  position: relative;
  width: min(300px, 78vw);
  background: linear-gradient(160deg, #2E3133 0%, #1B1D1E 55%, #131515 100%);
  border-radius: 30px 30px 24px 24px;
  padding: 26px 20px 24px;
  border: 1px solid #35393a;
  box-shadow:
    0 40px 70px -30px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  isolation: isolate;
}

/* plastic grain — reads as texture at a glance, not noise up close */
.walkie::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
}

/* soft top sheen — light catching a molded plastic case */
.walkie::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(140% 70% at 30% -10%, rgba(255, 255, 255, 0.08), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.walkie > * {
  position: relative;
  z-index: 2;
}

.antenna {
  position: absolute;
  top: -38px;
  left: 30px;
  width: 7px;
  height: 36px;
  border-radius: 3.5px 3.5px 2px 2px;
  background: linear-gradient(90deg, #1e2021 0%, #52565a 35%, #6a6e72 50%, #52565a 65%, #1e2021 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  z-index: 3;
}
.antenna::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: -3px;
  width: 13px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(180deg, #3a3d3f, #1a1c1d);
  border: 1px solid #111;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.antenna::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6a6e72, #3a3d3f 55%, #1e2021 100%);
  border: 1px solid #111;
}

/* Channel wheel, top right — knurled dial half-set into the case edge */
.wheel {
  position: absolute;
  top: -13px;
  right: 26px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: repeating-conic-gradient(#3d4042 0deg 6deg, #1a1c1d 6deg 12deg);
  border: 1px solid #4a4d4f;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  z-index: 3;
}
.wheel-mark {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 2px;
  height: 7px;
  background: #9a9d9f;
  border-radius: 1px;
  transform: translateX(-50%) rotate(-18deg);
  transform-origin: 50% 9px;
}

.speaker-grille {
  width: 60px;
  height: 22px;
  margin: 0 auto 16px;
  background-image: radial-gradient(circle, #000 1.3px, transparent 1.6px);
  background-size: 7px 7px;
  opacity: 0.55;
}

.screen-bezel {
  background: #030403;
  border-radius: 11px;
  padding: 3px;
  box-shadow: inset 0 0 0 1px #000, inset 0 2px 8px rgba(0, 0, 0, 0.85);
  margin-bottom: 16px;
}

.screen {
  background: #060807;
  border-radius: 8px;
  padding: 13px 14px 12px;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 3px);
}

.screen-row-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #4d7a63;
  margin-bottom: 10px;
}

.screen-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.screen-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.screen-label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--oled);
}

.screen-readout {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  color: #4d7a63;
  min-height: 14px;
}

.walkie[data-status="available"] .screen-dot {
  background: var(--green);
  box-shadow: 0 0 8px 2px rgba(62, 207, 142, 0.65);
  animation: pulse 1.8s ease-in-out infinite;
}
.walkie[data-status="available"] .screen-label {
  color: var(--oled);
  text-shadow: 0 0 6px rgba(143, 255, 201, 0.55);
}

.walkie[data-status="occupied"] .screen-dot {
  background: var(--red);
  box-shadow: 0 0 8px 2px rgba(230, 57, 70, 0.6);
}
.walkie[data-status="occupied"] .screen-label {
  color: #ff9d9d;
  text-shadow: 0 0 6px rgba(230, 57, 70, 0.5);
}

.walkie[data-status="checking"] .screen-dot { background: var(--amber); }
.walkie[data-status="checking"] .screen-label { color: var(--amber); text-shadow: none; }

.walkie[data-status="reserved"] .screen-dot {
  background: var(--amber);
  box-shadow: 0 0 8px 2px rgba(242, 169, 59, 0.6);
  animation: pulse 1s ease-in-out infinite;
}
.walkie[data-status="reserved"] .screen-label {
  color: var(--amber);
  text-shadow: 0 0 6px rgba(242, 169, 59, 0.5);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Printed logo plate, under the screen */

.logo-plate {
  text-align: center;
  margin: 4px 0 20px;
}

.logo-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #AEB1B3;
}

.logo-tagline {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #55585a;
  margin-top: 5px;
}

/* Controls — perfectly centered row */

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.btn-side {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, #373b3c, #1a1c1d);
  border: 1px solid #454948;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease;
}
.btn-side:hover { background: linear-gradient(160deg, #3f4344, #202223); color: var(--text); }
.btn-side:active { transform: scale(0.92); }

/* CALL — rounded square PTT key with a thin flowing gradient stripe around it */

.call-wrap {
  position: relative;
  width: 98px;
  height: 98px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-glow-blur { display: none; }

.call-frame {
  position: absolute;
  inset: 0;
  border-radius: 27px;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.call-glow-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  height: 170px;
  margin: -85px 0 0 -85px;
  background: conic-gradient(from 0deg, #7F77DD, #378ADD, #1D9E75, #EF9F27, #D85A30, #D4537E, #7F77DD);
  animation: glow-spin 6s linear infinite;
}

@keyframes glow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-call {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 24px;
  background: radial-gradient(ellipse at 38% 28%, #484848 0%, #2a2a2a 30%, #141414 60%, #060606 100%);
  border: 1.5px solid #111;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(0,0,0,0.8),
    0 4px 8px rgba(0,0,0,0.6),
    inset 0 2px 3px rgba(255,255,255,0.16),
    inset 0 -4px 8px rgba(0,0,0,0.8);
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn-call:hover:not(:disabled) { filter: brightness(1.05); }
.btn-call:active:not(:disabled) { transform: scale(0.97); }

.btn-call:disabled {
  background: linear-gradient(165deg, #4a4d4f, #2c2f30 60%, #1e2021 100%);
  border-color: #3a3d3e;
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.call-wrap:has(.btn-call:disabled) .call-glow-blur,
.call-wrap:has(.btn-call:disabled) .call-glow-spin {
  opacity: 0.1;
  animation-duration: 14s;
}

.call-label {
  font-family: var(--display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #cccccc;
  text-transform: uppercase;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  mix-blend-mode: screen;
}
.btn-call:disabled .call-label {
  font-family: var(--display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #cccccc;
  text-transform: uppercase;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  mix-blend-mode: screen;
}

.call-sub { display: none; }
.btn-call:disabled .call-sub { display: none; }

.mic-grille {
  width: 90px;
  height: 12px;
  margin: 2px auto 0;
  background-image: radial-gradient(circle, #000 1.1px, transparent 1.4px);
  background-size: 6px 6px;
  opacity: 0.5;
}

/* Scroll cue */

.scroll-cue {
  margin-top: 60px;
  width: 26px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--panel-edge);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--muted);
  animation: scrollcue 1.6s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translate(-50%, 0); }
  60% { opacity: 0; transform: translate(-50%, 14px); }
  61% { opacity: 0; transform: translate(-50%, 0); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}

/* --- Info section --- */

.info {
  padding: 4vh 0 12vh;
}

.info-plate {
  border: 1px solid var(--panel-edge);
  background: linear-gradient(180deg, var(--panel), #101314);
  border-radius: 10px;
  padding: 28px 26px 30px;
}

.info-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 16px;
}

.headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 5.5vw, 30px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.pitch {
  font-size: 16px;
  line-height: 1.55;
  color: #D3D6D8;
  margin: 0 0 12px;
}

.pitch-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 22px;
}

.info-divider {
  height: 1px;
  background: var(--panel-edge);
  margin: 4px 0 20px;
}

.coverage-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.coverage-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #D3D6D8;
}

.coverage-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.fineprint {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--panel-edge);
}

/* --- Success page --- */

.success-wrap {
  text-align: center;
  padding-top: 12vh;
  max-width: 480px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.success-wrap h1 {
  font-family: var(--display);
  font-size: 30px;
}

.success-wrap p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* --- Desktop: device and details side by side, no scroll needed --- */

@media (min-width: 880px) {
  .wrap {
    max-width: 1040px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    min-height: 100vh;
    padding: 0 48px;
  }

  .device-stage {
    min-height: 0;
    padding: 0;
  }

  .walkie { width: 300px; }

  .scroll-cue { display: none; }

  .info { padding: 0; }
}

@media (max-width: 420px) {
  .call-wrap { width: 90px; height: 90px; }
  .btn-call { width: 84px; height: 84px; }
  .btn-side { width: 40px; height: 40px; }
}

/* --- Payment panel — expands below the device, no page redirect --- */

.payment-panel {
  width: min(320px, 84vw);
  margin-top: 22px;
  background: linear-gradient(180deg, var(--panel), #101314);
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  padding: 20px 20px 22px;
}

.payment-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.payment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.payment-timer {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--amber);
  padding: 3px 9px;
  border: 1px solid rgba(242, 169, 59, 0.35);
  border-radius: 6px;
  background: rgba(242, 169, 59, 0.08);
}
.payment-timer.is-low {
  color: var(--red);
  border-color: rgba(230, 57, 70, 0.4);
  background: rgba(230, 57, 70, 0.08);
}

.payment-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}

.payment-phone {
  width: 100%;
  background: #0D0F10;
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  margin-bottom: 16px;
}
.payment-phone:focus {
  outline: none;
  border-color: var(--amber);
}

#payment-element {
  margin-bottom: 16px;
  min-height: 4px;
}

.payment-pay-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(165deg, #F7C468 0%, #EDA033 50%, var(--amber-deep) 100%);
  color: #1c1508;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.payment-pay-btn:disabled {
  background: #3A3D3E;
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
}

.payment-error {
  font-family: var(--mono);
  font-size: 11px;
  color: #ff9d9d;
  min-height: 14px;
  margin: 10px 2px 0;
}

.payment-cancel {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  margin-top: 8px;
  cursor: pointer;
}
.payment-cancel:hover { color: var(--text); }