/* =============================================================================
   Shared styling for the static pages (checkout, VSL, legal) — matches the
   liquid-glass system used in the React landing page (src/index.css),
   hand-written in plain CSS since these pages don't go through Tailwind.
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --gold: #D8B46B;
  --gold-soft: rgba(216, 180, 107, 0.6);
  --white: #FFFFFF;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --error: #E5A090;
  --success: #9BC9A5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #000;
  color: var(--white);
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.font-serif { font-family: 'Instrument Serif', serif; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

h1, h2, h3 { font-family: 'Instrument Serif', serif; font-weight: 500; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: 1.4rem; margin-top: 2.2em; }
p { margin: 0 0 1.1em; color: var(--white-70); max-width: 42em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 720px; }

/* ---------- Liquid glass (same mechanism as the React app) ---------- */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.liquid-glass-gold::before {
  background: linear-gradient(180deg,
    rgba(216,180,107,0.55) 0%, rgba(216,180,107,0.18) 20%,
    rgba(216,180,107,0) 40%, rgba(216,180,107,0) 60%,
    rgba(216,180,107,0.18) 80%, rgba(216,180,107,0.55) 100%);
}

/* ---------- Header / nav ---------- */
.site-header { padding: 24px; }
.site-header__pill {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-family: 'Instrument Serif', serif; font-size: 1.2rem; color: var(--white); }
.logo:hover { text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  color: var(--white);
  transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 30px; font-size: 1.02rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.88rem; color: var(--white-50); padding: 18px 0 0; }
.breadcrumbs a { color: var(--white-50); }
.breadcrumbs .sep { margin: 0 6px; color: var(--white-50); }
.breadcrumbs [aria-current] { color: var(--white); }

/* ---------- Cards ---------- */
.card { border-radius: 20px; padding: 32px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--white); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
}
.field input::placeholder { color: var(--white-50); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.85rem; margin-top: 6px; display: none; }
.field__error[data-visible="true"] { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 24px; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 60px; }
.footer-bottom {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: var(--white-50);
}
.footer-bottom a { color: var(--white-50); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--gold); color: #000;
  padding: 10px 16px; z-index: 200; border-radius: 6px;
}
.skip-link:focus { left: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Checkout plan picker ---------- */
.plan-option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; margin-bottom: 10px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.plan-option:hover { background: rgba(255, 255, 255, 0.03); }
.plan-option[data-selected="true"] { border-color: var(--gold-soft); background: rgba(216, 180, 107, 0.06); }
.plan-option input { margin-top: 4px; accent-color: var(--gold); }
.plan-option__body { flex: 1; min-width: 0; }
.plan-option__title { display: flex; justify-content: space-between; gap: 12px; color: var(--white); font-weight: 600; }
.plan-option__desc { font-size: 0.85rem; color: var(--white-50); margin: 2px 0 0; }
.plan-option__tag { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-left: 8px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; color: rgba(255, 255, 255, 0.85); }
.summary-row--credit { color: var(--success); }
.summary-row--muted { color: var(--white-50); font-size: 0.9rem; }

/* ---------- Questionnaire (multi-step form) ---------- */
.field select {
  width: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white); font: inherit; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field select option { background: #111; color: #fff; }
.field select[aria-invalid="true"], .q-group[data-invalid="true"] { border-color: var(--error); }
.field textarea { min-height: 96px; resize: vertical; font: inherit; }
.field .help { font-size: 0.84rem; color: var(--white-50); margin: -2px 0 8px; max-width: none; }
.q-group { margin-bottom: 26px; border: 0; padding: 0; min-width: 0; }
.q-group > legend { font-size: 1rem; font-weight: 600; color: var(--white); padding: 0; margin-bottom: 6px; }
.q-group .help { font-size: 0.84rem; color: var(--white-50); margin: 0 0 10px; max-width: none; }
.q-group__error { color: var(--error); font-size: 0.85rem; margin-top: 4px; display: none; }
.q-group[data-invalid="true"] .q-group__error { display: block; }
.progress { margin: 0 0 28px; }
.progress__label { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--white-50); margin-bottom: 8px; }
.progress__track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: var(--gold); transition: width 0.3s ease; }
.step-nav { display: flex; gap: 12px; margin-top: 8px; }
.step-nav .btn { flex: 1; }
.step-nav .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; }
.consent input { margin-top: 4px; accent-color: var(--gold); }
.consent span { color: var(--white-70); font-size: 0.92rem; }
