/* Crawlable content pages. Same palette as the app: dark, candle green/red for direction, gold accent. */
/* Light and dark themes, same tokens as the app. The visitor's choice (sun/moon button) wins;
   otherwise the device setting decides. */
:root {
  --bg: #0b0e14; --panel: #11151d; --raised: #181d27; --line: #222836; --line-strong: #353d4e;
  --text: #e7eaf0; --muted: #8d96a7; --accent: #8f82ff; --brand: #6c5ce7; --brand-2: #00b4d8; --accent-ink: #ffffff; --warn: #f0b90b; --warn-soft: rgba(240, 185, 11, 0.12);
  --up: #26a69a; --down: #ef5350; --accent-soft: rgba(124, 108, 255, 0.14); --topbar: rgba(17, 21, 29, 0.85);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  --bg: #f4f5f8; --panel: #ffffff; --raised: #eef0f4; --line: #e1e4ea; --line-strong: #c7ccd6;
  --text: #131720; --muted: #5a6374; --accent: #5240d6; --brand: #6150e8; --brand-2: #0aa2c0; --accent-ink: #ffffff; --warn: #946800; --warn-soft: rgba(240, 185, 11, 0.16);
  --up: #08846f; --down: #d33a3f; --accent-soft: rgba(97, 80, 232, 0.1); --topbar: rgba(255, 255, 255, 0.88);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 2px 8px rgba(16, 24, 40, 0.04);
  color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f5f8; --panel: #ffffff; --raised: #eef0f4; --line: #e1e4ea; --line-strong: #c7ccd6;
  --text: #131720; --muted: #5a6374; --accent: #5240d6; --brand: #6150e8; --brand-2: #0aa2c0; --accent-ink: #ffffff; --warn: #946800; --warn-soft: rgba(240, 185, 11, 0.16);
  --up: #08846f; --down: #d33a3f; --accent-soft: rgba(97, 80, 232, 0.1); --topbar: rgba(255, 255, 255, 0.88);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 2px 8px rgba(16, 24, 40, 0.04);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  padding: 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { color: var(--text); font-weight: 700; text-decoration: none; font-size: 17px; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--raised); }
.nav a.active { color: var(--text); background: var(--raised); box-shadow: inset 0 -2px 0 var(--accent); }
.subnav { padding: 4px max(16px, env(safe-area-inset-left, 0px)); background: var(--panel); border-bottom: 1px solid var(--line); }
.subnav a { font-size: 13px; padding: 4px 10px; }
.strip { padding: 6px 16px; font-size: 13px; color: var(--muted); background: var(--warn-soft); border-bottom: 1px solid var(--line); }
.strip b { color: var(--warn); }

.content {
  max-width: 820px; margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px));
}
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 0 0 10px; text-wrap: balance; }
h2 { font-size: 21px; margin: 34px 0 10px; text-wrap: balance; }
h3 { font-size: 17px; margin: 22px 0 6px; }
p, li { max-width: 68ch; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
.lede { color: var(--muted); font-size: 18px; }
.muted { color: var(--muted); font-size: 14px; }
.up { color: var(--up); }
.down { color: var(--down); }
.price { font-size: clamp(30px, 6vw, 44px); font-weight: 800; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }

.hint {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin: 16px 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; color: var(--text);
}
.hint-i {
  flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--accent-ink); font: 700 12px/1 Georgia, serif;
}

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 18px 0; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.stats dt { font-size: 12.5px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats .note { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--panel); }
td { font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

.callout { margin: 18px 0; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.callout.open { border-color: var(--up); }
.callout.open b { color: var(--up); }
.callout.closed b { color: var(--down); }

.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cards li { margin: 0; max-width: none; }
.cards a {
  display: grid; gap: 4px; height: 100%; padding: 12px 14px; border-radius: 10px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
}
.cards a:hover { border-color: var(--accent); }
.cards span { color: var(--muted); font-size: 14px; }
.button {
  display: inline-block; padding: 10px 16px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--accent-ink);
  font-weight: 700; text-decoration: none;
}
.news li { margin: 8px 0; }
.big-list li { margin: 12px 0; }
.faq { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--line); }

.foot { padding: 20px 16px 32px; border-top: 1px solid var(--line); background: var(--panel); font-size: 14px; color: var(--muted); }
.foot p { max-width: 820px; margin: 6px auto; }
.foot b { color: var(--warn); }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- header, theme button, polish ---------- */
h1, h2, h3, .brand, .price { font-family: "Space Grotesk", Inter, system-ui, sans-serif; letter-spacing: -0.01em; }
.top { position: sticky; top: 0; z-index: 20; flex-wrap: nowrap; background: var(--topbar);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.top .nav { flex: 1; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo-mark { flex: none; border-radius: 9px; box-shadow: 0 4px 14px var(--accent-soft); }
.wordmark { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; color: var(--text); }
.wm-eze { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon-btn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; padding: 0;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--accent); border-color: var(--line-strong); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.stats div, .cards a, .callout, .hint, .table-wrap { border-radius: 12px; box-shadow: var(--shadow); }
.cards a { transition: border-color 0.15s, transform 0.15s; }
.cards a:hover { transform: translateY(-1px); }
.button:hover { filter: brightness(1.08); }
@media (max-width: 760px) {
  .top { flex-wrap: wrap; }
  .top .nav { order: 3; flex-basis: 100%; }
  .top .icon-btn { margin-left: auto; }
}

/* ---------- Ezetrad: home, tiles, tools, guides, ads, footer ---------- */
.content.wide { max-width: 1120px; }
.content.wide p, .content.wide li { max-width: none; }
.hero { position: relative; padding: 40px 0 28px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -40px -20% auto; height: 380px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%); }
.hero h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.035em; margin: 14px 0 14px; }
.hero .lede { margin: 0 auto; max-width: 640px; font-size: clamp(16px, 2.2vw, 19px); }
.grad { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill { display: inline-block; margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 16px; }
.button { padding: 12px 20px; color: #fff; box-shadow: 0 8px 22px var(--accent-soft); }
.button.ghost { background: var(--panel); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.button.ghost:hover { border-color: var(--accent); filter: none; }
.status-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--down); }
.dot.open { background: var(--up); box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.2); }
.content section { margin-top: 34px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { margin: 0 0 12px; }
.sec-head a { font-size: 14px; text-decoration: none; font-weight: 600; }
.tiles, .tools, .why-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.tiles li, .tools li, .why-grid li { margin: 0; max-width: none; }
.tile { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.15s; }
.tile:hover, .tool:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.tile-name { font-weight: 700; }
.tile-sub { font-size: 12px; color: var(--muted); }
.tile-price { font-family: "Space Grotesk", Inter, sans-serif; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 6px; }
.tile-chg { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tools { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tool { display: grid; gap: 6px; align-content: start; height: 100%; padding: 16px 18px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.15s; }
.tool b { font-size: 16px; }
.tool span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.tool .tile-price { color: var(--text); font-size: 22px; }
.ico { color: var(--accent); padding: 8px; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); box-sizing: border-box; }
.why { padding: 24px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.why h2 { margin-top: 0; }
.why-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.why-grid b { display: block; font-size: 16px; margin-bottom: 4px; }
.why-grid span { color: var(--muted); font-size: 14.5px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.article-meta { color: var(--muted); font-size: 14px; margin: -2px 0 12px; }
.cta-box { margin: 28px 0 8px; padding: 18px 20px; border-radius: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); }
.cta-box p { margin: 0; }
.ad { margin: 26px 0; padding: 8px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); min-height: 120px; }
.ad-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.foot { padding: 36px max(16px, env(safe-area-inset-left, 0px)) 28px; }
.foot-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 24px; }
.foot-about p { max-width: 38ch; margin: 10px 0 0; font-size: 14px; line-height: 1.6; }
.foot-col { display: grid; gap: 8px; align-content: start; font-size: 14px; }
.foot-col h2 { margin: 0 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); font-family: Inter, sans-serif; }
.foot-col a { color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--accent); }
.foot-copy { max-width: 1120px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 860px) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .hero { padding-top: 20px; }
}
.content section.hero { margin-top: 0; padding-top: 16px; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr 1fr; } }

/* ---------- calculators ---------- */
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; margin: 20px 0;
  padding: 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.calc input, .calc select { font: 500 16px/1.3 Inter, system-ui, sans-serif; padding: 11px 12px; border-radius: 10px; min-width: 0;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-out { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: baseline;
  padding: 16px 18px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.calc-out span { color: var(--muted); font-size: 14px; }
.calc-out b { font-family: "Space Grotesk", Inter, sans-serif; font-size: 22px; font-variant-numeric: tabular-nums; }
.calc-out b.big { font-size: 30px; }
.calc-out small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.foot-inner { grid-template-columns: 1.6fr repeat(5, 1fr); }
@media (max-width: 1000px) { .foot-inner { grid-template-columns: repeat(3, 1fr); } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-inner { grid-template-columns: 1fr 1fr; } }
