/* ==========================================================================
   Sumify Bookkeeping — design system + page styles
   Mobile-first, no framework, self-hosted fonts.

   1. Tokens            5. Header / hero      9. Pricing
   2. Base              6. Sections & heads  10. FAQ, final CTA, footer
   3. Typography        7. Cards              11. Overlays (sticky CTA, consent)
   4. Buttons & chips   8. Process (dark)     12. Content pages
   ========================================================================== */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --navy-950: #0b1d29;
  --navy-900: #112a3a;      /* primary ink, dark sections */
  --navy-800: #1a3a4f;
  --navy-700: #2a4b61;
  --teal-700: #06656f;      /* hover / pressed */
  --teal-600: #087f8c;      /* primary brand — white text 4.75:1 */
  --teal-ink: #06707a;      /* teal text on tinted surfaces (≥5:1) */
  --mint-400: #2bd4b3;      /* accents; navy text on mint 8.9:1 */
  --mint-300: #6ee3cb;
  --mint-100: #d9f7f0;
  --mint-50:  #effcf8;

  /* Neutrals */
  --white: #ffffff;
  --surface-soft: #f4f8f8;  /* off-white sections */
  --surface-tint: #eaf3f6;  /* pale-blue sections */
  --line-blue: #dcebf0;     /* pale-blue borders */
  --line: #e3ecef;
  --line-strong: #c9d9df;

  /* Text */
  --text-strong: var(--navy-900);
  --text: #2c4352;          /* 10:1 on white */
  --text-muted: #4a5f6e;    /* 6.2:1 on #f4f8f8 */
  --text-on-dark: #d3e0e7;
  --muted-on-dark: #9fb6c3;

  /* Type */
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-display: clamp(2.5rem, 1.55rem + 4.2vw, 4.4rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 1.9vw, 2.75rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  /* Space */
  --gutter: 20px;
  --wrap: 1160px;
  --section-y: clamp(4rem, 2.8rem + 4.5vw, 7rem);
  --head-gap: clamp(2.25rem, 1.8rem + 1.6vw, 3.5rem);
  --card-pad: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem);

  /* Shape & depth */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(17, 42, 58, 0.06);
  --shadow-sm: 0 1px 2px rgba(17, 42, 58, 0.05), 0 4px 12px -6px rgba(17, 42, 58, 0.12);
  --shadow-md: 0 1px 2px rgba(17, 42, 58, 0.05), 0 12px 32px -14px rgba(17, 42, 58, 0.22);
  --shadow-lg: 0 2px 4px rgba(17, 42, 58, 0.04), 0 30px 60px -28px rgba(17, 42, 58, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;

  --header-h: 68px;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--teal-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--dur) var(--ease); }
a:hover { color: var(--teal-700); }

:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 3px; border-radius: var(--r-xs); }
.section-dark :focus-visible, .final-panel :focus-visible, .plan-featured :focus-visible { outline-color: var(--mint-400); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--navy-900); color: var(--white);
  padding: 10px 14px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- 3. Typography ---------- */
h1, h2, h3 { color: var(--text-strong); margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-display); font-weight: 600; line-height: 1.03; letter-spacing: -0.038em; }
h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.012em; }
p, li { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px; border-radius: 2px;
  background: var(--mint-400);
}
.section-head.center .eyebrow::before { display: none; }

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-muted); }
.accent {
  color: var(--teal-600);
  background: linear-gradient(180deg, transparent 74%, rgba(43, 212, 179, 0.3) 74%, rgba(43, 212, 179, 0.3) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.04em;
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- 4. Buttons & chips ---------- */
.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--text-strong);
  --btn-border: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.45rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow { display: inline-block; transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  --btn-bg: var(--teal-600);
  --btn-fg: var(--white);
  --btn-border: var(--teal-700);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(17, 42, 58, 0.2), 0 8px 20px -10px rgba(8, 127, 140, 0.75);
}
.btn-primary:hover {
  --btn-bg: var(--teal-700);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(17, 42, 58, 0.2), 0 14px 28px -12px rgba(8, 127, 140, 0.85);
}
.btn-secondary { box-shadow: var(--shadow-xs); }
.btn-secondary:hover { --btn-border: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-on-dark {
  --btn-bg: var(--mint-400);
  --btn-fg: var(--navy-900);
  --btn-border: var(--mint-400);
  box-shadow: 0 10px 30px -12px rgba(43, 212, 179, 0.7);
}
.btn-on-dark:hover { --btn-bg: var(--mint-300); --btn-border: var(--mint-300); }
.btn-ghost-dark {
  --btn-bg: rgba(255, 255, 255, 0.04);
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.22);
}
.btn-ghost-dark:hover { --btn-border: rgba(255, 255, 255, 0.5); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0.55rem 1.05rem; font-size: 0.975rem; }
.btn[aria-busy="true"] { opacity: 0.85; cursor: progress; }
.btn:focus-visible { border-radius: var(--r-sm); }

.cta-note {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin: 1rem 0 0;
}

.check {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--teal-600);
  display: inline-grid;
  place-items: center;
  box-shadow: 0 0 0 4px var(--mint-50);
}
.check svg { width: 12px; height: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--mint-50);
  border: 1px solid var(--mint-100);
  color: #05595f;
  white-space: nowrap;
}
.pill .dot, .badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--mint-400);
  box-shadow: 0 0 0 3px rgba(43, 212, 179, 0.22);
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(201, 217, 223, 0.6);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; border-radius: var(--r-xs); }
.brand img { height: 34px; width: auto; }
.header-nav { display: none; }
.header-nav a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
}
.header-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--mint-400); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.header-nav a:hover { color: var(--text-strong); }
.header-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 2rem; }
.header-cta .long { display: none; }
@media (min-width: 560px) {
  .header-cta .long { display: inline; }
  .header-cta .short { display: none; }
}
@media (min-width: 900px) { .header-nav { display: flex; gap: 1.75rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2rem 0 3.25rem;
  background:
    radial-gradient(42rem 26rem at 92% -8%, rgba(43, 212, 179, 0.20), transparent 70%),
    radial-gradient(36rem 24rem at -10% 110%, rgba(8, 127, 140, 0.10), transparent 70%),
    linear-gradient(180deg, var(--surface-soft) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {               /* faint ledger grid */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(17, 42, 58, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 42, 58, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 70% at 75% 25%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 75% 25%, #000 0%, transparent 75%);
}
.hero-grid { display: grid; gap: 2.75rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.38rem 0.8rem 0.38rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line-blue);
  box-shadow: var(--shadow-xs);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-strong);
}
.hero h1 { margin-bottom: 1.25rem; max-width: 14ch; }
.hero h1 .accent { white-space: nowrap; }
.hero .lead { max-width: 35rem; margin-bottom: 1.5rem; color: var(--text); }
.hero-points {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
}
.hero-points li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  color: var(--text-strong);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.45;
}
.hero-ctas { display: flex; flex-direction: column; gap: 0.75rem; }
.hero .btn-primary { min-height: 56px; font-size: 1.0938rem; }
@media (min-width: 560px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .hero-points { grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; }
}
@media (min-width: 1024px) {
  .hero { padding: 4.75rem 0 5.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 4.5rem; }
}

/* Hero statement card */
.hero-visual { position: relative; width: 100%; max-width: 460px; justify-self: center; }
.close-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.375rem 1.125rem;
  width: 100%;
}
.close-card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.close-card-title { font-weight: 600; color: var(--text-strong); font-size: 1.0625rem; letter-spacing: -0.01em; }
.close-card-label {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted);
}
.close-card ul { list-style: none; }
.close-card li {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.975rem;
}
.close-card li:last-child { border-bottom: 0; }
.close-card li > span:first-child { display: flex; gap: 0.65rem; align-items: center; }
.close-card .status { font-family: var(--mono); font-size: 0.78rem; color: var(--teal-ink); white-space: nowrap; }
.close-card .check { width: 20px; height: 20px; margin: 0; box-shadow: none; }
.close-card-foot {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.9rem;
  background: var(--surface-soft);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.stmt-rows { padding: 0.15rem 0; }
.stmt-rows .row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.stmt-rows .row span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.88rem; color: var(--text-strong); }
.stmt-rows .row.sub { padding-left: 0.9rem; color: var(--text-muted); }
.stmt-rows .row.total { font-weight: 600; color: var(--text-strong); }
.stmt-rows .row.net {
  margin: 0.4rem -0.75rem 0;
  padding: 0.75rem;
  border: 0;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--mint-50), var(--surface-soft));
  font-weight: 700;
  color: var(--text-strong);
}
.stmt-rows .row.net span:last-child { color: var(--teal-ink); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.85rem; }
.chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  color: var(--text-strong);
  background: var(--white);
}
.chip.ok { border-color: #a9e2d6; color: #05595f; background: var(--mint-50); }
.stmt-note { font-size: 0.8125rem; color: var(--text-muted); margin: 0.8rem 0 0; text-align: center; }
.float-badge {
  position: absolute;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-md);
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
}
.float-badge small { display: block; color: var(--muted-on-dark); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; }
.float-badge-tl { top: -1.35rem; left: -1.5rem; }
@media (min-width: 1024px) {
  .float-badge { display: flex; }
  .hero-visual .close-card { padding-top: 2.75rem; }
}
@media (max-width: 1023px) {
  .stmt-rows .row.sub:nth-child(n+6) { display: none; }   /* keep the card compact on phones */
}

/* ---------- Trust strip ---------- */
.trust { padding: 1.75rem 0; background: var(--white); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.trust li { display: flex; gap: 0.8rem; align-items: center; font-size: var(--fs-small); color: var(--text-muted); line-height: 1.4; }
.trust strong { display: block; color: var(--text-strong); font-weight: 600; font-size: 0.975rem; }
.trust-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--mint-50), var(--surface-tint));
  border: 1px solid var(--line-blue);
  color: var(--teal-600);
  display: grid; place-items: center;
}
.trust-icon svg { width: 19px; height: 19px; }
@media (min-width: 600px) { .trust ul { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .trust ul { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .trust li + li { border-left: 1px solid var(--line); padding-left: 1.5rem; }
}

/* ---------- 6. Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-soft { background: var(--surface-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tint {
  background: linear-gradient(180deg, var(--surface-tint) 0%, var(--surface-soft) 100%);
  border-top: 1px solid var(--line-blue);
  border-bottom: 1px solid var(--line-blue);
}
.section-head { max-width: 46rem; margin-bottom: var(--head-gap); }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--text-muted); font-size: var(--fs-lead); margin: 0; max-width: 40rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.section-cta { margin-top: 2.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.section-cta .cta-note { margin: 0; }

/* Problem → outcome */
.compare { display: grid; gap: 1.25rem; }
.compare-col {
  border-radius: var(--r-lg);
  padding: var(--card-pad);
  border: 1px solid var(--line);
  background: var(--white);
}
.compare-col h3 { margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.compare-col ul { list-style: none; display: grid; gap: 0.95rem; }
.compare-col li { display: flex; gap: 0.8rem; align-items: flex-start; line-height: 1.5; }
.compare-col li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.compare-before { background: var(--surface-soft); }
.compare-before li { color: var(--text-muted); }
.compare-before li svg { color: #a35a3a; }
.compare-after {
  position: relative;
  border-color: var(--line-blue);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.compare-after::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal-600), var(--mint-400));
}
.compare-after li { color: var(--text-strong); font-weight: 500; }
.compare-after li svg { color: var(--teal-600); }
.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: var(--r-xs);
  font-weight: 500;
}
.tag-before { background: #f8ebe4; color: #7f3317; }
.tag-after { background: var(--mint-100); color: #05595f; }
@media (min-width: 860px) {
  .compare { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* ---------- 7. Cards ---------- */
.services { display: grid; gap: 1rem; list-style: none; }
.service, .step, .plan, .feature-band, .faq details {
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.service {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-md);
  padding: var(--card-pad);
  box-shadow: var(--shadow-xs);
}
.service:hover { transform: translateY(-2px); border-color: #b5dbe0; box-shadow: var(--shadow-md); }
.service-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: linear-gradient(145deg, var(--teal-600), #0a9a9a);
  color: var(--white);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px -8px rgba(8, 127, 140, 0.8);
}
.service-icon svg { width: 21px; height: 21px; }
.service h3 { margin-bottom: 0.45rem; }
.service p { margin: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.55; }
.service .note {
  display: inline-flex; margin-top: 0.85rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.03em;
  color: #05595f; background: var(--mint-50); border: 1px solid var(--mint-100);
  padding: 0.22rem 0.5rem; border-radius: var(--r-xs);
}
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.scope-out {
  margin-top: 1.25rem;
  padding: var(--card-pad);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
}
.scope-out h3 { font-size: var(--fs-small); font-family: var(--mono); font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.85rem; }
.scope-out ul { list-style: none; display: grid; gap: 0.55rem; }
.scope-out li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text); font-size: 0.975rem; }
.scope-out li svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--text-muted); }
.scope-out p { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--text-muted); }
@media (min-width: 760px) { .scope-out ul { grid-template-columns: 1fr 1fr; gap: 0.55rem 2rem; } }

/* ---------- 8. Dark section (process) ---------- */
.section-dark {
  background:
    radial-gradient(40rem 22rem at 100% 0%, rgba(43, 212, 179, 0.14), transparent 70%),
    radial-gradient(34rem 22rem at 0% 100%, rgba(8, 127, 140, 0.28), transparent 70%),
    var(--navy-900);
  color: var(--text-on-dark);
  overflow: hidden;
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--mint-400); }
.section-dark .section-head p { color: var(--muted-on-dark); }
.section-dark .cta-note { color: var(--muted-on-dark); }
.section-dark a:not(.btn) { color: var(--mint-300); }

.steps { list-style: none; display: grid; gap: 1rem; margin: 0; padding: 0; position: relative; }
.step {
  position: relative;
  border-radius: var(--r-md);
  padding: var(--card-pad);
  background: var(--white);
  border: 1px solid var(--line-blue);
}
.section-dark .step {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border-color: rgba(255, 255, 255, 0.1);
}
.section-dark .step:hover { border-color: rgba(43, 212, 179, 0.45); transform: translateY(-2px); }
.step-num {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  color: var(--teal-ink);
}
.step-num::before {
  content: attr(data-n);
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 0.85rem; letter-spacing: 0;
  background: var(--mint-50); color: var(--teal-ink);
  border: 1px solid var(--mint-100);
}
.section-dark .step-num { color: var(--mint-400); }
.section-dark .step-num::before { background: rgba(43, 212, 179, 0.12); border-color: rgba(43, 212, 179, 0.35); color: var(--mint-400); }
.step h3 { margin-bottom: 0.55rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.section-dark .step p { color: var(--muted-on-dark); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

/* ---------- 9. Pricing ---------- */
.plans { display: grid; gap: 1.75rem; list-style: none; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-lg);
  padding: 1.875rem var(--card-pad) var(--card-pad);
  box-shadow: var(--shadow-sm);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #b5dbe0; }
.plan h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.plan-for { color: var(--text-muted); font-size: 0.975rem; line-height: 1.5; margin: 0 0 1.4rem; }
.plan-price { display: flex; align-items: baseline; gap: 0.4rem; color: var(--text-strong); }
.plan-price .amount { font-size: clamp(2.75rem, 2.4rem + 1vw, 3.25rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.plan-price .per { color: var(--text-muted); font-size: 1rem; }
.plan-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 1.4rem 0; padding: 0; }
.plan-limits div { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.65rem 0.8rem; }
.plan-limits dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.plan-limits dd { margin: 0.15rem 0 0; font-weight: 600; color: var(--text-strong); font-size: 1rem; }
.plan-features { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 1.75rem; flex: 1; align-content: start; }
.plan-features li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.99rem; line-height: 1.45; }
.plan-features li .check { width: 20px; height: 20px; box-shadow: none; }
.plan-features .incl { color: var(--text-muted); font-style: italic; }

.plan-featured {
  background:
    radial-gradient(26rem 16rem at 100% 0%, rgba(43, 212, 179, 0.18), transparent 70%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border-color: var(--navy-900);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-lg);
}
.plan-featured:hover { border-color: rgba(43, 212, 179, 0.6); box-shadow: var(--shadow-lg); }
.plan-featured h3, .plan-featured .plan-price { color: var(--white); }
.plan-featured .plan-for, .plan-featured .plan-price .per, .plan-featured .incl { color: var(--muted-on-dark); }
.plan-featured .plan-limits div { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.plan-featured .plan-limits dt { color: var(--muted-on-dark); }
.plan-featured .plan-limits dd { color: var(--white); }
.plan-featured .plan-features li { color: var(--text-on-dark); }
.plan-featured .check { background: var(--mint-400); }
.plan-featured .check path { stroke: var(--navy-900); }
.plan-badge {
  position: absolute;
  top: -0.85rem;
  left: var(--card-pad);
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--mint-400);
  color: var(--navy-900);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px -8px rgba(43, 212, 179, 0.9);
}
@media (min-width: 960px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: center; }
  .plan { min-height: 100%; }
  .plan-featured { padding-top: 2.4rem; padding-bottom: 2.1rem; }
}

.pricing-note {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line-blue);
  color: var(--text);
  display: flex; gap: 0.75rem; align-items: flex-start;
  font-size: 0.975rem;
}
.pricing-note svg { flex: none; width: 20px; height: 20px; color: var(--teal-600); margin-top: 2px; }
.pricing-note p { margin: 0; }

.addons { margin-top: 2.75rem; display: grid; gap: 1rem; }
.addons h3 { margin: 0; }
.addons-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 1rem;
  box-shadow: var(--shadow-xs);
}
.addons-table th, .addons-table td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.addons-table tbody tr { transition: background-color var(--dur) var(--ease); }
.addons-table tbody tr:hover { background: var(--surface-soft); }
.addons-table tr:last-child th, .addons-table tr:last-child td { border-bottom: 0; }
.addons-table th { font-weight: 500; color: var(--text-strong); }
.addons-table td { text-align: right; font-family: var(--mono); font-size: 0.88rem; color: var(--text-strong); white-space: nowrap; }
.addons-table thead th {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-muted); background: var(--surface-soft);
}
.addons-table thead th:last-child { text-align: right; }
@media (min-width: 960px) {
  .addons { grid-template-columns: 0.42fr 1fr; align-items: start; gap: 2.5rem; }
  .addons-head p { margin: 0.5rem 0 0; color: var(--text-muted); font-size: var(--fs-small); }
}
.addons-head p { margin: 0.4rem 0 0; color: var(--text-muted); font-size: var(--fs-small); }

/* Catch-up feature band */
.feature-band {
  position: relative;
  display: grid;
  gap: 2rem;
  background:
    radial-gradient(30rem 18rem at 0% 0%, rgba(43, 212, 179, 0.10), transparent 70%),
    var(--white);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  box-shadow: var(--shadow-md);
}
.feature-band h2 { margin-bottom: 1rem; }
.feature-band .lead { margin-bottom: 1.5rem; }
.feature-band .actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.feature-band .actions a:not(.btn) { font-weight: 500; }
.bullets { list-style: none; display: grid; gap: 0.75rem; }
.bullets li { display: flex; gap: 0.625rem; align-items: flex-start; }
.table-cap { font-size: 0.875rem; color: var(--text-muted); margin: 0.75rem 0 0; }
@media (min-width: 960px) {
  .feature-band { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
}

/* ---------- 10. FAQ ---------- */
.faq { max-width: 52rem; margin: 0 auto; display: grid; gap: 0.6rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-md);
}
.faq details:hover { border-color: #b5dbe0; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #b5dbe0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  min-height: 56px;
  font-weight: 600;
  color: var(--text-strong);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  border-radius: var(--r-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--teal-600), var(--teal-600)) center / 12px 2px no-repeat,
    linear-gradient(var(--teal-600), var(--teal-600)) center / 2px 12px no-repeat,
    var(--mint-50);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .answer { padding: 0 1.25rem 1.25rem; color: var(--text); max-width: 46rem; line-height: 1.65; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Final CTA — framed dark panel */
.final-cta { padding: var(--section-y) 0; background: var(--white); }
.final-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.75rem) clamp(1.25rem, 0.5rem + 4vw, 4rem);
  background:
    radial-gradient(38rem 22rem at 50% -20%, rgba(43, 212, 179, 0.28), transparent 70%),
    radial-gradient(30rem 20rem at 100% 120%, rgba(8, 127, 140, 0.45), transparent 70%),
    var(--navy-900);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-lg);
}
.final-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%);
}
.final-cta .inner { max-width: 46rem; margin: 0 auto; text-align: center; }
.final-cta h2 { color: var(--white); margin-bottom: 1rem; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
.final-cta p { color: var(--text-on-dark); font-size: var(--fs-lead); }
.final-cta .btn { margin-top: 0.75rem; min-height: 58px; padding-inline: 1.75rem; font-size: 1.1rem; }
.final-cta .cta-note { color: var(--muted-on-dark); font-size: var(--fs-small); }
.final-cta a:not(.btn) { color: var(--mint-300); }
.final-cta a:not(.btn):hover { color: var(--white); }
.prep {
  margin: 2.25rem auto 0;
  padding: 1.25rem 1.375rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-md);
  text-align: left;
  max-width: 36rem;
}
.prep h3 { color: var(--white); font-size: 0.975rem; margin-bottom: 0.8rem; }
.prep ol { list-style: none; counter-reset: prep; display: grid; gap: 0.55rem; color: var(--text-on-dark); font-size: 0.975rem; }
.prep li { counter-increment: prep; display: flex; gap: 0.7rem; align-items: flex-start; }
.prep li::before {
  content: counter(prep);
  flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  font-family: var(--mono); font-size: 0.72rem;
  background: rgba(43, 212, 179, 0.15); color: var(--mint-400);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 7rem;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.site-footer .wrap { display: grid; gap: 1.25rem; }
.footer-brand { display: grid; gap: 0.85rem; }
.footer-brand img { height: 28px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; list-style: none; }
.footer-links a, .footer-links button {
  color: var(--text);
  display: inline-flex; align-items: center;
  min-height: 44px;
  font: inherit;
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: none;
}
.footer-links a:hover, .footer-links button:hover { color: var(--teal-ink); text-decoration: underline; }
.site-footer p { margin: 0; }
.footer-legal { max-width: 44rem; line-height: 1.55; }
@media (min-width: 860px) {
  .site-footer { padding-bottom: 2.5rem; }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- 11. Overlays ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -16px rgba(17, 42, 58, 0.35);
  transform: translateY(110%);
  transition: transform 220ms var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }
@media (min-width: 860px) { .sticky-cta { display: none; } }

.consent {
  position: fixed;
  z-index: 60;
  left: 12px; right: 12px; bottom: 12px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.125rem;
  font-size: var(--fs-small);
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 0.85rem; }
.consent .consent-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.consent .btn { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.consent-open .sticky-cta { display: none; }

/* ---------- 12. Content pages (privacy, thank-you, 404) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 3.5rem 0 2rem;
  background:
    radial-gradient(36rem 20rem at 95% -10%, rgba(43, 212, 179, 0.18), transparent 70%),
    linear-gradient(180deg, var(--surface-soft), var(--white));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); margin-bottom: 0.85rem; max-width: 22ch; }
.page-hero p { color: var(--text-muted); margin: 0; max-width: 40rem; font-size: var(--fs-lead); }
.thanks-hero { padding: 4rem 0 5rem; }
.page-actions { margin-top: 1.75rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.prose { max-width: 46rem; padding: 3rem 0 4.5rem; }
.prose h2 { font-size: 1.375rem; letter-spacing: -0.02em; margin: 2.5rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; display: grid; gap: 0.45rem; }
.linklike {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px;
}
.confirm-card {
  max-width: 42rem;
  margin: -3rem auto 4.5rem;
  background: var(--white);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--card-pad);
  position: relative;
}
.confirm-card h2 { font-size: 1.375rem; letter-spacing: -0.02em; margin-bottom: 0.85rem; }
.confirm-meta {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--mint-50);
  border: 1px solid var(--mint-100);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  margin: 0 0 1.5rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-strong);
}
.confirm-card ol { padding-left: 1.25rem; display: grid; gap: 0.7rem; margin: 0 0 1.5rem; }
.confirm-card [data-state="neutral"] { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .service:hover, .plan:hover, .section-dark .step:hover { transform: none; }
}

/* Thank-you / 404: centred hero to align with the centred card */
.thanks-hero .wrap { text-align: center; }
.thanks-hero h1, .thanks-hero p { margin-left: auto; margin-right: auto; }
.thanks-hero .eyebrow::before { display: none; }
.thanks-hero .page-actions { justify-content: center; }
