/* ============================================================
   PROGRAMA DE INTEGRIDADE .NET — Design System (Dark)
   Autoridade + Seguranca + Tecnologia + Organizacao
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0e16;
  --bg-2: #0d1320;
  --surface: #101826;
  --surface-2: #141d2e;
  --surface-3: #1a2438;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.32);
  --text: #e7edf6;
  --text-soft: #c3cfe0;
  --muted: #94a3b8;
  --muted-2: #6b7a92;
  --teal: #2dd4bf;
  --sky: #38bdf8;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(135deg, var(--teal), var(--sky));
  --grad-soft: linear-gradient(135deg, rgba(45,212,191,.16), rgba(56,189,248,.16));
  --ring: 0 0 0 3px rgba(45, 212, 191, 0.35);
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Liberation Mono", "Cascadia Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow: 0 6px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  --radius: 14px;
  --radius-sm: 9px;
  --w: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 78% -8%, rgba(56,189,248,.08), transparent 60%),
    radial-gradient(900px 520px at -8% 8%, rgba(45,212,191,.07), transparent 55%),
    var(--bg);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--teal); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(45,212,191,.35); }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: .5rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.mono { font-family: var(--font-mono); }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.card-icon .ic { width: 24px; height: 24px; }
.ic-sm { width: 17px; height: 17px; stroke-width: 2; }

.container { width: min(var(--w), 92vw); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section-tight { padding-block: clamp(2.5rem, 4vw, 3.5rem); }
.bg-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.grid-corners { position: relative; }
.grid-corners::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* ---------- Eyebrow & headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono);
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
}
.eyebrow::before { content: "//"; color: var(--sky); }
.lede { max-width: 62ch; color: var(--muted); font-size: 1.08rem; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  padding: .82rem 1.5rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad); color: #04211f;
  box-shadow: 0 6px 20px rgba(45,212,191,.28);
}
.btn-primary:hover { color: #04211f; transform: translateY(-2px); text-decoration: none; box-shadow: 0 10px 28px rgba(45,212,191,.4); }
.btn-ghost {
  background: rgba(148,163,184,.06); color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--text); transform: translateY(-2px); text-decoration: none; }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-xl { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- Header / Nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,14,22,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); font-weight: 700; text-decoration: none; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; }
.brand-name { font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.15; }
.brand-name span { display: block; font-size: .68rem; color: var(--muted); font-family: var(--font-mono); letter-spacing: .18em; text-transform: uppercase; font-weight: 400; }

nav.nav { display: flex; align-items: center; gap: .14rem; }
.nav > li { list-style: none; position: relative; }
.nav > li > a, .nav-toggle-item {
  display: inline-flex; align-items: center;
  padding: .5rem .72rem; border-radius: var(--radius-sm);
  color: var(--text-soft); font-size: .93rem; font-weight: 500; line-height: 1.2;
  transition: color .15s ease, background .15s ease;
}
.nav > li > a:hover, .nav-toggle-item:hover { color: var(--teal); background: rgba(45,212,191,.08); text-decoration: none; }
.nav > li > a:focus-visible, .nav-toggle-item:focus-visible { outline-offset: 0; }
.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 292px; margin-top: 0;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: .5rem; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 70;
}
.dropdown::before { content: ""; position: absolute; top: -9px; left: 0; right: 0; height: 9px; }
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .5rem .8rem; border-radius: var(--radius-sm);
  color: var(--text-soft); font-size: .92rem; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.dropdown a:hover { background: rgba(45,212,191,.1); color: var(--text); }
.dropdown a::after { content: "\203A"; opacity: 0; transition: opacity .15s ease, transform .15s ease; transform: translateX(-4px); color: var(--teal); font-size: .95rem; }
.dropdown a:hover::after { opacity: 1; transform: translateX(0); }
.dropdown .dd-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); padding: .55rem .8rem .2rem; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); color: var(--text); width: 42px; height: 42px; border-radius: var(--radius-sm); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(5,8,14,.6); backdrop-filter: blur(6px);
}
.mobile-drawer.open { display: block; }
.drawer {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(86vw, 360px);
  background: var(--surface); border-left: 1px solid var(--border-strong);
  display: flex; flex-direction: column; overflow-y: auto; padding: 1.4rem;
  transform: translateX(100%); transition: transform .25s ease;
}
.mobile-drawer.open .drawer { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.drawer-close { background: none; border: 1px solid var(--border-strong); color: var(--text); border-radius: 8px; width: 38px; height: 38px; cursor: pointer; }
.drawer a.dr-link { display: block; padding: .7rem .2rem; color: var(--text-soft); font-weight: 500; border-bottom: 1px solid var(--border); text-decoration: none; }
.drawer a.dr-link:hover { color: var(--teal); }
.drawer .dr-group { margin: 1rem 0 .4rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(4.5rem, 8vw, 7rem); overflow: hidden; }
.hero h1 { margin-bottom: .4em; }
.hero h1 .grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem,4vw,3.5rem); align-items: center; position: relative; }
.hero-sub { font-size: 1.14rem; color: var(--text-soft); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.4rem; }
.chip {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .05em;
  color: var(--text-soft); background: rgba(148,163,184,.08);
  border: 1px solid var(--border-strong); padding: .32rem .7rem; border-radius: 999px;
}

/* ---------- Hero visual (dashboard animado) ---------- */
.hero-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.hv-glow {
  position: absolute; inset: 6% 4%;
  background: radial-gradient(closest-side, rgba(45,212,191,.25), rgba(56,189,248,.14), transparent 72%);
  filter: blur(18px);
  animation: hvPulse 5s ease-in-out infinite;
  z-index: 0;
}
@keyframes hvPulse {
  0%,100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.hv-card {
  position: relative; z-index: 1;
  width: min(380px, 100%);
  background: linear-gradient(180deg, rgba(20,28,43,.92), rgba(13,19,32,.92));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
}
.hv-head { display: flex; align-items: center; gap: .6rem; font-size: .88rem; margin-bottom: 1.1rem; }
.hv-led { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,211,153,.5); animation: hvLed 2.2s infinite; }
@keyframes hvLed {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.45); }
  70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.hv-title { font-weight: 700; color: var(--text); }
.hv-ring { position: relative; width: 150px; height: 150px; margin: 0 auto 1.1rem; }
.hv-svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.hv-track, .hv-progress { fill: none; stroke-width: 9; }
.hv-track { stroke: rgba(148,163,184,.16); }
.hv-progress {
  stroke: url(#hvGrad); stroke-linecap: round;
  stroke-dasharray: 327 327; stroke-dashoffset: 327;
  animation: hvFill 2.4s cubic-bezier(.25,.8,.3,1) .3s forwards;
}
@keyframes hvFill { to { stroke-dashoffset: 13; } }
.hv-ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hv-ring-num b { font-family: var(--font-mono); font-size: 2rem; line-height: 1; color: var(--text); }
.hv-ring-num span { font-family: var(--font-mono); font-size: .95rem; color: var(--teal); display: block; margin-top: 2px; }
.hv-ring-label { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hv-flow { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.hv-step {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 9px;
  padding: .42rem .6rem;
  transition: color .3s ease, border-color .3s ease, background .3s ease, transform .3s ease;
}
.hv-idx { font-family: var(--font-mono); font-size: .66rem; color: var(--muted-2); }
.hv-step.on { color: var(--text); border-color: rgba(45,212,191,.55); background: var(--grad-soft); transform: translateX(2px); }
.hv-step.on .hv-idx { color: var(--teal); }
.hv-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.hv-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .02em;
  color: var(--text-soft); background: rgba(148,163,184,.07);
  border: 1px solid var(--border-strong); padding: .28rem .6rem; border-radius: 999px;
}
.hv-badge b { color: var(--green); }
@media (max-width: 980px) { .hero-visual { display: none; } .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 1200px) { .hero-grid { grid-template-columns: 1fr .9fr; } }

/* Authority strip */
.authority {
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(45,212,191,.06), rgba(56,189,248,.06));
}
.authority .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 2.2rem; padding-block: 1.3rem; }
.authority span { color: var(--muted); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.authority .dot { color: var(--teal); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .2s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card.accent-top::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); opacity: .9; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--teal);
  margin-bottom: 1rem; font-size: 1.25rem;
}
.card h3 { margin-bottom: .55rem; }
.card p:last-child { margin-bottom: 0; }
.card-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card-grid.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.card-link { text-decoration: none; color: var(--text); }
.card-link:hover { text-decoration: none; }

/* ---------- Steps (metodologia) ---------- */
.steps { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%,280px),1fr)); }
.step { background: var(--surface); padding: 1.7rem; position: relative; counter-increment: st; }
.step-num { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .1em; color: var(--teal); display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.step-num::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.steps.list { grid-template-columns: 1fr; }
.steps.list .step { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; align-items: baseline; }
.steps.list .step-num { margin: 0; }

/* ---------- Checklist / feature list ---------- */
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--text-soft); }
.check li::before {
  content: ""; position: absolute; left: 0; top: .34em;
  width: 1.15rem; height: 1.15rem; border-radius: 6px;
  background: var(--grad-soft); border: 1px solid var(--teal);
  box-shadow: inset 0 0 0 3px var(--bg);
}
.check li::after {
  content: "✓"; position: absolute; left: .19rem; top: .18em;
  color: var(--green); font-size: .8rem; font-weight: 700;
}

/* Minor/major legend */
.gap { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
.gap-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.2rem; background: var(--surface); }
.gap-item .tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; display: inline-block; padding: .2rem .55rem; border-radius: 6px; margin-bottom: .5rem; }
.tag-ok { color: #052e27; background: #34d399; }
.tag-partial { color: #241e03; background: #fbbf24; }
.tag-none { color: #31090b; background: #f87171; }

/* ---------- Quote / destaque ---------- */
.quote {
  position: relative; padding: 2.2rem 2.4rem; border-radius: var(--radius);
  background: var(--grad-soft); border: 1px solid rgba(45,212,191,.35);
  font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.35;
  max-width: 860px; margin-inline: auto; text-align: center;
}
.quote small { display: block; margin-top: .7rem; font-weight: 500; font-size: .98rem; color: var(--text-soft); font-family: var(--font-sans); }
.quote.danger { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.4); }
.quote.danger .glow { color: var(--red); }
.quote .glow { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------- Areas (11) ---------- */
.areas { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); }
.area { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .2s ease, transform .2s ease; }
.area:hover { border-color: rgba(45,212,191,.5); transform: translateY(-2px); }
.area .a-num { flex: 0 0 44px; font-family: var(--font-mono); font-size: .95rem; color: var(--teal); background: var(--grad-soft); border: 1px solid var(--border-strong); border-radius: 10px; height: 40px; display: grid; place-items: center; }
.area p { margin: 0; color: var(--text-soft); font-size: .96rem; font-weight: 600; }

/* ---------- Evidence chain ---------- */
.chain { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.chain .link { color: var(--text); font-family: var(--font-mono); font-size: .86rem; background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.35); padding: .45rem .9rem; border-radius: 8px; }
.chain .arrow { color: var(--muted-2); }

/* ---------- Services ---------- */
.service { display: flex; flex-direction: column; }
.service .srv-foot { margin-top: auto; padding-top: 1rem; font-family: var(--font-mono); font-size: .8rem; color: var(--sky); }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.tab-btn {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border-strong);
  padding: .55rem 1rem; border-radius: 999px; cursor: pointer; transition: all .18s ease;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: #04211f; background: var(--grad); border-color: transparent; }
.tab-panel { display: none; animation: fadeIn .3s ease; }
.tab-panel.active { display: block; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: .8rem; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.4rem; color: var(--teal); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { background: rgba(45,212,191,.06); }
.faq-item .faq-body { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%,260px),1fr)); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text-soft); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: .75rem .9rem; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: var(--ring);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .78rem; color: var(--muted-2); }
.radio-row { display: grid; gap: .5rem; }
.radio-row label {
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  padding: .7rem 1rem; border-radius: var(--radius-sm);
  transition: border-color .15s ease, background .15s ease; font-weight: 500; font-size: .93rem;
}
.radio-row label:hover { border-color: var(--border-strong); }
.radio-row input { accent-color: var(--teal); width: 17px; height: 17px; }
.radio-row label:has(input:checked) { border-color: var(--teal); background: var(--grad-soft); }
.form-note { display: flex; gap: .6rem; align-items: flex-start; font-size: .78rem; color: var(--muted-2); margin-top: 1.1rem; }
.form-note svg { flex: 0 0 auto; margin-top: .1rem; color: var(--green); }

/* Honeypot (bots) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* survey / checkup */
.survey { counter-reset: q; }
.q { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 1.4rem 1.5rem; margin-bottom: 1rem; }
.q .q-title { display: flex; gap: .8rem; align-items: baseline; font-weight: 600; margin-bottom: .9rem; }
.q .q-title .q-num { font-family: var(--font-mono); font-size: .82rem; color: var(--teal); }
.q .q-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.opt { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--border-strong); padding: .5rem 1rem; border-radius: 999px; background: var(--bg-2); cursor: pointer; font-size: .9rem; transition: all .15s ease; }
.opt:hover { border-color: var(--teal); }
.opt input { accent-color: var(--teal); }
.opt:has(input:checked) { background: var(--grad-soft); border-color: var(--teal); color: var(--text); }
.survey-results { margin-top: 2rem; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); font-size: .94rem; }
th { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td .k { color: var(--teal); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(45,212,191,.14), transparent 60%),
    radial-gradient(600px 300px at 95% 100%, rgba(56,189,248,.14), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
  padding: clamp(2.5rem, 5vw, 4.2rem);
  text-align: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.cta-band h2 { max-width: 26ch; margin-inline: auto; }
.cta-band p { max-width: 58ch; margin-inline: auto; color: var(--muted); }

/* ---------- Page hero (internal) ---------- */
.page-hero { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem,4vw,3.2rem); position: relative; }
.page-hero h1 { max-width: 22ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: var(--muted-2); margin-bottom: 1.4rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs .sep { color: var(--muted-2); }

/* ---------- Two-col layout ---------- */
.split { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: 1.55fr 1fr; align-items: start; }
.split.rev { grid-template-columns: 1fr 1.55fr; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 96px; }

/* ---------- Author / post ---------- */
.post-card { display: flex; flex-direction: column; gap: .9rem; }
.post-card .post-meta { font-family: var(--font-mono); font-size: .76rem; color: var(--muted-2); letter-spacing: .06em; text-transform: uppercase; }
.post-card .post-title { font-size: 1.12rem; font-weight: 650; color: var(--text); margin: 0; }
.post-card .post-title a { color: inherit; }
.post-card .post-title a:hover { color: var(--teal); text-decoration: none; }
.post-card .post-ex { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 3.4rem; }
.foot-grid { display: grid; gap: 2.4rem; grid-template-columns: 1.6fr repeat(4, 1fr); }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.foot-col h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.foot-col a { display: block; color: var(--text-soft); font-size: .92rem; padding: .28rem 0; }
.foot-col a:hover { color: var(--teal); }
.foot-legal { border-top: 1px solid var(--border); margin-top: 2.8rem; padding-block: 1.2rem; display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--muted-2); }
.foot-legal a { color: var(--muted); font-size: .82rem; }

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed; z-index: 50; right: 22px; bottom: 22px;
  box-shadow: var(--shadow-lg); animation: pulseGlow 3.5s infinite;
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 10px 30px rgba(45,212,191,.35); }
  50% { box-shadow: 0 10px 40px rgba(45,212,191,.6); }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px);
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-left: 4px solid var(--green); color: var(--text);
  padding: 1rem 1.4rem; border-radius: var(--radius-sm); font-size: .95rem;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .3s ease; z-index: 100; max-width: 92vw;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.error { border-left-color: var(--red); }

/* ---------- 404 ---------- */
.error-hero { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.error-code { font-family: var(--font-mono); font-size: clamp(4rem,14vw,8rem); font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.visible { animation: fadeUp .7s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; }
}
.animate-enter { animation: fadeIn .35s ease; }

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .gap-1 { gap: 1rem; } .items-center { align-items: center; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--teal); color: #04211f; padding: .7rem 1.2rem; border-radius: 0 0 8px 0; z-index: 200; font-weight: 700; }
.skip-link:focus { left: 0; }

/* ---------- Responsive nav ---------- */
@media (max-width: 1240px) {
  nav.nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* reduced layout on small screens */
@media (max-width: 640px) {
  .hero-actions .btn { width: 100%; }
  .quote { font-size: 1.15rem; padding: 1.6rem 1.3rem; }
  .steps.list .step { grid-template-columns: 1fr; gap: .3rem; }
}

/* Print */
@media print {
  .site-head, .site-foot, .float-cta, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}