:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1e222b;
  --line: #2a2f3a;
  --text: #e7ebf0;
  --muted: #9aa4b2;
  --brand: #ffb020;
  --brand-2: #ff8a00;
  --accent: #4cc38a;
  --radius: 14px;
  --maxw: 960px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15,17,21,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #1a1200; font-weight: 900; font-size: 18px;
}
.brand b { color: var(--brand); }
.nav a.navlink { color: var(--muted); font-weight: 600; margin-left: 20px; font-size: 15px; }
.nav a.navlink:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px){ .nav a.navlink:not(.primary){ display:none; } }

/* Hero */
.hero { padding: 56px 0 28px; text-align: center; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); margin: 0 0 12px; line-height: 1.15; }
.hero h1 span { color: var(--brand); }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; }

/* Calculator grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 28px 0; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; transition: transform .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--brand); text-decoration: none; }
.card .emoji { font-size: 26px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Calculator tool */
.tool {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 24px 0;
}
.tool h2 { margin-top: 0; }
.field { margin: 14px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.field .hint { color: var(--muted); font-weight: 400; font-size: 12px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; font-size: 16px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text);
}
.field input:focus, .field select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px){ .row { grid-template-columns: 1fr; } }
button.calc {
  width: 100%; padding: 14px; margin-top: 8px; font-size: 16px; font-weight: 800; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #1a1200;
  border: none; border-radius: 10px;
}
button.calc:hover { filter: brightness(1.05); }
.result {
  margin-top: 20px; padding: 18px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line); display: none;
}
.result.show { display: block; }
.result .big { font-size: 30px; font-weight: 800; color: var(--accent); }
.result ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.result li b { color: var(--text); }

/* Ad + affiliate slots */
.adslot {
  margin: 24px 0; padding: 14px; text-align: center; color: var(--muted); font-size: 12px;
  border: 1px dashed var(--line); border-radius: 12px; background: #12151b;
}
.affiliate { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 24px 0; }
.affiliate h3 { margin-top: 0; }
.affiliate .items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; }
.affiliate .item { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.affiliate .item .price { color: var(--accent); font-weight: 700; }

/* Content */
.content { margin: 30px 0; }
.content h2 { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.content h3 { color: var(--brand); }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 4px 16px; margin: 10px 0; background: var(--panel); }
.faq summary { cursor: pointer; font-weight: 600; padding: 10px 0; }

/* Footer */
footer.site { border-top: 1px solid var(--line); margin-top: 50px; padding: 30px 0; color: var(--muted); font-size: 14px; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
footer.site a { color: var(--muted); }
.disclosure { font-size: 12px; color: var(--muted); background: #12151b; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 16px 0; }
