/* ==========================================================================
   IBDscan — styles
   Brand: Salvia green #2f5d4e · Terracotta #d97757 · Cream #f8f4ed
   Typography: Fraunces (display) + Inter (body)
   ========================================================================== */

:root {
  --green: #2f5d4e;
  --green-dark: #1f3f35;
  --green-soft: #dfe8e3;
  --terra: #d97757;
  --terra-dark: #b55f45;
  --cream: #f8f4ed;
  --cream-warm: #f1ead9;
  --ink: #1a2420;
  --ink-muted: #545e59;
  --line: #e5e1d6;
  --white: #ffffff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(26, 36, 32, 0.06);
  --shadow-md: 0 12px 32px rgba(26, 36, 32, 0.10);
  --shadow-lg: 0 28px 60px rgba(26, 36, 32, 0.14);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
}
.skip:focus {
  left: 16px; top: 16px; padding: 10px 16px;
  background: var(--ink); color: var(--cream); border-radius: 8px; z-index: 100;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(150%) blur(10px);
  background: rgba(248, 244, 237, 0.85);
  border-bottom: 1px solid rgba(229, 225, 214, 0.6);
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.brand__mark { display: inline-flex; }
.brand__word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand__word--light { color: var(--cream); }
.brand__tld { color: var(--terra); }

.nav {
  margin-left: auto;
  display: flex; gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav a {
  color: var(--ink-muted);
  padding: 6px 2px;
  position: relative;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--terra);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px; border: 1px solid var(--line); background: transparent;
  border-radius: 10px; cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px auto; border-radius: 2px;
  transition: transform 0.2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.btn { border-bottom: none; margin-top: 12px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn__ico { transition: transform 0.2s; }
.btn:hover .btn__ico { transform: translateX(2px); }

.btn--primary { background: var(--green); color: var(--cream); }
.btn--primary:hover { background: var(--green-dark); color: var(--cream); }

.btn--accent { background: var(--terra); color: var(--white); }
.btn--accent:hover { background: var(--terra-dark); color: var(--white); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn--lg { font-size: 16px; padding: 14px 26px; }
.btn--sm { font-size: 14px; padding: 9px 16px; }
.btn--full { width: 100%; justify-content: center; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 55vw; height: 55vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(circle at 40% 40%, rgba(47, 93, 78, 0.10), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--green);
  padding: 6px 14px;
  border: 1px solid var(--green-soft);
  background: var(--green-soft);
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  color: var(--terra);
  font-weight: 500;
}

.hero-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 16px;
}

.hero-microtext {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
}

/* Hero visual: phone mock */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 560px;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-blob--a {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.20), transparent 70%);
  top: 10%; left: -10%;
}
.hero-blob--b {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(47, 93, 78, 0.18), transparent 70%);
  bottom: 0; right: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: 310px;
  height: 560px;
  background: var(--ink);
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}
.phone__notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px;
  background: var(--ink); border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone__screen {
  background: var(--cream);
  border-radius: 32px;
  height: 100%;
  padding: 36px 20px 20px;
  display: flex; flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.mock-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-muted); font-weight: 500;
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }

.mock-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  margin: 4px 0 6px;
  letter-spacing: -0.01em;
}

.mock-scale { display: flex; gap: 6px; }
.mock-pill {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 0;
  border-radius: 10px;
  font-size: 12px; font-weight: 500;
  color: var(--ink-muted);
  cursor: default;
  font-family: inherit;
}
.mock-pill--active {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

.mock-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.mock-card__head {
  display: flex; justify-content: space-between; align-items: baseline;
}
.mock-card__label { font-size: 13px; font-weight: 600; color: var(--ink); }
.mock-card__trend { font-size: 12px; color: var(--terra); font-weight: 600; }
.mock-card__trend--good { color: var(--green-dark); }

.mock-chart { height: 54px; }
.mock-chart svg { width: 100%; height: 100%; }

.mock-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.mock-row:first-of-type { border-top: none; padding-top: 0; }
.mock-row span:first-child { color: var(--ink); font-weight: 500; }

.mock-tag {
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
}
.mock-tag--up { background: rgba(217, 119, 87, 0.15); color: var(--terra-dark); }
.mock-tag--down { background: var(--green-soft); color: var(--green-dark); }
.mock-tag--ok { background: var(--green-soft); color: var(--green-dark); }

.mock-cta {
  margin-top: auto;
  background: var(--terra);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px; font-weight: 600;
  font-family: inherit;
  cursor: default;
}

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--terra);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 16px;
}
.section-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
  max-width: 620px;
}
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   WHY / STATS
   ========================================================================== */
.why { background: var(--white); }
.stats {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stats li {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stats li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stats__num {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  color: var(--green);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.stats__label { font-size: 17px; font-weight: 600; color: var(--ink); }
.stats__note { font-size: 14px; color: var(--ink-muted); margin-top: 4px; }

/* ==========================================================================
   IBD INFO
   ========================================================================== */
.ibd-info { background: var(--white); }
.ibd-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ibd-info-card {
  padding: 28px 24px;
  border: 1.5px solid #e8e2d9;
  border-radius: 14px;
  background: var(--cream);
}
.ibd-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
  margin: 0 0 10px;
}
.ibd-info-card p {
  font-size: 0.95rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   FEATURES
   ========================================================================== */
.features { background: var(--cream); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 64px; height: 64px;
  background: var(--green-soft);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature h3 {
  font-family: var(--serif);
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.feature p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 16px;
}

/* Asymmetric tweak: second feature offset down on large screens */
@media (min-width: 900px) {
  .feature:nth-child(2) { margin-top: 32px; }
  .feature:nth-child(3) { margin-top: -16px; }
}

/* ==========================================================================
   STEPS
   ========================================================================== */
.steps { background: var(--white); }
.steps-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.steps-list li {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.steps-list__num {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 48px;
  line-height: 1;
  color: var(--terra);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.steps-list li h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600;
  margin: 0 0 8px;
}
.steps-list li p {
  margin: 0;
  color: var(--ink-muted);
}

/* ==========================================================================
   AUDIENCE
   ========================================================================== */
.audience { background: var(--green); color: var(--cream); }
.audience .section-eyebrow { color: var(--terra); }
.audience .section-title { color: var(--cream); }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.audience-card {
  padding: 32px;
  border: 1px solid rgba(248, 244, 237, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(248, 244, 237, 0.04);
}
.audience-card h3 {
  font-family: var(--serif);
  font-size: 24px; font-weight: 600;
  margin: 0 0 12px;
  color: var(--cream);
}
.audience-card p {
  margin: 0;
  color: rgba(248, 244, 237, 0.78);
  font-size: 16px;
}

/* ==========================================================================
   TRUST
   ========================================================================== */
.trust { background: var(--cream); }
.trust-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.trust-copy p {
  color: var(--ink-muted);
  font-size: 17px;
  margin: 0 0 24px;
  max-width: 520px;
}
.trust-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.trust-list li {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500;
  color: var(--ink);
}
.trust-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.trust-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ink);
}
.trust-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.trust-card p:last-child { margin-bottom: 0; }
.trust-card a { color: var(--green); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--white); }
.faq-list {
  max-width: 820px; margin: 0 auto;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  cursor: pointer;
  padding: 22px 4px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 28px;
  font-weight: 400;
  color: var(--terra);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list p {
  margin: 0 40px 22px 4px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
  background: var(--ink);
  color: var(--cream);
}
.cta-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.cta-banner h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--cream);
  max-width: 640px;
}
.cta-banner p {
  margin: 0;
  color: rgba(248, 244, 237, 0.72);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--green-dark);
  color: rgba(248, 244, 237, 0.78);
  padding: 72px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(248, 244, 237, 0.1);
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-note {
  color: rgba(248, 244, 237, 0.6);
  font-size: 15px;
  margin: 0;
  max-width: 320px;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-nav h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream);
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-nav a {
  display: block;
  color: rgba(248, 244, 237, 0.7);
  font-size: 15px;
  padding: 4px 0;
}
.footer-nav a:hover { color: var(--cream); }

.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px;
  color: rgba(248, 244, 237, 0.5);
  flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 520px; }

  .stats, .feature-grid, .steps-list, .audience-grid, .ibd-info-grid {
    grid-template-columns: 1fr;
  }
  .feature:nth-child(2), .feature:nth-child(3) { margin-top: 0; }

  .trust-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-banner-inner { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }

  section { padding: 72px 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header-inner .btn--primary { display: none; }
  .mobile-nav[aria-hidden="false"], .mobile-nav:not([hidden]) { display: flex; }

  .hero-title br { display: none; }
  section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }

  .phone { transform: rotate(0deg); width: 280px; height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
