:root {
  color-scheme: light;
  --white: #ffffff;
  --ink: #222222;
  --muted: #6b7280;
  --green: #16a34a;
  --green-dark: #15803d;
  --grey: #f3f4f6;
  --red: #dc2626;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --shadow: 0 10px 28px rgba(34, 34, 34, 0.07);
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: inherit;
}

.app {
  display: grid;
  grid-template-columns: 336px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 20px;
  background: var(--white);
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
  border-bottom: 4px solid var(--green);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 19px;
  letter-spacing: 0;
}

.brand p,
.eyebrow,
label,
.stats span,
.meta-row,
.empty {
  color: var(--muted);
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.panel h2 {
  font-size: 15px;
  margin-bottom: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 11px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  padding: 9px 10px;
  outline: none;
}

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

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

button {
  border: 0;
  border-radius: 6px;
  padding: 10px 13px;
  cursor: pointer;
  font-weight: 800;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.primary,
.checkout-button,
.inline-action {
  background: var(--green);
  color: var(--white);
}

.primary:hover:not(:disabled),
.checkout-button:hover,
.inline-action:hover {
  background: var(--green-dark);
}

.secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.secondary:hover {
  border-color: var(--ink);
}

.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  background: var(--white);
}

.ghost-button {
  width: 100%;
  margin-top: 10px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.plan-panel {
  border: 1px solid var(--green);
  border-left: 5px solid var(--green);
}

.plan-panel .eyebrow {
  color: var(--green-dark);
}

.plan-panel p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 12px 0;
}

.price strong {
  color: var(--ink);
  font-size: 32px;
}

.price span {
  color: var(--muted);
}

.workspace {
  padding: 24px;
  overflow: auto;
}

.site-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.compact-brand {
  text-decoration: none;
}

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

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

.hero-copy,
.signal-preview,
.section-block,
.faq-grid article,
.phone-card,
.email-card,
.signup-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 28px;
}

.hero-copy h2,
.section-title h2 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
}

.hero-copy p,
.section-block p,
.faq-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin: 22px 0 18px;
}

.hero-actions .checkout-button {
  width: auto;
  padding: 0 16px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-row span {
  background: var(--grey);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.signal-preview {
  padding: 16px;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.preview-offer {
  margin-bottom: 12px;
}

.message-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px;
  background: var(--grey);
}

.message-card p {
  margin: 8px 0 6px;
  line-height: 1.45;
}

.message-card span {
  color: var(--muted);
  font-size: 13px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.proof-strip article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  font-size: 28px;
}

.proof-strip span {
  color: var(--muted);
  font-size: 13px;
}

.section-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
}

.section-block h3,
.section-title h2 {
  margin-bottom: 10px;
}

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

.feature-list div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--grey);
}

.feature-list .ready-check {
  border-color: rgba(22, 163, 74, 0.32);
  background: rgba(22, 163, 74, 0.08);
}

.feature-list .missing-check {
  border-color: rgba(220, 38, 38, 0.28);
  background: rgba(220, 38, 38, 0.07);
}

.post-payment-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.disabled-link {
  opacity: 0.7;
  cursor: not-allowed;
}

.feature-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

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

.faq-grid article {
  padding: 16px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--muted);
}

.section-title {
  margin: 18px 0;
}

.examples-grid {
  grid-template-columns: 1fr 1fr 1.2fr;
}

.phone-card,
.email-card {
  padding: 16px;
}

.phone-head,
.email-subject {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-weight: 900;
}

.chat-bubble {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--grey);
}

.chat-bubble p {
  margin: 8px 0 6px;
}

.chat-bubble span,
.email-line span {
  color: var(--muted);
  font-size: 13px;
}

.chat-action {
  margin-top: 12px;
  color: var(--green-dark);
  font-weight: 900;
}

.email-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.email-line:last-child {
  border-bottom: 0;
}

.narrow-shell {
  width: min(620px, 100%);
}

.signup-card {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 22px;
}

.signup-card h2 {
  font-size: 26px;
}

.signup-card p {
  color: var(--muted);
  line-height: 1.5;
}

.admin-grid {
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--green);
  vertical-align: 1px;
}

.topbar h2 {
  margin-top: 4px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 112px);
  gap: 10px;
}

.stats div,
.status-grid article,
.pricing-strip,
.board,
.detail,
.checkout-summary,
.checkout-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats div {
  padding: 12px;
}

.stats strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.status-grid article {
  min-height: 98px;
  padding: 15px;
}

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

.status-grid strong {
  margin: 8px 0 5px;
  color: var(--ink);
  font-size: 20px;
}

.status-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.pricing-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
}

.pricing-strip h3 {
  font-size: 20px;
  line-height: 1.25;
}

.single-offer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  background: var(--grey);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px;
}

.single-offer strong {
  font-size: 16px;
}

.single-offer span {
  color: var(--ink);
  font-size: 21px;
  font-weight: 950;
  white-space: nowrap;
}

.single-offer small {
  color: var(--muted);
  line-height: 1.35;
}

.single-offer .checkout-button {
  width: auto;
  min-width: 114px;
  padding: 0 16px;
}

.signal-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.signal-examples article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.signal-examples p {
  margin-bottom: 6px;
  line-height: 1.4;
}

.signal-examples span:not(.tag) {
  color: var(--muted);
  font-size: 13px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(380px, 0.88fr) minmax(440px, 1.12fr);
  gap: 18px;
  align-items: start;
}

.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.board,
.detail {
  min-height: 620px;
  overflow: hidden;
}

.compact-board {
  min-height: 320px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.section-head h3 {
  margin-top: 3px;
  font-size: 19px;
}

.offers {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.offer {
  position: relative;
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 14px 14px 16px;
  cursor: pointer;
}

.offer::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  background: var(--green);
}

.offer:hover,
.offer.active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.offer-top,
.offer-tags {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.offer h4 {
  font-size: 16px;
  line-height: 1.25;
}

.company {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.mission {
  color: #3f3f46;
  font-size: 13px;
  line-height: 1.45;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.badge {
  background: rgba(22, 163, 74, 0.1);
  color: var(--green-dark);
}

.tag {
  background: var(--grey);
  color: var(--ink);
}

.tag.urgent {
  background: rgba(220, 38, 38, 0.09);
  color: var(--red);
}

.application-detail {
  padding: 16px;
}

.hidden {
  display: none;
}

.empty {
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
}

.small-empty {
  min-height: 140px;
  background: var(--grey);
  border-radius: 8px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-row span {
  background: var(--grey);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.score-line {
  display: grid;
  grid-template-columns: 170px 1fr 54px;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.score-line div {
  height: 10px;
  background: var(--grey);
  border-radius: 999px;
  overflow: hidden;
}

.score-line i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
}

.document {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin: 10px 0 18px;
  line-height: 1.55;
  color: var(--ink);
}

.document ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

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

.inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.insight-grid article {
  background: var(--grey);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  min-height: 98px;
}

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

.insight-grid strong {
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 15px;
}

.insight-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.school-stats {
  display: grid;
  gap: 9px;
  margin: 10px 0 18px;
}

.school-row {
  display: grid;
  grid-template-columns: 132px 1fr 32px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
}

.school-row div {
  height: 9px;
  overflow: hidden;
  background: var(--grey);
  border-radius: 999px;
}

.school-row i {
  display: block;
  height: 100%;
  background: var(--green);
}

.school-row strong {
  text-align: right;
}

.source-list,
.admin-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.source-row,
.admin-list div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.admin-list div {
  grid-template-columns: 150px 1fr;
}

.source-row strong,
.source-row span,
.admin-list strong,
.admin-list span {
  display: block;
}

.source-row span,
.admin-list span,
.source-row small {
  color: var(--muted);
  font-size: 13px;
}

.source-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
  color: var(--green-dark) !important;
  font-weight: 900;
}

.legal-stack {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.checkout-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.checkout-shell {
  width: min(980px, 100%);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 18px;
  margin-top: 22px;
}

.checkout-summary,
.checkout-box {
  padding: 22px;
}

.checkout-summary h2,
.checkout-box h2 {
  margin: 8px 0;
  font-size: 24px;
}

.checkout-summary p,
.checkout-box p,
.fine-print {
  color: var(--muted);
  line-height: 1.5;
}

.checkout-summary ul {
  margin: 18px 0 0;
  padding-left: 18px;
  line-height: 1.65;
}

.price.large strong {
  color: var(--ink);
  font-size: 44px;
}

.large-button {
  margin: 18px 0 12px;
  min-height: 50px;
}

.secondary-link {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.fine-print {
  margin-top: 18px;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .app,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

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

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-strip,
  .single-offer,
  .signal-examples,
  .hero-shell,
  .proof-strip,
  .section-block,
  .faq-grid,
  .examples-grid,
  .admin-grid,
  .status-grid,
  .ops-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .single-offer .checkout-button {
    width: 100%;
  }

  .site-nav,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .sidebar,
  .workspace {
    padding: 14px;
  }

  .stats,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .offer-top,
  .offer-tags {
    align-items: stretch;
    flex-direction: column;
  }

  .score-line,
  .school-row {
    grid-template-columns: 1fr;
  }
}
