/* ============================================================
   Common Ground — marketing site
   Palette: navy + warm paper + eucalyptus, with a ledger/stamp motif
   ============================================================ */

:root {
  --navy:        #1C4E80;
  --navy-deep:   #102A43;
  --navy-soft:   #2A5C92;
  --green:       #2E7D5B;
  --green-deep:  #245f46;
  --amber:       #C8821A;

  --paper:       #F7F6F2;
  --paper-2:     #FFFFFF;
  --sand:        #E7DECB;
  --sand-line:   #ECE6D7;
  --ink:         #1B2733;
  --ink-soft:    #50616F;
  --ink-faint:   #8494A1;

  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --wrap: 1140px;
  --r:    14px;
  --r-sm: 9px;
  --shadow:    0 1px 2px rgba(16,42,67,.06), 0 12px 32px -16px rgba(16,42,67,.28);
  --shadow-lg: 0 30px 70px -34px rgba(16,42,67,.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
.ink-green { color: var(--green); }

/* ── Shared bits ─────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 1rem;
}
.eyebrow--light { color: #9DC0E8; }

.section__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -.018em;
  color: var(--navy-deep);
  max-width: 18ch;
}
.section__sub {
  margin-top: 1.1rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--body);
  font-weight: 600; font-size: .96rem;
  padding: .72rem 1.25rem;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn--lg { padding: .92rem 1.6rem; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid { background: var(--navy); color: #fff; box-shadow: 0 10px 22px -12px rgba(28,78,128,.7); }
.btn--solid:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--navy); border-color: rgba(28,78,128,.28); }
.btn--ghost:hover { border-color: var(--navy); background: rgba(28,78,128,.05); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--sand); }
.btn--outline:hover { border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy-deep); }
.btn--light:hover { background: #eef2f6; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.link-quiet { font-weight: 500; color: var(--ink-soft); font-size: .96rem; }
.link-quiet:hover { color: var(--navy); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,246,242,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--sand-line);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.12rem;
  color: var(--navy-deep); letter-spacing: -.01em;
}
.brand__mark { color: var(--navy); display: inline-flex; }
.nav__links { display: flex; gap: 1.7rem; margin-left: auto; }
.nav__links a { font-weight: 500; font-size: .95rem; color: var(--ink-soft); }
.nav__links a:hover { color: var(--navy); }
.nav__cta { display: flex; align-items: center; gap: 1rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6.5rem); }
.hero__ledger {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 37px, var(--sand-line) 37px, var(--sand-line) 38px);
  -webkit-mask-image: radial-gradient(120% 80% at 75% 0%, #000 0%, transparent 60%);
          mask-image: radial-gradient(120% 80% at 75% 0%, #000 0%, transparent 60%);
  opacity: .7;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.hero__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  line-height: 1.02; letter-spacing: -.03em; color: var(--navy-deep);
}
.hero__lede { margin-top: 1.5rem; font-size: 1.18rem; color: var(--ink-soft); max-width: 46ch; }
.hero__actions { margin-top: 2rem; display: flex; gap: .85rem; flex-wrap: wrap; }
.hero__trust {
  margin-top: 1.9rem; font-size: .92rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: .55rem;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(46,125,91,.16); flex: none; }

/* signature record card */
.hero__record { position: relative; perspective: 1400px; }
.record {
  position: relative; z-index: 2;
  background: var(--paper-2);
  border: 1px solid var(--sand);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.5rem 1.7rem;
  transform: rotate(-1.2deg);
}
.record--behind {
  position: absolute; inset: 0; z-index: 1;
  transform: rotate(2.4deg) translate(14px, 14px);
  background: #fbfaf7; box-shadow: var(--shadow);
  padding: 0;
}
.record__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.record__code {
  font-family: var(--mono); font-weight: 600; font-size: .78rem;
  color: #fff; background: var(--navy); padding: .2rem .5rem; border-radius: 6px; letter-spacing: .04em;
}
.record__type { font-family: var(--mono); font-size: .74rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; }
.record__title { font-family: var(--display); font-weight: 700; font-size: 1.22rem; color: var(--navy-deep); margin: .9rem 0 1.1rem; }
.record__rows { list-style: none; display: grid; gap: .1rem; }
.record__rows li {
  display: grid; grid-template-columns: 80px 1fr; align-items: baseline; gap: .8rem;
  padding: .55rem 0; border-top: 1px dashed var(--sand-line); font-size: .9rem;
}
.record__rows li:first-child { border-top: none; }
.rrow__k { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.rrow__v { color: var(--ink); }
.rrow__ok { color: var(--green-deep); font-weight: 600; }

/* stamp */
.stamp {
  position: absolute; right: -14px; bottom: -22px; z-index: 3;
  display: grid; place-items: center; text-align: center;
  width: 132px; height: 132px; border-radius: 50%;
  border: 3px solid var(--green);
  color: var(--green);
  background: rgba(247,246,242,.55);
  transform: rotate(-14deg);
  box-shadow: inset 0 0 0 2px rgba(46,125,91,.25);
}
.stamp::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 1.5px dashed rgba(46,125,91,.5);
}
.stamp__text { font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: .04em; line-height: 1; }
.stamp__sub { font-family: var(--mono); font-size: .72rem; margin-top: .25rem; letter-spacing: .1em; }

@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stampIn .65s cubic-bezier(.2,1.3,.5,1) .55s backwards; }
  @keyframes stampIn {
    0% { opacity: 0; transform: rotate(-14deg) scale(2.4); }
    60% { opacity: 1; }
    100% { opacity: 1; transform: rotate(-14deg) scale(1); }
  }
  .hero__copy > * { animation: rise .6s ease backwards; }
  .hero__copy > *:nth-child(1) { animation-delay: .02s; }
  .hero__copy > *:nth-child(2) { animation-delay: .08s; }
  .hero__copy > *:nth-child(3) { animation-delay: .14s; }
  .hero__copy > *:nth-child(4) { animation-delay: .2s; }
  .hero__copy > *:nth-child(5) { animation-delay: .26s; }
  .record { animation: rise .7s ease .1s backwards; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px) rotate(-1.2deg); } }
}

/* ── Problem strip ───────────────────────────────────────── */
.strip { background: var(--navy-deep); color: #DCE6F0; padding: clamp(3rem,5vw,4.5rem) 0; }
.strip__grid { display: grid; gap: 2.5rem; }
.strip__lead {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 2.05rem); line-height: 1.25; letter-spacing: -.015em;
  color: #fff; max-width: 26ch;
}
.strip__from-to { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.6rem; align-items: center; }
.from, .to { list-style: none; display: grid; gap: .7rem; }
.from li, .to li { position: relative; padding-left: 1.7rem; font-size: 1rem; }
.from li { color: #93A6BC; }
.from li::before { content: "✕"; position: absolute; left: 0; color: #6b8099; font-size: .85rem; top: .15rem; }
.to li { color: #EAF1F8; }
.to li::before { content: "✓"; position: absolute; left: 0; color: #5FCF9C; font-weight: 700; top: .05rem; }
.from-to__arrow { font-size: 2rem; color: var(--navy-soft); font-weight: 300; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.section--paper { background: #fff; border-top: 1px solid var(--sand-line); border-bottom: 1px solid var(--sand-line); }
.section__head { max-width: 60ch; margin-bottom: 3rem; }

/* ── Modules grid ────────────────────────────────────────── */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mod {
  background: var(--paper-2); border: 1px solid var(--sand-line);
  border-radius: var(--r); padding: 1.7rem 1.6rem;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mod:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sand); }
.mod--addon { border-color: rgba(46,125,91,.4); background: linear-gradient(180deg, rgba(46,125,91,.05), var(--paper-2) 70%); }
.mod--soon { border-style: dashed; border-color: var(--sand); background: transparent; }
.mod__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.mod__code {
  font-family: var(--mono); font-weight: 600; font-size: .82rem; letter-spacing: .08em;
  color: var(--navy); background: rgba(28,78,128,.09); padding: .28rem .55rem; border-radius: 7px;
}
.mod--addon .mod__code { color: var(--green-deep); background: rgba(46,125,91,.13); }
.mod--soon .mod__code { color: var(--ink-faint); background: rgba(132,148,161,.12); }
.tag { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; padding: .22rem .5rem; border-radius: 20px; font-weight: 500; }
.tag--base  { color: var(--navy); background: rgba(28,78,128,.1); }
.tag--addon { color: var(--green-deep); background: rgba(46,125,91,.14); }
.tag--soon  { color: var(--amber); background: rgba(200,130,26,.13); }
.mod__name { font-family: var(--display); font-weight: 700; font-size: 1.32rem; color: var(--navy-deep); margin-bottom: .6rem; letter-spacing: -.01em; }
.mod__desc { color: var(--ink-soft); font-size: .96rem; }
.mod__list { list-style: none; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--sand-line); display: grid; gap: .5rem; }
.mod__list li { position: relative; padding-left: 1.4rem; font-size: .9rem; color: var(--ink); }
.mod__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
.mod--soon .mod__list li::before { background: var(--amber); }

/* ── Compliance band ─────────────────────────────────────── */
.band { background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: clamp(4rem,7vw,6rem) 0; }
.band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.band__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem,3.6vw,2.7rem); line-height: 1.1; letter-spacing: -.02em; max-width: 16ch; }
.band__lede { margin: 1.2rem 0 2rem; color: #C6D5E6; font-size: 1.08rem; max-width: 48ch; }
.band__lede strong { color: #fff; }
.band__checks { list-style: none; display: grid; gap: 1.1rem; }
.band__checks li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.1rem 1.2rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-sm); }
.band__checks strong { display: block; font-size: 1.02rem; }
.band__checks span { display: block; color: #AFC2D6; font-size: .92rem; margin-top: .15rem; }
.chk { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: .9rem; flex: none; }

/* ── How it works ────────────────────────────────────────── */
.how__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem,5vw,4rem); }
.how__points { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
.point { padding-top: 1.1rem; border-top: 2px solid var(--navy); }
.point__h { font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--navy-deep); margin-bottom: .5rem; }
.point p { color: var(--ink-soft); font-size: .96rem; }

/* ── Pricing ─────────────────────────────────────────────── */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.price {
  position: relative; background: #fff; border: 1px solid var(--sand-line);
  border-radius: var(--r); padding: 2rem 1.8rem; display: flex; flex-direction: column;
}
.price--feature { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.price__ribbon {
  position: absolute; top: -13px; left: 1.8rem;
  font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  background: var(--green); color: #fff; padding: .3rem .7rem; border-radius: 20px; font-weight: 500;
}
.price__name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--navy-deep); }
.price__tag { margin: .7rem 0 .4rem; display: flex; align-items: baseline; gap: .4rem; }
.price__amt { font-family: var(--display); font-weight: 800; font-size: 2.7rem; color: var(--navy); letter-spacing: -.03em; }
.price__per { color: var(--ink-faint); font-size: .95rem; }
.price__note { color: var(--ink-soft); font-size: .94rem; min-height: 2.6em; }
.price__list { list-style: none; margin: 1.3rem 0 1.7rem; display: grid; gap: .65rem; flex: 1; }
.price__list li { position: relative; padding-left: 1.6rem; font-size: .94rem; color: var(--ink); }
.price__list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price__fine { margin-top: 1.6rem; text-align: center; font-size: .85rem; color: var(--ink-faint); }

/* ── Final CTA ───────────────────────────────────────────── */
.cta { background: var(--navy-deep); color: #fff; padding: clamp(4rem,7vw,6rem) 0; text-align: center; position: relative; overflow: hidden; }
.cta__inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.cta__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem,4vw,3rem); letter-spacing: -.025em; line-height: 1.08; max-width: 18ch; }
.cta__sub { margin: 1.1rem 0 2rem; color: #B9CADC; font-size: 1.1rem; max-width: 50ch; }
.cta__actions { display: flex; gap: .85rem; flex-wrap: wrap; justify-content: center; }
.stamp--cta { position: static; width: 96px; height: 96px; margin-bottom: 1.6rem; border-color: #5FCF9C; color: #5FCF9C; background: transparent; transform: rotate(-8deg); animation: none; }
.stamp--cta::before { border-color: rgba(95,207,156,.45); }
.stamp--cta .stamp__text { font-size: 1.02rem; }

/* ── Footer ──────────────────────────────────────────────── */
.foot { background: #0c2233; color: #9FB2C5; padding: 3.5rem 0 2rem; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand--foot { color: #fff; font-size: 1.05rem; }
.brand--foot .brand__mark { color: #5FCF9C; }
.foot__tag { margin-top: .9rem; font-size: .92rem; max-width: 34ch; }
.foot__tag span { display: block; font-family: var(--mono); color: #5FCF9C; margin-top: .3rem; font-size: .85rem; }
.foot__h { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #6f8499; margin-bottom: 1rem; }
.foot__col { display: grid; gap: .6rem; align-content: start; }
.foot__col a { font-size: .94rem; }
.foot__col a:hover { color: #fff; }
.foot__base { display: flex; justify-content: space-between; padding-top: 1.5rem; font-size: .86rem; color: #6f8499; flex-wrap: wrap; gap: .5rem; }

/* ── Scroll reveal ───────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__record { margin-top: 1rem; max-width: 460px; }
  .band__grid, .how__grid { grid-template-columns: 1fr; }
  .modules, .prices { grid-template-columns: repeat(2, 1fr); }
  .how__points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .strip__from-to { grid-template-columns: 1fr; gap: 1.2rem; }
  .from-to__arrow { transform: rotate(90deg); justify-self: start; }
  .modules, .prices, .how__points { grid-template-columns: 1fr; }
  .price--feature { order: -1; }
}
@media (max-width: 460px) {
  .nav__cta .link-quiet { display: none; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
}
