/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --ink: #0f1b2d;
  --ink-2: #46546a;
  --ink-3: #7a879b;
  --line: #dde3ee;
  --accent: #1463d8;
  --accent-ink: #ffffff;
  --accent-soft: #e6effc;
  --accent-2: #e08a12;
  --danger: #b4322a;
  --danger-soft: #fbeceb;
  --good: #0f8a5f;
  --good-soft: #e3f5ec;
  --warn: #b25e09;
  --warn-soft: #fff3e0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 10px 30px rgba(15, 27, 45, .07);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1120px;
  color-scheme: light;
}


/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

/* =============================================================
   4. Header & footer
   ============================================================= */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 60px;
}
.logo {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em;
}
.logo svg { width: 28px; height: 28px; }
.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a {
  font-size: .9rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: .4rem .7rem; border-radius: 999px;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 959px) {
  .site-header .container { flex-wrap: wrap; gap: .15rem 1rem; padding: .55rem 0 .4rem; min-height: 0; }
  .site-nav {
    flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
}

/* Guides (articles) */
.article { max-width: 760px; }
.article .meta { font-size: .85rem; color: var(--ink-3); margin-top: .4rem; }
.article h2 { font-size: 1.45rem; margin: 2.2rem 0 .7rem; }
.article h3 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
.article p, .article li { color: var(--ink-2); }
.article p + p { margin-top: .8rem; }
.article ul, .article ol { padding-left: 1.2rem; margin-top: .6rem; display: grid; gap: .35rem; }
.callout {
  margin: 1.2rem 0; padding: .9rem 1rem; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--ink); border-left: 4px solid var(--accent);
}
.callout p { color: var(--ink); }
.cta-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem;
  margin: 1.6rem 0; padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.cta-box strong { display: block; color: var(--ink); }
.cta-box span { font-size: .9rem; color: var(--ink-2); }
.guide-list { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 720px) { .guide-list { grid-template-columns: repeat(2, 1fr); } }

.site-footer {
  margin-top: 4rem; padding: 2rem 0 3rem;
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer a { color: var(--ink-2); }

/* =============================================================
   5. Hero (H1 + subtitle)
   ============================================================= */
.tool-hero { padding: 1.5rem 0 1rem; }
.tool-hero h1 { font-size: clamp(1.55rem, 1.1rem + 2vw, 2.4rem); font-weight: 800; }
.tool-hero p { color: var(--ink-2); margin-top: .4rem; max-width: 60ch; }

/* =============================================================
   6. Tool card & form controls
   ============================================================= */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}
.field { display: grid; gap: .3rem; }
.field label, .field .label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: .78rem; }
.input-wrap { position: relative; display: flex; align-items: stretch; }
.input-wrap .affix {
  display: flex; align-items: center; padding: 0 .7rem;
  font-size: .85rem; color: var(--ink-3); background: var(--surface-2);
  border: 1px solid var(--line);
}
.input-wrap .affix.pre { border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-wrap .affix.post { border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-wrap input { flex: 1; min-width: 0; }
.input-wrap .affix.pre + input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-wrap input:has(+ .affix.post) { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-wrap .affix.pre + input:has(+ .affix.post) { border-radius: 0; }

input[type="number"], input[type="text"], select, textarea {
  width: 100%;
  padding: .6rem .75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
textarea { font-family: var(--mono); font-size: .8rem; line-height: 1.5; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .65rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line);
  text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn:hover { background: var(--line); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-lg { padding: .85rem 1.4rem; font-size: 1rem; }
.btn.is-done { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 999px; border: 1px solid var(--line); }
.seg button {
  padding: .45rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-2);
  white-space: nowrap;
}
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.privacy {
  display: flex; align-items: flex-start; gap: .5rem;
  margin-top: .9rem; font-size: .85rem; color: var(--ink-2);
}
.privacy svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 2px; }

.noscript-note {
  padding: 1rem; border-radius: var(--radius-sm);
  background: var(--danger-soft); color: var(--danger); font-weight: 500;
}

/* =============================================================
   7. Salary tools (sueldo neto + aguinaldo)
   ============================================================= */
.sal { display: grid; gap: 1.25rem; }
.sal-form { display: grid; gap: 1rem; align-content: start; }
.mode-switch { display: flex; }
.mode-switch .seg { width: 100%; }
.mode-switch .seg button { flex: 1; }
.mode-switch .seg button small { font-weight: 500; color: var(--ink-3); font-size: .8em; }

.money-field label { font-size: .9rem; font-weight: 700; color: var(--ink); }
.money-input {
  display: flex; align-items: center; gap: .4rem;
  padding: .35rem .9rem; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.money-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.money-input span { font-size: 1.5rem; font-weight: 700; color: var(--ink-3); }
.money-input input {
  border: 0 !important; box-shadow: none !important; padding: .35rem 0 !important;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; background: transparent; min-width: 0; width: 100%;
}
.money-input input:focus { outline: none; }
.money-input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.quick-amounts { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.quick-amounts button {
  padding: .25rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.quick-amounts button:hover { border-color: var(--accent); color: var(--accent); }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  font-size: .88rem; font-weight: 600; color: var(--ink-2); min-height: 52px;
}
.opt.span-2 { grid-column: 1 / -1; }
.opt small { display: block; font-weight: 500; color: var(--ink-3); font-size: .74rem; }

.opts-hint {
  display: flex; align-items: flex-start; gap: .5rem; margin: 0;
  padding: .6rem .75rem; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink-2); font-size: .82rem; line-height: 1.45;
}
.opts-hint svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.opts-hint.is-active { background: var(--good-soft); color: var(--good); }
.opts-hint.is-active svg { color: var(--good); }

/* Lawyer box (indemnización) */
.lawyer-box {
  padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
}
.lawyer-box:empty { display: none; }
.lawyer-box h2 { font-size: 1.05rem; margin: 0 0 .35rem; }
.lawyer-box p { font-size: .9rem; color: var(--ink-2); }
.lawyer-box ul { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .9rem; color: var(--ink-2); display: grid; gap: .25rem; }
.lawyer-card { margin-top: .8rem; padding: .85rem .9rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.lawyer-card strong { display: block; color: var(--ink); }
.lawyer-card .meta { font-size: .78rem; color: var(--ink-3); }
.lawyer-card .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.btn-wa { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.btn-wa:hover { background: #1f9d55; filter: brightness(1.07); }
.lawyer-box .fineprint { font-size: .75rem; color: var(--ink-3); margin-top: .6rem; }
.lawyer-box .tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .2rem; }

/* toggle switch */
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i {
  position: absolute; inset: 0; border-radius: 999px; background: var(--line);
  transition: background .2s var(--ease-out);
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease-out);
}
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.stepper button { width: 32px; height: 32px; font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.stepper button:hover { background: var(--accent-soft); }
.stepper button[disabled] { color: var(--ink-3); background: none; cursor: not-allowed; }
.stepper output { min-width: 22px; text-align: center; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

.more-opts { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.more-opts > summary {
  cursor: pointer; list-style: none; padding: .7rem .8rem; font-size: .88rem; font-weight: 600; color: var(--ink-2);
  display: flex; justify-content: space-between; align-items: center;
}
.more-opts > summary::-webkit-details-marker { display: none; }
.more-opts > summary::after { content: "+"; font-size: 1.1rem; color: var(--ink-3); }
.more-opts[open] > summary::after { content: "−"; }
.more-opts .body { display: grid; gap: .8rem; padding: 0 .8rem .9rem; }
.small-money { display: flex; align-items: stretch; }
.small-money span {
  display: flex; align-items: center; padding: 0 .7rem; font-size: .85rem; color: var(--ink-3);
  background: var(--surface-2); border: 1px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.small-money input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }
.small-money.post span { order: 2; border-right: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.small-money.post input { border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important; }
.form-error {
  display: none; padding: .65rem .85rem; border-radius: var(--radius-sm);
  background: var(--danger-soft); color: var(--danger); font-size: .88rem; font-weight: 500;
}
.sal[data-state="error"] .form-error { display: block; }
.sal[data-state="error"] .sal-result { opacity: .35; pointer-events: none; }

/* result */
.sal-result { display: grid; gap: 1rem; align-content: start; transition: opacity .2s; }
.take-home {
  padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: linear-gradient(135deg, #1463d8 0%, #0d4fb3 100%); color: #fff;
  box-shadow: 0 10px 30px rgba(20, 99, 216, .25);
}
.take-home .k { font-size: .9rem; font-weight: 600; opacity: .9; }
.take-home .v {
  font-size: clamp(2rem, 1.5rem + 2.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.take-home .sub { font-size: .88rem; opacity: .9; margin-top: .2rem; }

.split-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.split-bar i { display: block; height: 100%; transition: width .35s var(--ease-out); }
.split-bar .b-net { background: var(--accent); }
.split-bar .b-aport { background: #9db7e0; }
.split-bar .b-gan { background: var(--accent-2); }
.split-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; color: var(--ink-2); margin-top: .45rem; }
.split-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.split-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.receipt { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.receipt h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: .75rem .9rem 0; margin: 0; }
.receipt ul { list-style: none; padding: .4rem .9rem .5rem; margin: 0; }
.receipt li {
  display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0;
  border-bottom: 1px dashed var(--line); font-size: .92rem; color: var(--ink-2);
}
.receipt li:last-child { border-bottom: 0; }
.receipt li b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; white-space: nowrap; }
.receipt li.minus b { color: var(--danger); }
.receipt li.total { border-top: 2px solid var(--ink); border-bottom: 0; margin-top: .2rem; padding-top: .6rem; color: var(--ink); font-weight: 700; }
.receipt li.total b { font-weight: 800; color: var(--accent); font-size: 1.05rem; }
.receipt li small { display: block; font-size: .74rem; color: var(--ink-3); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.fact { padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.fact .k { font-size: .74rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.fact .v { font-size: clamp(.95rem, .85rem + .5vw, 1.1rem); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fact .v.good { color: var(--good); }
.fact a { font-size: .8rem; font-weight: 600; }

.badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600;
}
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.result-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.vigencia { font-size: .8rem; color: var(--ink-3); }
.vigencia a { color: var(--ink-2); }

.date-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
.sal > *, .date-row > *, .opts > * { min-width: 0; }
.field input[type="date"], .field input[type="number"], .field select { min-width: 0; max-width: 100%; }
.field input[type="date"] { width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.countdown {
  display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--ink);
}
.countdown strong { font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .88rem; color: var(--ink-2); }

.mini-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mini-table th, .mini-table td { padding: .5rem .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.mini-table td:last-child, .mini-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.mini-table thead th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-top: 1rem; }

.sticky-net {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem;
  background: var(--ink); color: #fff; border-radius: 14px; text-decoration: none;
  box-shadow: 0 10px 30px rgba(15, 27, 45, .3);
  font-size: .85rem;
}
.sticky-net strong { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sticky-net .go { margin-left: auto; opacity: .8; font-weight: 600; white-space: nowrap; }
@media (min-width: 960px) { .sticky-net { display: none !important; } }
@media print { .sticky-net { display: none !important; } }

.soon { opacity: .75; }
.soon em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--accent-2); text-transform: uppercase; letter-spacing: .05em; }


/* =============================================================
   9. Ads, content, FAQ, more tools
   ============================================================= */
.ad-slot {
  display: grid; place-items: center; min-height: 100px; margin: 2rem 0;
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  color: var(--ink-3); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
}
.ad-slot.in-content { min-height: 250px; }

.content { max-width: 760px; }
.content h2 { font-size: 1.45rem; margin: 2.4rem 0 .8rem; }
.content h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }
.content p, .content li { color: var(--ink-2); }
.content p + p { margin-top: .8rem; }
.content ul, .content ol { padding-left: 1.2rem; margin-top: .6rem; display: grid; gap: .35rem; }
.formula {
  margin: 1rem 0; padding: .9rem 1rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--mono); font-size: .92rem; overflow-x: auto;
}
.steps { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-top: 1rem; }
.step { padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.step .n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .85rem; margin-bottom: .4rem;
}
.step h3 { margin: 0 0 .2rem; font-size: 1rem; }
.step p { font-size: .9rem; }

.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  padding: 0 1rem; margin-top: .6rem;
}
.faq summary { cursor: pointer; padding: .85rem 0; font-weight: 600; color: var(--ink); }
.faq details p { padding-bottom: .9rem; }

.more-tools { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-top: 1rem; }
.tool-link {
  display: block; padding: 1rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.tool-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-link strong { display: block; }
.tool-link span { font-size: .88rem; color: var(--ink-2); }
.tool-link[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); }

.legal { max-width: 760px; padding-top: 2rem; }
.legal h1 { font-size: 2rem; margin-bottom: 1rem; }
.legal h2 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-2); }
.todo { background: #fff3c4; color: #5c4500; padding: 0 .25rem; border-radius: 4px; }

/* =============================================================
   10. Responsive
   ============================================================= */
@media (max-width: 539px) {
  .site-nav a { padding: .35rem .5rem; font-size: .82rem; }

  .seg button { padding: .45rem .7rem; font-size: .82rem; }
  .opts { grid-template-columns: 1fr; gap: .5rem; }
  .opts .opt:not(.span-2) small { display: none; }
  .sticky-net span:first-child { white-space: nowrap; }
  .opt { padding: .5rem .65rem; min-height: 46px; font-size: .85rem; }
  .stepper button { width: 28px; height: 30px; }
  .tool-hero p { font-size: .92rem; }
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .more-tools { grid-template-columns: repeat(2, 1fr); }
  .tool-card { padding: 1.5rem; }
}
@media (min-width: 960px) {
  .sal { grid-template-columns: minmax(320px, 420px) 1fr; gap: 1.75rem; }
}

@media print {
  .site-header, .site-footer, .ad-slot, .calc-actions, .faq, .more-tools-section { display: none; }
  .table-scroll { max-height: none; overflow: visible; }
}

/* =============================================================
   11. Reduced motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tool-link:hover { transform: none; }
}
