:root {
  --ink: #101828;
  --ink-soft: #475467;
  --ink-faint: #98a2b3;
  --line: #e4e7ec;
  --paper: #ffffff;
  --wash: #f6f8fb;
  --brand: #0f3d5c;
  --brand-soft: #e8f1f7;
  --accent: #f0a202;
  --good: #067647;
  --good-soft: #ecfdf3;
  --warn: #b54708;
  --warn-soft: #fffaeb;
  --bad: #b42318;
  --bad-soft: #fef3f2;
  --grow: #175cd3;
  --grow-soft: #eff8ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--wash);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .4em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
em { font-style: normal; }

.muted { color: var(--ink-soft); font-size: .88rem; }
.center { text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .09em;
  font-size: .72rem; font-weight: 700; color: var(--brand);
  margin-bottom: .5rem;
}

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; gap: 1.25rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  background: var(--paper); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 1rem;
}
.site-nav { margin-left: auto; display: flex; gap: 1.4rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-weight: 500; }
.site-nav a:hover { color: var(--brand); }
.plan-chip {
  font-size: .75rem; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); padding: .3rem .7rem; border-radius: 999px;
}

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem) 4rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; max-width: 46rem; }
.hero-copy { font-size: 1.08rem; color: var(--ink-soft); max-width: 40rem; }
.trust-row { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.trust-row li {
  font-size: .82rem; font-weight: 500; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line);
  padding: .4rem .8rem; border-radius: 999px;
}
.trust-row li::before { content: "✓ "; color: var(--good); font-weight: 700; }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1.5rem;
}
.card-sub { color: var(--ink-soft); font-size: .93rem; max-width: 52rem; }
.step {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: .25rem .6rem; border-radius: 6px; margin-bottom: .7rem;
}

/* ---------- upload ---------- */
.drop-zone {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 2.2rem 1rem; margin-top: 1rem; cursor: pointer;
  border: 2px dashed #cdd5df; border-radius: var(--radius);
  background: var(--wash); text-align: center; transition: .15s;
}
.drop-zone:hover, .drop-zone.dragging { border-color: var(--brand); background: var(--brand-soft); }
.drop-zone input { display: none; }
.upload-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-size: 1.1rem; margin-bottom: .3rem;
}
.file-status { margin-top: .8rem; font-size: .9rem; color: var(--brand); min-height: 1.3em; font-weight: 500; }

.divider { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0 .9rem; color: var(--ink-faint); font-size: .78rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- buttons ---------- */
.primary-button {
  appearance: none; border: 0; cursor: pointer;
  background: var(--brand); color: #fff;
  font-size: .95rem; font-weight: 600; font-family: inherit;
  padding: .8rem 1.5rem; border-radius: 10px; margin-top: 1.2rem;
}
.primary-button:hover:not(:disabled) { background: #0b2e46; }
.primary-button:disabled { background: #cdd5df; cursor: not-allowed; }

.ghost-button {
  display: inline-block; cursor: pointer;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: .55rem 1rem; font-size: .87rem; font-weight: 600;
  font-family: inherit; text-decoration: none;
}
.ghost-button:hover { border-color: var(--brand); color: var(--brand); }
.ghost-button.is-locked { opacity: .45; }
.ghost-button.is-locked::after { content: " · Pro"; color: var(--accent); }

/* ---------- settings ---------- */
.settings {
  display: grid; gap: 1.1rem; margin-top: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.settings label { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; font-weight: 600; }
.settings small { font-weight: 400; color: var(--ink-soft); font-size: .78rem; line-height: 1.4; }
.settings input, .settings select {
  font: inherit; font-size: .95rem; font-weight: 600;
  padding: .55rem .7rem; border: 1px solid var(--line);
  border-radius: 9px; background: var(--paper); color: var(--ink); width: 100%;
}
.settings input:focus, .settings select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.input-suffix { position: relative; }
.input-suffix em { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-size: .85rem; font-weight: 600; }
.input-suffix input { padding-right: 3rem; }
.hint {
  margin-top: 1.1rem; padding: .7rem .9rem; border-radius: 9px;
  background: var(--warn-soft); border: 1px solid #fedf89;
  font-size: .87rem; color: #7a2e0e;
}

/* ---------- results ---------- */
.results-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin: 2.5rem 0 1rem; }
.results-tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.verdict {
  background: var(--brand); color: #fff; border-radius: var(--radius);
  padding: 1.1rem 1.3rem; font-size: 1rem; font-weight: 500; margin-bottom: 1.5rem;
}

.headline { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 1.75rem; }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; box-shadow: var(--shadow);
}
.stat__label { font-size: .78rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.stat__value { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; }
.stat__note { font-size: .78rem; color: var(--ink-faint); }
.stat--positive .stat__value { color: var(--good); }
.stat--negative .stat__value { color: var(--bad); }
.stat--highlight { background: var(--brand-soft); border-color: #bcd7e8; }
.stat--highlight .stat__value { color: var(--brand); }

/* ---------- action cards ---------- */
.actions { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.action {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--ink-faint);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem;
}
.action--waste  { border-left-color: var(--bad); }
.action--reduce { border-left-color: var(--warn); }
.action--watch  { border-left-color: var(--accent); }
.action--grow   { border-left-color: var(--grow); }
.action--good   { border-left-color: var(--good); }

.action__head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1rem; }
.action__num {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-size: .8rem; font-weight: 700;
}
.action__head h3 { margin: 0 0 .15rem; }
.action__lead { margin: 0; font-size: .87rem; color: var(--ink-soft); }
.action__impact {
  margin-left: auto; flex: none; font-weight: 700; font-size: 1rem;
  background: var(--wash); border-radius: 8px; padding: .3rem .7rem; white-space: nowrap;
}
.action--waste .action__impact, .action--reduce .action__impact { color: var(--bad); background: var(--bad-soft); }
.action--grow .action__impact { color: var(--grow); background: var(--grow-soft); }

.action__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.action__list li { border-top: 1px solid var(--line); padding-top: .8rem; }
.action__term { font-weight: 650; font-size: .97rem; }
.action__meta { font-size: .78rem; color: var(--ink-faint); margin-bottom: .3rem; }
.action__reason { font-size: .88rem; color: var(--ink-soft); margin: 0 0 .5rem; }
.action__bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; max-width: 190px; }
.action__bar span { display: block; height: 100%; background: var(--brand); }
.action__conf { font-size: .72rem; color: var(--ink-faint); margin-top: .2rem; }
.action__more {
  margin: 1rem 0 0; font-size: .85rem; color: var(--ink-soft);
  background: var(--warn-soft); border: 1px dashed #fedf89;
  padding: .6rem .8rem; border-radius: 9px;
}

/* ---------- tables ---------- */
.table-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-end; }
.filter { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; }
.filter select { font: inherit; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }

.table-wrap { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 640px; }
th, td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--wash); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--wash); }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
td.pos { color: var(--good); font-weight: 600; }
td.neg { color: var(--bad); font-weight: 600; }

.status { display: inline-block; padding: .18rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.status--waste  { background: var(--bad-soft);  color: var(--bad); }
.status--reduce { background: var(--warn-soft); color: var(--warn); }
.status--watch  { background: #fff4e5;          color: #8a5200; }
.status--good   { background: var(--good-soft); color: var(--good); }
.status--grow   { background: var(--grow-soft); color: var(--grow); }

.compare tbody tr.us { background: var(--brand-soft); }
.compare td { white-space: normal; }
.compare td:first-child { font-weight: 600; }

.safety-note {
  font-size: .85rem; color: var(--ink-soft); background: var(--paper);
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: .9rem 1.1rem;
}

/* ---------- method ---------- */
.method-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.25rem; }
.method-grid article { background: var(--wash); border: 1px solid var(--line); border-radius: 11px; padding: 1rem 1.1rem; }
.method-grid p { font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* ---------- pricing ---------- */
.pricing { margin-top: 2.5rem; text-align: center; }
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 1.75rem 0 1.25rem; text-align: left; }
.plan {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow); position: relative;
}
.plan--featured { border: 2px solid var(--brand); }
.plan-flag {
  position: absolute; top: -11px; left: 1.4rem;
  background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 6px;
}
.price { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.price span { font-size: .9rem; font-weight: 500; color: var(--ink-faint); }
.plan-sub { font-size: .87rem; color: var(--ink-soft); }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; font-size: .88rem; }
.plan li::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: .5rem; }
.plan-note { display: block; margin-top: .5rem; font-size: .74rem; color: var(--ink-faint); }

footer { border-top: 1px solid var(--line); background: var(--paper); padding: 2rem clamp(1rem, 4vw, 3rem); text-align: center; }
footer p { margin: 0 0 .3rem; font-size: .88rem; }

/* ---------- print ---------- */
@media print {
  .site-header, .hero, #how, .pricing, .results-tools, .drop-zone, footer,
  .method, .settings, .primary-button { display: none !important; }
  body { background: #fff; }
  .card, .action, .stat { box-shadow: none; break-inside: avoid; }
  .verdict { background: #eee; color: #000; }
  table { min-width: 0; font-size: .72rem; }
}
