:root {
  --bg: #08110d;
  --panel: #0e1a14;
  --panel-2: #12241a;
  --line: #254031;
  --text: #f3f7f4;
  --muted: #9cb0a2;
  --accent: #9bea65;
  --accent-strong: #b9ff8d;
  --danger: #ff9a8f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% -5%, rgba(126, 229, 107, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 18%, rgba(56, 189, 248, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-strong); }

.container { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(8, 17, 13, 0.78);
  border-bottom: 1px solid rgba(156, 176, 162, 0.14);
}

.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 820; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #07100a; font-weight: 900; box-shadow: 0 0 0 5px rgba(155, 234, 101, 0.08); }
.nav-links { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }

.hero { padding: 90px 0 44px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(18, 36, 26, 0.68); color: var(--accent-strong); padding: 7px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.hero h1 { max-width: 820px; margin: 20px auto 16px; font-size: clamp(42px, 7vw, 78px); line-height: 0.98; letter-spacing: -0.06em; }
.hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: clamp(17px, 2.4vw, 21px); }

.calculator-shell {
  margin: 28px auto 0;
  background: rgba(14, 26, 20, 0.94);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}

.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.editor-head .label { font-size: 13px; font-weight: 760; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.editor-actions { display: flex; gap: 8px; }
.button { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 10px; padding: 8px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.button:hover { border-color: var(--accent); }

textarea {
  width: 100%; min-height: 270px; resize: vertical; border: 0; outline: 0; padding: 24px; background: transparent; color: var(--text); font: 15px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
textarea::placeholder { color: #607466; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.metric { padding: 18px 22px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-size: 28px; letter-spacing: -0.04em; }
.metric span { color: var(--muted); font-size: 13px; }

.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 0; }
.control { background: rgba(14, 26, 20, 0.7); border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; text-align: left; }
.control label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.control input { width: 100%; border: 1px solid var(--line); background: #09140e; color: var(--text); border-radius: 10px; padding: 11px 12px; font: inherit; outline: none; }
.control input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(155, 234, 101, 0.09); }

.microcopy { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.microcopy strong { color: var(--text); }

.section { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 18px; }
.section h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.045em; }
.section-head p { max-width: 600px; margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14, 26, 20, 0.72); }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid rgba(37, 64, 49, 0.72); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.075em; background: rgba(18, 36, 26, 0.72); }
tr:last-child td { border-bottom: 0; }
.is-cheapest { background: rgba(155, 234, 101, 0.055); }
.model-name { font-weight: 740; white-space: nowrap; }
.provider { color: var(--muted); font-size: 12px; margin-top: 3px; }
.pill { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: #07100a; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.04em; vertical-align: 2px; }
.fit { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 800; }
.fit.yes { color: var(--accent-strong); background: rgba(155, 234, 101, 0.1); }
.fit.no { color: var(--danger); background: rgba(255, 154, 143, 0.1); }
.usage-bar { width: 110px; height: 4px; margin-top: 8px; border-radius: 99px; overflow: hidden; background: #213027; }
.usage-bar span { display: block; height: 100%; background: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { min-height: 185px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(145deg, rgba(18, 36, 26, 0.88), rgba(10, 21, 14, 0.82)); }
.card .icon { font-size: 23px; }
.card h3 { margin: 26px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card.soon { opacity: 0.66; }

.info-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 30px; align-items: start; }
.info-copy p { color: var(--muted); }
.info-list { display: grid; gap: 10px; }
.info-item { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: rgba(14, 26, 20, 0.64); }
.info-item strong { display: block; margin-bottom: 4px; }
.info-item span { color: var(--muted); font-size: 14px; }

.faq { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: rgba(14, 26, 20, 0.6); }
summary { cursor: pointer; font-weight: 720; }
details p { margin: 10px 0 0; color: var(--muted); }

.disclaimer { margin-top: 14px; color: var(--muted); font-size: 12px; }
.disclaimer a { text-decoration: underline; text-underline-offset: 3px; }

.site-footer { margin-top: 45px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; }
.footer-links { display: flex; gap: 18px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { padding-top: 68px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .cards { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 8px; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 22px, 1160px); }
  .hero h1 { font-size: 44px; }
  .control-grid { grid-template-columns: 1fr; }
  textarea { min-height: 230px; padding: 18px; }
  .editor-head { align-items: flex-start; }
  .footer-inner { padding: 24px 0; display: block; }
  .footer-links { margin-top: 12px; flex-wrap: wrap; }
}


/* V2 standalone tool pages */
.narrow { width: min(820px, calc(100% - 36px)); margin: 0 auto; }
.tool-hero { padding: 72px 0 18px; text-align: center; }
.tool-hero h1 { max-width: 900px; margin: 18px auto 14px; font-size: clamp(38px, 6vw, 66px); line-height: 1.02; letter-spacing: -0.055em; }
.tool-hero p { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--text); font-weight: 700; }
.tool-section { padding-top: 24px; }
.input-panel { border: 1px solid var(--line); border-radius: 20px; background: rgba(14, 26, 20, 0.82); padding: 20px; box-shadow: var(--shadow); }
.control-grid-3 { grid-template-columns: repeat(3, 1fr); margin: 0; }
.metrics-4 { grid-template-columns: repeat(4, 1fr); }
.big-input { font-size: 30px !important; font-weight: 760; letter-spacing: -0.03em; }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.result-grid-2 { grid-template-columns: repeat(2, 1fr); }
.stat-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(9, 20, 14, 0.7); }
.stat-card span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.055em; }
.stat-card strong { display: block; font-size: clamp(22px, 3vw, 31px); letter-spacing: -0.04em; }
.result-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; background: rgba(14, 26, 20, 0.7); text-align: left; }
.result-inline div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.result-inline span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.result-inline strong { display: block; font-size: 24px; letter-spacing: -0.04em; }
.text-link { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
a.card { display: block; transition: transform 140ms ease, border-color 140ms ease, background 140ms ease; }
a.card:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); background: linear-gradient(145deg, rgba(24, 48, 34, 0.92), rgba(10, 21, 14, 0.88)); }
@media (max-width: 860px) { .metrics-4 { grid-template-columns: repeat(2, 1fr); } .metrics-4 .metric:nth-child(2) { border-right: 0; } .control-grid-3 { grid-template-columns: 1fr; } .result-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .narrow { width: min(100% - 22px, 820px); } .tool-hero { padding-top: 50px; } .tool-hero h1 { font-size: 40px; } .metrics-4 { grid-template-columns: 1fr; } .metrics-4 .metric { border-right: 0; } .result-grid, .result-grid-2 { grid-template-columns: 1fr; } .result-inline { grid-template-columns: 1fr; } .result-inline div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 10px; } }
