/* ==========================================================================
   Kilnara — Design System
   Flat, border-based, solid colors. No shadows/gradients/glass/glow/opacity.
   Fonts: Space Grotesk (display) + Inter (text).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Palette — warm-neutral enterprise + kiln ember */
  --ink:        #17140f;
  --ink-soft:   #3d372f;
  --muted:      #6b6459;
  --line:       #e4ded4;
  --line-2:     #d3ccbf;
  --paper:      #fbf9f6;
  --paper-2:    #f4f0e9;
  --paper-3:    #efe9e0;
  --white:      #ffffff;

  --ember:      #c7501e;
  --ember-ink:  #a13c12;
  --ember-tint: #f7e9e0;

  --steel:      #1f2a33;
  --steel-tint: #e7ebee;

  --ok:         #2f6b3e;
  --ok-tint:    #e6f0e8;
  --warn:       #8a6d1f;
  --warn-tint:  #f4edda;
  --danger:     #a83220;
  --danger-tint:#f6e5e1;
  --info:       #275e8a;
  --info-tint:  #e4edf3;

  /* Semantic color system (maps onto the palette above; AA-verified) */
  --color-primary:        var(--ember);
  --color-primary-strong: var(--ember-ink);
  --color-primary-tint:   var(--ember-tint);
  --color-secondary:      var(--steel);
  --color-secondary-tint: var(--steel-tint);
  --color-success:        var(--ok);
  --color-warning:        var(--warn);
  --color-danger:         var(--danger);
  --color-info:           var(--info);

  --bg:            var(--paper);
  --bg-alt:        var(--paper-2);
  --surface:       var(--white);
  --surface-alt:   var(--paper-2);
  --text:          var(--ink);
  --text-strong:   var(--ink);
  --text-body:     var(--ink-soft);
  --text-muted:    var(--muted);
  --border:        var(--line);
  --border-strong: var(--line-2);
  --divider:       var(--line);
  --focus-ring:    var(--ember);

  /* Typography */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-text:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Type scale (fluid, premium hierarchy) */
  --fs-display: clamp(3rem, 5.4vw, 4.25rem);
  --fs-h1:      clamp(2.4rem, 5vw, 3.5rem);
  --fs-h2:      clamp(1.9rem, 3.6vw, 2.75rem);
  --fs-h3:      clamp(1.35rem, 2vw, 1.75rem);
  --fs-h4:      clamp(1.15rem, 1.4vw, 1.35rem);
  --fs-h5:      1.1rem;
  --fs-lg:      1.15rem;
  --fs-body:    1rem;
  --fs-sm:      0.9rem;
  --fs-xs:      0.78rem;

  --lh-tight:   1.14;
  --lh-snug:    1.3;
  --lh-normal:  1.6;
  --lh-relaxed: 1.7;

  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.08em;
  --tracking-wider:   0.14em;

  --measure: 68ch; /* readable paragraph width (~60–75 chars) */

  /* Spacing — 8px scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  /* filled intermediate steps */
  --s5b: 40px; --s7b: 56px; --s8b: 80px; --s9b: 120px; --s11: 160px;

  --maxw: 1200px;
  --radius:    4px;
  --radius-sm: 3px;
  --radius-lg: 8px;
  --radius-pill: 100px;
  --nav-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); }
h5 { font-size: var(--fs-h5); line-height: var(--lh-snug); }
p  { color: var(--ink-soft); text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }

.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -0.025em; }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--ember); margin-bottom: var(--s4);
  display: inline-flex; align-items: center; gap: var(--s2);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--ember); display: inline-block; }
.lead { font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--ink-soft); max-width: var(--measure); }
.mono { font-family: var(--font-display); font-feature-settings: "tnum"; }
.prose p + p { margin-top: var(--s4); }
.prose p, .measure { max-width: var(--measure); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--s5); }
.container-wide { max-width: 1440px; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-sm { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--paper); }
.section--ink p { color: #c9c1b4; }

.section-head { max-width: 720px; margin-bottom: var(--s7b); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center p { margin-inline: auto; }
.section-head p { margin-top: var(--s4); font-size: var(--fs-lg); line-height: var(--lh-relaxed); max-width: var(--measure); }

.grid { display: grid; gap: var(--s5); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; line-height: 1;
  min-height: 46px; padding: 13px 22px; border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper); white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--paper-3); border-color: var(--line-2); color: var(--muted); pointer-events: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ember { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn--ember:hover { background: var(--ember-ink); border-color: var(--ember-ink); }
.btn--onink { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--onink:hover { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn--lg { min-height: 54px; padding: 16px 28px; font-size: 1.05rem; }
.btn--sm { min-height: 38px; padding: 9px 16px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

.link-arrow { font-family: var(--font-display); font-weight: 600; color: var(--ember); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow .ar { transition: transform .15s ease; }
.link-arrow:hover .ar { transform: translateX(4px); }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line); background: var(--white);
  border-radius: var(--radius); padding: clamp(28px, 3.2vw, 40px);
  transition: border-color .15s ease, background .15s ease;
}
.card:hover { border-color: var(--ink); }
.card--flat { background: var(--paper); }
.card--pad-sm { padding: var(--s6); }
.card h3 { margin-bottom: var(--s3); }
.card p { font-size: 1rem; line-height: var(--lh-relaxed); }

.card-ico {
  width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: var(--s5); color: var(--ember); background: var(--paper);
}
.card-ico svg { width: 22px; height: 22px; }

/* icon-only decorative squares */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--muted);
}
.tag--ember { color: var(--ember); border-color: var(--ember); background: var(--ember-tint); }
.tag--ok { color: var(--ok); border-color: var(--ok); background: var(--ok-tint); }
.tag--warn { color: var(--warn); border-color: var(--warn); background: var(--warn-tint); }
.tag--info { color: var(--info); border-color: var(--info); background: var(--info-tint); }
.tag--danger { color: var(--danger); border-color: var(--danger); background: var(--danger-tint); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand .mark { width: 28px; height: 28px; }
.nav-menu { display: flex; align-items: center; gap: var(--s2); }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; position: relative;
  font-size: 0.96rem; font-weight: 500; color: var(--ink-soft);
  padding: 9px 12px; border-radius: var(--radius);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); background: var(--paper-2); }
.nav-link[aria-current="page"], .nav-item.active > .nav-link { color: var(--ink); font-weight: 600; }
.nav-link[aria-current="page"]::after, .nav-item.active > .nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--ember);
}
.nav-link .chev { width: 12px; height: 12px; transition: transform .15s ease; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 300px; background: var(--white);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: var(--s3); visibility: hidden; transform: translateY(-4px);
  transition: transform .14s ease, visibility .14s;
}
.nav-item:hover .dropdown, .dropdown.open { visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; gap: var(--s3); padding: 10px 12px; border-radius: var(--radius); }
.dropdown a:hover { background: var(--paper-2); }
.dropdown .di { color: var(--ember); flex-shrink: 0; margin-top: 2px; }
.dropdown .dt { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.dropdown .dd { font-size: 0.83rem; color: var(--muted); line-height: 1.4; }

.nav-cta { display: flex; align-items: center; gap: var(--s3); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--white); align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c1b4; padding-block: var(--s9) var(--s6); border-top: 3px solid var(--ember); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--s6); padding-bottom: var(--s8); border-bottom: 1px solid #2e2820; }
.footer-brand .brand { color: var(--paper); margin-bottom: var(--s4); }
.footer-brand p { color: #a89e8f; font-size: 0.95rem; max-width: 300px; }
.footer-col h5 { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8f8574; margin-bottom: var(--s4); }
.footer-col a { display: block; padding: 6px 0; color: #c9c1b4; font-size: 0.95rem; }
.footer-col a:hover { color: var(--ember); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s4); padding-top: var(--s6); font-size: 0.88rem; color: #8f8574; }
.footer-social { display: flex; gap: var(--s2); }
.footer-social a { width: 36px; height: 36px; border: 1px solid #342e25; border-radius: var(--radius); display: grid; place-items: center; color: #c9c1b4; }
.footer-social a:hover { border-color: var(--ember); color: var(--ember); }
.newsletter { display: flex; gap: var(--s2); margin-top: var(--s4); }
.newsletter input { flex: 1; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s9); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero h1 { margin-bottom: var(--s5); }
.hero .lead { max-width: 560px; margin-bottom: var(--s6); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s8); align-items: center; }
.page-hero { padding-block: var(--s8) var(--s7); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.page-hero h1 { margin-bottom: var(--s4); }
.page-hero .lead { max-width: 640px; }

/* breadcrumb */
.crumbs { display: flex; gap: var(--s2); align-items: center; font-size: 0.85rem; color: var(--muted); margin-bottom: var(--s5); font-family: var(--font-display); }
.crumbs a:hover { color: var(--ember); }
.crumbs span { color: var(--line-2); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.stat { padding: var(--s6); border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.9rem); font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.stat .num .u { color: var(--ember); }
.stat .lbl { margin-top: var(--s3); font-size: 0.92rem; color: var(--muted); }

/* ---------- Logos strip ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s5) var(--s8); }
.logos .lgo { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--muted); letter-spacing: -0.01em; }

/* ---------- Feature / media rows ---------- */
.media-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); overflow: hidden; }
.media-panel .pt { padding: var(--s5) var(--s6); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: var(--s2); font-family: var(--font-display); font-size: 0.85rem; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-2); }
.dot.r { background: #d9714f; border-color: #d9714f; }
.dot.y { background: #d9b64f; border-color: #d9b64f; }
.dot.g { background: #7faa73; border-color: #7faa73; }

/* diagram / loop */
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.loop-node { border: 1px solid var(--line-2); border-radius: var(--radius); padding: var(--s5); background: var(--white); text-align: center; }
.loop-node .ln-ico { color: var(--ember); margin: 0 auto var(--s3); }
.loop-node .ln-t { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.loop-node .ln-d { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* ---------- List / checklist ---------- */
.checklist li { display: flex; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.checklist li:last-child { border-bottom: none; }
.checklist .ck { color: var(--ember); flex-shrink: 0; margin-top: 3px; }
.checklist .ct { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.checklist .cd { font-size: 0.95rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: var(--s5); padding: var(--s6) 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step .sn { counter-increment: step; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ember); width: 46px; height: 46px; border: 1px solid var(--ember); border-radius: var(--radius); display: grid; place-items: center; }
.step .sn::before { content: counter(step, decimal-leading-zero); }

/* ---------- Testimonials ---------- */
.quote { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s7); background: var(--white); }
.quote--lg { padding: var(--s8); }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.9rem); line-height: 1.35; letter-spacing: -0.02em; color: var(--ink); }
.quote--lg blockquote::before { content: "\201C"; color: var(--ember); }
.quote-by { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s6); }
.avatar { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--ember); }
.quote-by .qn { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.quote-by .qr { font-size: 0.88rem; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); align-items: start; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: var(--s7); }
.plan--feat { border: 1.5px solid var(--ink); }
.plan .pn { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.plan .pp { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; letter-spacing: -0.03em; margin-block: var(--s4) 4px; }
.plan .pp small { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .pdesc { font-size: 0.95rem; color: var(--muted); min-height: 44px; }
.plan .btn { width: 100%; margin-block: var(--s5); }
.plan ul li { display: flex; gap: var(--s2); padding: 8px 0; font-size: 0.95rem; border-top: 1px solid var(--line); }
.plan ul li:first-child { border-top: none; }
.plan ul .pk { color: var(--ember); flex-shrink: 0; }

/* toggle */
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 3px; background: var(--white); }
.seg button { border: none; background: transparent; padding: 8px 16px; border-radius: 3px; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.seg button.active { background: var(--ink); color: var(--paper); }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.ac-item { border-bottom: 1px solid var(--line); }
.ac-item:last-child { border-bottom: none; }
.ac-head { width: 100%; text-align: left; background: transparent; border: none; padding: var(--s5) var(--s6); display: flex; justify-content: space-between; align-items: center; gap: var(--s4); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.ac-head:hover { background: var(--paper-2); }
.ac-icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.ac-icon::before, .ac-icon::after { content: ""; position: absolute; background: var(--ember); transition: transform .2s ease; }
.ac-icon::before { top: 10px; left: 0; width: 22px; height: 2px; }
.ac-icon::after { left: 10px; top: 0; width: 2px; height: 22px; }
.ac-item.open .ac-icon::after { transform: scaleY(0); }
.ac-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.ac-body-inner { padding: 0 var(--s6) var(--s5); color: var(--ink-soft); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: var(--s2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { border: none; background: transparent; padding: 12px 16px; font-family: var(--font-display); font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--ink); border-bottom-color: var(--ember); }
.tab-panel { display: none; padding-top: var(--s6); }
.tab-panel.active { display: block; }

/* ---------- Table ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
table.grid-table { width: 100%; border-collapse: collapse; }
.grid-table th, .grid-table td { text-align: left; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.grid-table thead th { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
.grid-table tbody tr:last-child td { border-bottom: none; }
.grid-table td .pk { color: var(--ember); }
.grid-table td .no { color: var(--line-2); }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--s5); }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; margin-bottom: var(--s2); color: var(--ink); }
.field .hint { font-size: 0.85rem; color: var(--muted); margin-top: var(--s2); }
input, textarea, select {
  width: 100%; font-family: var(--font-text); font-size: 1rem; color: var(--ink);
  min-height: 46px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--white); transition: border-color .15s ease;
}
input::placeholder, textarea::placeholder { color: #a49b8c; }
input:focus, textarea:focus, select:focus { border-color: var(--ember); outline: 2px solid var(--ember); outline-offset: 1px; }
textarea { resize: vertical; min-height: 130px; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: var(--s7); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); border-radius: var(--radius); padding: var(--s9) var(--s8); text-align: center; }
.cta-band h2 { color: var(--paper); margin-bottom: var(--s4); }
.cta-band p { color: #c9c1b4; max-width: 560px; margin: 0 auto var(--s6); font-size: 1.15rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Blog / resource cards ---------- */
.post { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease; }
.post:hover { border-color: var(--ink); }
.post .thumb { aspect-ratio: 16/9; border-bottom: 1px solid var(--line); background: var(--paper-2); position: relative; display: grid; place-items: center; }
.post .thumb .glyph { color: var(--line-2); }
.post .pbody { padding: var(--s5) var(--s6) var(--s6); flex: 1; display: flex; flex-direction: column; }
.post .pmeta { display: flex; gap: var(--s3); font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: var(--s3); }
.post h3 { font-size: 1.15rem; margin-bottom: var(--s3); }
.post .pbody p { font-size: 0.95rem; flex: 1; }
.post .pfoot { margin-top: var(--s4); font-size: 0.85rem; color: var(--muted); font-family: var(--font-display); }

/* ---------- Team / people ---------- */
.person { text-align: center; }
.person .pfp { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); display: grid; place-items: center; margin-bottom: var(--s4); font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--ember); }
.person .pname { font-family: var(--font-display); font-weight: 600; }
.person .prole { font-size: 0.88rem; color: var(--muted); }

/* ---------- Job listing ---------- */
.job { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s5) var(--s6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .15s ease; }
.job:hover { border-color: var(--ink); }
.job .jt { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.job .jmeta { font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
.job .jtags { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: none; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-6 { margin-top: var(--s6); }
.mt-8 { margin-top: var(--s8); }
.mb-0 { margin-bottom: 0; }
.kpi-row { display: flex; flex-wrap: wrap; gap: var(--s5) var(--s7); }
.kpi { }
.kpi .k { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--ember); }
.kpi .kl { font-size: 0.88rem; color: var(--muted); }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; padding-block: var(--s7); border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: none; }
.feature-row.rev .fr-media { order: -1; }

/* pill nav (in-page) */
.pill-nav { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pill-nav a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 100px; font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); }
.pill-nav a:hover { border-color: var(--ink); }

/* ---------- Reveal animation ---------- */
.reveal { transform: translateY(14px); transition: transform .5s ease; }
.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .nav-menu, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid, .split, .g-2, .g-3, .g-4, .pricing, .loop, .feature-row, .feature-row.rev .fr-media { grid-template-columns: 1fr; }
  .feature-row.rev .fr-media { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }

  /* mobile nav drawer */
  .nav-menu.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--paper); border-top: 1px solid var(--line);
    padding: var(--s4); overflow-y: auto; z-index: 200;
  }
  .nav-menu.open .nav-item { width: 100%; }
  .nav-menu.open .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-menu.open .dropdown { position: static; visibility: visible; transform: none; border: none; padding: 0 0 var(--s3) var(--s5); min-width: 0; display: none; }
  .nav-menu.open .dropdown.open { display: block; }
  .nav-menu.open .dropdown .dd { display: none; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: var(--s5); }
  .g-2, .g-3, .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .cta-band { padding: var(--s8) var(--s5); }
  .container { padding-inline: var(--s4); }
  .quote--lg, .plan, .form-card { padding: var(--s6); }
}
