/* ==========================================================================
   BacklinkDone site stylesheet
   Hand-written, no framework. Tokens first, then base, layout, components,
   product-UI mockups, page sections, modals, utilities.
   ========================================================================== */

/* ---------------------------------------------------------------- Tokens */
:root {
  /* Brand greens */
  --forest-900: #0f2a1b;
  --forest: #173a26;          /* main brand colour */
  --forest-700: #24503a;
  --leaf: #3f7a4e;            /* secondary green: links, data marks */
  --leaf-600: #346a42;
  --sprout: #8dbe8f;          /* light data marks */

  /* Light surfaces */
  --sage: #dce8d1;            /* hero / emphasis backgrounds */
  --sage-200: #e4eeda;
  --sage-100: #eaf1e2;
  --sage-50: #f4f8ef;
  --cream: #fbf8ee;
  --paper: #fffefa;
  --white: #ffffff;
  --butter: #eef3a6;          /* highlight accent, use sparingly */
  --butter-200: #f5f8cc;

  /* Text and lines */
  --ink: #13241a;
  --ink-2: #2c3d32;
  --muted: #55665b;
  --faint: #7d8b81;
  --line: #dce3d4;
  --line-2: #e9eee3;

  /* Status */
  --amber: #b7791f;
  --amber-50: #fbf1dc;
  --red: #b42318;
  --red-50: #fcebe9;

  /* Type */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: var(--font-sans);   /* labels and badges: same family as the rest of the site */
  --font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;   /* code only, system fonts */

  /* Shape and depth */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(19, 36, 26, .06);
  --shadow: 0 1px 2px rgba(19, 36, 26, .05), 0 8px 24px -12px rgba(19, 36, 26, .18);
  --shadow-lg: 0 2px 4px rgba(19, 36, 26, .05), 0 24px 48px -24px rgba(19, 36, 26, .28);

  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.65rem); letter-spacing: -0.032em; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.028em; line-height: 1.12; }
h3 { font-size: 1.2rem; letter-spacing: -0.012em; line-height: 1.3; }
h4 { font-size: 1rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
code, kbd, .mono { font-family: var(--font-code); font-size: .88em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--butter); color: var(--ink); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
.container-text { max-width: 720px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sm { padding: clamp(44px, 6vw, 72px) 0; }
.section.bg-paper + .section.bg-paper { padding-top: 0; }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-sage { background: var(--sage-50); }
.bg-sage-strong { background: var(--sage); }
.bg-forest { background: var(--forest); color: #d6e3d4; }
.bg-forest h1, .bg-forest h2, .bg-forest h3, .bg-forest h4 { color: #fff; }
.bg-forest a:not(.btn) { color: var(--butter); }
.border-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) {
  .split { grid-template-columns: 1fr 1.08fr; gap: 64px; }
  .split.reverse > :first-child { order: 2; }
  .split.even { grid-template-columns: 1fr 1fr; }
  .split.top { align-items: start; }
}

.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- Type helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--leaf-600);
  margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--leaf); }
.bg-forest .eyebrow { color: var(--sprout); }
.bg-forest .eyebrow::before { background: var(--butter); }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.6; }
.bg-forest .lead { color: #c3d4c3; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.bg-forest .section-head p { color: #c3d4c3; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hl { background: linear-gradient(transparent 58%, var(--butter) 58%); padding: 0 .08em; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1.5px solid transparent; border-radius: var(--r);
  font: 600 15px/1 var(--font-sans); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-900); color: #fff; }
.btn-secondary { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-secondary:hover { background: var(--sage-100); color: var(--forest); }
.btn-butter { background: var(--butter); color: var(--forest); border-color: var(--butter); }
.btn-butter:hover { background: #e6ed8f; color: var(--forest-900); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { font-weight: 600; color: var(--forest); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link::after { content: "→"; transition: transform .15s ease; }
.text-link:hover::after { transform: translateX(3px); }
.bg-forest .text-link { color: var(--butter); }

/* ---------------------------------------------------------------- Header */
.announce { background: var(--forest); color: #d6e3d4; font-size: 14px; text-align: center; padding: 8px var(--gutter); }
.announce a { color: var(--butter); font-weight: 600; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 254, 250, .9);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 30px; height: 30px; }
.brand-word { font-weight: 700; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); }
.brand-word b { color: var(--leaf); font-weight: 700; }
.nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  color: var(--ink-2); font: 500 15px/1 var(--font-sans); text-decoration: none;
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.nav-link:hover, .nav-trigger:hover, .nav-item.open .nav-trigger { color: var(--forest); background: var(--sage-100); }
.nav-link[aria-current="page"] { color: var(--forest); font-weight: 600; }
.nav-trigger svg { width: 12px; height: 12px; transition: transform .15s ease; }
.nav-item.open .nav-trigger svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: -8px; min-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 8px; display: none;
}
.nav-item.open .dropdown { display: block; }
.dropdown a { display: block; padding: 10px 12px; border-radius: var(--r); text-decoration: none; color: var(--ink); }
.dropdown a:hover { background: var(--sage-50); }
.dropdown a strong { display: block; font-size: 14.5px; font-weight: 600; }
.dropdown a span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.header-actions { display: none; align-items: center; gap: 8px; margin-left: auto; }
.menu-toggle {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
@media (min-width: 1040px) {
  .nav { display: block; margin-left: 12px; }
  .header-actions { display: flex; }
  .menu-toggle { display: none; }
}
.mobile-nav { display: none; border-top: 1px solid var(--line-2); background: var(--paper); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-nav.open { display: block; }
.mobile-nav .container { padding-top: 12px; padding-bottom: 24px; }
.mobile-nav h3 { font-family: var(--font-mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 18px 0 6px; font-weight: 500; }
.mobile-nav a:not(.btn) { display: block; padding: 9px 0; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line-2); }
.mobile-nav .btn-row { margin-top: 20px; }
.mobile-nav .btn { flex: 1; }
@media (min-width: 1040px) { .mobile-nav, .mobile-nav.open { display: none; } }

/* ---------------------------------------------------------------- Breadcrumbs */
.breadcrumbs { padding: 18px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--faint); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--forest); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-2); }

/* ---------------------------------------------------------------- Hero */
.hero { background: var(--sage); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(23,58,38,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(23,58,38,.06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero > .container { position: relative; }
.hero-inner { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 560px; color: var(--ink-2); margin-bottom: 28px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 15px; height: 15px; color: var(--leaf); }
.page-hero { background: var(--sage-50); border-bottom: 1px solid var(--line-2); }
.page-hero .hero-inner { padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 80px); }
.page-hero h1 { max-width: 20ch; font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.page-hero.center h1, .page-hero.center .lead { margin-left: auto; margin-right: auto; }
.kw-line { font-size: 14px; color: var(--muted); margin: -8px 0 22px; }

/* ---------------------------------------------------------------- Cards */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card p + p { margin-top: 10px; }
.card-soft { background: var(--sage-50); border-color: var(--line-2); box-shadow: none; }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card-link:hover { border-color: var(--leaf); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.card-link .text-link { margin-top: 14px; }
.card-icon {
  width: 42px; height: 42px; border-radius: var(--r); display: inline-flex; align-items: center; justify-content: center;
  background: var(--sage-100); color: var(--forest); margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-kicker { font-family: var(--font-mono); font-size: 14px; color: var(--leaf-600); letter-spacing: .04em; margin-bottom: 8px; display: block; }
.bg-forest .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); box-shadow: none; }
.bg-forest .card p { color: #b9cbb9; }
.bg-forest .card-icon { background: rgba(238,243,166,.12); color: var(--butter); }

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .steps.cols-3 { grid-template-columns: repeat(3, 1fr); } .steps.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.steps > li { counter-increment: step; position: relative; padding: 22px 22px 22px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.steps > li::before {
  content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  color: var(--leaf-600); background: var(--sage-100); border-radius: 999px; padding: 3px 9px; display: inline-block; margin-bottom: 12px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Check list */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--sage-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' stroke='%23173a26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checks li strong { color: var(--ink); }
.crosses li::before { background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' stroke='%23b42318' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.bg-forest .checks li::before { background-color: rgba(238,243,166,.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' stroke='%23eef3a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.bg-forest .checks li strong { color: #fff; }

/* Data vs decision comparison */
.versus { display: grid; gap: 16px; }
@media (min-width: 820px) { .versus { grid-template-columns: 1fr 1fr; } }
.versus > div { border-radius: var(--r-lg); padding: 26px; border: 1px solid var(--line); }
.versus .before { background: var(--white); }
.versus .after { background: var(--sage-100); border-color: #cddcc2; }
.versus h3 { display: flex; align-items: center; gap: 10px; }
.versus .tag { font-family: var(--font-mono); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; }
.versus .before .tag { background: var(--line-2); color: var(--muted); }
.versus .after .tag { background: var(--forest); color: #fff; }

/* Flow diagram (Data → Opportunity → ... ) */
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; padding: 0; margin: 0; }
.flow li {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--forest);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}
.flow li.key { background: var(--forest); color: #fff; border-color: var(--forest); }
.flow li + li::before { content: none; }
.flow .arrow { border: 0; background: none; padding: 0; color: var(--faint); }
.bg-forest .flow li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #e3ece0; }
.bg-forest .flow li.key { background: var(--butter); color: var(--forest); border-color: var(--butter); }
.bg-forest .flow .arrow { background: none; color: #7f9a86; }

/* Model chips (Why + Who + What + Target + Tracking) */
.model { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .model { grid-template-columns: repeat(5, 1fr); } }
.model > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.model .q { font-family: var(--font-mono); font-size: 14px; color: var(--leaf-600); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; }
.model h3 { font-size: 1.02rem; margin-bottom: 4px; }
.model p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* Positioning stack (data platforms → BacklinkDone → outreach) */
.layers { display: grid; gap: 10px; max-width: 780px; margin: 0 auto; }
.layer { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); }
@media (min-width: 700px) { .layer { grid-template-columns: 200px 1fr; align-items: center; } }
.layer .layer-name { font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.layer p { margin: 0; color: var(--ink-2); }
.layer.us { background: var(--forest); border-color: var(--forest); color: #d6e3d4; }
.layer.us .layer-name { color: var(--butter); }
.layer.us p { color: #fff; }
.layer-arrow { text-align: center; color: var(--faint); font-size: 18px; line-height: 1; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 1.04rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--sage-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%23173a26' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 40px 22px 0; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { border-radius: var(--r-xl); background: var(--forest); color: #d6e3d4; padding: clamp(36px, 6vw, 64px); position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(238,243,166,.16), transparent 70%); pointer-events: none;
}
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: #c3d4c3; max-width: 560px; font-size: 1.08rem; }
.cta-band .btn-row { margin-top: 26px; position: relative; z-index: 1; }

/* Related features */
.related-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.related-head h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); }

/* Logos / data source strip */
.source-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.source-strip span { font-family: var(--font-mono); font-size: 14px; padding: 8px 14px; border: 1px dashed #c6d3bd; border-radius: var(--r); color: var(--forest); background: var(--white); }

/* Notes */
.note { border-left: 3px solid var(--leaf); background: var(--sage-50); padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; color: var(--ink-2); font-size: .96rem; }
.note-butter { border-left-color: #c9d156; background: var(--butter-200); }

/* Pricing */
.plans { display: grid; gap: 20px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.plan.featured { border: 2px solid var(--forest); box-shadow: var(--shadow-lg); position: relative; }
.plan .badge { position: absolute; top: -13px; left: 28px; background: var(--butter); color: var(--forest); font: 600 14px/1 var(--font-sans); padding: 7px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan .plan-for { color: var(--muted); margin: 0; font-size: .95rem; }
.plan .price { font-size: 2.4rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .price-note { font-size: 14px; color: var(--muted); margin-top: -8px; }
.plan .checks { margin: 0; font-size: .95rem; }
.plan .btn { width: 100%; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table thead th { font-family: var(--font-mono); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--sage-50); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- Product UI mockups
   Static HTML illustrations of the app. Every value inside is a labelled example. */
.ui {
  background: var(--white); border: 1px solid #cfdcc5; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: 14px; color: var(--ink-2); text-align: left;
}
.ui-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: var(--sage-50); }
.ui-dots { display: flex; gap: 5px; }
.ui-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d3dccb; display: block; }
.ui-title { font-weight: 600; color: var(--ink); font-size: 14px; }
.ui-crumb { font-family: var(--font-mono); font-size: 14px; color: var(--faint); margin-left: auto; }
.ui-body { padding: 14px; }
.ui-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center; }
.ui-chip { font-size: 14px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--muted); white-space: nowrap; }
.ui-chip.on { background: var(--forest); color: #fff; border-color: var(--forest); }
.ui-example { font-family: var(--font-mono); font-size: 14px; color: var(--faint); margin-left: auto; letter-spacing: .03em; }
.ui-table { width: 100%; border-collapse: collapse; }
.ui-table th { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.ui-table td { padding: 9px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.ui-table tr:last-child td { border-bottom: 0; }
.ui-table .dom { font-weight: 600; color: var(--ink); white-space: nowrap; }
.ui-table .sub { display: block; font-size: 14px; color: var(--faint); font-weight: 400; }
.ui-table .num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.ui-table .c { text-align: center; }
.ui-hide-sm { display: none; }
@media (min-width: 560px) { .ui-hide-sm { display: table-cell; } }
.yes { color: var(--leaf); font-weight: 700; }
.no { color: #c3cbbf; }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 7px; border-radius: 6px; font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.score.hi { background: var(--forest); color: #fff; }
.score.mid { background: var(--sage); color: var(--forest); }
.score.lo { background: var(--line-2); color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-new { background: var(--line-2); color: var(--muted); }
.st-qual { background: var(--sage-100); color: var(--leaf-600); }
.st-ready { background: var(--butter-200); color: #6b6d12; }
.st-sent { background: #eef2e6; color: var(--forest-700); }
.st-won { background: var(--forest); color: #fff; }
.st-lost { background: var(--red-50); color: var(--red); }
.st-warn { background: var(--amber-50); color: var(--amber); }
.prio { font-family: var(--font-mono); font-size: 14px; font-weight: 500; padding: 2px 7px; border-radius: 5px; }
.prio.p1 { background: var(--butter); color: var(--forest); }
.prio.p2 { background: var(--sage-100); color: var(--leaf-600); }
.prio.p3 { background: var(--line-2); color: var(--muted); }
.bar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; background: var(--leaf); border-radius: inherit; }

/* Opportunity detail panel */
.opp { display: grid; gap: 10px; }
.opp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.opp-head .dom { font-weight: 700; color: var(--ink); font-size: 14px; }
.opp-head .url { font-family: var(--font-mono); font-size: 14px; color: var(--faint); width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opp-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; }
.opp-row .k { font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--leaf-600); padding-top: 2px; }
.opp-row .v { color: var(--ink-2); line-height: 1.5; }
.opp-row .v b { color: var(--ink); }
.opp-actions { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line-2); }
.ui-btn { font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.ui-btn.pri { background: var(--forest); color: #fff; border-color: var(--forest); }

/* Pipeline / kanban mock */
.kanban { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .kanban { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kcol { background: var(--sage-50); border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px; }
.kcol h4 { font-family: var(--font-mono); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 2px 2px 8px; display: flex; justify-content: space-between; }
.kcard { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 6px; font-size: 14px; }
.kcard:last-child { margin-bottom: 0; }
.kcard b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 3px; }
.kcard span { color: var(--faint); font-size: 14px; display: block; line-height: 1.35; }

/* Timeline / event feed mock */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.feed li:last-child { border-bottom: 0; }
.feed .ic { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.feed .ic.ok { background: var(--sage-100); color: var(--leaf-600); }
.feed .ic.bad { background: var(--red-50); color: var(--red); }
.feed .ic.warn { background: var(--amber-50); color: var(--amber); }
.feed b { color: var(--ink); font-weight: 600; }
.feed .t { font-family: var(--font-mono); font-size: 14px; color: var(--faint); white-space: nowrap; }
.feed .d { color: var(--muted); font-size: 14px; display: block; }

/* Stacked mock composition in heroes */
.mock-stack { position: relative; }
.mock-stack .ui + .ui { margin-top: 14px; }
@media (min-width: 980px) {
  .mock-stack .ui.float { position: absolute; right: -18px; bottom: -36px; width: 62%; margin: 0; }
  .mock-stack.has-float { padding-bottom: 120px; }
}
.mock-caption { font-size: 14px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--forest-900); color: #a9bdac; padding: 72px 0 32px; font-size: 14.5px; }
.site-footer a { color: #d6e3d4; text-decoration: none; }
.site-footer a:hover { color: var(--butter); }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; } }
.footer-cols { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .footer-cols { display: contents; } }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-word b { color: var(--sprout); }
.footer-brand p { margin: 16px 0 20px; max-width: 300px; line-height: 1.6; }
.site-footer h2 { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #7f9a86; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom li { margin: 0; }

/* ---------------------------------------------------------------- Prose (legal pages, blog content fallbacks) */
.prose-page { max-width: 760px; }
.prose-page h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose-page h3 { margin-top: 1.6em; }
.prose-page p, .prose-page li { color: var(--ink-2); }
.prose-page .updated { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- Listing (blog, compare, alternatives indexes) */
.post-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.post-card:hover { border-color: var(--leaf); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.post-card .thumb { aspect-ratio: 1200 / 630; background: var(--sage-100); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .cat { font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--leaf-600); }
.post-card h2, .post-card h3 { font-size: 1.12rem; margin: 0; line-height: 1.35; }
.post-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.post-card .meta { margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--faint); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--white); font-weight: 500; }
.pagination [aria-current] { background: var(--forest); color: #fff; border-color: var(--forest); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); background: var(--white); }
.chips a:hover, .chips a[aria-current] { border-color: var(--forest); color: var(--forest); background: var(--sage-50); }
.empty-state { text-align: center; padding: 64px 24px; border: 1px dashed var(--line); border-radius: var(--r-xl); background: var(--white); }

/* ---------------------------------------------------------------- 404 */
.error-page { text-align: center; padding: clamp(72px, 12vw, 140px) 0; }
.error-code { font-family: var(--font-mono); font-size: 14px; letter-spacing: .1em; color: var(--leaf-600); }

/* ---------------------------------------------------------------- Fixes / overrides */
.site-footer a.btn-butter { color: var(--forest); }
.site-footer a.btn-butter:hover { color: var(--forest-900); }
.bg-forest .layer.us { background: rgba(238, 243, 166, .1); border-color: rgba(238, 243, 166, .45); }
.kcard b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcol { min-width: 0; }
@media (max-width: 559px) { .ui-table .dom, .ui-table .sub { white-space: normal; overflow-wrap: anywhere; } }

/* ---------------------------------------------------------------- Early-access panel + log-in notice
   Markup: partials/access-dialog.php. Behaviour: assets/js/access.js. Native <dialog>. */
dialog.access {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(460px, 100%); max-width: 100%;
  border: 0; border-left: 1px solid var(--line); padding: 22px 28px 32px; overflow-y: auto;
  background: var(--paper); color: var(--ink-2); box-shadow: -24px 0 60px -30px rgba(15, 42, 27, .5);
}
dialog.access[open] { animation: access-in .22s ease-out; }
@keyframes access-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
dialog.access::backdrop { background: rgba(15, 42, 27, .45); backdrop-filter: blur(2px); }
dialog.access.access-compact { margin: auto; height: fit-content; max-height: calc(100% - 32px); width: min(440px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px 26px 28px; }
.access-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line-2); }
.access-compact .access-head { margin-bottom: 18px; }
.access-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.access-brand b { color: var(--leaf); }
.access-x { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); color: var(--ink); cursor: pointer; }
.access-x:hover { border-color: var(--forest); }
.access-kicker { font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--leaf-600); margin: 0 0 8px; }
dialog.access h2 { font-size: 1.55rem; margin: 0 0 10px; }
.access-lede { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.access-lede strong { color: var(--ink); word-break: break-all; }
.access-form { display: grid; gap: 16px; }
.access-field { display: grid; gap: 6px; }
.access-field > span { font-size: 14px; font-weight: 600; color: var(--ink); }
.access-field input, .access-field select {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink); font: 15px var(--font-sans);
}
.access-field input:focus, .access-field select:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(63, 122, 78, .16); }
.access-field [aria-invalid="true"] { border-color: var(--red); }
.access-msg { font-style: normal; font-size: 14px; color: var(--red); }
.access-msg-form { display: block; }
.access-invite summary { cursor: pointer; font-size: 14px; color: var(--leaf-600); font-weight: 600; list-style: none; }
.access-invite summary::-webkit-details-marker { display: none; }
.access-invite summary::before { content: "+ "; }
.access-invite[open] summary::before { content: "– "; }
.access-invite[open] summary { margin-bottom: 10px; }
.access-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.access-send { width: 100%; margin-top: 4px; }
.access-send[disabled] { opacity: .7; cursor: progress; }
.access-points { list-style: none; padding: 18px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
.access-points li::before { content: "✓"; color: var(--leaf); font-weight: 700; margin-right: 8px; }
.access-legal { font-size: 14px; color: var(--faint); margin: 14px 0 0; }
.access-legal a { color: var(--muted); }
body:has(dialog.access[open]) { overflow: hidden; }

/* ---------------------------------------------------------------- Readability floor (14px minimum)
   Overrides the compact mockup sizes above. Visuals stay simple: fewer rows and columns, bigger text. */
.eyebrow { font-size: 14px; }
.breadcrumbs ol { font-size: 14px; }
.card-kicker { font-size: 14px; }
.mock-caption { font-size: 14px; }
.site-footer h2 { font-size: 14px; }
.footer-bottom { font-size: 14px; }
.table thead th { font-size: 14px; letter-spacing: .02em; }
.ui { font-size: 15px; }
.ui-title { font-size: 15px; }
.ui-crumb, .ui-example { font-size: 14px; letter-spacing: .02em; }
.ui-body { padding: 18px; }
.ui-chip { font-size: 14px; padding: 5px 11px; }
.ui-table th { font-size: 14px; letter-spacing: .02em; text-transform: none; padding: 9px 10px; }
.ui-table td { padding: 12px 10px; }
.ui-table .sub { font-size: 14px; white-space: normal; }
.score { font-size: 14px; min-width: 40px; height: 26px; }
.status { font-size: 14px; padding: 4px 10px; }
.prio { font-size: 14px; padding: 3px 8px; }
.opp-head .dom { font-size: 16px; }
.opp-head .url { font-size: 14px; }
.opp-row { grid-template-columns: 130px 1fr; gap: 12px; }
.opp-row .k { font-size: 14px; letter-spacing: .02em; text-transform: none; font-family: var(--font-sans); font-weight: 600; }
.opp-row .v { font-size: 15px; }
.ui-btn { font-size: 14px; padding: 8px 12px; }
.kcol h4 { font-size: 14px; letter-spacing: .02em; text-transform: none; font-family: var(--font-sans); }
.kcard, .kcard b { font-size: 14px; }
.kcard span { font-size: 14px; }
.feed li { grid-template-columns: 26px 1fr auto; padding: 11px 0; }
.feed .ic { width: 26px; height: 26px; font-size: 14px; }
.feed b { font-size: 15px; }
.feed .d { font-size: 14px; }
.feed .t { font-size: 14px; }
.model .q { font-size: 14px; }
.model p { font-size: 15px; }
.flow li { font-size: 14px; }
.layer .layer-name { font-size: 14px; }
.post-card .cat, .post-card .meta, .toc-heading, .blog-cat, .author-label { font-size: 14px; }
@media (max-width: 559px) { .opp-row { grid-template-columns: 1fr; gap: 2px; } }

.cta-band .cta-fine { margin: 14px 0 0; font-size: 14px; color: #c3d4c3; position: relative; z-index: 1; }
