:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #fffefa;
  --surface-strong: #ffffff;
  --ink: #1c1d20;
  --muted: #64676d;
  --line: #e4ded4;
  --green: #20785b;
  --red: #bd3b31;
  --yellow: #9a6a16;
  --blue: #2f67a7;
  --blue-deep: #163a5d;
  --navy: #111f2f;
  --accent: #d9b45f;
  --shadow: 0 22px 60px rgba(29, 35, 41, 0.1);
  --shadow-soft: 0 10px 28px rgba(29, 35, 41, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 7%, rgba(47, 103, 167, 0.12), transparent 25%),
    radial-gradient(circle at 82% 20%, rgba(32, 120, 91, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(246, 244, 239, 0.98));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.topbar::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 58, 93, 0.12), transparent);
  content: "";
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: end;
  padding: 52px 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 800;
}

.mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(22, 58, 93, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 244, 251, 0.88));
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  overflow: hidden;
}

.mark::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  border-radius: 1px;
  content: "";
  opacity: 0.75;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.site-footer a {
  border-radius: 8px;
  padding: 8px 10px;
  color: #4d5661;
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover {
  background: rgba(47, 103, 167, 0.08);
  color: var(--blue-deep);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.4vw, 74px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: #42454b;
  font-size: 19px;
  line-height: 1.65;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-badges span {
  border: 1px solid rgba(22, 58, 93, 0.12);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.68);
  color: #44515f;
  font-size: 13px;
  font-weight: 800;
}

.scan-form {
  width: min(820px, 100%);
  margin-top: 34px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.scan-form label {
  display: none;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.scan-form .hint {
  padding: 0 8px 2px;
}

.coach-card {
  position: relative;
  border: 1px solid rgba(22, 58, 93, 0.14);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(247, 250, 248, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.coach-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-deep), var(--green), var(--accent));
  content: "";
}

.card-label {
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #edf4fb;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
}

.signal-map {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.85fr;
  gap: 8px;
  margin-bottom: 18px;
}

.signal-map span {
  height: 7px;
  border-radius: 999px;
  background: #d9e8f4;
}

.signal-map span:nth-child(2) {
  background: #dcefe7;
}

.signal-map span:nth-child(3) {
  background: #f1dfb3;
}

.coach-card ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coach-card li {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.coach-card li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.coach-card strong {
  color: var(--navy);
}

.coach-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.module-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 8px 0 14px;
}

.module-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 254, 250, 0.82);
  box-shadow: 0 8px 20px rgba(29, 35, 41, 0.035);
}

.module-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.module-strip strong {
  color: var(--navy);
}

.launch-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  border: 1px solid rgba(47, 103, 167, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.7);
  color: #46515d;
  font-size: 14px;
  line-height: 1.55;
}

.launch-note strong {
  flex: 0 0 auto;
  color: var(--blue-deep);
}

.plan-guide {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 254, 250, 0.86);
  box-shadow: var(--shadow-soft);
}

.plan-guide .section-title h3 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: 22px;
  line-height: 1.45;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.plan-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.plan-card.active-plan {
  border-color: rgba(32, 120, 91, 0.28);
  background: linear-gradient(180deg, #f7fcf9, #ffffff);
}

.plan-card strong {
  color: var(--navy);
  font-size: 18px;
}

.plan-card p {
  margin: 0;
  color: #4b5561;
  font-size: 14px;
  line-height: 1.55;
}

.plan-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.plan-status {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: #edf8f2;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.plan-status.soon {
  background: #f1f4f7;
  color: #65707b;
}

input {
  min-width: 0;
  height: 58px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(38, 95, 159, 0.14);
}

button {
  height: 58px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 18px rgba(17, 31, 47, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--blue-deep);
  box-shadow: 0 14px 26px rgba(17, 31, 47, 0.2);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.hint,
.muted {
  color: var(--muted);
}

.hint {
  margin: 12px 0 0;
  font-size: 14px;
}

.promise-grid,
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.promise-grid article,
.panel,
.score-card,
.next-step-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.92);
}

.promise-grid article {
  display: flex;
  gap: 14px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.promise-grid article:hover {
  border-color: rgba(22, 58, 93, 0.18);
  transform: translateY(-1px);
}

.promise-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #edf4fb;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
}

.promise-grid strong,
.promise-grid span {
  display: block;
}

.promise-grid strong {
  margin-bottom: 8px;
}

.promise-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.panel {
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.hidden {
  display: none !important;
}

#loading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #d5cfc4;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error {
  margin-top: 20px;
  border-color: rgba(189, 59, 49, 0.35);
  color: var(--red);
}

.result {
  margin-top: 28px;
}

.result-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.94), rgba(248, 251, 253, 0.9));
  box-shadow: var(--shadow-soft);
}

.result-header h2 {
  margin-bottom: 8px;
  font-size: 34px;
}

.score-card {
  display: flex;
  min-width: 160px;
  align-items: baseline;
  justify-content: center;
  padding: 22px;
  background:
    linear-gradient(180deg, #13263a, #0f1b29);
  color: white;
}

.score-card span {
  font-size: 64px;
  font-weight: 900;
}

.score-card small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.next-step-panel {
  margin-bottom: 16px;
  padding: 22px;
  background: linear-gradient(180deg, #eef8f3, #f7fcf9);
  border-color: rgba(32, 120, 91, 0.22);
  box-shadow: var(--shadow-soft);
}

.score-guide {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  margin-bottom: 16px;
}

.result-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.tip-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #434a53;
  line-height: 1.55;
}

.report-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.secondary-button {
  background: #eef2f6;
  color: var(--navy);
  box-shadow: none;
}

.secondary-button:hover:not(:disabled) {
  background: #dfe7ef;
  color: var(--navy);
}

.score-guide h3 {
  margin-bottom: 8px;
}

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

.severity-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.severity-item .badge {
  width: fit-content;
}

.severity-item strong {
  font-size: 14px;
}

.severity-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.assessment-list {
  display: grid;
  gap: 10px;
}

.assessment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #fffdfa);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.assessment-item:hover {
  border-color: rgba(47, 103, 167, 0.2);
  box-shadow: 0 10px 22px rgba(29, 35, 41, 0.05);
}

.assessment-item div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.assessment-item p,
.assessment-item small {
  grid-column: 1 / -1;
}

.assessment-item p {
  margin: 0;
  color: #363c44;
  line-height: 1.55;
}

.assessment-item .status-copy {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.assessment-item small {
  color: var(--muted);
  line-height: 1.5;
}

.rating {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.section-title h3,
.panel h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.next-steps,
.issue-list {
  display: grid;
  gap: 12px;
}

.step,
.issue {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 18px rgba(29, 35, 41, 0.04);
}

.step-title,
.issue-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
}

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}

.red {
  background: #fff0ee;
  color: var(--red);
}

.yellow {
  background: #fff7e8;
  color: var(--yellow);
}

.green {
  background: #edf8f2;
  color: var(--green);
}

.today-badge {
  background: #e9f3ff;
  color: var(--blue-deep);
}

.today-issue {
  border-color: rgba(47, 103, 167, 0.24);
  background: linear-gradient(180deg, #fbfdff, #ffffff);
}

.issue-note {
  margin: 0;
  border-left: 3px solid var(--blue);
  padding: 8px 10px;
  border-radius: 0 8px 8px 0;
  background: #f2f7fc;
  color: #4b5561;
  font-size: 14px;
  line-height: 1.55;
}

.ai-action {
  width: fit-content;
  height: auto;
  min-height: 38px;
  background: #1f6f55;
  box-shadow: none;
}

.draft-box {
  margin-top: 6px;
  border: 1px solid rgba(38, 95, 159, 0.22);
  border-radius: 8px;
  background: #f7fbff;
  overflow: hidden;
}

.draft-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(38, 95, 159, 0.16);
}

.copy-button {
  width: auto;
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  background: var(--blue);
  font-size: 13px;
}

.draft-box pre {
  margin: 0;
  padding: 14px;
  color: #222831;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.draft-note {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 13px;
}

.details-grid {
  grid-template-columns: 1.1fr 0.9fr;
  margin-bottom: 16px;
}

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

.facts div,
.trust-item {
  padding: 12px;
  border-radius: 8px;
  background: #f6f4ef;
}

.facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.facts dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 900;
}

.trust-list {
  display: grid;
  gap: 10px;
}

.trust-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.site-footer strong {
  color: var(--ink);
}

.page-shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.trust-page {
  color: #282b30;
}

.trust-page h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 64px);
}

.page-lead {
  margin-bottom: 36px;
  color: #444b54;
  font-size: 20px;
  line-height: 1.7;
}

.trust-page section {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 254, 250, 0.9);
  box-shadow: var(--shadow-soft);
}

.trust-page h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.trust-page p,
.plain-list {
  color: #474d55;
  line-height: 1.75;
}

.plain-list {
  margin: 0;
  padding-left: 20px;
}

.contact-panel a {
  color: var(--blue-deep);
  font-weight: 800;
}

@media (max-width: 760px) {
  .topbar,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

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

  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 17px;
  }

  .input-row,
  .promise-grid,
  .module-strip,
  .launch-note,
  .plan-grid,
  .score-guide,
  .result-tools,
  .severity-guide,
  .details-grid,
  .facts {
    grid-template-columns: 1fr;
  }

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

  button {
    width: 100%;
    white-space: normal;
  }

  .copy-button {
    width: auto;
  }

  .report-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .result-header {
    display: grid;
  }

  .score-card {
    justify-content: flex-start;
  }

  .page-shell {
    width: min(100% - 20px, 860px);
    padding: 42px 0;
  }
}
