:root {
  color-scheme: light;
  --ink: #14231f;
  --muted: #5d7069;
  --paper: #f4f5ef;
  --panel: #ffffff;
  --line: #d7ded6;
  --accent: #176b60;
  --accent-2: #be5a38;
  --soft: #eef7f1;
  --warn: #9a5b00;
  --bad: #b42318;
}

* {
  box-sizing: border-box;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  min-height: 100vh;
  padding: 24px;
}

.tool {
  max-width: 1180px;
  margin: 0 auto;
}

.topbar,
.panel-head,
.lead-band,
.example-band,
.audit-band,
.share-band,
.intent-band,
.conversion-strip,
.segment-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.actions {
  display: flex;
  gap: 8px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(340px, 1.1fr);
  gap: 18px;
}

.panel,
.lead-band,
.example-band,
.audit-band,
.share-band,
.intent-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.panel-head span,
.status {
  color: var(--muted);
  font-size: 0.9rem;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  background: #fffefb;
  color: var(--ink);
}

textarea {
  min-height: 72px;
  resize: vertical;
}

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

button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
}

.primary,
.lead-form button {
  width: 100%;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.icon-button {
  min-width: 58px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
}

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

.metrics div,
.recommendations,
.roi-box,
.policy-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfaf7;
}

.result-summary {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

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

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
}

.policy-box {
  margin-top: 14px;
  white-space: pre-wrap;
  line-height: 1.45;
}

.recommendations {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.recommendations p {
  margin: 0;
}

.roi-box {
  margin-top: 14px;
  background: var(--soft);
}

.roi-box span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.roi-box strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
}

.roi-box p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.lead-band {
  margin-top: 18px;
  align-items: flex-start;
}

.lead-band p,
.example-band p,
.audit-band p,
.share-band p,
.intent-band p,
.conversion-strip p {
  max-width: 530px;
  margin-bottom: 0;
  color: var(--muted);
}

.lead-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lead-points span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 130px;
  gap: 10px;
  width: min(100%, 690px);
}

.lead-form textarea {
  grid-column: span 2;
}

.lead-form button {
  width: auto;
  grid-row: span 2;
}

.status {
  min-height: 20px;
}

.contact-hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-hint a {
  color: var(--accent);
}

.example-band,
.audit-band,
.share-band,
.intent-band,
.segment-band {
  margin-top: 18px;
  align-items: center;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.segment-band {
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.segment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segment-links a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.document-links {
  margin-top: 18px;
}

.footer-links {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-links a {
  color: var(--accent);
}

.document {
  max-width: 760px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  line-height: 1.6;
}

.document h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
}

.document a {
  color: var(--accent);
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
}

.examples-document {
  max-width: 980px;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.example-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfaf7;
}

.example-card p {
  color: var(--muted);
}

.conversion-strip {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--soft);
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.landing-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfaf7;
}

.landing-grid p {
  color: var(--muted);
}

.audit-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.audit-steps div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfaf7;
}

.audit-steps span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.audit-steps p {
  color: var(--muted);
}

.audit-table {
  display: grid;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.audit-row {
  display: grid;
  grid-template-columns: 0.7fr repeat(3, 1fr);
  min-height: 44px;
}

.audit-row span {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 10px;
}

.audit-row span:last-child {
  border-right: 0;
}

.audit-row:last-child span {
  border-bottom: 0;
}

.audit-head {
  background: var(--soft);
  color: var(--accent);
  font-weight: 800;
}

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

.caption-list {
  grid-template-columns: 1fr;
}

.share-grid div,
.caption-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfaf7;
}

.share-grid p,
.caption-list p {
  color: var(--muted);
}

.share-grid a {
  color: var(--accent);
  font-weight: 800;
}

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

.offer-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfaf7;
}

.offer-grid p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .shell {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions {
    width: 100%;
  }

  .actions .icon-button {
    flex: 1;
  }

  .grid,
  .lead-band,
  .example-band,
  .audit-band,
  .share-band,
  .intent-band,
  .segment-band,
  .conversion-strip,
  .example-grid,
  .landing-grid,
  .audit-steps,
  .share-grid,
  .offer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fields,
  .metrics,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .lead-form textarea {
    grid-column: auto;
  }

  .lead-form button {
    grid-row: auto;
  }
}
