/* ========= RESET ========= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ========= TOKENS ========= */
:root {
  --bg: #FAFAF8; --bg-alt: #F3F2EE; --surface: #FFF; --border: #E2E0DA; --border-hover: #C8C5BC;
  --text: #1A1A2E; --text-2: #52525B; --text-3: #8A8A96;
  --accent: #0F766E; --accent-hover: #0D6B63; --accent-bg: rgba(15,118,110,.06);
  --amber: #B45309; --amber-bg: rgba(180,83,9,.06);
  --blue: #1E5FA6; --blue-bg: rgba(30,95,166,.06);
  --purple: #6D28D9; --purple-bg: rgba(109,40,217,.06);
  --red: #DC2626; --red-bg: rgba(220,38,38,.06);
  --radius: 10px; --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.02);
  --font: 'DM Sans', system-ui, sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
}

/* ========= BASE ========= */
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ========= LAYOUT ========= */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ========= TYPE ========= */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); line-height: 1.15; }
h1 .em { color: var(--accent); }
.label { font-family: var(--font); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }

/* ========= NAV ========= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px 0; background: rgba(250,250,248,.88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.nav-logo img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--text-2); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta { display: inline-flex; padding: 8px 18px; background: var(--accent); color: #fff; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; text-decoration: none; transition: background .15s; }
.nav-links a.nav-cta:hover { background: var(--accent-hover); color: #fff; }
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.nav-dropdown > a::after { content: ' \25BE'; font-size: .7em; }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 12px); left: -12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,.08); padding: 8px 0; min-width: 240px; z-index: 101; }
.nav-dropdown-menu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 10px 20px; font-size: .85rem; font-weight: 500; color: var(--text-2); text-decoration: none; transition: background .1s, color .1s; }
.nav-dropdown-menu a:hover { background: var(--bg-alt); color: var(--text); }
.nav-mobile { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 1px; }
.mobile-menu { display: none; position: fixed; top: 56px; left: 0; right: 0; z-index: 99; background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 24px; }
.mobile-menu.active { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu a { display: block; text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 0; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu .mobile-label { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 12px 0 4px; border-bottom: none; }

/* ========= BUTTONS ========= */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; text-decoration: none; font-family: var(--font); transition: all .15s; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 2px 8px rgba(15,118,110,.18); }
.btn-outline { background: none; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ========= SHARED SECTION UTILITIES ========= */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

/* ========= SUBPAGE HERO ========= */
.subpage-hero { padding: 140px 0 60px; }
.subpage-hero .wrap-narrow { text-align: center; }
.subpage-hero h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 16px; }
.subpage-hero p { font-size: 1.1rem; color: var(--text-2); line-height: 1.7; max-width: 580px; margin: 0 auto; }

/* ========= PAIN POINTS GRID ========= */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: border-color .2s; }
.pain-card:hover { border-color: var(--border-hover); }
.pain-card-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.pain-card h3 { font-size: 1rem; margin-bottom: 8px; }
.pain-card p { font-size: .85rem; color: var(--text-2); line-height: 1.6; }

/* ========= SOLUTION LIST ========= */
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.solution-item { display: flex; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.solution-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.solution-item h3 { font-size: .95rem; margin-bottom: 4px; }
.solution-item p { font-size: .82rem; color: var(--text-2); line-height: 1.55; }

/* ========= STAT CALLOUT ========= */
.stat-callout { display: flex; align-items: baseline; gap: 12px; padding: 20px 0; border-top: 1px solid var(--border); margin-top: 24px; }
.stat-callout strong { font-size: 2.2rem; font-weight: 700; font-family: var(--font); }
.stat-callout span { font-size: .9rem; color: var(--text-2); }

/* ========= URGENCY BANNER ========= */
.urgency-banner { background: var(--red-bg); border: 1px solid rgba(220,38,38,.15); border-radius: var(--radius); padding: 20px 24px; display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.urgency-banner svg { flex-shrink: 0; }
.urgency-banner strong { color: var(--red); }
.urgency-banner p { font-size: .88rem; color: var(--text-2); line-height: 1.5; }

/* ========= HOW STEPS ========= */
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.how-steps::before { content: ''; position: absolute; top: 36px; left: 12.5%; right: 12.5%; height: 2px; background: var(--border); z-index: 0; }
.how-step { text-align: center; position: relative; z-index: 1; padding: 0 12px; }
.how-step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.2rem; }
.how-step-num.active { border-color: var(--accent); background: var(--accent-bg); }
.how-step h3 { font-size: .95rem; margin-bottom: 6px; }
.how-step p { font-size: .8rem; color: var(--text-2); line-height: 1.5; }

/* ========= INTEGRATIONS ========= */
.integrations { padding: 48px 0; text-align: center; }
.integrations .label { margin-bottom: 20px; }
.int-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.int-tag { padding: 7px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .82rem; font-weight: 500; color: var(--text-2); cursor: default; user-select: none; }
.int-note { font-size: .85rem; color: var(--text-3); max-width: 480px; margin: 0 auto; }

/* ========= FAQ ========= */
.faq-list { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; background: none; border: none; cursor: pointer; font-family: var(--font); font-size: .95rem; font-weight: 600; color: var(--text); text-align: left; line-height: 1.4; gap: 16px; }
.faq-q:hover { color: var(--accent); }
.faq-q::after { content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--text-3); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q::after { content: '\2212'; color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 0 20px; font-size: .88rem; color: var(--text-2); line-height: 1.7; }

/* ========= PAGE CTA ========= */
.page-cta { padding: 80px 0; text-align: center; }
.page-cta h2 { margin-bottom: 12px; }
.page-cta p { color: var(--text-2); font-size: 1rem; margin-bottom: 28px; max-width: 440px; margin-left: auto; margin-right: auto; }
.page-cta .cta-actions { display: flex; gap: 10px; justify-content: center; }

/* ========= FOOTER ========= */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { display: flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--text-3); }
.footer-logo img { width: 22px; height: 22px; opacity: .5; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; font-size: .78rem; color: var(--text-3); transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: .72rem; color: var(--text-3); }

/* ========= RESPONSIVE ========= */
@media (max-width: 1024px) {
  .pain-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .solution-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .how-steps::before { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile { display: block; }
  h1 { font-size: 2.2rem; }
  .subpage-hero { padding: 110px 0 48px; }
  .how-steps { grid-template-columns: 1fr; }
  .footer .wrap { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
