:root {
  color-scheme: light;
  --ink: #17212f;
  --muted: #607086;
  --line: #d9e1ea;
  --panel: #ffffff;
  --bg: #f4f6f8;
  --brand: #d92627;
  --brand-dark: #9f1718;
  --accent: #4d4f60;
  --soft: #fceeee;
  --warn: #fdf5f5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

.topbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

h4 {
  font-size: 15px;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.status-pill {
  border: 1px solid #f0b7b7;
  background: var(--soft);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}

.form-panel {
  align-self: start;
}

.section-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.section-head p {
  margin-top: 6px;
  font-size: 14px;
}

.prospect-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

label {
  display: grid;
  gap: 6px;
}

label span {
  color: #344255;
  font-size: 13px;
  font-weight: 700;
}

label em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c9d3df;
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

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

.optional-fields {
  border: 1px solid #dbe4ed;
  border-radius: 8px;
  background: #fbfcfe;
}

.optional-fields summary {
  cursor: pointer;
  padding: 11px 12px;
  color: #344255;
  font-size: 13px;
  font-weight: 800;
}

.optional-grid {
  display: grid;
  gap: 14px;
  padding: 0 12px 12px;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(217, 38, 39, .18);
  border-color: var(--brand);
}

button {
  border: 0;
  border-radius: 6px;
  padding: 12px 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.ghost-button {
  border: 1px solid #d7e0ea;
  background: #fff;
  color: #344255;
}

button:disabled {
  cursor: wait;
  opacity: .65;
}

.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(217, 38, 39, .14), transparent 28%),
    linear-gradient(135deg, #fff 0%, #f4f6f8 45%, #eef2f6 100%);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: center;
  gap: 56px;
  min-height: 100vh;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 40px 28px;
}

.login-intro {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 16px 35px rgba(217, 38, 39, .26);
}

.login-intro h1 {
  max-width: 680px;
  font-size: 44px;
  line-height: 1.05;
}

.login-copy {
  max-width: 620px;
  color: #344255;
  font-size: 18px;
}

.login-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-proof span {
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, .72);
  color: #344255;
  font-size: 13px;
  font-weight: 800;
}

.login-panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(23, 33, 47, .15);
  backdrop-filter: blur(10px);
}

.login-panel-head {
  display: grid;
  gap: 6px;
}

.login-panel h2 {
  font-size: 28px;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.login-form input {
  min-height: 46px;
  background: #fbfcfe;
}

.login-form button {
  min-height: 46px;
  margin-top: 2px;
  box-shadow: 0 12px 24px rgba(217, 38, 39, .2);
}

.login-message {
  min-height: 20px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
}

.output-panel {
  min-height: calc(100vh - 136px);
}

#output {
  padding: 20px;
}

.empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 420px;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.pack {
  display: grid;
  gap: 16px;
}

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

.metric,
.block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.block h3 {
  margin-bottom: 10px;
}

.block ul,
.block ol {
  margin: 0;
  padding-left: 20px;
  color: #2f3d4f;
  line-height: 1.55;
}

.block li + li {
  margin-top: 6px;
}

.summary {
  border-left: 4px solid var(--brand);
  background: var(--soft);
}

.client-review {
  border-left: 4px solid #4d4f60;
  background: #f7f7f9;
}

.script-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 2px solid var(--brand);
  background: #fdf5f5;
}

.script-download p:not(.kicker) {
  margin-top: 6px;
}

.script-download button {
  flex: 0 0 auto;
  min-width: 172px;
  background: var(--brand);
}

.sales-angle {
  border: 2px solid var(--brand);
  background: #fff;
}

.kicker {
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.angle-grid article,
.angle-columns > div {
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.angle-grid h4,
.angle-columns h4,
.sales-angle > h4 {
  margin-bottom: 6px;
}

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

.action-steps {
  display: grid;
  gap: 10px;
  margin: 10px 0 14px;
}

.action-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.seo-conviction {
  margin: 14px 0;
  border: 1px solid #f0b7b7;
  border-radius: 8px;
  padding: 14px;
  background: #fdf5f5;
}

.seo-conviction h3 {
  margin-bottom: 10px;
}

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

.ammo-card {
  border: 1px solid #f0d1d1;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.ammo-card h4 {
  margin-bottom: 6px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.proof-read {
  margin-top: 12px;
  color: #354255;
  font-weight: 650;
}

.warning {
  border-left: 4px solid var(--accent);
  background: var(--warn);
}

.script-lines {
  display: grid;
  gap: 8px;
}

.script-lines p,
.email-box {
  color: #273548;
  white-space: pre-wrap;
}

.fit-card {
  display: grid;
  gap: 8px;
}

.fit-card + .fit-card {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.fit-meta {
  color: var(--muted);
  font-size: 13px;
}

.issue-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.issue {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.issue p {
  margin-top: 6px;
  color: #354255;
}

.issue strong {
  color: #17212f;
}

.severity {
  align-self: start;
  border-radius: 999px;
  padding: 5px 8px;
  background: #fceeee;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.section-note {
  margin-bottom: 12px;
}

.package-grid {
  display: grid;
  gap: 12px;
}

.package-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.package-card p {
  margin-top: 10px;
  color: #354255;
}

.package-card ul {
  margin-top: 6px;
}

@media (max-width: 960px) {
  .layout,
  .pack-grid,
  .angle-grid,
  .angle-columns,
  .ammo-grid {
    grid-template-columns: 1fr;
  }

  .script-download {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .login-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
  }

  .login-intro h1 {
    font-size: 36px;
  }
}

@media (max-width: 560px) {
  .layout {
    padding: 12px;
  }

  .topbar {
    padding: 20px;
  }

  .issue {
    grid-template-columns: 1fr;
  }

  .severity {
    justify-self: start;
  }

  .login-shell {
    padding: 22px 14px;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    font-size: 25px;
  }

  .login-intro h1 {
    font-size: 30px;
  }

  .login-copy {
    font-size: 16px;
  }

  .login-panel {
    padding: 22px;
  }
}
