/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #F6F8FA;
  --surface: #FFFFFF;
  --surface-2: #F1F4F7;
  --border: #E3E8EE;
  --border-strong: #CBD3DD;
  --text: #0E1620;
  --text-muted: #57626F;
  --text-faint: #8A93A0;

  --accent: #0F9D6D;
  --accent-2: #0B7285;
  --accent-strong: #0B7A54;
  --accent-contrast: #FFFFFF;
  --accent-soft: #E7F8F1;
  --accent-soft-strong: #CFF2E3;

  --danger: #D0332F;
  --danger-soft: #FDECEC;
  --warning: #B5690A;
  --warning-soft: #FDF1DE;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 6px 20px -4px rgba(16, 24, 40, .12), 0 2px 6px -2px rgba(16,24,40,.06);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .18);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --serif: "Manrope", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0F14;
    --surface: #121A22;
    --surface-2: #1A232D;
    --border: #263140;
    --border-strong: #37455480;
    --text: #EEF2F6;
    --text-muted: #A6B1BF;
    --text-faint: #7C8798;

    --accent: #1FCF93;
    --accent-2: #29B6C8;
    --accent-strong: #17B37F;
    --accent-contrast: #04140E;
    --accent-soft: rgba(31, 207, 147, .14);
    --accent-soft-strong: rgba(31, 207, 147, .24);

    --danger: #F26D69;
    --danger-soft: rgba(242, 109, 105, .14);
    --warning: #E7A83D;
    --warning-soft: rgba(231, 168, 61, .14);

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 10px 26px -6px rgba(0,0,0,.55), 0 2px 8px -2px rgba(0,0,0,.35);
    --shadow-lg: 0 30px 60px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); text-wrap: balance; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
ul { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent-soft-strong); color: var(--text); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { max-width: 760px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--text); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-alt { padding-block: clamp(3rem, 6vw, 5.5rem); background: var(--surface-2); }

.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.section-sub { color: var(--text-muted); max-width: 60ch; margin-bottom: 2rem; font-size: 1.02rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =============================================================
   4. Buttons & badges
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.35rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s var(--ease-out), opacity .2s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  box-shadow: 0 8px 20px -6px rgba(15, 157, 109, .5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(15, 157, 109, .55); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }

.btn-ghost { color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }

.btn-sm { padding: .55rem 1rem; font-size: .875rem; }
.btn-lg { padding: .95rem 1.75rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.badge-editable {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent-strong); background: var(--accent-soft); padding: .15rem .5rem; border-radius: 999px;
}
.badge-soon {
  font-size: .72rem; font-weight: 700; color: var(--text-muted); background: var(--surface-2);
  border: 1px solid var(--border); padding: .2rem .6rem; border-radius: 999px;
}

/* =============================================================
   5. Header
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--surface); } }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.01em; }

.main-nav { display: none; align-items: center; gap: 1.75rem; font-weight: 600; font-size: .93rem; color: var(--text-muted); }
.main-nav a { transition: color .2s var(--ease-out); }
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: .75rem; }

.nav-toggle { display: flex; flex-direction: column; gap: 4px; padding: .5rem; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease-out), opacity .25s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav { display: flex; flex-direction: column; gap: .25rem; padding: .75rem 1.25rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.mobile-nav a { padding: .65rem 0; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: none; margin-top: .5rem; text-align: center; }

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero { position: relative; padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3rem); overflow: clip; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(40% 55% at 20% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(35% 45% at 85% 10%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow { color: var(--accent-strong); font-weight: 700; font-size: .85rem; letter-spacing: .02em; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); max-width: 16ch; }
.hero-sub { margin-top: 1.1rem; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; font-size: .88rem; color: var(--text-muted); font-weight: 600; }

/* =============================================================
   7. Cards & form controls
   ============================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.field-group { margin-bottom: 1.35rem; }
.field-group > label, .field-group > legend, fieldset.field-group > legend { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .5rem; }
.req { color: var(--danger); }
fieldset.field-group { border: none; padding: 0; }
.field-hint { font-size: .82rem; color: var(--text-faint); margin-top: .4rem; }

.input-money, .input-pct {
  display: flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); overflow: hidden; transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.input-money:focus-within, .input-pct:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input-prefix, .input-suffix { padding: 0 .85rem; color: var(--text-faint); font-weight: 700; background: var(--surface-2); align-self: stretch; display: flex; align-items: center; }
.input-money input, .input-pct input {
  border: 0; background: transparent; padding: .85rem .9rem; width: 100%; font-size: 1.05rem; font-weight: 600;
  min-height: 48px;
}
.input-money input:focus, .input-pct input:focus { outline: none; }
input[type="number"] { -moz-appearance: textfield; }

.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem 1rem; margin-top: .75rem; }
.mini-grid label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.mini-grid input { border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); padding: .65rem .75rem; font-size: .95rem; font-weight: 600; color: var(--text); background: var(--surface); min-height: 44px; }
.mini-grid input:focus-visible { border-color: var(--accent); }

.inline-details { margin-top: .75rem; }
.inline-details summary { cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--accent-strong); list-style: none; }
.inline-details summary::-webkit-details-marker { display: none; }
.inline-details summary::before { content: "+ "; }
.inline-details[open] summary::before { content: "− "; }

.radio-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio-chip {
  display: flex; align-items: center; gap: .5rem; padding: .6rem .95rem; border-radius: 999px;
  border: 1.5px solid var(--border-strong); font-size: .87rem; font-weight: 600; cursor: pointer;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.radio-chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.radio-chip input { accent-color: var(--accent); }

.checkbox-row { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .93rem; cursor: pointer; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--accent); }

.chip-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: .9rem; }
.chip-btn {
  padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--border-strong);
  font-size: .85rem; font-weight: 600; color: var(--text-muted);
  transition: all .2s var(--ease-out);
}
.chip-btn:hover { border-color: var(--accent); color: var(--text); }
.chip-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

.segmented { display: inline-flex; padding: 4px; background: var(--surface-2); border-radius: 999px; border: 1px solid var(--border); gap: 2px; }
.segmented-outline { background: transparent; }
.segmented-sm { transform: scale(.92); transform-origin: left center; margin-bottom: .65rem; }
.segmented-btn {
  padding: .55rem 1.1rem; border-radius: 999px; font-size: .87rem; font-weight: 700; color: var(--text-muted);
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out);
  white-space: nowrap;
}
.segmented-btn.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented-outline .segmented-btn.is-active { background: var(--accent); color: var(--accent-contrast); box-shadow: none; }

.calc-errors {
  background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .9rem; font-weight: 600; margin-top: .5rem;
}
.calc-errors ul { padding-left: 1.1rem; list-style: disc; }

/* =============================================================
   8. Calculator layout
   ============================================================= */
.calc-toolbar { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: space-between; align-items: center; margin-bottom: 1.75rem; }

.calc-shell { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
@media (min-width: 960px) {
  .calc-shell { grid-template-columns: 1.15fr 1fr; gap: 2rem; }
  .result-panel { position: sticky; top: calc(var(--header-h) + 1.25rem); }
}

[data-simple-only][hidden], [data-advanced-only][hidden] { display: none !important; }

/* =============================================================
   9. Result panel
   ============================================================= */
.result-panel { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.result-label { font-weight: 700; color: var(--text-muted); font-size: .95rem; }
.result-price { margin: .35rem 0 1.25rem; }
.result-price span {
  font-family: var(--serif); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.2rem);
  letter-spacing: -0.02em; background: linear-gradient(135deg, var(--accent-strong), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.result-breakdown { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.1rem; }
.breakdown-row { display: flex; justify-content: space-between; align-items: center; font-size: .93rem; padding: .35rem 0; border-bottom: 1px dashed var(--border); }
.breakdown-row:last-child { border-bottom: none; font-weight: 800; color: var(--accent-strong); font-size: 1rem; }
.breakdown-row .label { color: var(--text-muted); font-weight: 600; }
.breakdown-row:last-child .label { color: var(--accent-strong); }
.breakdown-row .value { font-weight: 700; font-variant-numeric: tabular-nums; }

.result-bar {
  display: flex; width: 100%; height: 14px; border-radius: 999px; overflow: hidden;
  background: var(--surface-2); margin-bottom: .65rem; box-shadow: inset 0 0 0 1px var(--border);
}
.result-bar span { height: 100%; transition: width .7s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .result-bar span { transition: none; } }
.bar-costo { background: #9CA3AF; }
.bar-comisiones { background: var(--warning); }
.bar-impuestos { background: #6366F1; }
.bar-ganancia { background: var(--accent); }

.result-bar-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .78rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.result-bar-legend li { display: flex; align-items: center; gap: .4rem; font-weight: 600; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem .9rem; }
.stat-card .stat-label { font-size: .74rem; color: var(--text-faint); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .25rem; }
.stat-card .stat-value { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-card.is-warning .stat-value { color: var(--danger); }

.explain-box { border-top: 1px solid var(--border); padding-top: .85rem; margin-top: .5rem; }
.explain-box summary { cursor: pointer; font-weight: 700; font-size: .9rem; list-style: none; }
.explain-box summary::-webkit-details-marker { display: none; }
.explain-box p, .formula-text { margin-top: .65rem; font-size: .88rem; color: var(--text-muted); line-height: 1.65; }
.formula-text code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 4px; font-size: .85em; }
.formula-text .formula-line { margin-bottom: .5rem; }

.ai-box { margin: 1rem 0; }
.ia-hint { font-size: .78rem; color: var(--text-faint); margin-top: .5rem; text-align: center; }
.ia-resultado {
  margin-top: .85rem; background: var(--accent-soft); border: 1px solid var(--accent-soft-strong);
  border-radius: var(--radius-sm); padding: .9rem 1rem; font-size: .92rem; line-height: 1.6; color: var(--text);
  white-space: pre-line;
}
.ia-error {
  margin-top: .85rem; background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .88rem; font-weight: 600; color: var(--danger);
}
.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; top: 50%; left: 50%;
  margin: -8px 0 0 -8px; border: 2px solid currentColor; border-radius: 50%;
  border-top-color: transparent; color: var(--text-muted); animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::after { animation-duration: 1.4s; } }

.discount-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; font-weight: 700; font-size: .88rem; margin-top: .75rem; }
.discount-badge.is-ok { background: var(--accent-soft); color: var(--accent-strong); }
.discount-badge.is-bad { background: var(--danger-soft); color: var(--danger); }

/* =============================================================
   10. Comparator table
   ============================================================= */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare-table { min-width: 560px; }
.compare-table th, .compare-table td { padding: .9rem 1.1rem; text-align: left; font-size: .92rem; }
.compare-table thead th { background: var(--surface-2); font-weight: 700; color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.compare-table tbody tr { border-top: 1px solid var(--border); }
.compare-table tbody tr:hover { background: var(--surface-2); }
.compare-table .cell-input { display: inline-flex; align-items: center; gap: .3rem; }
.compare-table .cell-input input { width: 64px; border: 1.5px solid var(--border-strong); border-radius: 8px; padding: .35rem .4rem; font-weight: 700; text-align: right; }
.compare-table .price-cell { font-weight: 800; font-variant-numeric: tabular-nums; }
.compare-table .profit-cell { font-weight: 700; color: var(--accent-strong); font-variant-numeric: tabular-nums; }

/* =============================================================
   11. Discount simulator
   ============================================================= */
.discount-box { max-width: 640px; }
.discount-result { margin-top: 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.discount-stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: .85rem .95rem; }
.discount-stat .stat-label { font-size: .76rem; color: var(--text-faint); font-weight: 700; text-transform: uppercase; }
.discount-stat .stat-value { font-size: 1.2rem; font-weight: 800; margin-top: .2rem; font-variant-numeric: tabular-nums; }

/* =============================================================
   12. How it works / advantages / tools
   ============================================================= */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 720px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; position: relative; }
.step-num { position: absolute; top: 1.25rem; right: 1.5rem; font-family: var(--serif); font-weight: 800; font-size: 1.5rem; color: var(--border-strong); }
.step-icon { width: 40px; height: 40px; color: var(--accent-strong); margin-bottom: 1rem; }
.step-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step-card p { color: var(--text-muted); font-size: .93rem; }

.advantages-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 720px) { .advantages-grid { grid-template-columns: repeat(2, 1fr); } }
.advantage-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.advantage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.advantage-icon { font-size: 1.6rem; display: block; margin-bottom: .75rem; }
.advantage-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.advantage-card p { color: var(--text-muted); font-size: .92rem; }

.tools-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.tool-card.is-live { border-style: solid; border-color: var(--accent); }
.tool-card h3 { font-size: 1rem; }
.tool-card .tool-status { align-self: flex-start; }

/* =============================================================
   13. FAQ
   ============================================================= */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .3rem 1.1rem; }
.faq-item summary { padding: 1rem 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--text-faint); flex-shrink: 0; transition: transform .25s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.1rem; color: var(--text-muted); font-size: .94rem; line-height: 1.65; }

/* =============================================================
   14. SEO content
   ============================================================= */
.seo-content h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.seo-content h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: .5rem; }
.seo-content p { color: var(--text-muted); margin-bottom: .5rem; }
.seo-content code { background: var(--surface-2); padding: .1rem .4rem; border-radius: 4px; font-size: .88em; }
.seo-content .disclaimer { margin-top: 1.5rem; font-size: .84rem; color: var(--text-faint); border-top: 1px solid var(--border); padding-top: 1rem; }

/* =============================================================
   15. Ad slots
   ============================================================= */
.ad-slot {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: var(--surface-2);
  border: 2px dashed var(--border-strong); border-radius: var(--radius-sm);
  overflow: hidden;
}
.ad-slot:has(ins.adsbygoogle[data-ad-status="filled"]) {
  display: block; background: transparent; border: none; padding: 0;
}
.ad-slot:has(ins.adsbygoogle[data-ad-status="filled"]) .ad-label {
  position: absolute; top: 4px; left: 4px; z-index: 1;
  background: color-mix(in srgb, var(--surface) 85%, transparent); font-size: .62rem; padding: .2rem .55rem;
}
.ad-slot ins.adsbygoogle { width: 100%; }
.ad-label {
  background: var(--surface); color: var(--text-muted); padding: .5rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--border-strong); font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.ad-leaderboard { min-height: 100px; margin-block: 2rem; }
.ad-incontent { min-height: 250px; margin-block: 2.5rem; }
.ad-sidebar {
  display: none;
  width: 160px; min-height: 500px;
}
@media (min-width: 1700px) {
  .ad-sidebar {
    display: flex; position: fixed; top: 50%; right: 24px; transform: translateY(-50%); z-index: 40;
  }
}

.ad-dialog {
  border: none; border-radius: var(--radius-lg); padding: 1.25rem; max-width: 420px; width: calc(100% - 2rem);
  box-shadow: var(--shadow-lg); background: var(--surface); color: var(--text);
}
.ad-dialog::backdrop { background: rgba(10, 15, 20, .55); backdrop-filter: blur(2px); }
.ad-dialog-close { position: absolute; top: .6rem; right: .8rem; font-size: 1.4rem; line-height: 1; color: var(--text-faint); padding: .25rem .5rem; }
.ad-dialog-close:hover { color: var(--text); }
.ad-dialog-slot { min-height: 200px; margin-block: .5rem 1rem; }

.corner-toast {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 90; width: min(300px, calc(100vw - 2rem));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .6rem; animation: toast-in .4s var(--ease-out);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .corner-toast { animation: none; } }
.corner-toast-close { position: absolute; top: -.5rem; right: -.5rem; width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 1rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.ad-corner-slot { min-height: 80px; }

@media (max-width: 719px) { .corner-toast { display: none; } }

/* =============================================================
   16. Footer
   ============================================================= */
.site-footer { background: var(--text); color: color-mix(in srgb, var(--bg) 88%, white); padding-block: 3rem 1.5rem; }
@media (prefers-color-scheme: dark) { .site-footer { background: #060A0E; } }
.site-footer .brand-name { color: #fff; font-family: var(--serif); font-weight: 800; font-size: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand p { margin-top: .6rem; color: rgba(255,255,255,.6); font-size: .9rem; max-width: 30ch; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.5); margin-bottom: .85rem; }
.footer-col a { display: block; color: rgba(255,255,255,.78); font-size: .92rem; margin-bottom: .6rem; transition: color .2s var(--ease-out); }
.footer-col a:hover { color: #fff; }
.footer-disclaimer { color: rgba(255,255,255,.5); font-size: .82rem; max-width: 70ch; margin-top: 1.5rem; }
.footer-copy { color: rgba(255,255,255,.4); font-size: .82rem; margin-top: .75rem; }

/* =============================================================
   17. Number pop micro-interaction
   ============================================================= */
.value-pop { animation: pop .35s var(--ease-out); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .value-pop { animation: none; } }

/* =============================================================
   18. Responsive niceties
   ============================================================= */
@media (max-width: 539px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .discount-result { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; }
}
