/* ============================================
   Beyond the Shot — Marketing site styles
   Palette: sage, cream, charcoal, muted gold
   ============================================ */

:root {
  --sage-50: #f4f7f4;
  --sage-100: #e6efe6;
  --sage-200: #c8d9c8;
  --sage-400: #7a9e7e;
  --sage-600: #4a6b4e;
  --sage-700: #3a5540;
  --sage-800: #2d4232;
  --cream: #faf8f4;
  --cream-dark: #f0ebe3;
  --charcoal: #1c1f1c;
  --charcoal-soft: #3a3f3a;
  --muted: #5c655c;
  --gold: #b8956c;
  --gold-soft: #d4b896;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 4px 24px rgba(28, 31, 28, 0.06);
  --shadow-lg: 0 12px 40px rgba(28, 31, 28, 0.1);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6.5rem;
  --max: 1100px;
  --narrow: 680px;
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--sage-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sage-800);
}

:focus-visible {
  outline: 2px solid var(--sage-600);
  outline-offset: 3px;
}

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

.container.narrow {
  width: min(100% - 2rem, var(--narrow));
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  margin: 0 0 var(--space-md);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  margin: 0 0 var(--space-sm);
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 var(--space-xs);
}

p {
  margin: 0 0 var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-600);
  margin: 0 0 var(--space-sm);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--sage-700);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(58, 85, 64, 0.28);
}

.btn-primary:hover {
  background: var(--sage-800);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(58, 85, 64, 0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--sage-800);
  border-color: var(--sage-200);
}

.btn-secondary:hover {
  background: var(--sage-50);
  color: var(--sage-800);
  border-color: var(--sage-400);
}

.btn-ghost {
  background: transparent;
  color: var(--sage-800);
  border-color: var(--sage-200);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--sage-800);
  border-color: var(--sage-400);
}

.btn-nav {
  padding: 0.55rem 1.15rem;
  font-size: 0.92rem;
  background: var(--sage-700);
  color: var(--white);
}

.btn-nav:hover {
  background: var(--sage-800);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 217, 200, 0.55);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  gap: var(--space-md);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo:hover {
  color: var(--sage-700);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin-inline: auto;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-menu {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-sm);
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: var(--space-md) 1rem var(--space-lg);
  background: var(--cream);
  border-bottom: 1px solid var(--sage-200);
  box-shadow: var(--shadow);
}

.nav-menu.is-open {
  display: flex;
}

.nav-menu a:not(.btn) {
  padding: 0.65rem 0.5rem;
  color: var(--charcoal-soft);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
}

.nav-menu a:not(.btn):hover {
  color: var(--sage-700);
  background: var(--sage-50);
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.35rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .nav-menu a:not(.btn) {
    padding: 0;
  }

  .nav-menu a:not(.btn):hover {
    background: transparent;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: var(--space-2xl) 0 var(--space-3xl);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(200, 217, 200, 0.55), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--sage-50) 100%);
}

.hero-inner {
  text-align: center;
  max-width: 780px;
}

.hero-subhead {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--muted);
  max-width: 36em;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-md);
}

.hero-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: var(--space-2xl) 0;
}

.section-alt {
  background: var(--sage-50);
}

/* ---------- Benefit cards ---------- */

.benefit-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

.benefit-card {
  background: var(--white);
  border: 1px solid rgba(200, 217, 200, 0.7);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--space-sm);
  border-radius: 12px;
  background: var(--sage-100);
  color: var(--sage-700);
}

.benefit-card h3 {
  margin-bottom: 0.35rem;
}

.benefit-card p {
  color: var(--muted);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-card-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .benefit-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .benefit-card {
    grid-column: span 2;
  }

  .benefit-card-wide {
    grid-column: 2 / span 4;
  }
}

/* ---------- How it works prose ---------- */

.prose-card {
  background: var(--white);
  border: 1px solid rgba(200, 217, 200, 0.7);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.prose-card p {
  font-size: 1.125rem;
  color: var(--charcoal-soft);
  line-height: 1.75;
}

/* ---------- Who cards ---------- */

.who-grid {
  display: grid;
  gap: var(--space-md);
}

.who-card {
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}

.who-yes {
  background: var(--white);
  border: 1px solid var(--sage-200);
}

.who-yes h3 {
  color: var(--sage-700);
}

.who-no {
  background: var(--cream-dark);
  border: 1px solid rgba(184, 149, 108, 0.35);
}

.who-no h3 {
  color: var(--gold);
}

.who-card p {
  color: var(--charcoal-soft);
  font-size: 1.05rem;
}

@media (min-width: 700px) {
  .who-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Pricing ---------- */

.pricing-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-lg);
  padding: calc(var(--space-xl) + 0.5rem) var(--space-lg) var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.founder-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--charcoal);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(184, 149, 108, 0.35);
}

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--charcoal);
  margin: var(--space-sm) 0 var(--space-xs);
  letter-spacing: -0.03em;
}

.price-currency {
  font-size: 0.5em;
  vertical-align: super;
  margin-right: 0.05em;
}

.price-period {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.price-meta {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.price-includes {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  text-align: left;
  display: grid;
  gap: 0.65rem;
}

.price-includes li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--charcoal-soft);
}

.price-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--sage-100);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a6b4e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 0.7rem;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(200, 217, 200, 0.7);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--sage-600);
  background: var(--sage-50);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Telehealth referral ---------- */

.section-referral {
  padding-top: 0;
}

.referral-card {
  text-align: center;
  background: linear-gradient(145deg, var(--sage-800), var(--sage-700));
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.referral-card h2 {
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.referral-card p {
  color: rgba(250, 248, 244, 0.88);
  max-width: 32em;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.referral-card .btn-secondary {
  background: var(--cream);
  color: var(--sage-800);
  border-color: transparent;
}

.referral-card .btn-secondary:hover {
  background: var(--white);
  color: var(--sage-800);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: rgba(250, 248, 244, 0.75);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-inner {
  display: grid;
  gap: var(--space-md);
  text-align: center;
}

.footer-brand .logo {
  color: var(--cream);
  margin: 0 0 0.25rem;
}

.footer-domain {
  font-size: 0.9rem;
  color: var(--gold-soft);
  margin: 0;
}

.footer-disclaimer {
  font-size: 0.92rem;
  max-width: 40em;
  margin-inline: auto;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(250, 248, 244, 0.45);
  margin: 0;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(250, 248, 244, 0.1);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .benefit-card,
  .nav-toggle-bar {
    transition: none;
  }
}

/* ---------- Intake page ---------- */

.page-intake .nav {
  justify-content: space-between;
}

.nav-home-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
}

.nav-home-link:hover {
  color: var(--sage-700);
  background: var(--sage-50);
}

.intake-hero {
  padding: var(--space-xl) 0 var(--space-md);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(200, 217, 200, 0.45), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--sage-50) 100%);
  text-align: center;
}

.intake-hero h1 {
  margin-bottom: var(--space-sm);
}

.intake-subhead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--muted);
  max-width: 34em;
  margin-inline: auto;
  margin-bottom: 0;
}

.intake-section {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-2xl);
}

.intake-form {
  background: var(--white);
  border: 1px solid rgba(200, 217, 200, 0.7);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .intake-form {
    padding: var(--space-xl);
  }
}

.form-group {
  margin: 0;
  padding: 0;
  border: none;
  display: grid;
  gap: 0.45rem;
}

.form-group > label,
.form-group > legend {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--charcoal);
}

.form-group legend {
  padding: 0;
  margin-bottom: 0.15rem;
}

.field-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9em;
}

.required {
  color: var(--sage-600);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--charcoal);
  background: var(--cream);
  border: 1.5px solid var(--sage-200);
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #8a948a;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--sage-400);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74, 107, 78, 0.18);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #a85c4a;
  box-shadow: 0 0 0 3px rgba(168, 92, 74, 0.15);
}

.field-error {
  font-size: 0.88rem;
  color: #8b3f32;
  margin: 0;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: 0.5rem;
}

.checkbox-grid-times {
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
}

.check-pill,
.radio-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  background: var(--cream);
  border: 1.5px solid var(--sage-200);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  user-select: none;
}

.check-pill:hover,
.radio-pill:hover {
  border-color: var(--sage-400);
  background: var(--sage-50);
}

.check-pill:has(input:checked),
.radio-pill:has(input:checked) {
  background: var(--sage-100);
  border-color: var(--sage-600);
  color: var(--sage-800);
  font-weight: 600;
}

.check-pill:has(input:focus-visible),
.radio-pill:has(input:focus-visible) {
  outline: 2px solid var(--sage-600);
  outline-offset: 2px;
}

.check-pill input,
.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

/* Fallback for browsers without :has() — keep native checkbox visible slightly */
@supports not selector(:has(*)) {
  .check-pill input,
  .radio-pill input {
    position: static;
    opacity: 1;
    width: auto;
    height: auto;
    pointer-events: auto;
  }
}

.radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.intake-soft-note {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
  padding-top: 0.25rem;
}

.intake-form .btn-block {
  margin-top: 0.25rem;
}

.intake-thankyou {
  margin-top: 0;
}

.thankyou-card {
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(200, 217, 200, 0.7);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.thankyou-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-md);
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-700);
}

.thankyou-card h2 {
  margin-bottom: var(--space-sm);
}

.thankyou-card p {
  color: var(--muted);
  max-width: 28em;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.founder-link-wrap {
  margin: var(--space-md) 0 0;
  text-align: center;
}

.founder-rate-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sage-700);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.founder-rate-link:hover {
  color: var(--sage-800);
}

#paid-banner:not([hidden]) {
  display: inline-block;
}
