/* ─────────────────────────────────────────────────────────────
   my.mtbs.ink — global stylesheet
   Modern sales funnel · coral + sand + off-white
   ───────────────────────────────────────────────────────────── */

/* ── Self-hosted fonts ──────────────────────────────────────── */
@font-face {
  font-family: 'Darker Grotesque';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/DarkerGrotesque-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Darker Grotesque';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/DarkerGrotesque-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/SourceSans3-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/SourceSans3-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fallback metrics — match Source Sans 3 to Arial so CLS = 0 while font loads */
@font-face {
  font-family: 'Source Sans 3 Fallback';
  src: local('Arial');
  size-adjust: 102%;
  ascent-override: 95%;
  descent-override: 28%;
  line-gap-override: 0%;
}

/* ── Brand tokens ───────────────────────────────────────────── */
:root {
  /* Coral spectrum (primary action) */
  --coral-50:  #fdeeec;
  --coral-100: #fadbd7;
  --coral-200: #f5b7af;
  --coral-300: #ef9388;
  --coral-400: #ea7370;
  --coral:     #e35750;   /* Primary brand */
  --coral-600: #c84840;
  --coral-700: #a93b34;
  --coral-800: #862d28;

  /* Sand spectrum (warm secondary) */
  --sand-50:  #faf7f1;
  --sand-100: #f3eddc;
  --sand-200: #e6d9bb;
  --sand-300: #d8c69d;
  --sand:     #c7b299;   /* Secondary brand */
  --sand-600: #a8957e;
  --sand-700: #80715f;

  /* Neutral / off-white */
  --bg:           #fbf8f3;   /* Off-white background */
  --bg-elevated:  #ffffff;   /* Cards on top of bg */
  --bg-dark:      #1f1c1a;   /* Deep warm black for contrast sections */
  --bg-dark-soft: #2b2825;

  --text:           #1f1c1a;
  --text-soft:      #4a4540;
  --text-muted:     #8a7f74;
  --text-on-dark:   #fbf8f3;
  --text-on-coral:  #ffffff;

  --border:        #ece4d4;
  --border-strong: #d8cdb5;

  /* Type system */
  --font-display: 'Darker Grotesque', 'Source Sans 3 Fallback', 'Arial Black', sans-serif;
  --font-body:    'Source Sans 3', 'Source Sans 3 Fallback', Arial, sans-serif;

  /* Layout */
  --radius:     8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --max-w:      1180px;
  --shadow-sm:  0 1px 2px rgba(31, 28, 26, 0.06), 0 1px 1px rgba(31, 28, 26, 0.04);
  --shadow:     0 4px 12px rgba(31, 28, 26, 0.08), 0 2px 4px rgba(31, 28, 26, 0.05);
  --shadow-lg:  0 20px 48px rgba(31, 28, 26, 0.12), 0 8px 20px rgba(31, 28, 26, 0.06);
  --shadow-coral: 0 12px 28px rgba(227, 87, 80, 0.32);
}

/* ── Reset / base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-600); }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text);
}
h1, .h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  min-height: 3.5em;
}
h2, .h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
}
h3, .h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
}
h4, h5 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
}
h4 { font-size: 1.125rem; }
h5 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}
.eyebrow.on-dark { color: var(--coral-300); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-soft);
  line-height: 1.5;
  max-width: 38ch;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: clamp(3rem, 7vw, 6rem) 0; }
section.tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-dark .lede { color: rgba(251, 248, 243, 0.78); }
.section-dark .eyebrow { color: var(--coral-300); }

.section-sand {
  background: var(--sand-100);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--coral);
  color: var(--text-on-coral);
  box-shadow: var(--shadow-coral);
}
.btn-primary:hover {
  background: var(--coral-600);
  color: var(--text-on-coral);
  box-shadow: 0 16px 36px rgba(227, 87, 80, 0.38);
}

.btn-secondary {
  background: var(--text);
  color: var(--text-on-dark);
}
.btn-secondary:hover { background: var(--bg-dark-soft); color: var(--text-on-dark); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--bg-elevated); border-color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--coral); }

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(216, 205, 181, 0.4);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--coral);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--coral); }
.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--text);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(60% 60% at 100% 0%, var(--coral-50) 0%, transparent 60%),
    radial-gradient(50% 50% at 0% 100%, var(--sand-100) 0%, transparent 60%),
    var(--bg);
}
.hero h1 { margin-bottom: 1rem; }
.hero .lede { margin-bottom: 2rem; max-width: 44ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 1.5rem; font-size: 0.95rem; color: var(--text-muted); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-visual {
  position: relative;
}
.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: block;
}
.hero-visual::after {
  /* Subtle coral glow accent behind the image */
  content: '';
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 60%;
  background: radial-gradient(50% 60% at 50% 50%, rgba(227, 87, 80, 0.22), transparent 70%);
  z-index: -1;
  filter: blur(20px);
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
}

/* ── Resource cards (homepage grid) ─────────────────────────── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 2.5rem;
}
.resource-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--coral-200);
}
.resource-tag {
  display: inline-block;
  background: var(--sand-100);
  color: var(--text-soft);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  width: fit-content;
}
.resource-tag.free { background: var(--coral-50); color: var(--coral-700); }
.resource-tag.paid { background: var(--bg-dark); color: var(--bg); }
.resource-card h3 { margin-bottom: 0.5rem; }
.resource-card p { color: var(--text-soft); margin-bottom: 1.5rem; flex: 1; }
.resource-card .btn { width: fit-content; }
.resource-card .resource-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
}
.resource-card .resource-icon.icon-sand { background: var(--sand); color: var(--text); }
.resource-card .resource-icon.icon-dark { background: var(--bg-dark); color: var(--coral-300); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
}
.form-fields { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-50);
  background: var(--bg-elevated);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}
.form-success.show { display: block; }
.form-success .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--text-soft); max-width: 36ch; margin: 0 auto; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(251, 248, 243, 0.65);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 720px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 { color: var(--text-on-dark); margin-bottom: 1rem; }
.site-footer a { color: rgba(251, 248, 243, 0.8); }
.site-footer a:hover { color: var(--coral-300); }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(251, 248, 243, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(251, 248, 243, 0.5);
}

/* ── Utilities ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.center-content { display: flex; flex-direction: column; align-items: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.coral { color: var(--coral); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Mobile nav ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-nav.open .nav-cta { display: inline-flex; margin: 8px 0 0; }
}

/* ── reCAPTCHA badge (hidden — attribution in footer) ────────── */
.grecaptcha-badge { visibility: hidden; }
