/* =========================================================================
   SoftFarm — shared design system
   Used by the marketing site (site.css) and the docs (docs.css extends it).
   ========================================================================= */

/* ---------- Tokens: light is the base, dark overrides only colours ------- */
:root {
  color-scheme: light dark;

  /* Brand */
  --green-900: #07271C;
  --green-800: #0B3527;
  --green-700: #0F4A35;
  --green-600: #12654A;
  --green-500: #1B8462;
  --green-300: #5FBF95;
  --green-100: #DCEFE5;

  --gold-600:  #A8801C;
  --gold-500:  #D9A521;
  --gold-100:  #FBF0D2;

  /* Verdict palette — mirrors the rules engine */
  --safe:      #1F8A4C;
  --safe-bg:   #E4F4EA;
  --risky:     #B4610F;
  --risky-bg:  #FBEDDD;
  --unclear:   #5B6675;
  --unclear-bg:#EBEEF2;
  --blocked:   #B3311F;
  --blocked-bg:#FAE6E2;

  /* Surfaces & ink */
  --bg:         #FBFAF7;
  --bg-alt:     #F2F1EC;
  --surface:    #FFFFFF;
  --surface-2:  #F7F6F2;
  --ink:        #10201A;
  --ink-2:      #3D4A44;
  --ink-3:      #6B7873;
  --line:       #E2E0D8;
  --line-strong:#CFCCC1;

  --accent:     var(--green-600);
  --accent-ink: #FFFFFF;
  --link:       var(--green-600);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Space & shape */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(12, 30, 22, .06), 0 1px 3px rgba(12, 30, 22, .04);
  --shadow:    0 6px 18px -6px rgba(12, 30, 22, .14), 0 2px 6px rgba(12, 30, 22, .05);
  --shadow-lg: 0 28px 60px -24px rgba(7, 39, 28, .28), 0 8px 20px -12px rgba(7, 39, 28, .14);
  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #0A1512;
    --bg-alt:     #0E1D18;
    --surface:    #11241D;
    --surface-2:  #162E25;
    --ink:        #E9F1EC;
    --ink-2:      #B4C6BD;
    --ink-3:      #839A8D;
    --line:       #1E3A2F;
    --line-strong:#2A5041;
    --accent:     #45C08D;
    --accent-ink: #05231A;
    --link:       #6FD3A6;
    --green-100:  #143528;
    --gold-100:   #33290C;
    --safe:      #4FCB85;  --safe-bg:   #10321F;
    --risky:     #E8A25C;  --risky-bg:  #33220F;
    --unclear:   #9FB0BF;  --unclear-bg:#1B242B;
    --blocked:   #F08B75;  --blocked-bg:#361A14;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 6px 18px -6px rgba(0,0,0,.5);
    --shadow-lg: 0 28px 60px -24px rgba(0,0,0,.7);
  }
}

:root[data-theme="dark"] {
  --bg:#0A1512; --bg-alt:#0E1D18; --surface:#11241D; --surface-2:#162E25;
  --ink:#E9F1EC; --ink-2:#B4C6BD; --ink-3:#839A8D;
  --line:#1E3A2F; --line-strong:#2A5041;
  --accent:#45C08D; --accent-ink:#05231A; --link:#6FD3A6;
  --green-100:#143528; --gold-100:#33290C;
  --safe:#4FCB85; --safe-bg:#10321F;
  --risky:#E8A25C; --risky-bg:#33220F;
  --unclear:#9FB0BF; --unclear-bg:#1B242B;
  --blocked:#F08B75; --blocked-bg:#361A14;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 6px 18px -6px rgba(0,0,0,.5);
  --shadow-lg: 0 28px 60px -24px rgba(0,0,0,.7);
}

/* ---------------------------- Reset / base ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.018em;
  margin: 0 0 .5em;
  color: var(--ink);
  font-variation-settings: "opsz" 40, "SOFT" 0;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); letter-spacing: -.024em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .55vw, 1.45rem); }
h4 { font-size: 1.06rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

code, kbd, pre, samp { font-family: var(--font-mono); font-size: .875em; }
code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .12em .38em;
  /* Not `nowrap`: long inline code forced the page to scroll sideways on a
     360px phone. This wraps only when it has to. */
  overflow-wrap: break-word;
  word-break: break-word;
}
pre {
  background: var(--green-900);
  color: #D7E8DF;
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  overflow-x: auto;
  margin: 0 0 1.3rem;
  line-height: 1.6;
  border: 1px solid var(--line);
  font-size: .855rem;
}
pre code { background: none; border: 0; padding: 0; white-space: pre; color: inherit; }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

/* ------------------------------- Layout --------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
.wrap-narrow { max-width: 780px; }
section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase;
  color: var(--green-600); margin: 0 0 1rem;
}
:root[data-theme="dark"] .eyebrow, :root:not([data-theme="light"]) .eyebrow { color: var(--accent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .eyebrow { color: var(--green-600); } }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; opacity: .8; }

.lede { font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); color: var(--ink-2); max-width: 62ch; }
.section-head { max-width: 68ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .72rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-quiet { background: transparent; color: var(--ink-2); padding-inline: .7rem; }
.btn-quiet:hover { color: var(--ink); }
.btn-lg { padding: .88rem 1.7rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .38rem;
  font-weight: 600; font-size: .93rem; text-decoration: none; color: var(--link);
}
.arrow-link::after { content: "→"; transition: transform .18s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.4rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -.02em; font-size: 1.09rem; margin-right: auto; }
.brand svg { flex: none; }
.brand b { font-weight: 750; }
.brand span { color: var(--ink-3); font-weight: 500; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  padding: .45rem .7rem; border-radius: 8px; text-decoration: none;
  color: var(--ink-2); font-size: .93rem; font-weight: 520;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.is-active { color: var(--ink); font-weight: 620; }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 9px;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink-2); cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn svg { width: 17px; height: 17px; }
:root[data-theme="dark"] .theme-sun, :root:not([data-theme="light"]) .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon, :root:not([data-theme="light"]) .theme-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-moon { display: block; }
}
:root[data-theme="light"] .theme-sun { display: none; }
:root[data-theme="light"] .theme-moon { display: block; }

.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav {
    position: absolute; inset: 68px 0 auto; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .6rem clamp(1.1rem, 4vw, 2.2rem) 1.1rem; gap: .1rem;
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .7rem .4rem; font-size: 1rem; }
  .nav-toggle { display: inline-grid; }
  .header-cta { display: none; }
}

/* -------------------------------- Hero ---------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem); }
.hero::before {
  content: ""; position: absolute; inset: -35% -10% auto -10%; height: 780px; z-index: 0;
  background:
    radial-gradient(58% 46% at 18% 34%, color-mix(in srgb, var(--green-500) 16%, transparent) 0%, transparent 68%),
    radial-gradient(46% 40% at 84% 16%, color-mix(in srgb, var(--gold-500) 13%, transparent) 0%, transparent 66%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: .35em; text-wrap: balance; }
.hero .lede { font-size: clamp(1.08rem, 1rem + .5vw, 1.28rem); }
.hero .btn-row { margin-top: 1.9rem; }
.hero-note { margin-top: 1.15rem; font-size: .85rem; color: var(--ink-3); }

/* Pill list under hero */
.pill-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.6rem; list-style: none; padding: 0; }
.pill {
  font-size: .78rem; font-weight: 560; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: .32rem .7rem; border-radius: 999px;
}

/* -------------------------- Generic card grid --------------------------- */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card h3 { margin-bottom: .45rem; font-size: 1.14rem; }
.card p  { color: var(--ink-2); font-size: .945rem; margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-600); margin-bottom: 1rem;
}
:root[data-theme="dark"] .card-icon, :root:not([data-theme="light"]) .card-icon { color: var(--accent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .card-icon { color: var(--green-600); } }
.card-icon svg { width: 20px; height: 20px; }

/* --------------------------- Numbered steps ----------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.4rem 1.5rem;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  color: var(--accent); display: block; margin-bottom: .85rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.step p { color: var(--ink-2); font-size: .92rem; margin: 0; }

/* ------------------------------- Stats ---------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 1.4rem 1.35rem; }
.stat dt { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .3rem; }
.stat dd { margin: 0; font-family: var(--font-display); font-size: 1.42rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }

/* --------------------------- Verdict chips ------------------------------ */
.verdict {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .715rem; font-weight: 700; letter-spacing: .075em;
  padding: .26rem .58rem; border-radius: 6px; text-transform: uppercase;
}
.verdict::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.v-safe    { color: var(--safe);    background: var(--safe-bg); }
.v-risky   { color: var(--risky);   background: var(--risky-bg); }
.v-unclear { color: var(--unclear); background: var(--unclear-bg); }
.v-blocked { color: var(--blocked); background: var(--blocked-bg); }

/* ----------------------- Product mock (hero visual) --------------------- */
.mock {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .7rem .95rem; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: none; }
.mock-title { margin-left: .5rem; font-size: .76rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.mock-body { padding: 1.25rem 1.3rem 1.4rem; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.mock-row:last-child { border-bottom: 0; }
.mock-row span:first-child { color: var(--ink-3); }
.mock-row span:last-child { font-weight: 580; text-align: right; }
.mock-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.mock-hd h4 { margin: 0 0 .2rem; font-family: var(--font-sans); font-weight: 680; font-size: 1.02rem; letter-spacing: -.01em; }
.mock-hd p { margin: 0; font-size: .8rem; color: var(--ink-3); }
.mock-cite {
  margin-top: 1.05rem; padding: .8rem .9rem; border-radius: var(--radius-sm);
  background: var(--blocked-bg); border: 1px solid color-mix(in srgb, var(--blocked) 26%, transparent);
  font-size: .81rem; color: var(--ink-2); line-height: 1.5;
}
.mock-cite b { color: var(--blocked); }

/* ------------------------------ Split ----------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.split-reverse > :first-child { order: 2; }
@media (max-width: 780px) { .split-reverse > :first-child { order: 0; } }

/* --------------------------- Checklist ---------------------------------- */
.check { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .62rem; }
.check li { position: relative; padding-left: 1.85rem; font-size: .95rem; color: var(--ink-2); }
.check li::before {
  content: "\2713"; position: absolute; left: 0; top: .22em;
  display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: var(--green-100); color: var(--green-600);
  font-size: .68rem; font-weight: 800; line-height: 1;
}
:root[data-theme="dark"] .check li::before, :root:not([data-theme="light"]) .check li::before { color: var(--accent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .check li::before { color: var(--green-600); } }
.check li b { color: var(--ink); font-weight: 620; }

/* ------------------------------- CTA band -------------------------------- */
.cta-band {
  background: var(--green-800);
  color: #E6F2EB;
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.4rem);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: auto -8% -60% 40%; height: 340px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(69,192,141,.28), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #FFFFFF; margin-bottom: .5rem; }
.cta-band p { color: #B7D3C6; max-width: 56ch; }
.cta-band .btn-ghost { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.32); }
.cta-band .btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; background: rgba(255,255,255,.08); }
.cta-band .btn-primary { background: #FFFFFF; color: var(--green-800); }
.cta-band .btn-primary:hover { background: #E9F6EF; }

/* ------------------------------- Footer ---------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: 3rem 2.4rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: minmax(220px, 1.3fr) repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
/* Below ~640px the fixed minimums above exceed the viewport and the page
   scrolls sideways. Stack instead. */
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.footer-grid h5 { font-family: var(--font-sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 0 0 .85rem; font-weight: 650; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-grid a { color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-blurb { color: var(--ink-3); font-size: .9rem; max-width: 34ch; margin-top: .85rem; }
.footer-base { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-3); }

/* ------------------------------- Tables ---------------------------------- */
.table-scroll { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
thead th {
  text-align: left; font-weight: 620; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2);
  white-space: nowrap;
}
tbody td { padding: .78rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: var(--ink); font-weight: 550; }

/* ------------------------------ Utilities -------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }

/* ------------------------------ Brand mark -------------------------------- */
.brand svg { color: var(--accent); --brand-glyph: var(--accent-ink); }

/* --------------------- Supply-chain diagram (inline SVG) ------------------ */
.chain-frame {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 1.2rem .3rem 1rem; overflow-x: auto;
}
.chain-frame svg { min-width: 760px; display: block; margin-inline: auto; }
.chain-node   { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.2; }
.chain-node-flag { fill: var(--blocked-bg); stroke: color-mix(in srgb, var(--blocked) 45%, transparent); }
.chain-kind   { fill: var(--ink-3); font: 600 9.5px var(--font-sans); letter-spacing: .1em; }
.chain-label  { fill: var(--ink); font: 600 12px var(--font-sans); }
.chain-label-flag { fill: var(--blocked); }
.chain-edge   { stroke: var(--line-strong); stroke-width: 1.6; fill: none; }
.chain-arrow  { fill: var(--line-strong); }
.chain-exposure { stroke: var(--blocked); stroke-width: 1.8; fill: none; stroke-dasharray: 5 4; }
.chain-exposure-text { fill: var(--blocked); font: 600 10.5px var(--font-sans); letter-spacing: .04em; }
.chain-boundary { stroke: var(--line-strong); stroke-width: 1.3; stroke-dasharray: 4 5; }
.chain-tenant { fill: var(--ink-3); font: 650 9.5px var(--font-sans); letter-spacing: .12em; }
.chain-caption { margin: .9rem 1.2rem .2rem; font-size: .84rem; color: var(--ink-3); }

/* --------------------------- Feature list rows ---------------------------- */
.feature-rows { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.feature-row { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 1.4rem; padding: 1.15rem 1.4rem; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.feature-row h4 { margin: 0; font-family: var(--font-sans); font-size: .97rem; font-weight: 640; letter-spacing: -.005em; }
.feature-row p { margin: 0; font-size: .915rem; color: var(--ink-2); }
@media (max-width: 640px) { .feature-row { grid-template-columns: 1fr; gap: .3rem; } }

/* ------------------------------ Quote block ------------------------------- */
.pull {
  font-family: var(--font-display); font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem);
  line-height: 1.34; letter-spacing: -.02em; color: var(--ink);
  border-left: 3px solid var(--accent); padding-left: clamp(1rem, 2.5vw, 1.8rem); margin: 0;
  max-width: 30ch;
}
.pull cite { display: block; font-family: var(--font-sans); font-size: .84rem; font-style: normal; color: var(--ink-3); margin-top: 1rem; letter-spacing: 0; }

/* --------------------- Graph model diagram additions ---------------------- */
.chain-node-global { fill: var(--gold-100); stroke: color-mix(in srgb, var(--gold-500) 55%, transparent); stroke-dasharray: 4 3; }
.chain-stitch { stroke: var(--accent); stroke-width: 2.2; fill: none; }
.chain-stitch-arrow { fill: var(--accent); }
.chain-stitch-text { fill: var(--accent); font: 700 8.5px var(--font-sans); letter-spacing: .06em; }
.chain-rel { fill: var(--ink-3); font: 600 8.5px var(--font-sans); letter-spacing: .06em; }
.chain-tag { fill: var(--gold-600); font: 650 8px var(--font-sans); letter-spacing: .08em; }
:root[data-theme="dark"] .chain-tag, :root:not([data-theme="light"]) .chain-tag { fill: var(--gold-500); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .chain-tag { fill: var(--gold-600); } }

/* ------------------------------ Callouts --------------------------------- */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--ink-3);
  border-radius: var(--radius-sm); background: var(--surface);
  padding: 1rem 1.15rem; margin: 0 0 1.5rem;
  font-size: .93rem;
}
.callout p { margin-bottom: .6rem; }
.callout p:last-child { margin-bottom: 0; }
.callout > strong:first-child, .callout .callout-title {
  display: block; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase;
  font-weight: 700; margin-bottom: .4rem; color: var(--ink-3);
}
.callout-note    { border-left-color: var(--green-500); }
.callout-note .callout-title { color: var(--green-600); }
.callout-warn    { border-left-color: var(--risky); background: color-mix(in srgb, var(--risky-bg) 55%, var(--surface)); }
.callout-warn .callout-title { color: var(--risky); }
.callout-danger  { border-left-color: var(--blocked); background: color-mix(in srgb, var(--blocked-bg) 55%, var(--surface)); }
.callout-danger .callout-title { color: var(--blocked); }
:root[data-theme="dark"] .callout-note .callout-title,
:root:not([data-theme="light"]) .callout-note .callout-title { color: var(--accent); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .callout-note .callout-title { color: var(--green-600); }
}

/* ----------------------------- Footer contact ----------------------------- */
.footer-contact { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .45rem; }
.footer-contact a {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--ink-2); text-decoration: none; font-size: .93rem;
  font-variant-numeric: tabular-nums;
}
.footer-contact a:hover { color: var(--accent); }
.footer-contact svg { width: 15px; height: 15px; flex: none; opacity: .65; }

/* Phone numbers offered as a call to action */
.call-row { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; margin-top: 1.4rem; }
.call-row a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.call-row svg { width: 16px; height: 16px; flex: none; }
.cta-band .call-row a { color: #FFFFFF; }
.cta-band .call-row a:hover { color: #C9E9DA; }
.cta-band .call-row .call-label { color: #B7D3C6; font-weight: 500; }
