/* ── Brand fonts (same CDN sources as the Clarity pages) ── */
@font-face {
  font-family: 'Billy Ohio';
  src: url('https://cdn.shopify.com/s/files/1/0078/5039/3713/files/Billy_Ohio.ttf?v=1775250004') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'F37 Moon';
  src: url('https://cdn.shopify.com/s/files/1/0078/5039/3713/files/f37-moon-black_cec2cff9-9ca8-4a4c-aaf7-616d06df5001.ttf?v=1775249995') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── Tokens — Heartcore brand palette ── */
:root {
  --accent:       #F53558;
  --cta:          #0000D2;
  --cta-hover:    #0000a8;
  --panel:        #CCEFFD;
  --yellow:       #F7B200;
  --text:         #000000;
  --text-light:   #444444;
  --white:        #ffffff;
  --green:        #1a8c3a;
  --error:        #c0182f;
  --border:       #e8e0d8;
  --radius:       8px;
  --max-width:    780px;
  --font-display: 'Billy Ohio', cursive;
  --font-heading: 'F37 Moon', 'Work Sans', sans-serif;
  --font-body:    'Work Sans', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.7; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--panel { background: var(--panel); }
.text-center { text-align: center; }

/* ── Typography ── */
.section-title {
  font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900; text-align: center; margin-bottom: 16px;
}
.section-intro {
  text-align: center; color: var(--text-light);
  max-width: 560px; margin: 0 auto 40px; font-size: 1.25rem; line-height: 1.6;
}
.script { font-family: var(--font-display); color: var(--accent); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.2; }

/* ── CTA ── */
.btn-cta {
  display: inline-block; background: var(--cta); color: var(--white);
  font-family: var(--font-body); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.05em;
  padding: 18px 44px; border: none; border-radius: var(--radius); cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease; text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0,0,210,0.25); text-decoration: none;
}
.btn-cta:hover:not(:disabled) { background: var(--cta-hover); transform: translateY(-2px); text-decoration: none; color: var(--white); }
.btn-cta:active { transform: translateY(0); }
.btn-cta:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-cta--center { display: block; margin: 36px auto 0; max-width: 380px; text-align: center; }
.btn-ghost {
  background: none; border: 1px solid var(--border); color: var(--text-light);
  font-family: var(--font-body); font-size: 1rem; padding: 14px 28px;
  border-radius: var(--radius); cursor: pointer;
}
.btn-ghost:hover { border-color: var(--text-light); }
.cta-sub { margin-top: 14px; font-size: 1rem; color: var(--text-light); text-align: center; }

/* ── Landing page ── */
.section--tight { padding: 40px 0; }
.eyebrow {
  text-align: center; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); font-size: 0.95rem; margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-heading); font-weight: 900; text-align: center;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.28; max-width: 44ch; margin: 0 auto;
}
.pullquote {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.35;
  border-left: 5px solid var(--accent); padding: 6px 0 6px 20px;
}
.callout {
  background: var(--panel); border-radius: var(--radius);
  padding: 22px 26px; font-size: 1.05rem; line-height: 1.65;
}
.start-date { font-size: 1.15rem; }
.signoff { margin-top: 8px; font-size: 1.1rem; }
.signoff .script { display: block; font-size: 2.4rem; line-height: 1.1; margin-top: 4px; }

/* Thank-you (post-deposit) emphasis */
.thankyou-big {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.35;
  max-width: 600px; margin: 4px auto 28px;
}
.thankyou-inbox { margin-top: 28px; font-weight: 600; }
.thankyou-honored { margin-bottom: 8px; }

/* Results */
.results-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px; margin-top: 34px;
}
.result { display: grid; gap: 12px; }
.result-photo {
  aspect-ratio: 1 / 1; border-radius: var(--radius);
  background: var(--white); border: 2px dashed var(--accent);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--accent); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5; padding: 12px;
}
.result figcaption { font-size: 1.02rem; line-height: 1.5; }
.result figcaption span { display: block; color: var(--text-light); font-size: 0.95rem; margin-top: 6px; }

/* Fit lists */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .fit-grid { grid-template-columns: 1fr; gap: 32px; } }
.fit-title { font-family: var(--font-heading); font-weight: 900; font-size: 1.3rem; margin-bottom: 18px; }
.fit-footnote { text-align: center; margin-top: 34px; font-size: 1.15rem; font-weight: 700; }

/* Tiers */
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 12px; }
@media (max-width: 700px) { .tier-grid { grid-template-columns: 1fr; } }
.tier { border: 2px solid var(--border); border-radius: var(--radius); padding: 26px; }
.tier-num {
  font-family: var(--font-heading); font-weight: 900; font-size: 2rem;
  color: var(--accent); line-height: 1; margin-bottom: 10px;
}

/* Red CTA — the doc specifies red for the apply button. */
.btn-cta--red { background: var(--accent); box-shadow: 0 4px 16px rgba(245,53,88,0.3); }
.btn-cta--red:hover:not(:disabled) { background: #d81f42; }

/* Unfilled copy, deliberately loud so it can't ship unnoticed. */
.todo-block {
  background: var(--yellow); border-radius: var(--radius); padding: 18px 22px;
  font-size: 0.98rem; line-height: 1.6;
}
.todo-inline {
  background: var(--yellow); border-radius: 4px; padding: 2px 10px;
  font-size: 0.75em; vertical-align: middle; letter-spacing: 0.06em;
}

/* ── Checkmark list ── */
.features-list { list-style: none; display: grid; gap: 14px; }
.features-list li { position: relative; padding-left: 38px; font-size: 1.15rem; line-height: 1.6; }
.features-list li::before {
  content: '✓'; color: var(--accent); font-weight: 700; font-size: 1.5rem;
  position: absolute; left: 0; top: 0;
}
/* Disqualifier list — must come after the base rule to win at equal specificity. */
.features-list--no li::before { content: '✗'; color: var(--text-light); }

/* ── Forms ── */
.form { max-width: 480px; margin: 0 auto; display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 1rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 1.05rem;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--cta); box-shadow: 0 0 0 3px rgba(0,0,210,0.12);
}
.field textarea { min-height: 130px; resize: vertical; }

/* Honeypot — hidden from humans, tempting to bots. Not display:none, which
   some bots detect and skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choice {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.choice:hover { border-color: var(--cta); background: rgba(0,0,210,0.03); }
.choice input { margin-top: 5px; accent-color: var(--cta); flex-shrink: 0; }
.choice--selected { border-color: var(--cta); background: rgba(0,0,210,0.06); }

.form-error { color: var(--error); font-size: 0.98rem; min-height: 1.4em; }
.form-note { font-size: 0.92rem; color: var(--text-light); text-align: center; }

/* ── Multi-step application ── */
.steps { max-width: 620px; margin: 0 auto; }

/* Resume notice — shown only when a saved draft is restored. */
.resume-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--panel); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 24px; font-size: 0.95rem;
}
.resume-banner__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.resume-banner button {
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
  color: var(--cta); font-weight: 700; font-size: 0.95rem; text-decoration: underline;
  padding: 4px;
}
.resume-banner__close { text-decoration: none !important; font-size: 1.3rem !important; line-height: 1; color: var(--text-light) !important; }
.progress { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.progress-bar { height: 100%; width: 0; background: var(--cta); transition: width 0.35s ease; }
.progress-label { font-size: 0.9rem; color: var(--text-light); text-align: right; margin-bottom: 32px; }
.step { display: none; }
.step--active { display: block; animation: stepIn 0.3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .step--active { animation: none; }
  .progress-bar { transition: none; }
}
.step-question { font-family: var(--font-heading); font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 900; margin-bottom: 8px; }
.step-help { color: var(--text-light); margin-bottom: 24px; }
.step-intro { color: var(--text-light); margin-bottom: 28px; }
.step-options { display: grid; gap: 12px; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; }

/* Several fields per step, laid out in a two-column grid on wider screens. */
.step-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.step-fields > * { grid-column: 1 / -1; }
.step-fields > .field--half { grid-column: span 1; }
@media (max-width: 560px) {
  .step-fields { grid-template-columns: 1fr; }
  .step-fields > .field--half { grid-column: 1 / -1; }
}

/* The grey parenthetical that sits under each label. */
.field-help { display: block; font-weight: 400; font-size: 0.92rem; color: var(--text-light); line-height: 1.45; margin-top: 2px; }
.field-heading { margin-top: 10px; }
.field-heading h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 900; }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--text-light); line-height: 1.55; cursor: pointer; }
.consent input { margin-top: 5px; accent-color: var(--cta); flex-shrink: 0; }
.consent a { color: var(--cta); text-decoration: underline; }
.consent--static { cursor: default; color: var(--text); font-size: 1.05rem; font-weight: 600; }

/* Invisible Turnstile usually renders nothing; the wrapper only reserves space
   for the dev placeholder or an occasional interactive challenge. */
.turnstile-wrap:not(:empty) { margin-top: 4px; }
.turnstile-wrap--placeholder {
  min-height: 65px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px; background: var(--panel);
  border: 2px dashed var(--cta); border-radius: var(--radius); color: var(--cta);
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem;
}

/* ── Video ── */
/* Provider embeds (Vimeo/YouTube) ship their own responsive padding wrapper and
   an absolutely-positioned iframe, so we only constrain and centre the outer box.
   Portrait (9:16) clips are held to a phone-ish width so they don't run tall. */
.video-embed { margin: 0 auto 40px; border-radius: var(--radius); overflow: hidden; }
.video-embed--portrait { max-width: 340px; }
.video-embed--landscape { max-width: 680px; }

.video-wrap { position: relative; margin: 0 auto 40px; max-width: 680px; border-radius: var(--radius); overflow: hidden; }
.video-wrap iframe, .video-wrap video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; }
.video-wrap--placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 16 / 9; padding: 24px; background: var(--panel);
  border: 2px dashed var(--cta); color: var(--cta);
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9rem;
}

/* ── Prose block (page 0) ── */
.prose { max-width: 620px; margin: 0 auto; display: grid; gap: 18px; font-size: 1.1rem; }
.prose-title { font-family: var(--font-heading); font-weight: 900; font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.25; }

/* ── Payment step ── */
.payment { display: grid; gap: 16px; }
.payment-heading { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 900; margin-top: 14px; }
.order-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.order-table th, .order-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); }
.order-table th { font-weight: 700; }
.order-table td:last-child, .order-table th:last-child { text-align: right; }
.order-table tfoot td { font-weight: 800; border-bottom: none; }
.payment-secure { text-align: center; color: var(--green); font-weight: 600; margin-top: 8px; }
.payment-paying-as { font-size: 0.98rem; color: var(--text-light); margin-bottom: 8px; }
.whop-mount { min-height: 60px; }
.payment-placeholder-note {
  background: var(--yellow); color: var(--text); border-radius: var(--radius);
  padding: 14px 18px; font-size: 0.92rem; font-weight: 600; line-height: 1.5;
}
.payment input:disabled { background: #f4f4f4; color: var(--text-light); cursor: not-allowed; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item summary {
  font-family: var(--font-body); font-weight: 600; font-size: 1.05rem;
  padding: 22px 40px 22px 0; cursor: pointer;
  list-style: none; position: relative; transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent); font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--accent); }
.faq-answer { padding: 0 0 24px; color: var(--text-light); font-size: 1rem; line-height: 1.75; }

/* ── Footer ── */
.footer { background: var(--text); color: #9ab0c0; padding: 36px 0; text-align: center; font-size: 1rem; }
.footer a { color: #9ab0c0; text-decoration: underline; }
.footer a:hover { color: var(--white); }
.footer p + p { margin-top: 10px; }
.footer-disclaimer { max-width: 560px; margin: 10px auto 0; font-size: 1rem; color: #6a8090; font-style: italic; line-height: 1.55; }
