/* ===========================================================
   Digital Foundation Co. — landing page styles
   Palette: charcoal/navy + off-white + muted teal-green accent
   Type: Cabinet Grotesk (display) + General Sans (body) — Fontshare
   =========================================================== */

:root {
  /* Color */
  --ink:        #1b2733;   /* charcoal-navy primary text */
  --ink-soft:   #3a4a59;   /* secondary text */
  --ink-muted:  #6b7884;   /* muted / captions */
  --bg:         #f7f5f0;   /* warm off-white background */
  --surface:    #fffdf9;   /* cards */
  --surface-2:  #f1eee7;   /* alt surface band */
  --border:     #ddd8cd;   /* subtle borders */
  --border-2:   #c9c3b6;
  --accent:     #2f6f63;   /* muted teal-green */
  --accent-dk:  #245349;   /* hover */
  --accent-soft:#e4efe9;   /* tint */
  --navy:       #15303f;   /* deep band */

  /* Type scale */
  --text-xs:   0.8125rem;  /* 13px */
  --text-sm:   0.9375rem;  /* 15px */
  --text-base: 1.0625rem;  /* 17px */
  --text-lg:   1.25rem;    /* 20px */
  --text-xl:   1.6rem;     /* ~26px */
  --text-2xl:  clamp(2rem, 4.4vw, 3.1rem);
  --text-hero: clamp(2.5rem, 6vw, 4.1rem);

  /* Spacing */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1140px;
  --shadow-sm: 0 1px 2px rgba(27,39,51,.06), 0 2px 8px rgba(27,39,51,.05);
  --shadow-md: 0 6px 24px rgba(27,39,51,.08);

  --font-display: 'Cabinet Grotesk', 'Georgia', serif;
  --font-body: 'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

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

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

/* ---------- Skip link & focus ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .65rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: background .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease;
  line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dk); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-muted); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: var(--text-base); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,240,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wordmark .mark { color: var(--accent); flex: none; }
.wordmark .name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem;
  letter-spacing: -0.015em; color: var(--ink); white-space: nowrap;
}
.header-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.header-nav .nav-links { display: flex; gap: clamp(1rem, 2vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.header-nav .nav-links a { color: var(--ink-soft); font-size: var(--text-sm); font-weight: 500; }
.header-nav .nav-links a:hover { color: var(--accent); }
@media (max-width: 860px) {
  .header-nav .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background: linear-gradient(155deg, #f7f5f0 0%, #f3f3ec 45%, #edf4ef 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 25%, #000 35%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 25%, #000 35%, transparent 78%);
}
.hero .container { position: relative; z-index: 1; }
.hero-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 920px) { .hero-layout { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-dk); background: var(--accent-soft); border: 1px solid #cfe2da;
  padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: var(--text-hero); max-width: 18ch; margin-bottom: 1.1rem; }
.hero .lede { font-size: var(--text-lg); color: var(--ink-soft); max-width: 46ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.hero-help { font-size: var(--text-sm); color: var(--ink-muted); margin-top: 1.1rem; max-width: 50ch; }

/* hero card / checklist visual */
.hero-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 1.6rem 1.5rem;
}
.hero-card .card-head { display: flex; align-items: center; gap: .7rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.hero-card .card-head .pin { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-dk); flex: none; }
.hero-card .card-head strong { font-family: var(--font-display); font-size: var(--text-base); color: var(--ink); }
.hero-card .card-head span { display: block; font-size: var(--text-xs); color: var(--ink-muted); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; align-items: flex-start; gap: .65rem; font-size: var(--text-sm); color: var(--ink-soft); }
.check-list .tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin-top: 1px; }
.check-list .tick svg { width: 12px; height: 12px; }

.foundation-map-card {
  position: relative;
  overflow: hidden;
}
.foundation-map-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,111,99,.14), transparent 68%);
  pointer-events: none;
}
.foundation-map-card .card-head {
  position: relative;
  z-index: 1;
}
.foundation-map {
  position: relative;
  z-index: 1;
}
.foundation-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  padding: .5rem .85rem;
  margin-bottom: .8rem;
  box-shadow: 0 8px 18px rgba(27,39,51,.14);
}
.foundation-nodes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.foundation-nodes span {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 38px;
  border: 1px solid #deebe4;
  background: #f4f8f4;
  border-radius: 9px;
  padding: .48rem .55rem;
  color: var(--ink-soft);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.25;
}
.foundation-nodes .tick {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  position: relative;
}
.foundation-nodes .tick::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.map-foot {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  line-height: 1.45;
}
@media (max-width: 420px) {
  .foundation-nodes { grid-template-columns: 1fr; }
}

/* ---------- Section scaffolding ---------- */
section { scroll-margin-top: 84px; }
.band { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.band--alt { background: var(--surface-2); border-block: 1px solid var(--border); }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .kicker { font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dk); margin-bottom: .7rem; }
.section-head h2 { font-size: var(--text-2xl); margin-bottom: .9rem; }
.section-head p { font-size: var(--text-lg); color: var(--ink-soft); }
.lead-para { font-size: var(--text-lg); color: var(--ink-soft); max-width: 64ch; }
.lead-para + .lead-para { margin-top: 1.1rem; }

/* ---------- "Built for" two column ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split .goal-card {
  background: var(--navy); color: #eef3f1; border-radius: var(--radius); padding: 2rem;
}
.split .goal-card h3 { color: #fff; font-size: var(--text-xl); margin-bottom: 1.1rem; }
.split .goal-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.split .goal-card li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--text-base); color: #d6e0dc; }
.split .goal-card .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.12); color: #8fd3c2; display: grid; place-items: center; margin-top: 1px; }
.split .goal-card .tick svg { width: 13px; height: 13px; }

/* ---------- What gets checked — cards ---------- */
.checks-intro { max-width: 66ch; color: var(--ink-soft); font-size: var(--text-lg); margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }
.check-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.check-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.check-card .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dk); display: grid; place-items: center; margin-bottom: 1.1rem; }
.check-card .ico svg { width: 23px; height: 23px; }
.check-card h3 { font-size: var(--text-lg); margin-bottom: .55rem; color: var(--ink); }
.check-card p { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.55; }

/* ---------- How it works — steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; position: relative;
}
.step .num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dk); border: 1px solid #cfe2da; margin-bottom: 1rem;
}
.step h3 { font-size: var(--text-base); margin-bottom: .5rem; color: var(--ink); }
.step p { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.55; }

/* ---------- After the free check ---------- */
.after-check { padding-top: clamp(2.5rem, 5vw, 4rem); background: var(--bg); }
.after-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.after-layout .section-head { margin-bottom: 0; }
.after-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.after-card p {
  color: var(--ink-soft);
  font-size: var(--text-base);
  line-height: 1.65;
}
.after-card p + p { margin-top: 1rem; }
@media (max-width: 820px) {
  .after-layout { grid-template-columns: 1fr; }
  .after-layout .section-head { margin-bottom: 0; }
}

/* ---------- Local + trust band ---------- */
.local-band { background: var(--navy); color: #e9efec; }
.local-band .split { align-items: start; }
.local-band h2 { color: #fff; font-size: var(--text-2xl); margin-bottom: 1.1rem; }
.local-band p { color: #c7d3ce; font-size: var(--text-lg); }
.local-band p + p { margin-top: 1rem; }
.trust-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 1.8rem;
}
.trust-card .label { font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8fd3c2; margin-bottom: .9rem; }
.trust-card p { color: #dde6e2; font-size: var(--text-base); line-height: 1.6; }
.trust-card .emphasis { color: #fff; font-weight: 500; }
.area-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.area-tags span { font-size: var(--text-xs); color: #d6e0dc; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); padding: .35rem .7rem; border-radius: 999px; }

/* ---------- Who this is for ---------- */
.fit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.25rem; max-width: 1000px; }
@media (max-width: 760px) { .fit-list { grid-template-columns: 1fr; } }
.fit-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: var(--text-base); color: var(--ink-soft); padding: .9rem 0; border-bottom: 1px solid var(--border); list-style: none; }
.fit-list { padding: 0; margin: 0; }
.fit-list .tick { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-dk); display: grid; place-items: center; margin-top: 1px; }
.fit-list .tick svg { width: 14px; height: 14px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: var(--text-2xl); max-width: 22ch; margin-inline: auto; margin-bottom: 1rem; }
.cta-band p { color: #dcebe6; font-size: var(--text-lg); max-width: 56ch; margin-inline: auto; margin-bottom: 1.8rem; }
.cta-band .btn-primary { background: #fff; color: var(--accent-dk); }
.cta-band .btn-primary:hover { background: #f1eee7; color: var(--accent-dk); }
.cta-band .privacy {
  margin-top: 1.8rem; font-size: var(--text-sm); color: #cfe5dd; max-width: 60ch; margin-inline: auto;
  border-top: 1px solid rgba(255,255,255,.2); padding-top: 1.4rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; } }
.footer-brand .wordmark { margin-bottom: .9rem; }
.footer-brand .tagline { color: var(--ink-soft); font-size: var(--text-base); max-width: 40ch; }
.footer-brand .area { color: var(--ink-muted); font-size: var(--text-sm); margin-top: .7rem; }
.footer-contact { font-size: var(--text-sm); }
.footer-contact .label { font-weight: 600; color: var(--ink); display: block; margin-bottom: .4rem; }
.footer-contact a { color: var(--accent); word-break: break-word; }
.footer-contact .btn-primary { color: #fff; word-break: normal; }
.footer-contact .btn-primary:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.5rem; font-size: var(--text-xs); color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
