:root {
  --paper: #f5f5f7;
  --paper-deep: #e8e8ed;
  --ink: #090a0c;
  --ink-soft: #64676d;
  --line: rgba(9, 10, 12, 0.09);
  --coral: #0a9bf4;
  --coral-dark: #0076d9;
  --lime: #ffffff;
  --sky: #e3f4ff;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(10, 45, 74, 0.13);
  --radius-sm: 20px;
  --radius-md: 32px;
  --radius-lg: 46px;
}

/* Early-access intake */
.spots-left {
  width: fit-content;
  margin: 28px auto 22px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(13, 148, 236, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #087ec7;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(10, 125, 201, 0.1);
}

.spots-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #149fee;
  box-shadow: 0 0 0 6px rgba(20, 159, 238, 0.12);
}

.waitlist-intake {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px);
  display: grid;
  gap: 22px;
  border: 1px solid rgba(16, 30, 44, 0.1);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 30px 80px rgba(13, 83, 132, 0.14);
  backdrop-filter: blur(22px);
  text-align: left;
}

.form-section {
  min-width: 0;
  margin: 0;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid rgba(16, 30, 44, 0.1);
}

.form-section legend {
  margin-bottom: 5px;
  color: #07111b;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-hint {
  margin: 0 0 14px;
  color: #6c7680;
  font-size: 0.88rem;
}

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

.form-field {
  display: grid;
  gap: 8px;
  color: #2e3b47;
  font-size: 0.84rem;
  font-weight: 750;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field input,
.form-field select,
.form-field textarea,
.code-entry input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid rgba(22, 42, 59, 0.14);
  border-radius: 15px;
  outline: none;
  background: #f7fbfe;
  color: #07111b;
  font: inherit;
  font-weight: 600;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field textarea {
  min-height: 92px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.code-entry input:focus {
  border-color: #149fee;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 159, 238, 0.12);
}

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

.choice-card {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(22, 42, 59, 0.12);
  border-radius: 16px;
  background: #f8fbfd;
  color: #33414d;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.choice-card:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 159, 238, 0.45);
}

.choice-card:has(input:checked) {
  border-color: #149fee;
  background: #edf8ff;
  color: #087ec7;
}

.choice-card input {
  width: 18px;
  height: 18px;
  margin: 0 10px 0 0;
  accent-color: #149fee;
}

.choice-card span {
  font-size: 0.85rem;
  font-weight: 750;
  line-height: 1.25;
}

.conditional-field {
  margin-top: 14px;
}

.consent-section {
  display: grid;
  gap: 12px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border-radius: 16px;
  background: #f7fbfe;
  color: #56636f;
  font-size: 0.78rem;
  line-height: 1.45;
  cursor: pointer;
}

.consent-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #149fee;
}

.verification-section {
  padding-bottom: 0;
  border-bottom: 0;
}

.verification-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(22, 42, 59, 0.12);
  border-radius: 18px;
  background: #f8fbfd;
}

.verification-grid-single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.verification-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.verification-card strong {
  color: #172632;
  font-size: 0.9rem;
}

.verification-card span {
  color: #7a858f;
  font-size: 0.75rem;
  font-weight: 700;
}

.verification-card span.is-verified {
  color: #00865a;
}

.button-quiet {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(20, 159, 238, 0.28);
  background: #fff;
  color: #087ec7;
  box-shadow: none;
}

.button-quiet:hover {
  background: #edf8ff;
}

.code-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.code-entry .button {
  width: auto;
}

.waitlist-submit {
  width: 100%;
  min-height: 62px;
  font-size: 1rem;
}

.waitlist-submit:disabled,
.button-quiet:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.form-note[data-state="error"] {
  color: #b42318;
}

.form-note[data-state="success"] {
  color: #00865a;
}

.waitlist-success {
  width: min(100%, 620px);
  margin: auto;
  padding: clamp(34px, 7vw, 72px) clamp(22px, 6vw, 60px);
  text-align: center;
}

.waitlist-success > span {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f9f2;
  color: #00865a;
  font-size: 1.4rem;
  font-weight: 900;
}

.waitlist-success h3 {
  margin: 0 0 8px;
  color: #07111b;
  font-size: 1.8rem;
}

.waitlist-success p {
  margin: 0;
  color: #66727d;
}

.waitlist-success .success-kicker {
  margin-bottom: 12px;
  color: #087ec7;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.waitlist-success .success-close {
  width: 100%;
  min-height: 58px;
  margin-top: 28px;
}

#waitlist.is-complete {
  padding: 20px;
  display: grid;
  place-items: center;
}

#waitlist.is-complete .shell,
#waitlist.is-complete .cta-panel,
#waitlist.is-complete .cta-content {
  width: 100%;
  height: auto;
  min-height: 0;
}

#waitlist.is-complete .waitlist-intake.is-success {
  width: min(100%, 720px);
  height: auto;
  min-height: min(620px, calc(100dvh - 40px));
  margin: auto;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

@media (max-width: 700px) {
  .waitlist-intake {
    padding: 22px 16px;
    border-radius: 26px;
  }

  .form-grid,
  .choice-grid,
  .verification-grid {
    grid-template-columns: 1fr;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .spots-left {
    font-size: 0.68rem;
  }

  .code-entry {
    grid-template-columns: 1fr;
  }

  .code-entry .button {
    width: 100%;
  }
}

/* Full-screen early-access funnel */
body.waitlist-open {
  overflow: hidden;
}

#waitlist:not(.is-open) {
  display: none;
}

#waitlist.is-open {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: block;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  overflow: hidden;
  padding: 92px 20px 44px;
  background:
    radial-gradient(circle at 18% 5%, rgba(20, 159, 238, 0.2), transparent 34%),
    radial-gradient(circle at 88% 90%, rgba(20, 159, 238, 0.1), transparent 32%),
    #f8fbfd;
  animation: flow-enter 240ms ease both;
}

#waitlist.is-open .shell,
#waitlist.is-open .cta-panel {
  width: min(100%, 940px);
  max-width: 940px;
  height: 100%;
  min-height: 0;
  margin-inline: auto;
}

#waitlist.is-open .shell {
  display: flex;
  flex-direction: column;
}

#waitlist.is-open .cta-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  transform: none !important;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#waitlist.is-open .cta-content {
  width: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

#waitlist.is-open .cta-panel > h2,
#waitlist.is-open .cta-panel > p:not(.form-note) {
  display: none;
}

.flow-chrome {
  position: fixed;
  inset: 0 0 auto;
  z-index: 3;
  min-height: 74px;
  padding: 14px clamp(20px, 5vw, 58px) 12px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(16, 30, 44, 0.09);
  background: rgba(248, 251, 253, 0.86);
  backdrop-filter: blur(22px);
}

.flow-close {
  grid-column: 3;
  grid-row: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 30, 44, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #14222e;
  font: 500 1.8rem/1 sans-serif;
  cursor: pointer;
}

.flow-progress-copy {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  color: #75818c;
  font-size: 0.76rem;
  font-weight: 750;
}

.flow-progress-copy strong {
  color: #14222e;
  font-size: 0.86rem;
}

.flow-progress-track {
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 159, 238, 0.12);
}

.flow-progress-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #087ec7, #28b4ff);
  transition: width 260ms ease;
}

#waitlist.is-open .spots-left {
  flex: 0 0 auto;
  margin-top: 8px;
}

#waitlist.is-open .flow-chrome .spots-left {
  margin: 0;
  padding: 5px 9px;
  border-color: rgba(20, 159, 238, 0.16);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  font-size: 0.58rem;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

#waitlist.is-open .flow-chrome .spots-dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 3px rgba(20, 159, 238, 0.1);
}

#waitlist.is-open .waitlist-intake {
  position: relative;
  width: 100%;
  height: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: clamp(24px, 5vw, 54px) clamp(24px, 5vw, 54px) 104px;
}

#waitlist .form-section[hidden],
#waitlist .flow-actions [hidden],
#waitlist .waitlist-submit[hidden] {
  display: none !important;
}

#waitlist .form-section.is-active {
  width: 100%;
  flex: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  animation: flow-step-enter 260ms ease both;
}

#waitlist .form-section.is-active legend {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  text-align: center;
}

#waitlist .form-section.is-active > .section-hint {
  margin: -8px 0 22px;
  text-align: center;
}

.flow-actions {
  position: fixed !important;
  z-index: 2105;
  right: auto;
  bottom: 5px;
  left: 50%;
  width: min(calc(100vw - 48px), 832px);
  margin: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(130px, 0.36fr) 1fr;
  gap: 12px;
  border: 1px solid rgba(16, 30, 44, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 50px rgba(13, 83, 132, 0.18);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.flow-actions .button {
  width: 100%;
  min-height: 58px;
}

.flow-actions:has(.flow-back[hidden]) {
  grid-template-columns: 1fr;
}

.flow-actions .flow-back[hidden] + .flow-next {
  grid-column: 1;
}

#waitlist .waitlist-submit {
  position: fixed !important;
  z-index: 2105;
  right: auto;
  bottom: 5px;
  left: 50%;
  width: min(calc(100vw - 48px), 832px);
  margin: 0;
  transform: translateX(-50%);
}

#waitlist .form-note {
  max-width: 760px;
  margin: 16px auto 0;
  text-align: center;
}

#waitlist .form-note[hidden] {
  display: none !important;
}

#waitlist .conditional-field[hidden] {
  display: none !important;
}

@keyframes flow-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes flow-step-enter {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 700px) {
  #waitlist.is-open {
    padding: 84px 12px 22px;
  }

  .flow-chrome {
    min-height: 68px;
    padding: 10px 14px 9px;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .flow-close {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }

  .flow-progress-copy {
    display: grid;
    gap: 1px;
    text-align: center;
  }

  #waitlist.is-open .flow-chrome .spots-left {
    justify-self: center;
    padding: 3px 7px;
    font-size: 0.52rem;
  }

  .flow-progress-copy strong {
    font-size: 0.78rem;
  }

  #waitlist.is-open .spots-left {
    margin: 5px auto 14px;
  }

  #waitlist.is-open .waitlist-intake {
    height: auto;
    flex: 1;
    min-height: 0;
    padding: 24px 16px 94px;
    justify-content: flex-start;
  }

  #waitlist .form-section.is-active legend {
    font-size: 1.65rem;
  }

  .flow-actions {
    right: auto;
    bottom: 5px;
    left: 50%;
    width: calc(100vw - 32px);
    margin: 0;
    padding: 8px;
    grid-template-columns: 0.42fr 1fr;
  }

  #waitlist .waitlist-submit {
    right: auto;
    bottom: 5px;
    left: 50%;
    width: calc(100vw - 32px);
  }

  #waitlist .form-note {
    position: fixed;
    z-index: 5;
    right: 22px;
    bottom: 75px;
    left: 22px;
    margin: 0;
    padding: 7px 10px;
    border-radius: 12px;
    background: rgba(248, 251, 253, 0.92);
    backdrop-filter: blur(12px);
    pointer-events: none;
  }
}

body {
  background:
    radial-gradient(circle at 75% 8%, rgba(10, 155, 244, 0.11), transparent 27rem),
    linear-gradient(180deg, #fff 0, #f5f5f7 38%, #fff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

h1,
h2,
h3,
.brand,
.ticker-item,
.feature-number,
.step-index,
.field-note p,
.stat strong {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
}

nav {
  min-height: 62px;
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 40px rgba(20, 35, 50, 0.07);
  backdrop-filter: saturate(180%) blur(24px);
}

.brand { letter-spacing: -0.045em; }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #0a9bf4;
  box-shadow: 0 6px 16px rgba(10, 155, 244, 0.25);
  transform: none;
}

.brand-mark::before {
  width: 7px;
  height: 7px;
  top: 8px;
  left: 8px;
  border-radius: 0;
  background: #fff;
  box-shadow: 10px 0 #fff, 0 10px #fff, 10px 10px #fff;
  transform: none;
}

.brand-mark::after { display: none; }

.nav-cta,
.button-primary {
  background: #0a9bf4;
  color: #fff;
  box-shadow: 0 12px 30px rgba(10, 155, 244, 0.2);
}

.nav-cta:hover,
.button-primary:hover { background: #0076d9; }

.hero {
  min-height: 920px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(245, 245, 247, 0.55));
}

.hero::before {
  width: 760px;
  height: 760px;
  top: -310px;
  right: -130px;
  background: radial-gradient(circle, rgba(10, 155, 244, 0.22), rgba(10, 155, 244, 0.06) 44%, transparent 70%);
  filter: blur(8px);
  opacity: 1;
}

.hero::after { display: none; }

.eyebrow {
  border-color: rgba(10, 155, 244, 0.18);
  background: rgba(227, 244, 255, 0.72);
  color: #087bc0;
  letter-spacing: 0.1em;
}

.eyebrow-dot {
  background: #0a9bf4;
  box-shadow: 0 0 0 5px rgba(10, 155, 244, 0.12);
}

h1 {
  line-height: 0.92;
  letter-spacing: -0.078em;
  font-weight: 700;
}

h1 .accent {
  color: transparent;
  background: linear-gradient(110deg, #087fc9 2%, #0a9bf4 45%, #61c4ff 96%);
  -webkit-background-clip: text;
  background-clip: text;
}

h1 .accent::after { display: none; }

.button-ghost {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
}

.avatar,
.avatar:first-child,
.avatar:nth-child(2),
.avatar:nth-child(3) {
  border-color: #fff;
  background: #0a9bf4;
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: 13% 4% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 155, 244, 0.19), transparent 68%);
  filter: blur(24px);
}

.phone {
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(145deg, #24272c, #07080a 65%);
  box-shadow: 0 44px 100px rgba(15, 41, 61, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5);
  transform: translateX(-50%) rotate(1.5deg);
  animation-name: phone-float-clean;
}

.phone-screen { background: #f5f5f7; }
.phone-island { background: #090a0c; }

.map {
  background-color: #dceaf2;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(255, 255, 255, 0.9) 49%, rgba(255, 255, 255, 0.9) 52%, transparent 53%),
    linear-gradient(110deg, transparent 46%, rgba(255, 255, 255, 0.9) 47%, rgba(255, 255, 255, 0.9) 51%, transparent 52%),
    linear-gradient(165deg, transparent 49%, rgba(255, 255, 255, 0.82) 50%, rgba(255, 255, 255, 0.82) 53%, transparent 54%);
}

.map::before,
.map::after { background: rgba(110, 170, 205, 0.17); }

.pin,
.pin-1,
.pin-2,
.pin-3 { background: #0a9bf4; }

.route { border-color: #0a9bf4 transparent transparent #0a9bf4; }
.live-pill { background: #e3f4ff; color: #087bc0; }
.live-pill::before { background: #0a9bf4; }
.coach-card { border-color: rgba(0, 0, 0, 0.07); box-shadow: 0 12px 32px rgba(26, 48, 67, 0.07); }
.coach-label { color: #087bc0; }
.waveform i { background: #0a9bf4; }

.float-card {
  border-color: rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(23, 53, 77, 0.13);
  backdrop-filter: saturate(160%) blur(22px);
}

.float-one,
.float-two { transform: none; }

.float-icon,
.float-two .float-icon { background: #e3f4ff; color: #087bc0; }

.ticker {
  border-color: rgba(10, 155, 244, 0.15);
  background: rgba(227, 244, 255, 0.62);
  color: #087bc0;
  transform: none;
  backdrop-filter: blur(18px);
}

.ticker-track { padding: 18px 0; }
.ticker-item { font-size: 13px; letter-spacing: 0.14em; }
.ticker-item b { color: #0a9bf4; }

.features { background: #fff; }
.section-kicker { color: #087bc0; }
.section-heading { letter-spacing: -0.065em; }

.feature-card {
  border-color: rgba(0, 0, 0, 0.07);
  background: #f5f5f7;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7);
}

.feature-card:nth-child(2),
.feature-card:nth-child(3) { background: #eef8ff; }

.feature-card:nth-child(4) {
  background: linear-gradient(145deg, #12161b, #050607);
  color: #fff;
}

.feature-card:hover { box-shadow: 0 24px 64px rgba(22, 58, 86, 0.11); }
.feature-art { opacity: 0.85; background: linear-gradient(145deg, #72caff, #0a9bf4); }
.feature-card:nth-child(2) .feature-art { background: linear-gradient(145deg, #0a9bf4, #0076d9); }
.feature-card:nth-child(3) .feature-art { background: #fff; }
.feature-card:nth-child(4) .feature-art { background: linear-gradient(90deg, #0a9bf4, #68c8ff); }

.step-index { color: #087bc0; }

.field-note {
  background: linear-gradient(145deg, #0a9bf4, #0076d9);
  box-shadow: 0 24px 60px rgba(10, 155, 244, 0.21);
  transform: none;
}

.cta-panel {
  background:
    radial-gradient(circle at 88% 20%, rgba(10, 155, 244, 0.35), transparent 25rem),
    linear-gradient(145deg, #161a20, #050607 70%);
  box-shadow: 0 40px 100px rgba(16, 34, 49, 0.18);
}

.cta-panel::before {
  width: 420px;
  height: 420px;
  top: -260px;
  right: -100px;
  border: 0;
  background: radial-gradient(circle, rgba(103, 200, 255, 0.64), rgba(10, 155, 244, 0.1) 55%, transparent 72%);
  filter: blur(8px);
}

.cta-panel::after { display: none; }
.waitlist-form .button { background: #0a9bf4; color: #fff; }
.waitlist-form input:focus { border-color: #0a9bf4; box-shadow: 0 0 0 4px rgba(10, 155, 244, 0.12); }

@keyframes phone-float-clean {
  0%, 100% { transform: translateX(-50%) rotate(1.5deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(0.5deg) translateY(-10px); }
}

@media (max-width: 700px) {
  .phone { animation-name: phone-float-clean; }
  .hero { min-height: auto; }
}

/* ---------- Nav log-in link ---------- */
.nav-login {
  color: var(--ink-soft);
  font-weight: 600;
}

.nav-login:hover {
  color: var(--coral-dark);
}

/* ---------- Authenticated views (login + account) ---------- */
body.auth-open {
  overflow: hidden;
}

.auth-view[hidden] {
  display: none !important;
}

.auth-view {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 92px 20px 44px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 18% 5%, rgba(20, 159, 238, 0.2), transparent 34%),
    radial-gradient(circle at 88% 90%, rgba(20, 159, 238, 0.1), transparent 32%),
    #f8fbfd;
  animation: flow-enter 240ms ease both;
}

.auth-card {
  position: relative;
  width: min(100%, 460px);
  margin: auto;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(16, 30, 44, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 80px rgba(13, 83, 132, 0.14);
  backdrop-filter: blur(22px);
  text-align: left;
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 30, 44, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #14222e;
  font: 500 1.6rem/1 sans-serif;
  cursor: pointer;
}

.auth-kicker {
  margin: 0;
  color: #087bc0;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-card h2 {
  margin: 8px 0 6px;
  color: #07111b;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.04em;
}

.auth-sub {
  margin: 0 0 22px;
  color: #66727d;
  font-size: 0.94rem;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 4px;
}

.auth-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fdecea;
  color: #b42318;
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-error[hidden] {
  display: none !important;
}

.auth-switch {
  margin: 22px 0 0;
  color: #66727d;
  font-size: 0.88rem;
  text-align: center;
}

.auth-switch a {
  color: #087bc0;
  font-weight: 750;
}

.auth-logout {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
}

.account-body {
  display: grid;
  gap: 16px;
  margin-top: 6px;
}

.account-lead {
  margin: 0;
  color: #3a464f;
  font-size: 1rem;
  line-height: 1.55;
}

.account-lead a {
  color: #087bc0;
  font-weight: 750;
}

.account-badge {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-badge-wait {
  background: #eef3f7;
  color: #55636e;
}

.account-badge-approved {
  background: #e3f4ff;
  color: #087bc0;
}

.account-badge-active {
  background: #e8f9f2;
  color: #00865a;
}

.account-badge-suspended {
  background: #fdeecd;
  color: #9a6a00;
}

.plan-grid {
  display: grid;
  gap: 12px;
}

.plan-button,
.account-download {
  width: 100%;
  min-height: 60px;
}

.account-manage,
.account-dev {
  width: 100%;
  min-height: 52px;
}

.account-note {
  margin: 0;
  color: #b42318;
  font-size: 0.84rem;
  font-weight: 700;
}

.account-note[hidden] {
  display: none !important;
}

.account-inline-link {
  padding: 0;
  border: 0;
  background: none;
  color: #087bc0;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: underline;
}

.plan-body {
  display: grid;
  gap: 16px;
  margin-top: 6px;
}

.plan-list {
  display: grid;
  gap: 12px;
}

.plan-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(16, 30, 44, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-card-title {
  color: #07111b;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.plan-card-price {
  margin: 0;
  color: #3a464f;
  font-size: 0.96rem;
  font-weight: 700;
}

.plan-card-hint {
  margin: 0;
  color: #66727d;
  font-size: 0.82rem;
  line-height: 1.45;
}

.plan-cancel {
  width: 100%;
  min-height: 48px;
}

.plan-addon {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(20, 159, 238, 0.28);
  border-radius: 20px;
  background: #f1f9ff;
}

.plan-addon-copy {
  margin: 0;
  color: #3a464f;
  font-size: 0.92rem;
  line-height: 1.5;
}

.plan-add-texting {
  width: 100%;
  min-height: 56px;
}

.plan-actions {
  display: flex;
  justify-content: flex-end;
}

.plan-section-title {
  margin: 8px 0 -4px;
  color: #07111b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-extras {
  display: grid;
  gap: 12px;
}

.plan-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(20, 159, 238, 0.28);
  border-radius: 20px;
  background: #f1f9ff;
}

.plan-extra-info {
  display: grid;
  gap: 3px;
}

.plan-extra-info strong {
  color: #07111b;
  font-size: 0.98rem;
  font-weight: 800;
}

.plan-extra-copy {
  color: #3a464f;
  font-size: 0.86rem;
  line-height: 1.45;
}

.plan-extra .button {
  flex: 0 0 auto;
  min-height: 44px;
  white-space: nowrap;
}

.plan-invoices {
  display: grid;
  gap: 8px;
}

.plan-invoice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(16, 30, 44, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.plan-invoice-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.plan-invoice-date {
  color: #07111b;
  font-size: 0.9rem;
  font-weight: 700;
}

.plan-invoice-desc {
  color: #66727d;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-invoice-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.plan-invoice-amt {
  color: #3a464f;
  font-size: 0.92rem;
  font-weight: 800;
}

.plan-invoice-link {
  color: #0f8fee;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.plan-invoice-link:hover {
  text-decoration: underline;
}

.seat-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.seat-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #66727d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.seat-qty,
.seat-tier {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(16, 30, 44, 0.16);
  border-radius: 12px;
  background: #fff;
  color: #07111b;
  font-size: 0.95rem;
  font-weight: 700;
}

.seat-qty {
  width: 84px;
}

.seat-controls .button {
  min-height: 44px;
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .plan-extra {
    flex-direction: column;
    align-items: stretch;
  }

  .plan-extra .button {
    width: 100%;
  }

  .plan-invoice {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .plan-invoice-meta {
    justify-content: space-between;
  }
}

@media (max-width: 700px) {
  .nav-links a.nav-login {
    display: inline-flex;
  }
}
