/* =========================================================
   Rapstar Financial — Shared styles
   ========================================================= */

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

:root {
  --bg: #fafafa;
  --bg-cream: #f1ede4;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --muted: #5b5b5b;
  --line: #e6e6e6;
  --gold: #a8861f;
  --gold-soft: #f6efd9;
  --green-dark: #1d3d2c;
  --white: #ffffff;
  --maxw: 720px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, system-ui, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,250,0.85);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}
.brand small .star { color: var(--ink); margin: 0 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #1a1a1a; }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  font-size: 16px;
  padding: 16px 32px;
  box-shadow: 0 0 60px -10px rgba(168,134,31,.55);
}
.btn-green {
  background: var(--green-dark);
  color: var(--white);
  font-size: 15px;
  padding: 16px 28px;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 15px;
  padding: 15px 28px;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.wide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero h1 .gold { color: var(--gold); }
.hero p.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Pills (Eyebrow labels) ---------- */
.pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pill-dark {
  background: rgba(168,134,31,.12);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(168,134,31,.35);
}

/* ---------- Section headings ---------- */
.section {
  padding: 64px 0;
}
.section .head {
  text-align: center;
  margin-bottom: 40px;
}
.section h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 18px 0 14px;
  color: var(--ink);
}
.section p.lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Video cards (link-as-card) ---------- */
.video-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin: 16px 0;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
}
.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -20px rgba(0,0,0,.18);
}
.video-card .thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.video-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.video-card .play span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.video-card .play span::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 20px solid var(--ink);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
.video-card .meta {
  padding: 18px 22px 20px;
}
.video-card .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.video-card .title {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(10,10,10,.25);
}

/* ---------- CTA row (centered button between sections) ---------- */
.cta-row {
  text-align: center;
  padding: 24px 0 8px;
}

/* ---------- Dark "Not for everyone" panel ---------- */
.dark-panel {
  border-radius: 24px;
  background:
    radial-gradient(60% 70% at 50% 50%, rgba(168,134,31,.18), transparent 70%),
    #0a0a0a;
  color: var(--white);
  padding: 56px 28px 64px;
  text-align: center;
  margin: 32px 0;
}
.dark-panel h2 { color: var(--white); }
.dark-panel p.lede { color: rgba(255,255,255,.78); max-width: 620px; margin: 0 auto 28px; }
.dark-panel .pill { background: rgba(168,134,31,.1); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(168,134,31,.45); }
.dark-panel .note { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 16px; }

/* ---------- "Want to talk?" card ---------- */
.talk-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  margin-top: 24px;
}
.talk-card .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
.talk-card p {
  color: var(--muted);
  margin: 0 auto 22px;
  max-width: 460px;
}
.talk-card .smallnote { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.site-footer .brands { display: flex; align-items: center; gap: 14px; }
.site-footer .brands strong { color: var(--ink); }
.site-footer .divider { color: var(--line); }

/* ---------- Apply page ---------- */
body.apply { background: var(--bg-cream); }

.apply-shell {
  min-height: 100vh;
  padding: 56px 20px 80px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.apply-card {
  background: var(--white);
  border-radius: 22px;
  max-width: 720px;
  width: 100%;
  padding: 48px 44px 40px;
  box-shadow: 0 30px 90px -50px rgba(0,0,0,.18);
}
.apply-card .brand-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 36px;
  text-align: center;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.1;
}
.apply-card .brand-sub {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 10px 0 22px;
}
.apply-card .brand-sub .star { color: var(--ink); margin: 0 8px; }

.apply-card .lede {
  text-align: center;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.steps-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 36px;
}
.steps-dots .dot {
  width: 36px;
  height: 6px;
  border-radius: 999px;
  background: #d8d3c5;
}
.steps-dots .dot.active { background: var(--green-dark); }
.steps-dots .dot.done   { background: #8aa094; }

.step h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  margin: 8px 0 6px;
  color: var(--ink-soft);
}
.step .step-sub { color: var(--muted); margin: 0 0 26px; }
.step { display: none; }
.step.active { display: block; }

.field { margin: 0 0 22px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid #d8d3c5;
  background: var(--white);
  border-radius: 12px;
  color: var(--ink);
  outline: none;
  transition: border .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 4px rgba(29,61,44,.08);
}
.field.error input,
.field.error select,
.field.error textarea {
  border-color: #a8243a;
  background: #fbeff0;
}
.field .err-msg {
  display: none;
  margin-top: 8px;
  color: #a8243a;
  font-size: 13px;
  font-weight: 600;
}
.field.error .err-msg { display: block; }

.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.choices {
  display: grid;
  gap: 10px;
}
.choice {
  border: 1px solid #d8d3c5;
  background: var(--white);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: center;
  cursor: pointer;
  transition: border .15s ease, background .15s ease, box-shadow .15s ease;
}
.choice .main { font-weight: 700; color: var(--ink-soft); }
.choice .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.choice:hover { border-color: #a39977; }
.choice.selected {
  border-color: var(--green-dark);
  background: #f1f5f1;
  box-shadow: 0 0 0 3px rgba(29,61,44,.08);
}

/* ---------- Warning panels (conditional under choice fields) ---------- */
.warning {
  display: none;
  border-radius: 12px;
  padding: 16px 18px 18px 18px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid transparent;
}
.warning.show { display: block; }
.warning .head {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.warning .head::before {
  content: "●";
  font-size: 13px;
  line-height: 1;
}

/* Red — critical reminder */
.warning.red {
  background: #fbeae8;
  border-color: #f4cac4;
  color: #5c1e17;
}
.warning.red .head::before { color: #b8362b; }

/* Amber — heads up */
.warning.amber {
  background: #fbf2e3;
  border-color: #f0dab4;
  color: #5a3a0c;
}
.warning.amber .head::before { color: #c98a1e; }

.step-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.step-actions .btn { flex: 1; justify-content: center; padding: 18px 24px; }
.step-actions .btn-green { font-size: 16px; }
.step-actions .btn-ghost { font-size: 16px; }

.success, .errorbox {
  text-align: center;
  padding: 24px 0 0;
}
.success h2, .errorbox h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 34px;
  margin: 12px 0;
}
.success p, .errorbox p { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header .inner { padding: 12px 18px; }
  .brand { font-size: 17px; }
  .brand small { font-size: 10px; }
  .btn { padding: 10px 16px; font-size: 13px; }
  .hero { padding: 48px 0 32px; }
  .section { padding: 44px 0; }
  .apply-card { padding: 32px 22px 28px; }
  .apply-card .brand-title { font-size: 30px; }
}
