/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  color-scheme: dark;
  --bg: #0b1210;
  --bg-2: #0f1a17;
  --surface: #13201c;
  --surface-2: #182924;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef5f1;
  --muted: #93a8a0;
  --accent: #1fd17a;
  --accent-2: #12a85f;
  --accent-soft: rgba(31, 209, 122, .12);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, .12);
  --gold: #ffd166;
  --radius: 18px;
  --radius-sm: 12px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 16px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(31, 209, 122, .14), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(18, 168, 95, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { 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 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
kbd {
  font: 600 .8em/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px;
  padding: .2em .45em; border-radius: 6px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--accent); color: var(--bg); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
[hidden] { display: none !important; }

/* =============================================================
   4. Header
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 16, .78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: .01em; }
.logo b { color: var(--accent); font-weight: 800; }
.header-nav { display: none; gap: 24px; font-size: .92rem; color: var(--muted); }
.header-nav a { transition: color .2s var(--ease-out); }
.header-nav a:hover { color: var(--text); }

/* =============================================================
   5. Hero + tool card
   ============================================================= */
.hero { padding: 22px 0 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(31, 209, 122, .25);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(31, 209, 122, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(31, 209, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 209, 122, 0); } }
.hero h1 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 7.4vw, 3.9rem); line-height: .98; max-width: 16ch;
}
.hero-sub { color: var(--muted); margin: 10px 0 16px; max-width: 60ch; font-size: .93rem; line-height: 1.5; }

.tool-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.noscript { color: var(--gold); margin-bottom: 10px; }
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.tool-label { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.tool-label .step-pill { margin-right: 6px; vertical-align: 1px; }
.tool-label .muted { font-weight: 400; font-size: .85rem; }
.step-pill {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--bg); font-size: .75rem; font-weight: 800;
}
.link-btn { color: var(--accent); font-size: .88rem; font-weight: 600; padding: 4px 0; border-bottom: 1px dashed rgba(31, 209, 122, .5); transition: opacity .2s; }
.link-btn:hover { opacity: .8; }

.input-wrap { position: relative; }
textarea {
  width: 100%; min-height: 120px; height: 19vh; max-height: 420px; resize: vertical;
  background: rgba(0, 0, 0, .28); color: var(--text);
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 14px; font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
textarea::placeholder { color: #6f857d; font-family: var(--sans); font-size: 14px; }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.drop-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  border: 2px dashed var(--accent); border-radius: var(--radius-sm);
  background: rgba(11, 18, 16, .9); color: var(--accent); font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.input-wrap.is-drag .drop-overlay { opacity: 1; }

.input-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .8rem; margin: 8px 0 4px; }
.rich-badge { color: var(--accent); font-weight: 600; }
.file-link { margin-left: auto; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.file-link:hover { color: var(--text); }

.settings { margin: 6px 0 14px; font-size: .88rem; }
.settings summary { cursor: pointer; color: var(--muted); width: fit-content; list-style: none; display: flex; align-items: center; gap: 6px; }
.settings summary::-webkit-details-marker { display: none; }
.settings summary::before { content: "⚙"; }
.settings[open] summary { color: var(--text); margin-bottom: 10px; }
.settings-grid { display: grid; gap: 10px; margin-bottom: 8px; }
.settings label { display: grid; gap: 4px; color: var(--muted); font-size: .82rem; }
.settings input {
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 10px; padding: 9px 11px; font: inherit; font-size: .95rem;
}
.settings input:focus { outline: none; border-color: var(--accent); }

.btn-primary {
  position: relative; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 22px; border-radius: 14px;
  background: linear-gradient(180deg, #2be588, var(--accent-2));
  color: #04140c; font-weight: 800; font-size: 1.05rem; letter-spacing: .01em;
  box-shadow: 0 10px 30px -10px rgba(31, 209, 122, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), filter .18s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(31, 209, 122, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:active { transform: translateY(1px) scale(.99); }
.btn-loading { display: none; align-items: center; gap: 10px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(4, 20, 12, .3); border-top-color: #04140c; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.progress { height: 3px; border-radius: 3px; overflow: hidden; margin-top: 10px; background: transparent; }
.progress span { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 3px; transform: translateX(-110%); }

.tool-card[data-state="working"] .btn-label { display: none; }
.tool-card[data-state="working"] .btn-loading { display: inline-flex; }
.tool-card[data-state="working"] .btn-primary { pointer-events: none; filter: saturate(.8); }
.tool-card[data-state="working"] .progress { background: var(--line); }
.tool-card[data-state="working"] .progress span { animation: indet 1s var(--ease-out) infinite; }
@keyframes indet { to { transform: translateX(260%); } }
.tool-card[data-state="error"] textarea { border-color: var(--danger); }
.tool-card.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.tool-error {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: .88rem;
  background: var(--danger-soft); color: #ffb3b3; border: 1px solid rgba(255, 107, 107, .3);
}
.privacy-badge { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.privacy-badge svg { color: var(--accent); flex: none; margin-top: 2px; }

/* =============================================================
   6. Results
   ============================================================= */
.results { padding: 8px 0 26px; scroll-margin-top: 70px; }
.results.is-in { animation: rise .5s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.results-head { display: grid; gap: 14px; margin-bottom: 16px; }
.results-head h2 { font-family: var(--display); font-size: clamp(1.7rem, 5vw, 2.4rem); text-transform: uppercase; }
.results-head p { font-size: .88rem; margin-top: 4px; }
.export-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-ghost, .btn-download {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: .9rem;
  transition: background .18s var(--ease-out), transform .18s var(--ease-out), border-color .18s;
}
.btn-ghost { border: 1px solid var(--line-2); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .25); }
.btn-ghost.is-ok { border-color: var(--accent); color: var(--accent); }
.btn-download { background: var(--accent); color: #04140c; font-weight: 800; flex: 1 1 auto; justify-content: center; }
.btn-download:hover { transform: translateY(-1px); filter: brightness(1.08); }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.kpi-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.kpi-value { font-family: var(--display); font-size: 1.55rem; font-weight: 700; line-height: 1.1; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.is-good .kpi-value { color: var(--accent); }
.kpi.is-bad .kpi-value { color: var(--danger); }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.standings { width: 100%; border-collapse: collapse; font-size: .92rem; }
.standings th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 600; padding: 12px 10px; border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .15);
}
.standings th button { text-transform: inherit; letter-spacing: inherit; font-weight: inherit; color: inherit; padding: 0; }
.standings th button:hover { color: var(--text); }
.standings th button.is-sorted { color: var(--accent); }
.standings th button.is-sorted::after { content: " ▼"; font-size: .8em; }
.standings th button.is-sorted[data-dir="1"]::after { content: " ▲"; }
.standings td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.standings tr.row { cursor: pointer; transition: background .15s; }
.standings tr.row:hover { background: rgba(255, 255, 255, .03); }
.standings tr.row.is-open { background: rgba(31, 209, 122, .05); }
.c-rank { width: 34px; color: var(--muted); font-weight: 700; font-family: var(--display); font-size: 1.05rem; }
.rank-1 .c-rank { color: var(--gold); }
.c-name strong { display: block; font-weight: 600; line-height: 1.25; word-break: break-word; }
.c-name small { color: var(--muted); font-size: .75rem; }
.c-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-num.in { color: var(--accent); }
.c-num.out { color: #ff9b9b; }
th.c-num { text-align: right; }
.c-bal { text-align: right; min-width: 120px; }
.bal-value { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 1rem; }
.bal-value.neg { color: var(--danger); }
.bal-bar { height: 4px; border-radius: 4px; background: var(--line); margin-top: 6px; overflow: hidden; }
.bal-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 4px; transform-origin: left; animation: grow .7s var(--ease-out); }
.bal-bar.neg span { background: var(--danger); }
@keyframes grow { from { transform: scaleX(0); } }
.c-last { white-space: nowrap; font-size: .85rem; }
.c-last small { display: block; color: var(--muted); font-size: .74rem; }
.c-chev { width: 28px; text-align: center; color: var(--muted); }
.c-chev svg { transition: transform .25s var(--ease-out); margin: 0 auto; }
.row.is-open .c-chev svg { transform: rotate(180deg); color: var(--accent); }

.detail td { padding: 0; background: rgba(0, 0, 0, .18); }
.detail-inner { padding: 12px 14px 16px; }
.detail-sum { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; margin-bottom: 10px; }
.detail-sum b { font-variant-numeric: tabular-nums; }
.moves { list-style: none; padding: 0; display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.move { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .83rem; }
.move-type { font-weight: 600; }
.move-amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.move-amt.in { color: var(--accent); }
.move-amt.out { color: #ff9b9b; }
.move-text { grid-column: 1 / -1; color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.table-hint { margin-top: 10px; }

.log { margin-top: 16px; font-size: .85rem; }
.log summary { cursor: pointer; color: var(--muted); width: fit-content; }
.log pre {
  margin-top: 10px; max-height: 260px; overflow: auto; white-space: pre-wrap;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; color: #b9cbc4;
}

/* =============================================================
   7. Ads (placeholders)
   ============================================================= */
.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: #e9ecea; color: #5d6662;
  border: 2px dashed #a9b2ae; border-radius: 12px;
  text-align: center; margin: 22px auto;
}
.ad-slot span { font-weight: 800; letter-spacing: .2em; font-size: .85rem; }
.ad-slot small { font-size: .72rem; opacity: .8; }
.ad-leaderboard { min-height: 100px; max-width: 728px; }
.ad-infeed { min-height: 250px; max-width: 820px; }
.ad-interstitial { min-height: 250px; width: 100%; margin: 12px 0 14px; }

.ad-modal {
  border: 0; padding: 0; background: transparent; color: var(--text);
  width: min(92vw, 380px); max-width: none; margin: auto;
}
.ad-modal::backdrop { background: rgba(3, 8, 6, .75); backdrop-filter: blur(4px); }
.ad-modal[open] { animation: pop .3s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(.95) translateY(8px); } }
.ad-modal-inner {
  position: relative; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 18px 16px 16px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8);
}
.ad-modal-title { font-weight: 700; padding-right: 40px; }
.ad-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .08);
  transition: background .18s, transform .18s var(--ease-out);
}
.ad-close:hover { background: rgba(255, 255, 255, .16); transform: rotate(90deg); }
.btn-continue { font-size: .95rem; padding: 13px 18px; }

.ad-corner {
  position: fixed; right: 12px; bottom: 12px; z-index: 60;
  width: 230px; min-height: 84px; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: #e9ecea; color: #5d6662; border: 2px dashed #a9b2ae; border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
  animation: slideIn .45s var(--ease-out);
}
.ad-corner span { font-weight: 800; letter-spacing: .2em; font-size: .78rem; }
.ad-corner small { font-size: .68rem; }
.ad-corner-close {
  position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: #26332e; color: #fff; border: 1px solid var(--line-2);
}
@keyframes slideIn { from { opacity: 0; transform: translateY(20px); } }

/* =============================================================
   8. Content sections
   ============================================================= */
.section { padding: 46px 0; }
.section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, .03)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.7rem, 5.4vw, 2.6rem); margin-bottom: 20px; max-width: 24ch; }
.section-sub { color: var(--muted); max-width: 64ch; margin: -6px 0 22px; }

.steps { list-style: none; padding: 0; display: grid; gap: 14px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; transition: border-color .2s, transform .2s var(--ease-out);
}
.step:hover { border-color: rgba(31, 209, 122, .35); transform: translateY(-2px); }
.step-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.step-num { position: absolute; top: 16px; right: 18px; font-family: var(--display); font-size: 2.2rem; font-weight: 800; color: rgba(255, 255, 255, .06); }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .93rem; }
.tip { margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(31, 209, 122, .25); background: var(--accent-soft); font-size: .92rem; }

.prose { max-width: 820px; }
.prose p { color: #c7d6d0; margin-bottom: 14px; }
.prose h3 { font-size: 1.2rem; margin: 26px 0 12px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 28px; color: #c7d6d0; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3 3 7-7' fill='none' stroke='%231fd17a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }

.ideas { display: grid; gap: 14px; }
.idea {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: border-color .2s, transform .2s var(--ease-out), background .2s;
}
.idea:hover { border-color: rgba(31, 209, 122, .35); transform: translateY(-2px); background: var(--surface-2); }
.idea-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }
.idea h3 { font-size: 1.08rem; margin-bottom: 6px; }
.idea p { color: var(--muted); font-size: .92rem; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(31, 209, 122, .3); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 16px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; transition: transform .25s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 16px 16px; color: var(--muted); font-size: .93rem; }

/* =============================================================
   9. Footer
   ============================================================= */
.site-footer { padding: 34px 0 120px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 12px; }
.small-logo { font-size: 1.3rem; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }

/* =============================================================
   10. Responsive
   ============================================================= */
@media (max-width: 539px) {
  .hero-sub { display: none; }
  .hero h1 { margin-bottom: 14px; }
  textarea { min-height: 96px; height: 13vh; }
  .copy-steps { font-size: .82rem; }
  .hide-sm { display: none; }
  .hide-xs { display: none; }
  .standings td, .standings th { padding-left: 8px; padding-right: 8px; }
  .ad-corner { width: 180px; min-height: 64px; right: 10px; bottom: 10px; }
}
@media (min-width: 540px) {
  .show-xs { display: none; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .btn-download { flex: 0 0 auto; }
}
@media (min-width: 540px) and (max-width: 719px) {
  .hide-sm { display: none; }
}
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .header-nav { display: flex; }
  .hero { padding: 40px 0 36px; }
  .tool-card { padding: 22px; }
  textarea { height: 26vh; min-height: 150px; }
  .hero-sub { font-size: 1rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .ideas { grid-template-columns: repeat(2, 1fr); }
  .results-head { grid-template-columns: 1fr auto; align-items: end; }
  .section { padding: 64px 0; }
  .btn-primary { width: auto; min-width: 280px; }
}
@media (min-width: 960px) {
  .ideas { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-inner .muted { grid-column: 1 / -1; }
  .site-footer nav { justify-content: flex-end; }
}

/* =============================================================
   12. Guías
   ============================================================= */
/* Instrucciones de copia */
.copy-steps { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; font-size: .86rem; color: #c7d6d0; }
.copy-steps li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.copy-steps .step-pill { flex: none; margin-top: 1px; }
.copy-steps kbd { font-size: .78em; }
.copy-warn { font-size: .8rem; color: var(--gold); background: rgba(255,209,102,.08); border: 1px solid rgba(255,209,102,.25); border-radius: 10px; padding: 7px 10px; margin-bottom: 10px; }
.copy-alert { margin-top: 10px; font-size: .88rem; color: var(--gold); background: rgba(255,209,102,.08); border: 1px solid rgba(255,209,102,.3); border-radius: 12px; padding: 10px 12px; }
/* Guías */
.header-cta { display: none; }
.article { padding-top: 28px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--accent); }
.article-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(2rem, 6.4vw, 3.2rem); line-height: 1; margin: 8px 0 14px; }
.article-lead { font-size: 1.08rem; color: #d7e4de !important; }
.prose h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.5rem, 4.6vw, 2rem); margin: 34px 0 12px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin-bottom: 16px; }
.num-list { padding-left: 22px; display: grid; gap: 10px; color: #c7d6d0; }
.num-list li::marker { color: var(--accent); font-weight: 700; }
.cta-box { margin: 22px 0; padding: 18px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(31,209,122,.16), rgba(31,209,122,.05)); border: 1px solid rgba(31,209,122,.35); }
.cta-box p { margin-bottom: 10px; }
.cta-title { font-weight: 700; color: var(--text) !important; font-size: 1.05rem; }
.prose .cta-btn, .cta-btn { display: inline-block; background: var(--accent); color: #04140c; font-weight: 800; padding: 11px 16px; border-radius: 12px; text-decoration: none; transition: transform .18s var(--ease-out), filter .18s; }
.cta-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.guide-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .2s, transform .2s var(--ease-out), background .2s; }
.guide-card:hover { border-color: rgba(31,209,122,.35); transform: translateY(-2px); background: var(--surface-2); }
.guide-card h3 { font-size: 1.08rem; margin-bottom: 6px; line-height: 1.25; }
.guide-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.guide-more { margin-top: 12px; color: var(--accent); font-weight: 600; font-size: .9rem; }
.section-cta { margin-top: 20px; }
@media (min-width: 720px) {
  .header-cta { display: inline-flex; background: var(--accent); color: #04140c; font-weight: 800; font-size: .88rem; padding: 8px 14px; border-radius: 10px; }
}

/* =============================================================
   11. Reduced motion (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
  .tool-card.shake { animation: none; }
}
