/* ================================================================
   Rise & Thrive Evergreen Webinar — Stylesheet
   Refined editorial aesthetic on the Rise & Thrive brand palette:
   warm cream surfaces, deep brown ink, dusty mauve accents.
   ================================================================ */

:root {
  /* Colour palette (Rise & Thrive brand) */
  --bg:           #FFFAF6;
  --surface:      #FFFFFF;
  --surface-alt:  #F5D9D5;
  --ink:          #433B39;
  --ink-soft:     #5C514F;
  --muted:        #8F626A;
  --accent:       #B28D94;
  --accent-deep:  #8F626A;
  --accent-warm:  #775158;
  --border:       rgba(67, 59, 57, 0.1);
  --border-strong:rgba(67, 59, 57, 0.2);
  --success:      #5D7A5A;
  --error:        #B33A3A;

  /* Typography */
  --font-display: 'Source Sans 3', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    'Source Sans 3', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Spacing & layout */
  --container:    72rem;
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 2px rgba(26, 35, 50, 0.04), 0 2px 8px rgba(26, 35, 50, 0.04);
  --shadow:       0 4px 12px rgba(26, 35, 50, 0.06), 0 12px 32px rgba(26, 35, 50, 0.08);
  --shadow-lg:    0 8px 24px rgba(26, 35, 50, 0.08), 0 24px 60px rgba(26, 35, 50, 0.12);
}

/* ----------------------------------------------------------------
   Base
   ---------------------------------------------------------------- */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  /* Subtle grain for warmth */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/></svg>");
  opacity: 0.6;
  z-index: 1;
  mix-blend-mode: multiply;
}

main, header, footer { position: relative; z-index: 2; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.5em 0;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em 0; color: var(--ink-soft); }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-deep); }

/* ----------------------------------------------------------------
   Layout
   ---------------------------------------------------------------- */

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  border: none;
}
.brand-logo { height: 32px; width: auto; display: block; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer a { color: var(--muted); border-bottom-color: var(--border-strong); }

/* ----------------------------------------------------------------
   Hero / page intro
   ---------------------------------------------------------------- */

.hero {
  padding: 4rem 0 2rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding: 2rem 0 1rem; }
}

.hero-headline {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 800;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--ink-soft);
  margin-top: 1.25rem;
  max-width: 32rem;
}
.hero-host {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.hero-host strong { color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------------------
   Card / surface
   ---------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: -0.005em;
}

/* ----------------------------------------------------------------
   Slot picker
   ---------------------------------------------------------------- */

.tz-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.tz-banner::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.day-group { margin-bottom: 1.5rem; }
.day-group:last-child { margin-bottom: 0; }
.day-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.6rem;
  font-style: italic;
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
}

.slot {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.slot:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.slot.selected {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}
.slot .slot-time { display: block; font-weight: 600; }
.slot .slot-meta {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.15rem;
}
.slot.selected .slot-meta { color: rgba(255, 255, 255, 0.7); }

.slot.immediate {
  grid-column: 1 / -1;
  background: var(--surface-alt);
  border-color: var(--accent);
  border-style: dashed;
}
.slot.immediate.selected {
  background: var(--accent);
  border-style: solid;
}

/* ----------------------------------------------------------------
   Form
   ---------------------------------------------------------------- */

.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.form-row input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 95, 93, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--ink);
  color: var(--surface);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.btn-accent { background: var(--accent); }
.btn.btn-accent:hover { background: var(--accent-deep); }

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
}

.error-banner {
  background: rgba(179, 58, 58, 0.08);
  border: 1px solid rgba(179, 58, 58, 0.3);
  color: var(--error);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}
.error-banner.visible { display: block; }

/* ----------------------------------------------------------------
   Confirmation page
   ---------------------------------------------------------------- */

.confirm-hero {
  text-align: center;
  padding: 4rem 0 2rem;
  max-width: 36rem;
  margin: 0 auto;
}
.confirm-checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}
.confirm-time {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  color: var(--accent);
  margin: 1rem 0;
}
.confirm-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.confirm-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.confirm-list li:last-child { border-bottom: 1px solid var(--border); }
.confirm-list .step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-family: var(--font-display);
}
.confirm-list .step-body strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.confirm-list .step-body span { color: var(--ink-soft); font-size: 0.95rem; }

/* ----------------------------------------------------------------
   Show page (countdown + video)
   ---------------------------------------------------------------- */

.stage {
  padding: 2rem 0 4rem;
}
.stage-header {
  text-align: center;
  margin-bottom: 2rem;
}
.stage-headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}
.stage-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.countdown-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 36rem;
  margin: 0 auto;
}
.countdown-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.countdown-clock {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  line-height: 1;
  margin: 0.5rem 0 1rem;
}
.countdown-when {
  color: var(--ink-soft);
  font-size: 1rem;
}
.countdown-tip {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.video-stage {
  max-width: 64rem;
  margin: 0 auto;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-meta {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ----------------------------------------------------------------
   Stage grid: video on the left, chat panel on the right
   ---------------------------------------------------------------- */

.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 72rem;
  margin: 0 auto;
}
.stage-grid .video-stage { max-width: none; }

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

/* ----------------------------------------------------------------
   Chat panel
   ---------------------------------------------------------------- */

.chat-panel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 22rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 880px) {
  .chat-panel {
    height: 22rem;
  }
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.chat-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.chat-viewers {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.chat-viewers .chat-watching { margin-left: 0.15rem; }
.chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-warm);
  animation: pulse 1.8s ease-in-out infinite;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  position: relative;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}
.chat-fade-top {
  position: sticky;
  top: -0.85rem;
  margin: -0.85rem -1rem 0;
  height: 1.25rem;
  background: linear-gradient(to bottom, var(--surface), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 1;
}

.chat-empty {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 1rem 0;
  font-style: italic;
}

.chat-message {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  animation: chatFadeIn 0.3s ease-out;
}
.chat-message:last-child { margin-bottom: 0.25rem; }
@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.chat-avatar-self {
  background: var(--ink);
  font-size: 0.65rem;
}

.chat-body {
  flex: 1;
  min-width: 0;
}
.chat-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.chat-text {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-top: 0.15rem;
  word-wrap: break-word;
}

.chat-host-badge,
.chat-self-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--surface);
}
.chat-self-badge {
  background: var(--surface-alt);
  color: var(--accent);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.65rem;
}

.chat-input-wrap {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.chat-input-wrap input {
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chat-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(178, 141, 148, 0.18);
}
.chat-input-wrap input:disabled {
  background: var(--surface-alt);
  cursor: not-allowed;
  opacity: 0.7;
}
.chat-input-wrap button {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.chat-input-wrap button:hover { background: var(--accent-deep); }
.chat-input-wrap button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chat-status {
  padding: 0 1rem 0.6rem;
  font-size: 0.72rem;
  color: var(--muted);
  min-height: 1.2rem;
  background: var(--bg);
}
.chat-status:empty { padding: 0; min-height: 0; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-warm);
  color: var(--surface);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.live-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.holding-state {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 36rem;
  margin: 0 auto;
}
.holding-state h1 { margin-bottom: 1rem; }
.holding-state p { font-size: 1.05rem; }

/* ----------------------------------------------------------------
   Loading / hidden states
   ---------------------------------------------------------------- */

.hidden { display: none !important; }

.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes rotate {
  to { transform: rotate(360deg); }
}

/* ----------------------------------------------------------------
   Page-load animation (subtle stagger)
   ---------------------------------------------------------------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}
.fade-in.delay-1 { animation-delay: 0.08s; }
.fade-in.delay-2 { animation-delay: 0.16s; }
.fade-in.delay-3 { animation-delay: 0.24s; }
.fade-in.delay-4 { animation-delay: 0.32s; }

/* ----------------------------------------------------------------
   Completion CTA modal
   Soft modal that appears after the viewer reaches the end of the
   replay video. Unmissable, but unhurried. Editorial in tone.
   ---------------------------------------------------------------- */

.completion-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.completion-overlay-visible { opacity: 1; }

.completion-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(67, 59, 57, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.completion-card {
  position: relative;
  width: 100%;
  max-width: 32rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  outline: none;
  transform: translateY(12px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.completion-overlay-visible .completion-card {
  transform: translateY(0);
}

.completion-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.completion-close:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.completion-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.completion-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.85rem;
}

.completion-subheadline {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.completion-body {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.completion-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.completion-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  padding: 0.9rem 1.5rem;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.completion-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.completion-secondary {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem;
  text-decoration: underline;
  text-decoration-color: rgba(143, 98, 106, 0.3);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.completion-secondary:hover {
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .completion-card {
    padding: 2rem 1.5rem 1.5rem;
  }
}

/* ----------------------------------------------------------------
   Brand logo (header)
   ---------------------------------------------------------------- */
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

/* ----------------------------------------------------------------
   Registration page: brand-matched landing design
   ---------------------------------------------------------------- */
:root{
  --red:#CC2B2B;
  --on-dark:#ECE4E1;
  --on-dark-soft:rgba(236,228,225,.66);
  --line-dark:rgba(255,255,255,.14);
}

/* Red brand bar */
.topbar{background:var(--red);color:#fff;position:relative;z-index:2;}
.topbar .container{padding-top:.6rem;padding-bottom:.6rem;text-align:center;
  font-size:.74rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;}

/* Hero (dark) */
.hero{background:var(--ink);color:var(--on-dark);padding:0;}
.hero .container{padding-top:0;padding-bottom:0;}
.hero-head{display:flex;align-items:center;justify-content:space-between;padding:1.5rem 0 0;}
.brand-logo-light{height:38px;width:auto;display:block;}
.hero-tag{font-size:.82rem;color:var(--on-dark-soft);}
.hero-inner{text-align:center;max-width:760px;margin:0 auto;padding:3.4rem 0 4.6rem;}
.hero .eyebrow{color:var(--blush,#F5D9D5);display:inline-block;margin-bottom:1.3rem;
  border:0;background:none;padding:0;border-radius:0;
  font-size:.76rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;}
.hero .hero-headline{font-size:clamp(2.7rem,6vw,4.6rem);font-weight:900;letter-spacing:-.035em;color:#fff;line-height:1.05;}
.hero .hero-headline em{font-style:italic;font-weight:700;color:var(--surface-alt);}
.hero .hero-sub{font-size:clamp(1.08rem,1.7vw,1.32rem);color:var(--on-dark);font-style:italic;font-weight:400;max-width:600px;margin:1.4rem auto 0;}
.cta-row{margin-top:2.3rem;display:flex;flex-direction:column;align-items:center;gap:1.1rem;}
.meta-row{display:flex;align-items:center;gap:.9rem;flex-wrap:wrap;justify-content:center;font-size:.9rem;color:var(--on-dark-soft);}
.pill{display:inline-flex;align-items:center;gap:.5rem;border:1px solid var(--line-dark);color:var(--surface-alt);font-weight:600;padding:.38rem .9rem;border-radius:999px;font-size:.82rem;}
.pill .dot{width:7px;height:7px;border-radius:50%;background:var(--surface-alt);}
.hero .hero-host{display:block;text-align:center;margin-top:2rem;font-size:.96rem;color:var(--on-dark-soft);}
.hero .hero-host strong{color:#fff;font-weight:700;}

/* Buttons (mauve, brand style) */
.btn{display:inline-flex;align-items:center;justify-content:center;width:auto;
  font-family:var(--font-body);font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:.92rem;
  border:none;cursor:pointer;background:var(--accent);color:#fff;padding:1.05rem 2.5rem;border-radius:6px;
  transition:transform .18s ease,background .18s ease;}
.btn:hover{transform:translateY(-2px);background:var(--accent-deep);color:#fff;}
.btn.btn-accent{background:var(--accent);}
.btn.btn-accent:hover{background:var(--accent-deep);}

/* Social proof bar */
.trust-bar{background:var(--surface);border-bottom:1px solid var(--border);position:relative;z-index:2;}
.trust-bar .container{padding-top:1.1rem;padding-bottom:1.1rem;text-align:center;}
.trust-bar p{margin:0;color:var(--accent-deep);font-size:.88rem;letter-spacing:.05em;font-weight:600;}

/* Generic sections */
.sec{padding:5.2rem 0;position:relative;z-index:2;}
.sec .container{max-width:60rem;}
.sec-head{text-align:center;max-width:860px;margin:0 auto 3.2rem;}
.sec-head .eyebrow{display:block;margin-bottom:.9rem;color:var(--accent-deep);
  border:0;background:none;padding:0;border-radius:0;
  font-size:.76rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;}
.sec-head h2{font-size:clamp(1.8rem,3.4vw,2.6rem);color:var(--ink);font-weight:800;}
.sec-head h2 em.acc{font-style:italic;font-weight:700;color:var(--accent-deep);}
.sec-head p{margin:1.1rem auto 0;color:var(--ink-soft);font-size:1.05rem;max-width:560px;}

/* Walk-away (numbered) */
.num-item{display:grid;grid-template-columns:120px 1fr;gap:1rem;padding:2.4rem 0;border-top:1px solid var(--border);}
#secrets-grid .num-item:last-child{border-bottom:1px solid var(--border);}
.num-item .n{font-size:3.2rem;font-weight:300;color:var(--accent);line-height:1;letter-spacing:-.02em;}
.num-item h3{font-size:1.3rem;font-style:italic;font-weight:700;color:var(--ink);margin:0 0 .6rem;}
.num-item p{margin:0;color:var(--ink-soft);font-size:1.02rem;}

/* Who this is for (dark) */
.whofor{background:var(--ink);color:var(--on-dark);}
.whofor .sec-head .eyebrow{color:var(--surface-alt);}
.whofor .sec-head h2{color:#fff;}
.whofor .sec-head h2 em.acc{color:var(--surface-alt);}
.who-list{max-width:600px;margin:0 auto;display:grid;gap:1.2rem;}
.who-item{display:flex;gap:1rem;align-items:flex-start;font-size:1.08rem;color:var(--on-dark);}
.who-item .b{flex:none;margin-top:.55rem;width:8px;height:8px;border-radius:50%;background:var(--surface-alt);}

/* Host */
.host .container{max-width:680px;text-align:center;}
.host .avatar{width:128px;height:128px;border-radius:50%;margin:0 auto 1.6rem;
  background:radial-gradient(circle at 50% 35%,#fff,var(--surface-alt));border:1px solid var(--border-strong);
  display:flex;align-items:center;justify-content:center;color:var(--accent-deep);font-weight:800;font-size:2.1rem;}
.host .host-name{font-size:1.3rem;font-weight:800;color:var(--ink);}
.host .host-cred{font-size:.8rem;color:var(--accent-deep);font-weight:700;letter-spacing:.14em;text-transform:uppercase;margin-top:.35rem;}
.host .host-bio{color:var(--ink-soft);font-size:1.05rem;margin-top:1.4rem;}

/* Closing (dark) */
.closing{background:var(--ink);color:var(--on-dark);text-align:center;position:relative;z-index:2;}
.closing .container{max-width:640px;padding-top:5.6rem;padding-bottom:5.6rem;}
.closing h2{font-size:clamp(2rem,3.8vw,2.9rem);color:#fff;font-weight:800;}
.closing h2 em.acc{font-style:italic;font-weight:700;color:var(--surface-alt);}
.closing p{color:var(--on-dark-soft);font-size:1.1rem;margin:1.1rem 0 2.1rem;}

/* Footer logo */
.site-footer .footer-logo{height:30px;width:auto;opacity:.8;margin-bottom:.7rem;display:inline-block;}
.site-footer p{margin:0;}
.site-footer-home{text-align:center;}

/* Registration modal */
.modal-overlay{position:fixed;inset:0;background:rgba(53,46,44,.6);backdrop-filter:blur(4px);
  display:none;align-items:center;justify-content:center;padding:1.2rem;z-index:50;}
.modal-overlay.on{display:flex;}
@keyframes modalpop{from{opacity:0;transform:translateY(14px) scale(.98);}to{opacity:1;transform:none;}}
.modal{background:var(--bg);width:100%;max-width:460px;border-radius:16px;padding:2rem 1.8rem 1.9rem;
  position:relative;box-shadow:0 30px 80px rgba(0,0,0,.35);animation:modalpop .26s ease;max-height:92vh;overflow:auto;}
.modal-title{font-size:1.4rem;font-weight:800;color:var(--ink);letter-spacing:-.02em;}
.modal-close{position:absolute;top:.9rem;right:1.1rem;border:none;background:none;font-size:1.6rem;line-height:1;
  color:var(--accent-deep);cursor:pointer;padding:.2rem;}
.modal .tz-banner{margin:.7rem 0 1.1rem;}
.modal .btn{width:100%;margin-top:1.25rem;}

/* Slot picker inside the registration modal: even chips, uppercase day labels */
.modal .day-group{margin-bottom:1.1rem;}
.modal .day-label{
  font-family:var(--font-body);
  font-size:.72rem;font-weight:700;letter-spacing:.13em;
  text-transform:uppercase;color:var(--accent-deep);font-style:normal;
  margin-bottom:.55rem;
}
.modal .slots{grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:.5rem;}
.modal .slot{text-align:center;padding:.62rem .5rem;font-weight:700;border-radius:10px;}
.modal .slot .slot-time{font-weight:700;}
.modal .slot.immediate{text-align:left;padding:.85rem 1rem;}
.modal .slot.immediate .slot-time{font-weight:700;}

/* Tighter form inside the modal */
.modal .form-row{margin-bottom:.7rem;}
.modal .form-row label{font-size:.8rem;margin-bottom:.25rem;}
.modal .form-row input{padding:.6rem .8rem;font-size:.95rem;}
.modal .btn{width:100%;margin-top:1rem;}
.modal .form-note{margin-top:.7rem;}

@media (max-width:780px){
  .sec{padding:3.6rem 0;}
  .hero-inner{padding:2.2rem 0 3.4rem;}
  .num-item{grid-template-columns:1fr;gap:.3rem;}
  .num-item .n{font-size:2.4rem;}
  .closing .container{padding-top:3.8rem;padding-bottom:3.8rem;}
}
@media (prefers-reduced-motion:reduce){
  .btn{transition:none;}
  .modal{animation:none;}
}
