/* =========================================================================
   GercekGrowth — design system
   Single source of truth for every colour, size and spacing value.
   Change a token here and it changes on every page, in both languages.
   ========================================================================= */

/* ---- 1. Tokens: light is the base, dark overrides only what changes ---- */
:root {
  /* Bureau — the brand system. Light only: this identity has no dark mode. */
  --bg:            #F6F7F9;
  --bg-elev:       #FFFFFF;
  --bg-sunken:     #EEF1F4;
  --border:        #DFE3E9;
  --border-strong: #C3CBD6;
  --text:          #0F1419;
  --text-muted:    #5A6472;
  --text-faint:    #626C7A;
  --accent:        #14315E;
  --accent-text:   #FFFFFF;
  --on-accent:     #FFFFFF;
  --on-accent-muted: #AEBACB;
  --on-accent-rule: rgba(255,255,255,.18);
  --accent-soft:   rgba(20,49,94,.08);
  --warn:          #8C5A10;
  --warn-soft:     rgba(140,90,16,.08);
  --focus:         #14315E;
  --grid-line:     rgba(15,20,25,.05);
  --shadow:        0 1px 2px rgba(15,20,25,.04), 0 10px 28px -14px rgba(15,20,25,.16);

  --font-display: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1160px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 0px;
  --radius-lg: 0px;
  --sect: clamp(4.5rem, 9vw, 7.5rem);
}

/* ---- 2. Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 4.3vw, 3.3rem); font-weight: 700; letter-spacing: -0.038em; }
h2 { font-size: clamp(1.65rem, 3.1vw, 2.4rem); font-weight: 700; letter-spacing: -0.032em; }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.3; }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.3; }
.tool h2 { font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.3; }
p { text-wrap: pretty; }

/* ---- 3. Layout primitives ---- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sect); }
.section + .section { padding-top: 0; }
.hero + .section { padding-top: clamp(1rem, 2vw, 1.75rem); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-muted); max-width: 62ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 1px; background: currentColor; flex: none; opacity: .7;
}

.sect-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sect-head .eyebrow { margin-bottom: 1rem; }

/* ---- 4. Skip link — stays in the focus order, never display:none ---- */
.skip {
  position: absolute; z-index: 100; left: 1rem; top: 1rem;
  background: var(--accent); color: var(--accent-text);
  padding: .7rem 1.1rem; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; text-decoration: none;
  transform: translateY(-160%);
  transition: transform .16s ease;
}
.skip:focus { transform: translateY(0); }

/* ---- 5. Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 68px;
  flex-wrap: nowrap;
}
@media (max-width: 480px) { .site-header .wrap { gap: .6rem; } .brand { font-size: 1rem; } }
.brand {
  display: inline-flex; align-items: baseline; gap: .55rem; min-width: 0;
  text-decoration: none; font-family: var(--font-display);
  font-weight: 600; letter-spacing: -.02em; font-size: 1.06rem;
  margin-right: auto; padding-block: .5rem;
}
.brand .dot { width: 11px; height: 11px; background: var(--accent); flex: none; align-self: center; }
.brand .sub { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
@media (max-width: 600px) { .brand .sub { display: none; } }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  text-decoration: none; font-size: .92rem; color: var(--text-muted);
  padding: .6rem .7rem; border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--text); background: var(--bg-sunken); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 500; position: relative; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .1rem;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.head-tools { display: flex; align-items: center; gap: .4rem; flex: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  height: 44px; min-width: 44px; padding-inline: .7rem;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em;
  color: var(--text-muted);
  transition: border-color .15s ease, color .15s ease;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }
.icon-btn svg { width: 15px; height: 15px; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    padding: .5rem var(--pad) 1rem;
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .8rem .2rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
}

/* ---- 6. Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn-ghost { border-color: var(--text); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arw { transition: transform .16s ease; }
.btn:hover .arw { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---- 7. Hero ---- */
.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); } }
.hero h1 { margin: 1.15rem 0 1.5rem; }
.hero .lede { font-size: clamp(1.05rem, 1.7vw, 1.24rem); }
.hero .btn-row { margin-top: 2.25rem; }

/* ---- 8. Pipeline schematic (the hero diagram) ---- */
.schematic {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-elev); padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
}
.schematic-cap {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-faint);
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem;
}
.schematic-cap .live { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); }
.schematic-cap .live::before {
  content: ""; width: 7px; height: 7px; background: currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.schematic svg { width: 100%; height: auto; }
.sch-track { stroke: var(--border-strong); stroke-width: 1.5; fill: none; }
.sch-flow { stroke: var(--accent); stroke-width: 1.5; fill: none; stroke-dasharray: 8 210; animation: flow 4.5s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -218; } }
.sch-node { fill: var(--bg); stroke: var(--border-strong); stroke-width: 1.5; }
.sch-node-on { fill: var(--accent); stroke: var(--accent); }
.sch-lead { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 5; }
.sch-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; fill: var(--text-muted); text-transform: uppercase; }
.sch-label-on { fill: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .sch-flow { animation: none; stroke-dasharray: none; opacity: .55; }
  .schematic-cap .live::before { animation: none; }
}

/* ---- 9. Stat strip ---- */
.stats { display: grid; gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--bg-elev); padding: 1.75rem var(--pad); }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; letter-spacing: -.03em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: .6rem; font-size: .89rem; color: var(--text-muted); max-width: 30ch; }
.stats-wrap { max-width: var(--wrap); margin-inline: auto; }
@media (min-width: 720px) { .stat { padding-inline: clamp(1.25rem, 2.5vw, 2rem); } }

/* ---- 10. Schematic card grid (services) ---- */
.grid-cards { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px)  { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .grid-cards[data-n="1"] { grid-template-columns: 1fr; }
  .grid-cards[data-n="2"], .grid-cards[data-n="4"] { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--bg-elev); padding: 1.9rem 1.6rem 2.1rem;
  display: flex; flex-direction: column; gap: .7rem;
  transition: background .18s ease;
  position: relative;
}
.card:hover { background: var(--bg-sunken); }
.card .num {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em;
  color: var(--text-faint); margin-bottom: .35rem;
}
.card:hover .num { color: var(--accent); }
.card p { color: var(--text-muted); font-size: .93rem; }

/* ---- 10b. Service groups ---- */
.svc-group + .svc-group { margin-top: clamp(2.75rem, 5vw, 4.25rem); }
.svc-group-head { display: flex; align-items: baseline; gap: .9rem; margin-bottom: .7rem; }
.svc-group-head .idx {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em;
  color: var(--accent); flex: none;
}
.svc-group-head h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -.02em;
}
.svc-group-lede { color: var(--text-muted); max-width: 64ch; margin-bottom: 1.4rem; font-size: .97rem; }
.card h4 a { text-decoration: none; display: inline-block; padding-block: 3px; }
.card h4 a::after { content: " \2192"; color: var(--accent); font-size: .85em; }
.card h4 a:hover { color: var(--accent); }

/* ---- 11. Spec list (values) ---- */
.specs { border-top: 1px solid var(--border); }
.spec {
  display: grid; gap: .35rem 2.5rem; padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 760px) { .spec { grid-template-columns: 15rem minmax(0,1fr); align-items: baseline; } }
.spec dt {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); display: flex; align-items: baseline; gap: .7rem;
}
.spec dt::before { content: "▸"; color: var(--accent); font-size: .7rem; }
.spec dd { margin: 0; color: var(--text-muted); font-size: .96rem; }

/* ---- 12. Tool stack ---- */
.stack-group + .stack-group { margin-top: 1.9rem; }
.stack-group h3 {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: .9rem;
  display: flex; align-items: center; gap: .8rem;
}
.stack-group h3::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.chips li {
  font-family: var(--font-mono); font-size: .82rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: .38rem .7rem; color: var(--text-muted); background: var(--bg-elev);
}

/* ---- 13. About ---- */
.about-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 940px) {
  .about-grid { grid-template-columns: minmax(0,1fr) 20rem; }
  .about-grid:not(:has(.about-note)) { grid-template-columns: minmax(0,1fr); }
}
.about-body p + p { margin-top: 1.1rem; }
.about-body p { color: var(--text-muted); font-size: 1.02rem; }
.about-note {
  border: 1px solid var(--border); border-left: 2px solid var(--accent);
  border-radius: var(--radius); background: var(--bg-elev); padding: 1.35rem;
  font-size: .93rem; color: var(--text-muted); align-self: start;
}

/* ---- 14. Numbered rail (audit steps) ---- */
.rail { list-style: none; padding: 0; display: grid; gap: 0; }
.rail li {
  display: grid; grid-template-columns: 2.6rem minmax(0,1fr); gap: 0 1.4rem;
  padding-bottom: 2.1rem; position: relative;
}
.rail li:last-child { padding-bottom: 0; }
.rail li::before {
  content: ""; position: absolute; left: 1.3rem; top: 2.6rem; bottom: .2rem;
  width: 1px; background: var(--border);
}
.rail li:last-child::before { display: none; }
.rail .n {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .85rem; font-weight: 500;
}
.rail h3 { margin-bottom: .4rem; padding-top: .35rem; }
.rail p { color: var(--text-muted); font-size: .95rem; }

/* ---- 15. Checklist ---- */
.checklist { list-style: none; padding: 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 700px) { .checklist { grid-template-columns: repeat(2, 1fr); } }
.checklist li {
  background: var(--bg-elev); padding: 1rem 1.25rem;
  display: flex; align-items: flex-start; gap: .8rem; font-size: .94rem;
}
.checklist li svg { width: 17px; height: 17px; flex: none; margin-top: .22rem; color: var(--accent); }

/* ---- 16. Fit / not-fit ---- */
.fit-grid { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .fit-grid { grid-template-columns: repeat(2, 1fr); } }
.fit-box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; background: var(--bg-elev); }
.fit-box h3 { margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.fit-yes h3 { color: var(--accent); }
.fit-no  h3 { color: var(--warn); }
.fit-box ul { list-style: none; padding: 0; display: grid; gap: .8rem; }
.fit-box li { font-size: .94rem; color: var(--text-muted); padding-left: 1.4rem; position: relative; }
.fit-yes li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); }
.fit-no  li::before { content: "−"; position: absolute; left: 0; color: var(--warn); font-family: var(--font-mono); }

/* ---- 17. FAQ ---- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.03rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 1.1rem;
  font-family: var(--font-mono); font-size: 1.3rem; color: var(--accent);
  transition: transform .18s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.4rem; color: var(--text-muted); max-width: 68ch; font-size: .96rem; }

/* ---- 18. Tool cards ---- */
.tool-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 800px) { .tool-list { grid-template-columns: repeat(2, 1fr); } }
.tool {
  background: var(--bg-elev); padding: 1.9rem 1.7rem; display: flex; flex-direction: column; gap: .65rem;
  text-decoration: none; transition: background .18s ease;
}
.tool:hover { background: var(--bg-sunken); }
.tool .kind { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-faint); }
.tool p { color: var(--text-muted); font-size: .93rem; flex: 1; }
.tool .go { font-size: .87rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: .4rem; }
.tool:hover .go .arw { transform: translateX(3px); }
.tool .arw { transition: transform .16s ease; }

/* ---- 19. Contact cards ---- */
.contact-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 780px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { background: var(--bg-elev); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; text-decoration: none; transition: background .18s ease; }
.contact-card:hover { background: var(--bg-sunken); }
.contact-card .label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-faint); }
.contact-card .value { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; word-break: break-word; }
.contact-card .go { margin-top: .5rem; font-size: .87rem; color: var(--accent); font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; }
.contact-card:hover .arw { transform: translateX(3px); }
.contact-card .arw { transition: transform .16s ease; }

/* ---- 20. Numbered plain list ---- */
.plain-list { list-style: none; padding: 0; display: grid; gap: .9rem; }
.plain-list li { padding-left: 1.6rem; position: relative; color: var(--text-muted); }
.plain-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); }

/* ---- 21. CTA band ---- */
.cta-band { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); padding: clamp(2rem, 5vw, 3.25rem); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 100% at 100% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 100% 50%, #000, transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: .9rem; }
.cta-band p { color: var(--text-muted); max-width: 54ch; margin-bottom: 1.75rem; }

/* ---- 22. Footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-sunken); padding-block: 3rem 2.25rem; margin-top: var(--sect); }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: minmax(0,1.4fr) repeat(2, minmax(0,1fr)); } }
.foot-grid h2 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .9rem; font-weight: 500; }
.foot-links { list-style: none; padding: 0; display: grid; gap: .55rem; }
.foot-links a { text-decoration: none; color: var(--text-muted); font-size: .92rem; display: inline-block; padding-block: .35rem; }
.foot-links a:hover { color: var(--accent); }
.foot-note { color: var(--text-muted); font-size: .92rem; max-width: 40ch; margin-top: .8rem; }
.foot-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-family: var(--font-mono); font-size: .75rem; color: var(--text-faint); letter-spacing: .04em;
}

/* ---- 23. 404 ---- */
.center-page { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.center-page .code { font-family: var(--font-mono); font-size: 3.5rem; color: var(--accent); letter-spacing: .05em; }

/* ---- 24. Utilities ---- */
.mono { font-family: var(--font-mono); }
.stat b, .rail .n, .card .num, .foot-bottom, .schematic { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- 25. Tool pages ---- */
.tool-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 900px) { .tool-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tool-panel { background: var(--bg-elev); padding: clamp(1.4rem, 3vw, 2.1rem); }
.tool-h {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 500; margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: .8rem;
}
.tool-h::after { content: ""; height: 1px; flex: 1; background: var(--border); }

.fields { display: grid; gap: 1rem; }
@media (min-width: 620px) { .fields-row { grid-template-columns: 2fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .88rem; color: var(--text-muted); display: flex; gap: .4rem; align-items: baseline; }
.field .unit { font-family: var(--font-mono); font-size: .78rem; color: var(--text-faint); }
.field input {
  font: inherit; font-variant-numeric: tabular-nums;
  padding: .65rem .75rem; border: 1px solid var(--border-strong); border-radius: 0;
  background: var(--bg); color: var(--text); width: 100%; min-height: 44px;
}
.field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field-help { font-size: .84rem; color: var(--text-muted); margin: 1rem 0 1.25rem; max-width: 62ch; }
#reset { margin-top: 1.4rem; }

.outgrid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 480px) { .outgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.outcell { background: var(--bg-elev); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.outv {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1;
  letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums;
}
.outl { font-size: .82rem; color: var(--text-muted); }
.tool-note { font-size: .9rem; color: var(--text-muted); max-width: 70ch; border-left: 2px solid var(--border-strong); padding-left: 1.1rem; }

/* checker results */
.ac-out { margin-top: 1.75rem; display: grid; gap: 1px; background: var(--border); }
@media (min-width: 900px) { .ac-out:not(:empty) { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); } }
.ac-card { background: var(--bg-elev); padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; border-top: 3px solid var(--border-strong); }
.ac-ok { border-top-color: var(--accent); }
.ac-warn { border-top-color: var(--warn); }
.ac-bad { border-top-color: #A31D1D; }
.ac-card h2 { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.ac-lab { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-faint); margin-top: .4rem; }
.ac-rec { font-family: var(--font-mono); font-size: .74rem; line-height: 1.55; background: var(--bg-sunken); padding: .7rem .8rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 0; }
.ac-notes { list-style: none; padding: 0; display: grid; gap: .6rem; }
.ac-notes li { font-size: .88rem; color: var(--text-muted); padding-left: 1.1rem; position: relative; }
.ac-notes li::before { content: "\203A"; position: absolute; left: 0; color: var(--accent); }
.ac-err { margin-top: 1.5rem; font-size: .92rem; color: #A31D1D; border-left: 2px solid #A31D1D; padding-left: 1rem; }

/* builder */
.pool, .seq { list-style: none; padding: 0; display: grid; gap: .5rem; margin: 0; }
.seq { counter-reset: s; }
.stage {
  width: 100%; text-align: left; cursor: pointer; font: inherit; font-size: .92rem;
  background: var(--bg); border: 1px solid var(--border-strong); padding: .75rem .9rem; min-height: 44px;
  transition: border-color .15s ease, color .15s ease;
}
.stage:hover { border-color: var(--accent); color: var(--accent); }
.seq li {
  counter-increment: s; background: var(--bg); border: 1px solid var(--border-strong);
  padding: .7rem .8rem .7rem 2.6rem; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 44px;
}
.seq li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: .8rem;
  font-family: var(--font-mono); font-size: .74rem; color: var(--accent);
}
.stage-t { font-size: .92rem; }
.stage-ops { display: flex; gap: .25rem; flex: none; }
.stage-ops button {
  width: 30px; height: 30px; border: 1px solid var(--border); background: var(--bg-elev);
  cursor: pointer; color: var(--text-muted); font-size: .8rem; line-height: 1;
}
.stage-ops button:hover { border-color: var(--accent); color: var(--accent); }
.seq-empty { font-size: .88rem; color: var(--text-faint); margin-top: .8rem; }
.verdict { margin-top: 1.5rem; }
.v-head { font-weight: 600; font-size: .98rem; padding-left: 1rem; border-left: 3px solid var(--border-strong); }
.v-ok { border-left-color: var(--accent); color: var(--accent); }
.v-warn { border-left-color: var(--warn); color: var(--warn); }
.v-bad { border-left-color: #A31D1D; color: #A31D1D; }
.v-list { list-style: none; padding: 0; margin-top: 1.2rem; display: grid; gap: 1rem; }
.v-list li { display: grid; gap: .3rem; border-top: 1px solid var(--border); padding-top: .9rem; }
.v-pos { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.v-why { font-size: .88rem; color: var(--text-muted); }


/* ---- 26. Spotlight band — the one place the accent is used as a full field ---- */

/* ---- 27. Articles ---- */
.a-head { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.25rem); }
.a-head h1 { margin-top: 1rem; max-width: 20ch; }
.a-by { margin-top: 1.1rem; font-size: .92rem; color: var(--text-muted); }
.a-by a { color: var(--accent); text-decoration: none; font-weight: 600; }
.a-by a:hover { text-decoration: underline; }
.a-cover { width: 100%; height: auto; border: 1px solid var(--border); }
.a-body { padding-block: clamp(2.25rem, 4vw, 3.25rem) clamp(1rem, 2vw, 1.5rem); max-width: 74ch; }
.a-body > * + * { margin-top: 1.15rem; }
.a-body p { font-size: 1.04rem; line-height: 1.72; color: var(--text-muted); }
.a-body a { color: var(--accent); }
.a-body strong { color: var(--text); font-weight: 600; }
.a-answer {
  border-left: 3px solid var(--accent); padding: .1rem 0 .1rem 1.25rem;
  font-size: 1.1rem !important; line-height: 1.68 !important; color: var(--text) !important;
}
.a-answer strong { color: var(--accent); }
.a-body h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.6rem); letter-spacing: -.025em;
  margin-top: clamp(2.25rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.a-list { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.a-list li { padding-left: 1.5rem; position: relative; font-size: 1.02rem; line-height: 1.7; color: var(--text-muted); }
.a-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; background: var(--accent);
}
.a-note {
  background: var(--bg-sunken); border-left: 3px solid var(--warn);
  padding: 1rem 1.25rem; font-size: .93rem !important; line-height: 1.65 !important;
}
.a-src-h { font-size: 1.15rem !important; }
.a-src { padding-left: 1.4rem; display: grid; gap: .9rem; font-size: .93rem; }
.a-src li { color: var(--text-muted); }
.a-src a { color: var(--accent); text-decoration: none; }
.a-src a:hover { text-decoration: underline; }
.src-pub { display: block; color: var(--text-faint); font-size: .85rem; margin-top: .15rem; }
.a-disclaim {
  font-size: .87rem !important; color: var(--text-faint) !important;
  border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: 2rem;
}

/* blog index */
.post-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 860px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post {
  background: var(--bg-elev); padding: 1.5rem 1.5rem 1.9rem; text-decoration: none;
  display: flex; flex-direction: column; gap: .8rem; transition: background .18s ease;
}
.post:hover { background: var(--bg-sunken); }
.post img { width: 100%; height: auto; border: 1px solid var(--border); }
.post-meta {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-faint);
}
.post h2 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.28; }
.post p { color: var(--text-muted); font-size: .93rem; line-height: 1.6; }
