* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b0e14;
  --panel: #131824;
  --panel-2: #1a2130;
  --border: #253048;
  --text: #e6ebf4;
  --muted: #93a0b4;
  --accent: #4ade80;
  --accent-dim: #14532d;
  --warn: #facc15;
  --bad: #f87171;
  --link: #7dd3fc;
  --radius: 12px;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.1rem; }

header.hero { padding: 3.2rem 0 2rem; text-align: center; }
.hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); letter-spacing: -0.02em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p.tag { color: var(--muted); margin-top: 0.7rem; max-width: 34rem; margin-inline: auto; }
.hero .badges { margin-top: 1rem; display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.badge {
  font-size: 0.75rem; color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.2rem 0.7rem; background: var(--panel);
}

.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.2rem;
}

.grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.3rem; font-weight: 600; }
select, input[type="number"] {
  width: 100%; padding: 0.65rem 0.7rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  font-size: 0.95rem; appearance: auto;
}
select:focus, input:focus { outline: 2px solid var(--accent-dim); border-color: var(--accent); }

.checkline { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; color: var(--muted); font-size: 0.87rem; }
.checkline input { accent-color: var(--accent); width: 1rem; height: 1rem; }

#verdict { margin-top: 1.2rem; border-radius: var(--radius); padding: 1.1rem 1.2rem; border: 1px solid var(--border); }
#verdict.comfortable { border-color: var(--accent); background: rgba(74, 222, 128, 0.07); }
#verdict.tight { border-color: var(--warn); background: rgba(250, 204, 21, 0.06); }
#verdict.reduce-context { border-color: var(--warn); background: rgba(250, 204, 21, 0.06); }
#verdict.no-fit { border-color: var(--bad); background: rgba(248, 113, 113, 0.06); }
#verdict h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
#verdict p { color: var(--muted); font-size: 0.92rem; }

.bar { margin-top: 0.9rem; height: 14px; border-radius: 7px; background: var(--panel-2); overflow: hidden; display: flex; }
.bar span { height: 100%; display: block; }
.bar .seg-w { background: #3b82f6; }
.bar .seg-k { background: #a78bfa; }
.bar .seg-o { background: #64748b; }
.bar.over { outline: 2px solid var(--bad); }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.55rem; font-size: 0.78rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 0.35rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
td .note { display: block; color: var(--muted); font-size: 0.8rem; }
.table-scroll { overflow-x: auto; }

h2 { font-size: 1.25rem; margin-bottom: 0.8rem; }
h2 small { color: var(--muted); font-weight: 400; font-size: 0.85rem; display: block; margin-top: 0.2rem; }
section { margin-bottom: 2.2rem; }

.cat-title { color: var(--accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 1rem 0 0.3rem; }

.how p, .how li { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.6rem; }
.how ul { padding-left: 1.2rem; }
.how strong { color: var(--text); }

/* pricing */
.plans { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--accent); }
.plan h3 { font-size: 1.05rem; }
.plan .price { font-size: 1.9rem; font-weight: 700; margin: 0.5rem 0; }
.plan .price small { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; margin: 0.4rem 0 1.1rem; flex: 1; }
.plan li { padding: 0.28rem 0; color: var(--muted); font-size: 0.9rem; }
.plan li::before { content: "✓ "; color: var(--accent); }
.btn {
  display: inline-block; text-align: center; padding: 0.7rem 1.2rem; border-radius: 8px;
  font-weight: 600; text-decoration: none; font-size: 0.95rem; border: 1px solid var(--border);
  color: var(--text); background: var(--panel-2); cursor: pointer;
}
.btn.primary { background: var(--accent); color: #052e16; border-color: var(--accent); }
.btn[aria-disabled="true"] { opacity: 0.65; cursor: default; }
.soon { margin-top: 0.55rem; font-size: 0.8rem; color: var(--warn); text-align: center; }

.cta-float { text-align: center; margin: 1.6rem 0 0; }

details { border: 1px solid var(--border); border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 0.6rem; background: var(--panel); }
summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; }
details p { color: var(--muted); font-size: 0.9rem; margin-top: 0.6rem; }

footer { border-top: 1px solid var(--border); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.85rem; text-align: center; }
footer a { color: var(--link); text-decoration: none; }
