/* ══════════════════════════════════════════════
   BuilderTools.ai — style.css
   Light theme · Inter + DM Mono
══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --cream:       #FFFFFF;
  --cream-2:     #F8FAFC;
  --cream-3:     #E2E8F0;
  --parchment:   #F8FAFC;
  --ink:         #0F172A;
  --ink-2:       #1E293B;
  --ink-3:       #475569;
  --ink-4:       #94A3B8;
  --amber:       #2563EB;
  --amber-lt:    #3B82F6;
  --amber-pale:  rgba(37,99,235,0.08);
  --amber-pale2: rgba(37,99,235,0.04);
  --rule:        rgba(15,23,42,0.08);
  --rule-2:      rgba(15,23,42,0.04);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.08);
  --f-display:   'Inter', system-ui, -apple-system, sans-serif;
  --f-body:      'Inter', system-ui, -apple-system, sans-serif;
  --f-mono:      'DM Mono', 'SF Mono', monospace;
  --max:         1160px;
  --gut:         clamp(1.25rem, 4vw, 2rem);
  --ease:        cubic-bezier(.4,0,.2,1);
  --r-card:      12px;
}

/* ── RESET ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ── SKIP LINK ── */
.skip {
  position: absolute; top: -100%; left: 1rem;
  background: var(--amber); color: #fff;
  padding: .4rem 1rem; font-size: .8rem; font-weight: 700;
  z-index: 9999; transition: top .2s; border-radius: 4px;
}
.skip:focus { top: 1rem; }

/* ── LAYOUT ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(3rem, 5vw, 4.5rem) 0; position: relative; }
.section--sm { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--alt { background: var(--cream); }
hr.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: var(--f-display); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: .95rem; font-weight: 600; letter-spacing: .01em; font-family: var(--f-body); }
p  { color: var(--ink-3); line-height: 1.7; font-size: .92rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 1rem;
}
.eyebrow--amber { color: var(--amber); }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; flex-shrink: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .6rem 1.5rem;
  font-family: var(--f-body); font-size: .85rem; font-weight: 600;
  letter-spacing: .02em;
  transition: all .22s var(--ease);
  border-radius: 6px;
  white-space: nowrap; min-height: 40px;
  cursor: pointer;
}
.btn svg { flex-shrink: 0; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: var(--ink-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--amber { background: var(--amber); color: #fff; }
.btn--amber:hover { background: var(--amber-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.25); }

.btn--outline { border: 1.5px solid var(--rule); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink-3); background: rgba(26,22,18,0.04); transform: translateY(-1px); }

.btn--ghost-amber { border: 1.5px solid var(--amber); color: var(--amber); background: transparent; }
.btn--ghost-amber:hover { background: var(--amber-pale); transform: translateY(-1px); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 1.4rem 0;
  border-bottom: 1px solid transparent;
  transition: padding .3s var(--ease), background .3s, border-color .3s;
}
.nav.stuck {
  padding: .9rem 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 0 var(--rule);
}
.nav__inner { display: flex; align-items: center; gap: 2rem; }
.nav__logo {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--f-body); font-weight: 800; font-size: .95rem;
  letter-spacing: -.01em; color: var(--ink); flex-shrink: 0;
}
.nav__logo-mark {
  width: 28px; height: 28px;
  background: var(--amber);
  display: grid; place-items: center; border-radius: 6px;
  flex-shrink: 0;
}
.nav__logo span { color: var(--amber); }
.nav__links { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.nav__links a {
  font-size: .85rem; font-weight: 600; color: var(--ink-4);
  transition: color .2s; letter-spacing: .01em;
}
.nav__links a:hover,
.nav__links a.active { color: var(--ink); }
.nav__cta-wrap { display: flex; gap: .75rem; align-items: center; margin-left: 1.5rem; flex-shrink: 0; }
.nav__burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1.5px solid var(--rule); border-radius: 6px;
  color: var(--ink); flex-shrink: 0;
}
.nav__burger:hover { background: var(--cream-2); }

/* Mobile menu */
.mob {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--parchment);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
  padding: 1.25rem var(--gut) 1.75rem;
}
.mob.open { display: block; }
.mob ul { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.mob a {
  display: block; padding: .75rem 0;
  font-size: .95rem; font-weight: 600; color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
  transition: color .15s;
}
.mob a:hover { color: var(--ink); }

/* ── HERO ── */
#hero {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(8rem, 14vw, 12rem) 0 clamp(4rem, 7vw, 6rem);
  text-align: center; position: relative;
  background: var(--cream);
  overflow: hidden;
}

/* Animated grid background */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 70%);
}

/* Ambient glows */
.hero__glow {
  position: absolute; border-radius: 50%;
  filter: blur(120px);
  opacity: 0; animation: glowIn 2s ease-out forwards;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  top: -15%; left: 50%; transform: translateX(-50%);
  background: rgba(37,99,235,0.07);
  animation-delay: .3s;
}
.hero__glow--2 {
  width: 400px; height: 400px;
  bottom: -10%; right: 5%;
  background: rgba(59,130,246,0.05);
  animation-delay: .6s;
}

/* Floating orbs */
.hero__orb {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(37,99,235,.06);
  background: rgba(37,99,235,0.025);
  animation: float 20s ease-in-out infinite;
}
.hero__orb--1 { width: 120px; height: 120px; top: 15%; left: 8%; animation-delay: 0s; }
.hero__orb--2 { width: 80px; height: 80px; top: 25%; right: 12%; animation-delay: -7s; animation-duration: 16s; }
.hero__orb--3 { width: 60px; height: 60px; bottom: 20%; left: 20%; animation-delay: -12s; animation-duration: 22s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-18px) rotate(2deg); }
  66% { transform: translateY(12px) rotate(-1deg); }
}
@keyframes glowIn {
  from { opacity: 0; transform: translateX(-50%) scale(.8); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}
.hero__glow--2 {
  animation-name: glowIn2;
}
@keyframes glowIn2 {
  from { opacity: 0; scale: .8; }
  to   { opacity: 1; scale: 1; }
}

/* Hero content */
.hero__center { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }

/* Hero entrance animations */
.ha {
  opacity: 0; transform: translateY(30px);
  animation: heroEnter .8s var(--ease) forwards;
}
.ha--1 { animation-delay: .15s; }
.ha--2 { animation-delay: .35s; }
.ha--3 { animation-delay: .55s; }
.ha--4 { animation-delay: .75s; }
@keyframes heroEnter {
  to { opacity: 1; transform: none; }
}

.hero__h1 {
  color: var(--ink); margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1; letter-spacing: -.03em;
}
.hero__sub {
  max-width: 520px; margin: 0 auto 2.5rem;
  font-size: .95rem; color: var(--ink-3); line-height: 1.7;
}
.hero__ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Proof bar */
.hero__proof {
  margin-top: 2.5rem;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-4);
}
.hero__proof-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}

/* ── TOOLS ── */
#tools { background: var(--cream-2); position: relative; }
#tools::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.section__eyebrow {
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: .75rem;
}
.section__title { margin-bottom: 2rem; }

.tools__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.tools__empty { text-align: center; padding: 3rem 1rem; color: var(--ink-4); font-size: .95rem; }

.tcard {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--cream-3);
  border-radius: var(--r-card);
  padding: 1.75rem;
  min-height: 220px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.tcard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-lt));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.tcard:hover::before { transform: scaleX(1); }
.tcard:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(37,99,235,.12); border-color: rgba(37,99,235,.15); }
.tcard--dark { background: var(--ink); border-color: transparent; }
.tcard--dark::before { background: linear-gradient(90deg, var(--amber-lt), #60a5fa); }
.tcard--dark .tcard__cat,
.tcard--dark .tcard__desc { color: rgba(255,255,255,.5); }
.tcard--dark .tcard__name { color: #fff; }
.tcard--dark .tcard__link { color: var(--amber-lt); }
.tcard__cat {
  font-family: var(--f-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: .75rem;
}
.tcard__name { font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; line-height: 1.2; }
.tcard__desc { font-size: .88rem; color: var(--ink-3); margin-bottom: 1.25rem; flex: 1; line-height: 1.6; }
.tcard__link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600; color: var(--amber);
  margin-top: auto;
  transition: gap .2s var(--ease);
}
.tcard:hover .tcard__link { gap: .6rem; }
.tcard__link svg { transition: transform .2s var(--ease); }
.tcard:hover .tcard__link svg { transform: translateX(3px); }

/* ── CUSTOM PROJECTS ── */
#custom { background: var(--cream-2); position: relative; }

.custom {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 480px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
}

/* Dark left panel */
.custom__left {
  background: var(--ink); position: relative; overflow: hidden;
  padding: clamp(2.5rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.custom__left-bg { position: absolute; inset: 0; pointer-events: none; }
.custom__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 10%, transparent 70%);
}
.custom__glow {
  position: absolute; width: 300px; height: 300px;
  bottom: -60px; left: -60px;
  background: rgba(37,99,235,.12);
  border-radius: 50%; filter: blur(80px);
}
.custom__left-content { position: relative; z-index: 1; }
.custom__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber-lt); margin-bottom: 1.5rem;
}
.custom__eyebrow svg { opacity: .6; }
.custom__left h2 {
  color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15; letter-spacing: -.02em; margin-bottom: 1.25rem;
}
.custom__desc {
  color: rgba(255,255,255,.45); font-size: .9rem; line-height: 1.7;
  max-width: 380px; margin-bottom: 2rem;
}

/* Steps right panel */
.custom__right {
  background: #fff; padding: clamp(2.5rem, 4vw, 3.5rem);
  display: flex; align-items: center;
}
.custom__steps { display: flex; flex-direction: column; gap: 0; width: 100%; }

.custom__step {
  display: grid; grid-template-columns: 48px 1fr; gap: 1.25rem;
  padding-bottom: 2rem;
}
.custom__step--last { padding-bottom: 0; }

/* Vertical indicator + connecting line */
.custom__step-indicator {
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.custom__step-num {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: .65rem; font-weight: 600; color: var(--amber);
  background: var(--amber-pale);
  border: 1.5px solid rgba(37,99,235,.12);
  border-radius: 10px;
  flex-shrink: 0;
  transition: background .25s var(--ease), border-color .25s, color .25s;
}
.custom__step:hover .custom__step-num {
  background: var(--amber); color: #fff; border-color: var(--amber);
}
.custom__step-line {
  width: 1.5px; flex: 1; min-height: 16px;
  background: linear-gradient(180deg, var(--cream-3), transparent);
  margin-top: 6px;
}

.custom__step-body h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: var(--ink);
  padding-top: .35rem;
}
.custom__step-body p {
  font-size: .85rem; color: var(--ink-3); line-height: 1.65; margin: 0;
}

/* ── CONTACT CTA ── */
#contact {
  background: var(--ink);
  position: relative; overflow: hidden;
}
#contact::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 50% 70% at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 50% 50%, black 10%, transparent 70%);
}
#contact::after {
  content: ''; position: absolute;
  width: 400px; height: 400px;
  top: -120px; right: -80px;
  background: rgba(37,99,235,.08);
  border-radius: 50%; filter: blur(80px);
  pointer-events: none;
}
.cta-center { text-align: center; padding: clamp(3rem, 5vw, 4rem) 0; position: relative; z-index: 1; }
.cta-center h2 { color: #fff; margin-bottom: .75rem; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.cta-center > p { color: rgba(255,255,255,.5); margin-bottom: 2.5rem; }
.cta-center__row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn--outline-light { border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.7); }
.btn--outline-light:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.05); }

/* ── FOOTER ── */
footer {
  background: var(--cream);
  padding: 2rem 0 1.25rem;
  border-top: 1px solid var(--rule);
}
.foot__row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.foot__links { display: flex; gap: 1.75rem; }
.foot__links a {
  font-size: .8rem; color: var(--ink-4); transition: color .2s;
  position: relative;
}
.foot__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--amber); transform: scaleX(0);
  transition: transform .2s var(--ease);
}
.foot__links a:hover { color: var(--ink); }
.foot__links a:hover::after { transform: scaleX(1); }
.foot__btm {
  padding-top: 1rem; margin-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: .75rem; color: var(--ink-4);
}

/* ── TOOL PAGE ── */
.tool-page {
  background: var(--parchment);
}
.tool-page__hero {
  padding-top: clamp(7rem, 12vw, 9rem);
  background: var(--parchment);
}
.tool-page__hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 2rem;
  align-items: start;
}
.tool-page__lead {
  font-size: 1.02rem;
  max-width: 720px;
  margin: 1.5rem 0 2rem;
}
.tool-page__summary,
.tool-page__io-card,
.admin-panel,
.admin-status {
  background: #fff;
  border: 1px solid var(--cream-3);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
.tool-page__summary,
.admin-status {
  padding: 2rem;
}
.tool-page__summary-label,
.admin-status__badge {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.admin-status__badge {
  color: var(--amber);
  margin-bottom: 1rem;
}
.tool-page__mini-list {
  display: grid;
  gap: .9rem;
  margin-top: 1.5rem;
}
.tool-page__mini-list li {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  color: var(--ink-3);
}
.tool-page__mini-list strong {
  font-family: var(--f-display);
  color: var(--ink);
  font-size: 1.4rem;
}
.tool-page__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.tool-page__stack {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.tool-page__stack-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--cream-3);
  border-radius: var(--r-card);
}
.tool-page__stack-num {
  font-family: var(--f-mono);
  font-size: .7rem;
  color: var(--amber);
}
.tool-page__io-grid,
.tool-page__cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.tool-page__io-card {
  padding: 2rem;
}

/* ── ADMIN ── */
.admin-page {
  background: var(--parchment);
  min-height: 100vh;
  padding-top: 4rem;
}
.admin-page__intro {
  padding-bottom: 2rem;
}
.admin-page__hero {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 2rem;
  align-items: start;
}
.admin-layout {
  display: grid;
  grid-template-columns: .95fr 1.35fr;
  gap: 1.5rem;
  align-items: start;
}
.admin-panel {
  padding: 1.5rem;
}
.admin-panel--list {
  position: sticky;
  top: 6.5rem;
}
.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-panel__head p {
  margin-left: auto;
  max-width: 380px;
  text-align: right;
}
.admin-feedback {
  min-height: 1.5rem;
  font-size: .85rem;
  color: var(--ink-4);
  margin-bottom: 1rem;
}
.admin-feedback.success { color: var(--amber); }
.admin-feedback.error { color: #a44200; }
.admin-tool-list {
  display: grid;
  gap: .9rem;
}
.admin-tool {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--parchment);
}
.admin-tool.is-active {
  border-color: rgba(37,99,235,0.35);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.12);
}
.admin-tool h3 {
  font-size: 1.1rem;
  margin-bottom: .35rem;
}
.admin-tool p {
  font-size: .88rem;
}
.admin-tool__meta {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: .45rem;
}
.admin-tool__actions {
  display: flex;
  gap: .75rem;
}
.admin-empty {
  color: var(--ink-4);
  font-size: .92rem;
}
.admin-form {
  display: grid;
  gap: 1rem;
}
.admin-form label,
.admin-repeater {
  display: grid;
  gap: .45rem;
}
.admin-form label span,
.admin-repeater__head h3 {
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink);
}
.admin-help {
  display: block;
  font-size: .76rem;
  line-height: 1.55;
  color: var(--ink-4);
}
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-row input {
  width: 100%;
  border: 1px solid var(--cream-3);
  border-radius: 8px;
  background: #fff;
  padding: .85rem 1rem;
  font: inherit;
  color: var(--ink);
}
.admin-form textarea {
  resize: vertical;
}
.admin-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.admin-form__check {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  align-self: end;
  padding-bottom: .6rem;
}
.admin-form__check .admin-help {
  width: 100%;
  margin-left: 1.9rem;
}
.admin-form__check input {
  width: 18px;
  height: 18px;
  padding: 0;
}
.admin-form__repeaters {
  display: grid;
  gap: 1rem;
}
.admin-repeater {
  padding: 1rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--parchment);
}
.admin-repeater__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-repeater__rows {
  display: grid;
  gap: .75rem;
}
.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
}
.admin-row--pair {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}
.admin-row__field {
  display: grid;
  gap: .35rem;
}
.admin-row__field span {
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-4);
}
.admin-remove-row {
  border: 1px solid var(--rule);
  border-radius: 8px;
  min-height: 48px;
  padding: 0 1rem;
  background: #fff;
  color: var(--ink-4);
}
.admin-form__actions {
  display: flex;
  gap: .75rem;
  justify-content: flex-start;
  margin-top: .5rem;
}

/* (custom/contact styles moved above) */

/* ── LEGAL ── */
.legal-page {
  padding-top: 5rem;
  max-width: 760px;
}
.legal-page h1 {
  margin-bottom: 1rem;
}
.legal-page p {
  margin-bottom: 1rem;
}

/* ── GEO DEFINITIONS (Construction AI Glossary) ── */
.geo-definitions {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
.geo-def__heading {
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 2rem;
  display: flex; align-items: center; gap: .75rem;
}
.geo-def__heading::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.geo-def__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.geo-def__block {
  padding: 1.75rem;
  background: var(--parchment);
  border: 1px solid var(--cream-3);
  border-radius: var(--r-card);
}
.geo-def__q {
  font-family: var(--f-display); font-size: .95rem; font-weight: 700;
  color: var(--ink); margin-bottom: .85rem; line-height: 1.3;
  letter-spacing: -.01em;
}
.geo-def__block p { font-size: .82rem; line-height: 1.8; color: var(--ink-4); }

@media (max-width: 900px) {
  .geo-def__grid { grid-template-columns: 1fr; }
}

/* ── FAQ SUB-HEADINGS (AI citability) ── */
.faq__sub-h {
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-4); padding: 1.75rem 0 0;
  opacity: .65;
}
/* When a subheading follows a faq__item, draw a separator and remove the double-border */
.faq__item + .faq__sub-h {
  border-top: 1px solid var(--rule);
  padding-top: 1.75rem;
}
/* Hide bottom border on the item that sits directly before a subheading */
.faq__item:has(+ .faq__sub-h) {
  border-bottom: none;
}

/* ── SCROLL REVEAL ── */
.r { opacity: 0; transform: translateY(24px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.r.visible { opacity: 1; transform: none; }
.rd1 { transition-delay: .08s; }
.rd2 { transition-delay: .16s; }
.rd3 { transition-delay: .24s; }
.rd4 { transition-delay: .32s; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .custom { grid-template-columns: 1fr; }
  .custom__left { min-height: 320px; }
  .tools__grid { grid-template-columns: repeat(2, 1fr); }
  .tool-page__hero-grid,
  .tool-page__content-grid,
  .admin-page__hero,
  .admin-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta-wrap { display: none; }
  .nav__burger { display: flex; }
  .tools__grid { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .hero__orb { display: none; }
  .cta-center__row { flex-direction: column; align-items: center; }
  .foot__row { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .foot__links { flex-wrap: wrap; gap: 1rem; }
  .admin-form__grid,
  .admin-row,
  .admin-row--pair { grid-template-columns: 1fr; }
  .tool-page__io-grid,
  .tool-page__cases { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .foot__btm { flex-direction: column; align-items: flex-start; }
}
