*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; margin: 0; padding: 0; }
body { background: var(--hd-bg); color: var(--hd-ink); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }



























/* ---------- Page shell ---------- */
.tool-main {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; display: flex; justify-content: center; align-items: flex-start;
  padding: 140px var(--hd-gutter) 104px;
  background:
    radial-gradient(ellipse 52% 46% at 88% 4%, rgba(92,138,240,.22) 0%, transparent 70%),
    radial-gradient(ellipse 46% 42% at 4% 40%, rgba(111,201,247,.18) 0%, transparent 70%),
    linear-gradient(180deg, #EAF2FB 0%, #F5F9FD 50%, #FFFFFF 100%);
}
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .05;
  background-size: 180px 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.card {
  position: relative; overflow: hidden; isolation: isolate; z-index: 1;
  width: 100%; max-width: 680px;
  background: #fff; border: 1px solid var(--hd-border-2); border-radius: 28px;
  padding: 52px 48px 48px; box-shadow: 0 30px 70px rgba(10,20,60,.08);
}
.card::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 300px; aspect-ratio: 1; right: -130px; top: -140px; border-radius: 50%; opacity: .12;
  background: linear-gradient(140deg, #6FC9F7 0%, var(--hd-accent) 55%, #1414DD 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 46px), #000 calc(100% - 45px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 46px), #000 calc(100% - 45px));
}
.card > * { position: relative; z-index: 1; }
.card-glow, .card-glow-2, .card-dotgrid { display: none; }
@media (max-width: 720px) { .tool-main { padding-top: 104px; padding-bottom: 64px; } .card { padding: 36px 24px 28px; border-radius: 24px; } }

.step { display: none; }
.step.active { display: block; animation: stepIn .45s var(--hd-ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 12px; border-radius: var(--hd-r-pill);
  border: 1px solid var(--hd-border-2); background: var(--hd-surface-alt);
  font-family: var(--hd-font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--hd-ink-muted);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hd-accent); box-shadow: 0 0 0 3px rgba(34,102,184,.16); }
.card h1 { margin: 22px 0 0; font-size: clamp(2rem, 1.3rem + 2.2vw, 2.75rem); line-height: 1.12; text-wrap: balance; }
.sub { margin: 16px 0 0; max-width: 54ch; font-size: 1.0625rem; line-height: 1.65; font-weight: 300; color: var(--hd-ink-muted); }
.time { margin: 16px 0 0; display: inline-flex; align-items: center; gap: 8px; font-family: var(--hd-font-mono); font-size: .78rem; color: var(--hd-ink-soft); }
.time svg { width: 15px; height: 15px; color: var(--hd-accent); }
.step-title, .q-title { margin: 0 0 24px; font-family: var(--hd-font-display); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.65rem); font-weight: 300; line-height: 1.25; letter-spacing: -.01em; color: var(--hd-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border: 0; border-radius: var(--hd-r-pill); cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--hd-font-ui); font-size: 1rem; font-weight: 500;
  transition: transform .2s var(--hd-ease), box-shadow .2s var(--hd-ease), background .2s var(--hd-ease), color .2s var(--hd-ease);
}
.btn--primary { background: var(--hd-accent); color: #fff; box-shadow: var(--hd-shadow-accent); }
.btn--primary:hover { background: var(--hd-accent-strong); }
.btn--outline { background: #fff; color: var(--hd-accent); box-shadow: inset 0 0 0 1px var(--hd-border); }
.btn--outline:hover { box-shadow: inset 0 0 0 1px var(--hd-accent-soft); }
.btn--sm { padding: 11px 20px; font-size: .9rem; }
#step-intro .btn { margin-top: 32px; }
.step:not(#step-intro) > .btn--primary { width: 100%; margin-top: 10px; }

/* ---------- Progress ---------- */
.progress-track { height: 6px; border-radius: var(--hd-r-pill); background: var(--hd-bg-2); overflow: hidden; margin-bottom: 30px; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--hd-grad-light); transition: width .7s var(--hd-ease); }

/* ---------- Fields ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-family: var(--hd-font-ui); font-size: .9rem; font-weight: 500; color: var(--hd-ink); }
.field input {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--hd-border-2); background: var(--hd-surface-alt);
  font-family: var(--hd-font-ui); font-size: 1rem; color: var(--hd-ink);
  transition: border-color .2s var(--hd-ease), box-shadow .2s var(--hd-ease), background .2s var(--hd-ease);
}
.field input::placeholder { color: var(--hd-ink-soft); }
.field input:hover:not(:disabled) { border-color: var(--hd-accent-soft); }
.field input:focus { outline: 0; border-color: var(--hd-accent); background: #fff; box-shadow: 0 0 0 3px rgba(34,102,184,.14); }
.field input:disabled { opacity: .55; cursor: not-allowed; background: #F4F7FB; }
.field-desc { margin-top: 8px; font-size: .84rem; line-height: 1.5; font-weight: 300; color: var(--hd-ink-muted); }
.opt-tag { margin-left: 6px; padding: 2px 8px; border-radius: var(--hd-r-pill); background: var(--hd-info-bg); color: var(--hd-accent); font-family: var(--hd-font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Answer options (diagnóstico) ---------- */
.options { display: flex; flex-direction: column; gap: 10px; }
.opt {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left;
  padding: 17px 20px; border-radius: 16px; border: 1px solid var(--hd-border-2); background: #fff; cursor: pointer;
  font-family: var(--hd-font-ui); font-size: 1rem; font-weight: 500; color: var(--hd-ink);
  transition: border-color .2s var(--hd-ease), background .2s var(--hd-ease), transform .2s var(--hd-ease), box-shadow .2s var(--hd-ease);
}
.opt::after { content: ""; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid var(--hd-border); background: #fff; transition: all .2s var(--hd-ease); }
.opt:hover { border-color: var(--hd-accent-soft); box-shadow: var(--hd-shadow-sm); }
.opt.selected { border-color: var(--hd-accent); background: var(--hd-info-bg); color: var(--hd-accent-strong); }
.opt.selected::after { border-color: var(--hd-accent); background: var(--hd-accent); box-shadow: inset 0 0 0 4px #fff; }

/* ---------- Result: CAC ---------- */
.result-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 26px; }
.result-card { padding: 18px 20px; border-radius: 18px; background: var(--hd-surface-alt); border: 1px solid var(--hd-border-3); }
.result-card .lbl { font-family: var(--hd-font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--hd-ink-soft); }
.result-card .val { margin-top: 6px; font-family: var(--hd-font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); font-weight: 300; letter-spacing: -.02em; color: var(--hd-ink); white-space: nowrap; }
.result-card.diff { background: var(--hd-grad-light); border-color: transparent; box-shadow: var(--hd-shadow-accent); }
.result-card.diff .lbl { color: rgba(255,255,255,.75); }
.result-card.diff .val { color: #fff; font-weight: 400; }
.bar-compare { margin: 0 0 24px; padding: 20px; border-radius: 18px; border: 1px solid var(--hd-border-3); }
.bar-row + .bar-row { margin-top: 16px; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-family: var(--hd-font-ui); font-size: .88rem; color: var(--hd-ink-muted); }
.bar-label span:last-child { color: var(--hd-ink); font-weight: 600; }
.bar-track { height: 12px; border-radius: var(--hd-r-pill); background: var(--hd-bg-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; transition: width 1s var(--hd-ease); }
.bar-fill.marketing { background: #9DBBF6; }
.bar-fill.real { background: var(--hd-grad-light); }
.diag-box { margin-bottom: 16px; padding: 14px 18px; border-radius: 14px; font-family: var(--hd-font-ui); font-size: .93rem; line-height: 1.5; }
.diag-box.good { background: var(--hd-success-bg); color: var(--hd-success-fg); }
.diag-box.warn { background: #FEF3C7; color: #B45309; }
.diag-box.bad { background: var(--hd-danger-bg); color: var(--hd-danger-fg); }
.insight-box { margin-bottom: 26px; padding: 18px 20px; border-radius: 16px; background: var(--hd-bg-2); border: 1px solid var(--hd-border-2); font-size: .98rem; line-height: 1.65; font-weight: 300; color: var(--hd-ink-muted); }
.insight-box strong { color: var(--hd-accent); font-weight: 600; }
#benchmark-section .step-title { font-family: var(--hd-font-mono); font-size: .7rem !important; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--hd-ink-soft); }
.benchmark-table { border: 1px solid var(--hd-border-3); border-radius: 16px; overflow: hidden; }
.benchmark-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--hd-border-4); font-family: var(--hd-font-ui); font-size: .92rem; color: var(--hd-ink-muted); transition: background .2s; }
.benchmark-row:last-child { border-bottom: 0; }
.benchmark-row.active { background: var(--hd-surface-hl); color: var(--hd-ink); font-weight: 500; }
.benchmark-tag { padding: 4px 11px; border-radius: var(--hd-r-pill); font-size: .75rem; font-weight: 600; }
.benchmark-tag.excelente { background: var(--hd-success-bg); color: var(--hd-success-fg); }
.benchmark-tag.atencao { background: #FEF3C7; color: #B45309; }
.benchmark-tag.critico { background: var(--hd-danger-bg); color: var(--hd-danger-fg); }
@media (max-width: 420px) { .result-cards { grid-template-columns: 1fr; } }

/* ---------- Result: diagnóstico ---------- */
.tier-row { display: flex; flex-direction: column; align-items: center; text-align: center; }
.score-circle {
  width: 136px; height: 136px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 42px;
  background: #fff; border: 8px solid var(--hd-info-bg); box-shadow: 0 0 0 1px var(--hd-border-2), var(--hd-shadow-sm);
}
.score-circle .num { font-family: var(--hd-font-display); font-size: 2.75rem; font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--hd-ink); }
.score-circle .denom { font-family: var(--hd-font-mono); font-size: .8rem; color: var(--hd-ink-soft); margin-left: 2px; }
.badge-tier { margin-top: 18px; padding: 6px 14px; border-radius: var(--hd-r-pill); background: var(--hd-info-bg); color: var(--hd-accent); font-family: var(--hd-font-ui); font-size: .85rem; font-weight: 600; }
#step-result h1#result-tier-title { margin: 14px 0 22px !important; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
.result-desc { margin: 0 0 20px; font-size: 1.0625rem; line-height: 1.65; font-weight: 300; color: var(--hd-ink-muted); text-align: center; }
.invest-highlight { margin-bottom: 18px; padding: 14px 18px; border-radius: 14px; background: var(--hd-info-bg); color: var(--hd-accent-strong); font-family: var(--hd-font-ui); font-size: .93rem; line-height: 1.5; }
.rec-list { display: flex; flex-direction: column; gap: 10px; }
.rec-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--hd-surface-alt); border: 1px solid var(--hd-border-3); font-family: var(--hd-font-ui); font-size: .93rem; line-height: 1.5; color: var(--hd-ink); }
.rec-item .ico { flex-shrink: 0; }

/* ---------- Gerador de UTM ---------- */
.section-label { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; font-family: var(--hd-font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--hd-ink-soft); }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--hd-border-3); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-chip { padding: 10px 16px; border-radius: var(--hd-r-pill); border: 1px solid var(--hd-border-2); background: #fff; cursor: pointer; font-family: var(--hd-font-ui); font-size: .88rem; font-weight: 500; color: var(--hd-ink); transition: all .2s var(--hd-ease); }
.preset-chip:hover:not(:disabled) { border-color: var(--hd-accent); color: var(--hd-accent); background: var(--hd-info-bg); }
.preset-chip:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.btn-row .btn--primary { width: 100%; }
.btn-row .btn--outline { flex: 1; }
.result-box { display: none; margin-top: 22px; padding: 18px; border-radius: 18px; background: var(--hd-surface-alt); border: 1px solid var(--hd-border-2); grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.result-box.show { display: grid; animation: stepIn .35s var(--hd-ease) both; }
.result-box .check { display: none; grid-column: 1 / -1; font-family: var(--hd-font-ui); font-size: .88rem; font-weight: 600; color: var(--hd-success-fg); }
.result-box .check.show { display: block; }
.result-url { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--hd-border-3); font-family: var(--hd-font-mono); font-size: .82rem; line-height: 1.55; color: var(--hd-ink); word-break: break-all; }
.qr { width: 120px; height: 120px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--hd-border-3); }
@media (max-width: 560px) { .result-box { grid-template-columns: 1fr; justify-items: center; } .result-url { justify-self: stretch; } }

/* ---------- Demo modal (shared) ---------- */
#demo-modal, #lead-modal {
  display: none; position: fixed; inset: 0; padding: 24px; align-items: center; justify-content: center;
  background: rgba(10,20,40,.45); backdrop-filter: blur(8px);
}
#demo-modal { z-index: 9999; }
#lead-modal { z-index: 9998; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
#demo-modal .modal-box {
  position: relative; width: 100%; max-width: 800px; display: grid; grid-template-columns: 1.1fr .9fr;
  border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--hd-border-2);
  box-shadow: 0 40px 90px rgba(10,20,40,.3); animation: modalIn .35s var(--hd-ease) both;
}
#demo-modal .modal-glow, #demo-modal .modal-glow-2, #demo-modal .modal-dotgrid, #demo-modal .deco-dotgrid, #demo-modal .deco { display: none; }
#demo-modal .modal-close, #lead-modal .close {
  position: absolute; top: 16px; right: 16px; z-index: 5; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255,255,255,.92); border: 1px solid var(--hd-border-2); color: var(--hd-ink-muted); font-size: 22px; line-height: 1;
  transition: color .2s, transform .2s;
}
#demo-modal .modal-close:hover, #lead-modal .close:hover { color: var(--hd-ink); transform: rotate(90deg); }
#demo-modal .modal-left { position: relative; z-index: 2; display: flex; flex-direction: column; padding: 34px 32px 30px; }
#demo-modal .modal-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 6px 12px 6px 9px; border-radius: var(--hd-r-pill); border: 1px solid var(--hd-border-2); background: var(--hd-surface-alt);
  font-family: var(--hd-font-ui); font-size: .74rem; font-weight: 500; color: var(--hd-ink-muted);
}
#demo-modal .modal-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hd-accent); box-shadow: 0 0 0 3px rgba(34,102,184,.16); }
#demo-modal h2 { margin: 0 0 10px; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.5rem); font-weight: 300; line-height: 1.22; }
#demo-modal p.desc { margin: 0 0 18px; font-size: .9rem; line-height: 1.55; font-weight: 300; color: var(--hd-ink-muted); }
#demo-modal .benefits { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#demo-modal .benefits li { display: flex; align-items: center; gap: 10px; font-family: var(--hd-font-ui); font-size: .86rem; font-weight: 500; color: var(--hd-ink); }
#demo-modal .benefits .ico { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--hd-info-bg); }
#demo-modal .benefits .ico svg { width: 13px; height: 13px; }
#demo-modal .modal-left .btn { width: 100%; padding: 13px 24px; font-size: .95rem; }
#demo-modal .modal-left .btn--outline { margin-top: 8px; }
#demo-modal .modal-right {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 24px;
  background:
    radial-gradient(ellipse 80% 70% at 85% 30%, rgba(20,20,221,.75) 0%, rgba(31,30,144,.4) 40%, transparent 70%),
    linear-gradient(160deg, #0C0C20 0%, #14142E 50%, #0A0A18 100%);
}
#demo-modal .modal-right::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 340px; aspect-ratio: 1; right: -150px; bottom: -160px; border-radius: 50%; opacity: .3;
  background: linear-gradient(140deg, #6FC9F7 0%, #5C8AF0 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 52px), #000 calc(100% - 51px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 52px), #000 calc(100% - 51px));
}
#demo-modal .right-label { display: none; }
#demo-modal .mockup {
  position: relative; z-index: 1; width: 100%; max-width: 360px; padding: 16px; border-radius: 20px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px);
  box-shadow: 0 26px 64px rgba(3,8,20,.5);
}
#demo-modal .mockup-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
#demo-modal .mockup-kpi { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
#demo-modal .mockup-kpi .lbl { font-family: var(--hd-font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: #9FB6D3; margin-bottom: 4px; }
#demo-modal .mockup-kpi .val { font-family: var(--hd-font-display); font-size: 1.35rem; font-weight: 400; color: #fff; }
#demo-modal .mockup-table { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
#demo-modal .mockup-table .row { display: grid; grid-template-columns: 1.3fr 1fr .8fr; align-items: center; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.07); font-family: var(--hd-font-ui); font-size: .74rem; }
#demo-modal .mockup-table .row:last-child { border-bottom: 0; }
#demo-modal .mockup-table .head { background: rgba(255,255,255,.04); font-family: var(--hd-font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
#demo-modal .mockup-table .head .cell { color: #6FC9F7; }
#demo-modal .mockup-table .cell { color: #C7D6E8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 6px; }
#demo-modal .mockup-table .tag { display: inline-block; padding: 2px 8px; border-radius: var(--hd-r-pill); background: rgba(111,201,247,.18); color: #9BD9FB; font-size: .62rem; font-weight: 600; }
@media (max-width: 780px) {
  #demo-modal { padding: 16px; overflow-y: auto; }
  #demo-modal .modal-box { grid-template-columns: 1fr; max-width: 420px; border-radius: 24px; }
  #demo-modal .modal-left { padding: 28px 22px 22px; }
  #demo-modal .modal-right { display: none; }
  #demo-modal .modal-badge { padding-right: 12px; max-width: calc(100% - 44px); }
}

/* ---------- Lead modal (UTM guide) ---------- */
#lead-modal .box {
  position: relative; width: 100%; max-width: 420px; padding: 32px 28px 28px; border-radius: 24px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--hd-border-2); box-shadow: 0 40px 90px rgba(10,20,40,.28); animation: modalIn .35s var(--hd-ease) both;
  background: radial-gradient(ellipse 70% 60% at 100% 0%, rgba(92,138,240,.16) 0%, transparent 70%), linear-gradient(180deg, #F3F7FC 0%, #FFFFFF 60%);
}
#lead-modal h3 { margin: 0 0 18px; padding-right: 36px; font-size: 1.25rem; font-weight: 300; line-height: 1.25; }
#lead-modal .field { margin-bottom: 12px; }
#lead-modal .field input { padding: 12px 14px; }
#lead-modal .btn { width: 100%; padding: 13px 24px; font-size: .95rem; }

/* ---------- Footer ---------- */
.hd-footer { background: var(--hd-bg-2); border-top: 1px solid var(--hd-border-3); }
.hd-footer__grid { max-width: var(--hd-maxw); margin: 0 auto; padding: var(--hd-8) var(--hd-gutter) var(--hd-6); display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: var(--hd-6); }
.hd-footer__logo { height: 26px; margin-bottom: 18px; }
.hd-footer__desc { font-size: .9rem; color: var(--hd-ink-muted); max-width: 280px; line-height: 1.6; }
.hd-footer__col .hd-label { margin-bottom: 18px; display: block; }
.hd-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hd-footer__links a { font-size: .9rem; color: var(--hd-ink-muted); text-decoration: none; }
.hd-footer__links a:hover { color: var(--hd-ink); }
.hd-footer__socials { display: flex; gap: 10px; }
.hd-footer__social { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--hd-border-2); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--hd-ink-muted); transition: all .18s; }
.hd-footer__social:hover { border-color: var(--hd-accent); color: var(--hd-accent); }
.hd-footer__bar { border-top: 1px solid var(--hd-border-3); text-align: center; padding: 18px; font-size: .8125rem; color: var(--hd-ink-soft); }
@media (max-width: 900px) { .hd-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hd-footer__grid { grid-template-columns: 1fr; } }


.hero__line { white-space: normal; }
.nowrap-d { white-space: normal; }
@media (min-width: 1200px) { .hero__line, .nowrap-d { white-space: nowrap; } }
.hd-bg-wrap.hd-section-wrap { width: auto; margin-left: 0; }

.tool-main { flex-direction: column; align-items: center; gap: 24px; }
.tools-tabs { position: relative; z-index: 1; width: 100%; max-width: 680px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tools-tabs__all { font-family: var(--hd-font-mono); font-size: var(--hd-text-label); font-weight: var(--hd-w-medium); letter-spacing: var(--hd-ls-label); text-transform: uppercase; color: var(--hd-ink-soft); text-decoration: none; }
.tools-tabs__all:hover { color: var(--hd-accent); }
.tools-tabs__list { position: relative; display: flex; gap: 4px; padding: 5px; border-radius: var(--hd-r-pill); border: 1px solid var(--hd-border-2); isolation: isolate; }
.tools-tabs__list::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.tools-tabs__list a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: var(--hd-r-pill); font-family: var(--hd-font-ui); font-size: .92rem; color: var(--hd-ink-muted); text-decoration: none; white-space: nowrap; transition: background-color var(--hd-dur) var(--hd-ease), color var(--hd-dur) var(--hd-ease); }
.tools-tabs__list a svg { width: 16px; height: 16px; color: var(--hd-accent); }
.tools-tabs__list a:hover { background: var(--hd-bg-2); color: var(--hd-ink); }
.tools-tabs__list a[aria-current="page"] { background: #fff; color: var(--hd-ink); font-weight: var(--hd-w-medium); box-shadow: var(--hd-shadow-sm); }
.tools-tabs__list .short { display: none; }
@media (max-width: 560px) {
  .tools-tabs__list a { padding: 0 12px; font-size: .875rem; }
  .tools-tabs__list a svg { display: none; }
  .tools-tabs__list .full { display: none; }
  .tools-tabs__list .short { display: inline; }
}

.tools-hub__head { position: relative; z-index: 1; max-width: 720px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.tools-hub__head h1 { margin: 22px 0 0; font-size: var(--hd-text-h1); text-wrap: balance; }
.tools-hub__head .sub { margin: 16px auto 0; max-width: 56ch; font-size: var(--hd-text-lead); color: var(--hd-ink-muted); }
.tools-hub__grid { position: relative; z-index: 1; list-style: none; margin: 24px 0 0; padding: 0; width: 100%; max-width: 1120px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tools-hub__card { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 30px 28px 28px; background: #fff; border: 1px solid var(--hd-border-2); border-radius: var(--hd-r-lg); box-shadow: var(--hd-shadow-md); }
.tools-hub__card .hd-icon-circle { width: 64px; height: 64px; }
.tools-hub__card .hd-icon-circle svg { width: 28px; height: 28px; stroke-width: 1.5; }
.tools-hub__step { font-family: var(--hd-font-mono); font-size: var(--hd-text-label); letter-spacing: var(--hd-ls-label); text-transform: uppercase; color: var(--hd-ink-soft); }
.tools-hub__card h2 { margin: 0; font-size: var(--hd-text-h3); font-weight: var(--hd-w-light); }
.tools-hub__card p { margin: 0; color: var(--hd-ink-muted); font-size: .98rem; flex: 1; }
.tools-hub__meta { align-self: flex-start; }
.tools-hub__card .hd-btn { align-self: flex-start; padding: 13px 26px; font-size: 1rem; }
.tools-hub__cta { position: relative; z-index: 1; margin-top: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tools-hub__cta p { margin: 0; font-family: var(--hd-font-display); font-weight: var(--hd-w-light); font-size: var(--hd-text-h3); letter-spacing: var(--hd-ls-heading); color: var(--hd-ink); }
.tools-hub__cta div { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 960px) { .tools-hub__grid { grid-template-columns: 1fr; max-width: 560px; } }

.next-step { margin-top: 28px; padding: 22px 22px 20px; border-radius: var(--hd-r-lg); background: var(--hd-bg-2); border: 1px solid var(--hd-border-2); display: grid; gap: 8px; text-align: left; }
.next-step__label { font-family: var(--hd-font-mono); font-size: var(--hd-text-label); font-weight: var(--hd-w-medium); letter-spacing: var(--hd-ls-label); text-transform: uppercase; color: var(--hd-accent); }
.next-step__title { margin: 0; font-family: var(--hd-font-display); font-weight: var(--hd-w-light); font-size: 1.25rem; letter-spacing: var(--hd-ls-heading); line-height: 1.3; color: var(--hd-ink); }
.next-step__actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.next-step__actions .btn { padding: 12px 22px; }
.result-box .next-step { grid-column: 1 / -1; width: 100%; }
.hd-turnstile:empty { display: none; }
.hd-turnstile { margin: 4px 0 12px; }
