/* =====================================================================
   ScopeSimple — shared site styles
   ---------------------------------------------------------------------
   Every content page (privacy, terms, methodology, and the Stage 2
   pages to come) links to this one file. Change something here and it
   updates across the whole site. The landing page (index.html) stays
   self-contained on purpose.
   ===================================================================== */

/* ---- BRAND COLOURS (the same tokens as the app + landing page) ------ */
:root {
  --deep-green:  #103A20;  /* headings + strong text (the wordmark colour) */
  --body-green:  #2C5A3D;  /* body text — a softer green, easy to read */
  --vivid-green: #289C26;  /* links + accents (the "action" colour) */
  --mid-green:   #44A869;  /* secondary accent */
  --light-mint:  #A8E6C0;  /* soft fills + dividers */
  --pale-mint:   #ECFBED;  /* tints */
  --page-bg:     #FBFEFB;  /* barely-there mint — keeps long text readable */

  /* Placeholder / "to fill" highlight colours (amber, clearly not brand) */
  --todo-bg:     #FFF3CD;
  --todo-edge:   #C79100;
  --todo-text:   #6B5200;
}

/* ---- RESET + BASE --------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--body-green);
  background: var(--page-bg);
  line-height: 1.7;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

/* ---- SITE HEADER (small icon + wordmark, links home) ---------------- */
.site-header {
  border-bottom: 1px solid var(--light-mint);
  background: #FFFFFF;
}
.site-header .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;      /* never let the nav squeeze the brand (which clipped the last letter) */
  min-width: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  flex-shrink: 0;
  /* a soft lift, like the rounded app-icon tile on the landing page */
  box-shadow: 0 4px 10px rgba(16, 58, 32, 0.12);
  border-radius: 22%;
}
.brand-name {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--deep-green);
  letter-spacing: -0.2px;
  white-space: nowrap;      /* keep the name on one line */
  padding-right: 8px;       /* room so the italic last letter isn't clipped */
  overflow: visible;        /* let the leaning 'e' show fully */
}
/* SVG wordmark in the header (Option B: icon tile + wordmark) */
.brand-wordmark {
  height: 33px;          /* sized to sit beside the 42px icon tile */
  width: auto;
  display: block;
}

/* ---- TOP NAV (in the shared header) -------------------------------- */
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  text-decoration: none;
  color: var(--deep-green);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease;
  white-space: nowrap;
}
.site-nav a:hover { border-color: var(--mid-green); }
.site-nav a.nav-cta {
  background: var(--vivid-green);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 999px;
  border-bottom: none;
}
.site-nav a.nav-cta:hover { background: #1f8420; }

/* hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--deep-green);
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--light-mint);
    box-shadow: 0 12px 24px rgba(16,58,32,0.08);
    padding: 8px 0;
    z-index: 50;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 13px 24px;
    border-bottom: 1px solid #EEF6F0;
  }
  .site-nav a.nav-cta {
    margin: 10px 24px 6px;
    text-align: center;
    border-radius: 999px;
  }
  .site-header .inner { position: relative; }
}

/* ---- DOCUMENT COLUMN ------------------------------------------------ */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  /* a calm single fade-in (no bouncy motion on a legal/reference doc) */
  opacity: 0;
  animation: fade-in 0.5s ease forwards;
}
@keyframes fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .doc { animation: none; opacity: 1; }
}

.doc h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--deep-green);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

/* the "Last updated / version" meta line under the title */
.doc .meta {
  font-size: 0.92rem;
  color: var(--mid-green);
  font-weight: 500;
  margin-bottom: 8px;
}

.doc h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  color: var(--deep-green);
  margin: 44px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--light-mint);
  letter-spacing: -0.3px;
}
/* the first h2 doesn't need the divider line above it */
.doc .lead + h2 { border-top: none; padding-top: 0; }

.doc h3 {
  font-size: 1.1rem;
  color: var(--deep-green);
  margin: 28px 0 10px;
}

.doc p { margin-bottom: 16px; }

/* the short intro paragraph(s) under the title, slightly larger */
.doc .lead {
  font-size: 1.12rem;
  color: var(--body-green);
  margin-bottom: 8px;
}

.doc ul { margin: 0 0 18px 1.3em; }
.doc li { margin-bottom: 8px; }

.doc strong { color: var(--deep-green); font-weight: 700; }

.doc a {
  color: var(--vivid-green);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(40, 156, 38, 0.3);
  transition: border-color 0.2s ease;
}
.doc a:hover { border-color: var(--vivid-green); }

/* the formula / code block in the methodology */
.doc pre {
  background: var(--pale-mint);
  border: 1px solid var(--light-mint);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 18px;
  overflow-x: auto;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.95rem;
  color: var(--deep-green);
  line-height: 1.5;
}

/* ---- TABLES (methodology factor tables) ----------------------------- */
.table-wrap { overflow-x: auto; margin: 0 0 22px; }  /* lets wide tables scroll on phones */
.doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  min-width: 460px;  /* keeps columns legible; the wrap scrolls if narrower */
}
.doc th {
  background: var(--pale-mint);
  color: var(--deep-green);
  text-align: left;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 2px solid var(--light-mint);
}
.doc td {
  padding: 10px 12px;
  border-bottom: 1px solid #E6F2E9;
  vertical-align: top;
}
.doc tr:last-child td { border-bottom: none; }

/* ---- PLACEHOLDERS (the "to fill" markers) --------------------------- */

/* inline token, e.g. the entity name or a date inside a sentence */
.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  border-bottom: 1.5px dashed var(--todo-edge);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95em;
}

/* a whole block that still needs content dropped in */
.placeholder {
  background: var(--todo-bg);
  border: 1px solid var(--todo-edge);
  border-left-width: 5px;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 22px;
  color: var(--todo-text);
  font-size: 0.97rem;
}
.placeholder .tag {
  display: inline-block;
  background: var(--todo-edge);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.placeholder strong { color: var(--todo-text); }

/* ---- FOOTER --------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--light-mint);
  background: #FFFFFF;
  font-size: 0.9rem;
}
.site-footer .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  color: var(--mid-green);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 14px;
}
.site-footer a {
  color: var(--deep-green);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}
.site-footer a:hover { border-color: var(--mid-green); }
.site-footer .copyright { color: var(--mid-green); }

/* social icon row in the footer */
.site-footer .social {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.site-footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pale-mint);
  border-bottom: none;
  transition: background 0.2s ease;
}
.site-footer .social a:hover { background: var(--light-mint); }
.site-footer .social svg { width: 18px; height: 18px; fill: var(--deep-green); display: block; }

/* =====================================================================
   SHARED MARKETING PATTERNS (homepage + business page)
   Promoted from business.html at Stage 2 so both pages share one source.
   ===================================================================== */

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--vivid-green);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(40, 156, 38, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(40, 156, 38, 0.34); }
.btn-ghost {
  background: transparent;
  color: var(--deep-green);
  border: 1.5px solid var(--light-mint);
}
.btn-ghost:hover { border-color: var(--mid-green); }

/* ---- Hero ---- */
.hero {
  background: radial-gradient(circle at 50% 0%, #FFFFFF 0%, var(--pale-mint) 60%, #E2F6E6 100%);
  padding: 84px 24px 92px;
  text-align: center;
  border-bottom: 1px solid var(--light-mint);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--vivid-green);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--deep-green);
  max-width: 720px;
  margin: 0 auto 22px;
}
.hero p.sub {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--body-green);
  max-width: 600px;
  margin: 0 auto 34px;
  line-height: 1.6;
}

/* ---- Sections ---- */
section.block { padding: 72px 0; }
section.tint { background: var(--pale-mint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  color: var(--deep-green);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section-head p { color: var(--body-green); font-size: 1.05rem; }

/* ---- Steps (numbered) ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--light-mint); color: var(--deep-green);
  font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step h3 { color: var(--deep-green); font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--body-green); font-size: 0.98rem; }

/* ---- Cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #FFFFFF;
  border: 1px solid var(--light-mint);
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: 0 10px 30px rgba(16, 58, 32, 0.06);
  display: flex; flex-direction: column;
}
.card .pill {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--vivid-green);
  background: var(--pale-mint); padding: 4px 10px; border-radius: 999px;
  margin-bottom: 16px;
}
.card h3 { color: var(--deep-green); font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--body-green); font-size: 0.98rem; margin-bottom: 14px; }
.card .gets { margin-top: auto; font-size: 0.92rem; color: var(--mid-green); font-weight: 500; }

/* ---- Proof points (checklist) ---- */
.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; max-width: 720px; margin: 0 auto; }
.proof li {
  list-style: none; padding-left: 30px; position: relative;
  color: var(--body-green); font-size: 1rem; line-height: 1.5;
}
.proof li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--vivid-green); font-weight: 700;
}

/* ---- Pricing tiers ---- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier {
  background: #FFFFFF;
  border: 1px solid var(--light-mint);
  border-radius: 18px;
  padding: 32px 26px;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(16, 58, 32, 0.06);
}
.tier.featured { border: 2px solid var(--vivid-green); box-shadow: 0 14px 36px rgba(40, 156, 38, 0.16); }
.tier .tier-name { font-weight: 700; color: var(--deep-green); font-size: 1.2rem; margin-bottom: 6px; }
.tier .tier-price { color: var(--deep-green); font-size: 1.9rem; font-weight: 700; letter-spacing: -1px; margin-bottom: 4px; }
.tier .tier-price .per { font-size: 0.9rem; font-weight: 500; color: var(--mid-green); letter-spacing: 0; }
.tier .tier-alt { font-size: 0.88rem; color: var(--mid-green); margin-bottom: 18px; }
.tier ul { list-style: none; margin: 0; }
.tier li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--body-green); font-size: 0.96rem; line-height: 1.45; }
.tier li::before { content: "\2713"; position: absolute; left: 0; color: var(--vivid-green); font-weight: 700; }

/* ---- Closing CTA band (deep green = the one dominant-colour moment) ---- */
.cta-band { background: var(--deep-green); color: #FFFFFF; text-align: center; padding: 78px 24px; }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-bottom: 16px; letter-spacing: -0.5px; }
.cta-band p { color: #CDEBD6; font-size: 1.1rem; max-width: 520px; margin: 0 auto 30px; }
.cta-band .btn-primary { background: #FFFFFF; color: var(--deep-green); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }

/* ---- staggered hero load ---- */
.fade { opacity: 0; transform: translateY(14px); animation: rise 0.7s ease forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.35s; } .d4 { animation-delay: 0.5s; }
.d5 { animation-delay: 0.65s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .fade { animation: none; opacity: 1; transform: none; } }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .steps, .cards, .proof, .tiers { grid-template-columns: 1fr; }
}
