/* ============================================================
   Edifyd — design system & component styles
   Green/trust palette. :root tokens are the single source of
   brand truth — adjust here, every page inherits.
   ============================================================ */
:root {
  /* Brand — "ready/go" green */
  --brand: #16a34a;
  --brand-dark: #15803d;
  --brand-darker: #105c2d;
  --brand-soft: #e9f6ee;     /* pale green section wash */
  --brand-tint: #f3faf5;

  /* Neutral ink */
  --ink: #0f1e17;
  --ink-soft: #45554d;
  --paper: #ffffff;
  --mist: #f5f8f6;           /* light green-grey */
  --line: #e3eae6;

  /* Readiness status colours (reused as chips across the site) */
  --ready: #16a34a;
  --warn: #d97706;
  --missing: #dc2626;
  --not: #6b7280;
  --review: #2563eb;
  --exception: #7c3aed;

  /* Type & layout */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 34px rgba(15, 30, 23, 0.08);
  --shadow-sm: 0 4px 14px rgba(15, 30, 23, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* --- Section rhythm --- */
.section { padding: 84px 0; }
.section--mist { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--soft { background: var(--brand-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 14px; }

h1, h2, h3 { letter-spacing: -.02em; line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
.lede { font-size: 1.14rem; color: var(--ink-soft); }
.muted { color: var(--not); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 18px rgba(22, 163, 74, .22);
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-sm { padding: 9px 17px; font-size: .9rem; box-shadow: none; }
.btn-ghost {
  background: transparent; color: var(--brand-dark);
  box-shadow: inset 0 0 0 1.6px var(--brand);
}
.btn-ghost:hover { background: rgba(22, 163, 74, .07); }
.btn-light { background: #fff; color: var(--brand-dark); box-shadow: none; }
.btn-light:hover { background: #f0f6f2; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Nav --- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; color: var(--ink); }
.logo .dot { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--ink-soft); }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--ink); }

/* --- Hero --- */
.hero { padding: 100px 0 80px; background:
  radial-gradient(1100px 460px at 78% -8%, rgba(22,163,74,.13), transparent 60%),
  linear-gradient(180deg, var(--brand-tint), var(--paper)); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
.hero h1 .accent { color: var(--brand-dark); }
.hero .lede { max-width: 620px; margin: 22px 0 32px; font-size: 1.2rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

/* --- Hero readiness card (mini mock) --- */
.ready-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.ready-card h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--not); margin-bottom: 14px; }
.ready-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.ready-row:first-of-type { border-top: 0; }
.ready-who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; display: grid; place-items: center; font-size: .85rem; }
.ready-name { font-weight: 600; font-size: .95rem; }
.ready-role { font-size: .8rem; color: var(--not); }

/* --- Status chips --- */
.status-grid { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: #fff; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.85); }
.chip.sm { padding: 5px 12px; font-size: .82rem; }
.chip-ready { background: var(--ready); }
.chip-warn { background: var(--warn); }
.chip-missing { background: var(--missing); }
.chip-not { background: var(--not); }
.chip-review { background: var(--review); }
.chip-exception { background: var(--exception); }
/* soft (outlined) variant for the dashboard mock */
.chip-soft { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1.4px var(--line); }
.chip-soft.is-ready { color: var(--ready); box-shadow: inset 0 0 0 1.4px var(--ready); }
.chip-soft.is-warn { color: var(--warn); box-shadow: inset 0 0 0 1.4px var(--warn); }
.chip-soft.is-missing { color: var(--missing); box-shadow: inset 0 0 0 1.4px var(--missing); }
.chip-soft.is-review { color: var(--review); box-shadow: inset 0 0 0 1.4px var(--review); }

/* --- Problem list --- */
.problem-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin-top: 8px; }
.problem-list li { position: relative; padding-left: 30px; color: var(--ink-soft); font-weight: 500; }
.problem-list li::before { content: "?"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }

/* --- Steps (solution flow) --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: .96rem; }

/* --- Pillars / feature cards --- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pillar .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; font-size: 1.1rem; }
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--ink-soft); font-size: .97rem; }
.pillar ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: .92rem; }
.pillar ul li { margin-bottom: 4px; }
.pillar .outcome { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--brand-dark); font-weight: 600; }

/* --- Use case / industry grid --- */
.usecase-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .94rem; color: var(--ink-soft); }
.tag:hover { border-color: var(--brand); color: var(--brand-dark); }

.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.industry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; font-weight: 600; }
.industry span { display: block; color: var(--ink-soft); font-weight: 400; font-size: .92rem; margin-top: 4px; }

/* --- Persona cards --- */
.persona-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.persona { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.persona .role { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-dark); font-weight: 700; margin-bottom: 8px; }
.persona .msg { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.persona p { color: var(--ink-soft); font-size: .96rem; }

/* --- Dashboard mock --- */
.dash { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.dash-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--mist); }
.dash-head strong { font-size: .95rem; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th, .dash-table td { text-align: left; padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.dash-table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--not); font-weight: 700; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table .who { font-weight: 600; }
.dash-table .sub { color: var(--not); font-weight: 400; font-size: .85rem; }

/* --- Two-column feature blocks --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .lede { margin-top: 16px; }

/* --- Integrations --- */
.logo-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.logo-pill { padding: 12px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--ink-soft); }

/* --- CTA band --- */
.cta-band { background: linear-gradient(135deg, var(--brand-dark), var(--brand-darker)); color: #fff; border-radius: var(--radius); padding: 56px 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 14px auto 28px; font-size: 1.1rem; }
.cta-band .cta-row { justify-content: center; }

/* --- Contact form --- */
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.4px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,163,74,.14); }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .85rem; color: var(--not); margin-top: 6px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--brand-soft); color: var(--brand-dark); }
.form-status.err { background: #fdecec; color: var(--missing); }
.check-list { list-style: none; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--ink-soft); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }

/* --- Footer --- */
.footer { padding: 56px 0 40px; background: var(--ink); color: #c8d3cd; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .logo { color: #fff; }
.footer p { font-size: .95rem; margin-top: 12px; max-width: 320px; }
.footer h5 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: .88rem; color: #8ea399; }

/* ============================================================
   StoryBrand (SB7) components
   ============================================================ */

/* One-liner band */
.oneliner { background: var(--ink); color: #eaf2ee; }
.oneliner .container { padding-top: 30px; padding-bottom: 30px; }
.oneliner p { font-size: 1.18rem; line-height: 1.6; max-width: 900px; margin: 0 auto; text-align: center; }
.oneliner strong { color: #fff; font-weight: 700; }

/* Stakes / problem emphasis */
.stakes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.stake { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--missing); border-radius: var(--radius-sm); padding: 20px; }
.stake h3 { font-size: 1.02rem; margin-bottom: 6px; }
.stake p { color: var(--ink-soft); font-size: .94rem; }

/* The Guide — empathy + authority */
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.guide-empathy p { font-size: 1.14rem; color: var(--ink-soft); margin-bottom: 16px; }
.guide-empathy p strong { color: var(--ink); }
.authority-list { list-style: none; display: grid; gap: 14px; }
.authority-list li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.authority-list li strong { color: var(--ink); display: block; font-weight: 700; }
.authority-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-dark); font-size: .78rem; font-weight: 800; display: grid; place-items: center; }

/* Success / transformation — before vs after */
.transform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.ba-card { border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.ba-before { background: var(--mist); }
.ba-after { background: var(--brand-soft); border-color: rgba(22,163,74,.3); }
.ba-card .ba-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 14px; }
.ba-before .ba-label { color: var(--not); }
.ba-after .ba-label { color: var(--brand-dark); }
.ba-card ul { list-style: none; display: grid; gap: 12px; }
.ba-card li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.ba-before li::before { content: "✕"; position: absolute; left: 0; color: var(--missing); font-weight: 800; }
.ba-after li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.ba-after li { color: var(--ink); }

/* Lead-magnet (transitional CTA) band */
.lead-band { background: var(--brand-soft); border: 1px solid rgba(22,163,74,.25); border-radius: var(--radius); padding: 40px 44px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.lead-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.lead-band p { color: var(--ink-soft); margin-top: 8px; }
.lead-form { display: flex; gap: 10px; flex-wrap: wrap; }
.lead-form input { flex: 1 1 220px; padding: 13px 15px; border: 1.4px solid var(--line); border-radius: 999px; font-family: inherit; font-size: 1rem; background: #fff; }
.lead-form input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,163,74,.14); }
.lead-status { margin-top: 12px; font-weight: 600; font-size: .95rem; display: none; }
.lead-status.show { display: block; }
.lead-status.ok { color: var(--brand-dark); }
.lead-status.err { color: var(--missing); }
.lead-status a { text-decoration: underline; }

/* Checklist (printable lead-magnet page) */
.checklist-doc { max-width: 820px; }
.checklist-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.checklist-group h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.checklist-group h3 .num { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.checklist-items { list-style: none; display: grid; gap: 10px; }
.checklist-items li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.checklist-items li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 5px; border: 1.6px solid var(--line); background: #fff; }
.print-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 28px; }
@media print {
  .nav, .footer, .print-row, .cta-band, .lead-band { display: none !important; }
  body { background: #fff; }
  .checklist-group { box-shadow: none; break-inside: avoid; }
  .hero { padding: 20px 0 !important; background: #fff !important; }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .guide-grid, .transform-grid, .lead-band { grid-template-columns: 1fr; }
  .stakes-grid { grid-template-columns: 1fr; }
  .hero-grid, .split, .form-wrap { grid-template-columns: 1fr; }
  .pillars, .steps, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .persona-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .pillars, .steps, .industry-grid, .problem-list, .field-row { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .cta-band { padding: 40px 24px; }
  .footer-top { grid-template-columns: 1fr; }
}
