:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #526070;
  --line: #d8dee8;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --navy: #0f172a;
  --teal: #0f766e;
  --green: #16a34a;
  --gold: #b7791f;
  --red: #dc2626;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, transparent 0 35%, rgba(255, 255, 255, 0.82) 36% 47%, transparent 48%),
    linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

main {
  width: 100%;
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 1.08fr) minmax(320px, 1fr);
  gap: 18px;
  padding: clamp(22px, 4vw, 54px);
  min-height: calc(100vh - 64px);
  align-items: stretch;
}

.intro-panel,
.auditor-panel,
.results-panel,
.content-band,
.ad-band {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  background: #101827;
  color: #f8fafc;
  min-height: 620px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-panel .eyebrow {
  color: #67e8f9;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.25rem, 4.8vw, 4.9rem);
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
}

.lede {
  max-width: 620px;
  color: #cbd5e1;
  font-size: 1.08rem;
  margin: 18px 0 0;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-strip span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.mini-visual {
  position: absolute;
  inset: auto 26px 24px 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  height: 180px;
  align-items: end;
  opacity: 0.95;
}

.signal {
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, #67e8f9, #2563eb);
  min-height: 44px;
}

.signal-a { height: 38%; }
.signal-b { height: 72%; background: linear-gradient(180deg, #86efac, #16a34a); }
.signal-c { height: 55%; background: linear-gradient(180deg, #fde68a, #b7791f); }
.signal-d { height: 88%; background: linear-gradient(180deg, #bfdbfe, #0f766e); }

.auditor-panel,
.results-panel {
  padding: clamp(20px, 3vw, 30px);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 0 15px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ghost-button {
  background: #e8eef6;
  color: var(--navy);
}

.primary-button {
  background: var(--teal);
  color: white;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--teal);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--teal);
}

output {
  color: var(--teal);
}

.money-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  overflow: hidden;
  background: #ffffff;
}

.money-input span {
  padding-left: 12px;
  color: var(--muted);
  font-weight: 900;
}

.money-input input {
  border: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 92px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.32rem, 2vw, 1.85rem);
  line-height: 1;
}

canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.recommendation {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #14532d;
  font-weight: 700;
}

.ad-band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 22px;
  padding: 12px;
  box-shadow: none;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px dashed #cbd5e1;
  border-radius: 7px;
  color: #64748b;
  background: #f8fafc;
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 800;
}

.content-band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 22px;
  padding: clamp(24px, 4vw, 44px);
}

.section-copy {
  max-width: 760px;
}

.section-copy p,
.content-band > div > p {
  color: var(--muted);
  font-size: 1.03rem;
}

.benchmark-table-wrap {
  overflow-x: auto;
  margin-top: 22px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 12px;
}

th {
  color: #334155;
  background: #f8fafc;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.method-list {
  margin: 0;
  padding-left: 20px;
  color: #334155;
}

.method-list li {
  margin-bottom: 14px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

details {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  color: var(--muted);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: #e2e8f0;
  background: var(--navy);
}

footer p {
  margin: 0;
}

@media (max-width: 1180px) {
  .tool-shell {
    grid-template-columns: 1fr 1fr;
  }

  .intro-panel {
    grid-column: 1 / -1;
    min-height: 480px;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .tool-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .intro-panel {
    min-height: 560px;
  }

  .form-grid,
  .metric-grid,
  .split,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-head button {
    width: 100%;
  }

  h1 {
    font-size: 2.5rem;
  }
}
