/* Sweet Robo brand: tokens taken from sweetrobo.com (deep purple, pink→violet gradient, Outfit + DM Sans). */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/outfit-variable.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/dm-sans-variable.woff2) format('woff2');
}

:root {
  --bg-deep: #14092b;
  --bg-mid: #2c1357;
  --ink: #1c1240;
  --ink-soft: #5a5470;
  --lavender: #cfc5e6;
  --kicker: #f7a8d6;
  --magenta: #ec1e96;
  --magenta-ink: #bd1577;
  --violet: #b231d6;
  /* Brand CTA gradient, nudged a touch darker so white button text stays readable (4.5:1). */
  --grad-cta: linear-gradient(100deg, #dc1983 0%, #b535ba 100%);
  --grad-text: linear-gradient(100deg, #f0218c 0%, #b95de8 100%);
  --card: #ffffff;
  --tint: #f7f5fb;
  --line: #e6e1ef;
  --line-strong: #cbc2dc;
  --sel-bg: #fdf0f8;
  --sel-line: #ec1e96;
  --danger: #c62828;
  --danger-bg: #fdecec;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --font-head: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: #fff;
  background: linear-gradient(180deg, #1b0c38 0%, var(--bg-deep) 520px);
  background-color: var(--bg-deep);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* Magenta + violet glows and the dot grid from the sweetrobo.com hero. */
.glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(520px 420px at 88% 6%, rgba(236, 30, 150, 0.34), transparent 70%),
    radial-gradient(620px 520px at 0% 38%, rgba(124, 58, 237, 0.38), transparent 70%);
}
.glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 65% 25%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 65% 25%, #000 10%, transparent 75%);
}
.top, main, .foot { position: relative; z-index: 1; }

/* ---- Header (white bar, like sweetrobo.com) ---- */
.top { background: #fff; box-shadow: 0 1px 0 rgba(28, 18, 64, 0.08); }
.top-in {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: block; height: 52px; width: auto; }
.top-tag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--line);
}

/* ---- Hero ---- */
.hero { max-width: 720px; margin: 0 auto; padding: 30px 16px 4px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kicker);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--magenta);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(236, 30, 150, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(236, 30, 150, 0); }
  100% { box-shadow: 0 0 0 0 rgba(236, 30, 150, 0); }
}
h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(36px, 9.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-weight: 650;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.02em;
}
.sub { margin: 14px 0 0; font-size: clamp(16px, 4.3vw, 19px); color: var(--lavender); max-width: 38em; text-wrap: pretty; }

/* ---- Card ---- */
.card {
  max-width: 688px;
  margin: 24px auto 0;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 22px 22px 26px;
  min-height: 380px;
}
@media (max-width: 720px) {
  .card { margin: 22px 12px 0; padding: 20px 16px 22px; }
}

.progress { margin-bottom: 18px; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.progress-track { height: 6px; background: #efebf5; border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--grad-cta); border-radius: 99px; transition: width 0.35s ease; }

.step-enter { animation: enter 0.28s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.q-title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: clamp(22px, 5.6vw, 27px);
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -0.01em;
  outline: none;
}
.q-hint { margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; }
.q-title + .options { margin-top: 16px; }

.options { display: grid; gap: 10px; }
.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.08s;
}
.opt:hover { border-color: var(--line-strong); background: var(--tint); }
.opt:active { transform: scale(0.99); }
.opt:focus-visible { outline: 3px solid rgba(236, 30, 150, 0.4); outline-offset: 2px; }
.opt .tick {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  transition: all 0.15s;
}
.opt[aria-checked='true'] { border-color: var(--sel-line); background: var(--sel-bg); }
.opt[aria-checked='true'] .tick { background: var(--grad-cta); border-color: transparent; }
.opt[aria-checked='true'] .tick::after {
  content: '';
  width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}

/* ---- Forms ---- */
.form { display: grid; gap: 14px; margin-top: 16px; }
.row2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field label .opt-tag { font-weight: 500; color: var(--ink-soft); }
.field input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 17px; /* 16px+ keeps iOS from zooming */
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: #a39cb5; }
.field input:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(236, 30, 150, 0.15); }
.field input[aria-invalid='true'] { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 13px; color: var(--ink-soft); margin: 2px 0 0; }

/* ---- Buttons ---- */
.actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  border: 0;
  font-family: var(--font-body);
  font-size: 16px; font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s, filter 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.985); }
.btn:focus-visible { outline: 3px solid rgba(236, 30, 150, 0.45); outline-offset: 2px; }
.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 28px rgba(236, 30, 150, 0.35);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { background: var(--tint); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.back {
  background: none; border: 0; padding: 8px 0; margin: 0 0 6px;
  color: var(--ink-soft); font-size: 14px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.back:hover { color: var(--ink); }
.linkish { background: none; border: 0; padding: 0; color: var(--magenta-ink); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.error {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--danger-bg);
  color: #8e1c1c;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}

/* ---- Video ---- */
.prompt-box {
  margin: 14px 0 4px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--tint);
  border-left: 4px solid var(--magenta);
  font-family: var(--font-head);
  font-size: 18px; font-weight: 600;
}
.tips { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-soft); font-size: 14px; }
.tips li::before { content: '✓ '; color: var(--magenta); font-weight: 800; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 18px; }
@media (max-width: 420px) { .choice-grid { grid-template-columns: 1fr; } }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.choice:hover { border-color: var(--sel-line); background: var(--sel-bg); }
.choice strong { font-family: var(--font-head); font-size: 18px; font-weight: 650; }
.choice span { font-size: 14px; color: var(--ink-soft); }
.choice svg { width: 26px; height: 26px; color: var(--magenta); }

.stage {
  position: relative;
  margin-top: 16px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: 4 / 3;
}
.stage video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--bg-deep); }
.stage video.mirror { transform: scaleX(-1); }
.stage video.contain { object-fit: contain; }
.rec-hud {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff; font-weight: 700; font-size: 15px;
  pointer-events: none;
}
.rec-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, 0.55); padding: 6px 12px; border-radius: 999px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b5c; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.rec-bar { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--grad-cta); width: 0; transition: width 0.25s linear; }
.countdown {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-size: 96px; font-weight: 800; color: #fff;
  background: rgba(20, 9, 43, 0.4);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.prompt-overlay {
  position: absolute; left: 12px; right: 12px; bottom: 16px;
  color: #fff; font-size: 15px; font-weight: 600; text-align: center;
  background: rgba(20, 9, 43, 0.6); padding: 8px 12px; border-radius: 12px;
  pointer-events: none;
}
.upload-progress { margin-top: 16px; }
.upload-progress .progress-track { height: 10px; }
.upload-progress p { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.file-meta { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ---- Result + scheduler ---- */
.badge-ok {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--sel-bg); color: var(--magenta-ink);
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 12px;
}
.lead { font-size: 17px; color: var(--ink-soft); margin: 8px 0 0; }
.day { margin-top: 18px; }
.day h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.slot {
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.slot strong { display: block; font-family: var(--font-head); font-size: 18px; font-weight: 650; }
.slot small { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.slot small.low { color: var(--magenta-ink); }
.slot:hover { border-color: var(--line-strong); background: var(--tint); }
.slot[aria-checked='true'] { border-color: var(--sel-line); background: var(--sel-bg); }
.confirm-bar { position: sticky; bottom: 12px; margin-top: 18px; }
.confirm-bar .btn { width: 100%; text-transform: none; letter-spacing: 0.01em; font-size: 17px; }

.booked {
  margin-top: 16px;
  border: 1.5px solid #f4c4e1;
  background: linear-gradient(180deg, #fdf2f9, #fff);
  border-radius: 16px;
  padding: 18px;
}
.booked .when { font-family: var(--font-head); font-size: 23px; font-weight: 700; letter-spacing: -0.01em; }
.booked .meta { color: var(--ink-soft); margin-top: 2px; font-weight: 600; }
.booked .details { margin-top: 10px; white-space: pre-wrap; font-size: 15px; }
.cal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cal-actions .btn { min-height: 44px; font-size: 15px; padding: 0 14px; }
.next-steps { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.next-steps b { color: var(--ink); }
.next-steps .n {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: var(--tint); color: var(--ink);
}
.next-steps .n.done { background: var(--grad-cta); color: #fff; }
.crm-frame {
  margin-top: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.crm-frame iframe { display: block; width: 100%; height: 780px; border: 0; }
@media (max-width: 480px) {
  .crm-frame { margin-left: -8px; margin-right: -8px; }
  .crm-frame iframe { height: 860px; }
}
.empty-slots { margin-top: 16px; padding: 16px; border-radius: var(--r-md); background: var(--tint); color: var(--ink-soft); font-size: 15px; }

.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(28, 18, 64, 0.12); border-top-color: var(--magenta);
  animation: spin 0.8s linear infinite; margin: 30px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Below the card ---- */
.below { max-width: 720px; margin: 0 auto; padding: 28px 16px 8px; }
.perks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center; color: #e8e2f4; font-size: 15px; font-weight: 600; }
.perks li { display: inline-flex; align-items: center; gap: 8px; }
.perks li::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(236, 30, 150, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7a8d6' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.comp {
  text-align: center; margin: 16px 0 0;
  font-family: var(--font-head); font-weight: 650; font-size: 18px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.foot { text-align: center; color: #8f86ab; font-size: 13px; padding: 30px 16px 36px; }

body.compact .sub { display: none; }
body.compact .hero { padding-top: 20px; }
body.compact h1 { font-size: clamp(28px, 7vw, 42px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
