/* ============================================================
   R2 Marketing Automation — design system
   Theme: light, with dark via prefers-color-scheme (auto lock).
   Accent: one signal teal. Amber appears only in the logo mark.
   Radius scale (documented): buttons pill, cards 14px, inputs 10px.
   Fonts: Space Grotesk (display), Public Sans (body).
   ============================================================ */

:root {
  --ink:        #0d1117;
  --ink-soft:   #232a33;
  --muted:      #5b6672;
  --paper:      #f6f7f4;
  --surface:    #ffffff;
  --surface-2:  #eef0eb;
  --line:       rgba(13, 17, 23, 0.12);
  --line-soft:  rgba(13, 17, 23, 0.07);
  --accent:     #0f8f79;
  --accent-ink: #ffffff;
  --accent-soft:#e2f3ee;
  --accent-text:#0b6b5b;
  --amber:      #e08700;

  --r-card: 14px;
  --r-input: 10px;
  --r-pill: 999px;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --shadow: 0 1px 2px rgba(13,17,23,.05), 0 8px 24px rgba(13,17,23,.05);
  --maxw: 1180px;
  --nav-h: 68px;
}


* { box-sizing: border-box; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent-text);
  font-weight: 600;
  margin: 0 0 .9rem;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--muted); }

section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.divider { border-top: 1px solid var(--line-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .9rem 1.35rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s cubic-bezier(.16,1,.3,1), background .18s, box-shadow .18s, border-color .18s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-text); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  background: rgba(246,247,244,0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; display: block; }
.brand small { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--ink-soft); font-size: .94rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: .9rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-input); padding: .45rem .6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1.2rem 24px 1.5rem; gap: 1rem;
  }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { max-width: 34ch; margin-bottom: 1.6rem; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-card); border: 1px solid var(--line);
  aspect-ratio: 4 / 3.4; object-fit: cover;
  box-shadow: var(--shadow);
}
.hero-note {
  position: absolute; left: -1px; bottom: 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: .8rem 1rem; box-shadow: var(--shadow);
  font-size: .84rem; line-height: 1.35; max-width: 240px;
}
.hero-note strong { font-family: var(--font-display); display: block; font-size: .95rem; }
.hero-note span { color: var(--muted); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16/10; }
}

/* ---------- proof strip ---------- */
.proof { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 1.6rem 0; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.proof-item strong { font-family: var(--font-display); font-size: 1.5rem; display: block; letter-spacing: -.02em; }
.proof-item span { color: var(--muted); font-size: .88rem; }
@media (max-width: 720px) { .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; } }

/* ---------- problem list ---------- */
.problem-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pain-list { list-style: none; margin: 0; padding: 0; }
.pain-list li {
  display: grid; grid-template-columns: 26px 1fr; gap: 1rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line-soft);
}
.pain-list li:first-child { padding-top: 0; }
.pain-list li p { margin: 0; }
.pain-list li strong { display: block; font-family: var(--font-display); }
.pain-ico { color: var(--accent); margin-top: .15rem; }
@media (max-width: 880px) { .problem-grid { grid-template-columns: 1fr; } }

/* ---------- service grid (bento, asymmetric) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.svc {
  grid-column: span 2;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 1.4rem 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: .55rem;
  transition: transform .2s cubic-bezier(.16,1,.3,1), border-color .2s;
}
.svc:hover { transform: translateY(-3px); border-color: var(--accent); }
.svc.wide { grid-column: span 3; }
.svc .svc-ico { color: var(--accent); }
.svc h3 { margin: .2rem 0 0; font-size: 1.12rem; }
.svc p { margin: 0; color: var(--muted); font-size: .95rem; }
.svc .svc-link { margin-top: auto; padding-top: .8rem; font-weight: 600; font-size: .9rem; font-family: var(--font-display); }
.svc.tint { background: var(--accent-soft); border-color: transparent; }
@media (max-width: 940px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } .svc { grid-column: span 2; } .svc.wide { grid-column: span 4; } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } .svc, .svc.wide { grid-column: span 1; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 1rem; }
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- split feature (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { width: 100%; border-radius: var(--r-card); border: 1px solid var(--line); display: block; aspect-ratio: 5/4; object-fit: cover; }
.split.rev .split-media { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split.rev .split-media { order: 0; } }

/* ---------- stat / outcome band ---------- */
.outcomes { background: var(--surface-2); border-radius: var(--r-card); padding: clamp(2rem, 4vw, 3rem); }
.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.outcome-grid strong { font-family: var(--font-display); font-size: 1.9rem; display: block; letter-spacing: -.02em; }
.outcome-grid span { color: var(--muted); font-size: .92rem; }
@media (max-width: 720px) { .outcome-grid { grid-template-columns: 1fr; gap: 1.3rem; } }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.6rem; }
.quote p { font-size: 1.02rem; margin: 0 0 1rem; }
.quote .who { font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.quote .who span { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 1.1rem 0; }
.faq summary {
  cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); max-width: 68ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--paper); border-radius: var(--r-card); padding: clamp(2.2rem, 5vw, 3.6rem); }
.cta-band h2, .cta-band h3 { color: var(--paper); }
.cta-band p { color: rgba(246,247,244,.72); max-width: 52ch; }
.cta-band .btn-ghost { color: var(--paper); border-color: rgba(246,247,244,.35); }
.cta-band .btn-ghost:hover { border-color: var(--paper); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.7rem; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .price { font-family: var(--font-display); font-size: 2rem; letter-spacing: -.02em; }
.plan .price small { font-size: .82rem; color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.plan ul { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: .6rem; }
.plan ul li { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; font-size: .94rem; }
.plan ul li svg { color: var(--accent); margin-top: .2rem; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-text); font-weight: 700; margin-bottom: .5rem; }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .9rem; font-family: var(--font-display); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-input); padding: .8rem .9rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .help { font-size: .82rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- prose (blog / legal) ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose img { max-width: 100%; border-radius: var(--r-card); }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .84rem; color: var(--muted); padding: 1.1rem 0 0; }
.crumbs a { color: var(--muted); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a { color: var(--ink-soft); font-size: .93rem; }
.footer-bottom { border-top: 1px solid var(--line-soft); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- reveal motion (motivated: storytelling sequence) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 10px; background: var(--surface); border: 1px solid var(--line); padding: .6rem .9rem; border-radius: var(--r-input); z-index: 100; }

.page-media{margin-top:1.8rem;border-radius:16px;overflow:hidden;border:1px solid var(--line);background:var(--surface)}
.page-media img{width:100%;height:auto;display:block;aspect-ratio:16/7;object-fit:cover}
.post-body h2{margin-top:2rem}
.post-body ul{padding-left:1.2rem}
.post-meta{color:var(--muted);font-size:.9rem}
