:root {
  color-scheme: light;
  --bg: #f3ede4;
  --bg-soft: #f9f5ee;
  --panel: #fff9f2;
  --ink: #18212b;
  --muted: #5d6672;
  --line: rgba(24, 33, 43, 0.12);
  --accent: #24564d;
  --accent-strong: #183c35;
  --accent-soft: rgba(36, 86, 77, 0.12);
  --gold: #8a6327;
  --shadow: 0 22px 44px rgba(30, 38, 48, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background:
    radial-gradient(circle at top left, rgba(36, 86, 77, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(138, 99, 39, 0.08), transparent 22%),
    var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(24, 33, 43, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 33, 43, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
}

.skip-link:focus {
  left: 1rem;
  z-index: 20;
}

.site-shell {
  width: min(calc(100vw - 2rem), var(--max));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand strong {
  display: block;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand small {
  display: block;
  color: var(--muted);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 18px;
  background: var(--ink);
  color: #f8f2e8;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topnav a {
  color: var(--muted);
  padding: 0.7rem 0.8rem;
  border-radius: 999px;
}

.topnav a:hover {
  background: rgba(24, 33, 43, 0.05);
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #f8f5ee;
  box-shadow: 0 12px 24px rgba(24, 60, 53, 0.18);
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.45);
  border-color: var(--line);
}

.hero,
.page-shell,
.recap,
.history {
  position: relative;
  padding: 1.4rem 0 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.5rem;
  align-items: start;
  padding-top: 0.5rem;
}

.hero-copy,
.page-copy,
.workspace-copy {
  padding: 1rem 0;
}

.eyebrow,
.panel-kicker,
.result-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
}

h1,
h2,
h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}

h1 {
  font-size: clamp(3.1rem, 6.5vw, 5.8rem);
  max-width: 10ch;
  margin-top: 0.4rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.lede {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.06rem;
  margin: 1rem 0 0;
}

.hero-points,
.workspace-stats,
.support-notes,
.bullets {
  display: grid;
  gap: 0.85rem;
  margin: 1.4rem 0 0;
}

.hero-points {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-points > div,
.workspace-stats > div,
.support-notes > div,
.proof-card,
.pricing-card,
.result-card,
.history-item,
.success-card {
  background: rgba(255, 250, 245, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.hero-points > div {
  padding: 1rem;
}

.hero-points strong,
.workspace-stats strong {
  display: block;
  font-size: 1rem;
}

.hero-points span,
.workspace-stats span,
.proof-card p,
.pricing-card p,
.history-item p,
.result-card p,
.success-card p {
  color: var(--muted);
}

.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 1.5rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  max-width: 32ch;
  font-size: 0.94rem;
}

.hero-panel,
.page-panel,
.workspace-panel {
  background-color: var(--panel);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(249, 244, 236, 0.9));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.panel-header,
.recap-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-header h2,
.recap-head h2 {
  margin-top: 0.3rem;
}

.panel-badge {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.audit-form,
.support-form {
  display: grid;
  gap: 0.9rem;
}

.audit-form label,
.support-form label {
  display: grid;
  gap: 0.45rem;
}

.audit-form span,
.support-form span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.audit-form input,
.audit-form textarea,
.support-form input,
.support-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  outline: none;
}

.audit-form textarea,
.support-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.audit-form input:focus,
.audit-form textarea:focus,
.support-form input:focus,
.support-form textarea:focus {
  border-color: rgba(36, 86, 77, 0.55);
  box-shadow: 0 0 0 4px rgba(36, 86, 77, 0.08);
}

.proof-grid,
.pricing-grid,
.result-grid {
  display: grid;
  gap: 1rem;
}

.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0.6rem;
}

.proof-card,
.pricing-card,
.result-card,
.history-item,
.success-card {
  padding: 1.1rem;
}

.proof-card p:last-child,
.pricing-card p:last-child {
  margin-bottom: 0;
}

.recap-head {
  margin-bottom: 1rem;
}

.result-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-card.strong {
  background-color: rgba(36, 86, 77, 0.12);
  background: linear-gradient(180deg, rgba(36, 86, 77, 0.12), rgba(255, 250, 245, 0.92));
}

.result-card p {
  margin: 0.4rem 0 0;
}

.result-label {
  color: var(--accent-strong);
}

.split-page,
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

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

.workspace-stats > div {
  padding: 1rem;
}

.bullets {
  list-style: none;
  padding: 0;
}

.bullets li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--muted);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.pricing-page {
  display: grid;
  gap: 1.4rem;
}

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

.pricing-card.featured {
  background-color: rgba(36, 86, 77, 0.12);
  background: linear-gradient(180deg, rgba(36, 86, 77, 0.12), rgba(255, 250, 245, 0.92));
  border-color: rgba(36, 86, 77, 0.22);
}

.pricing-card h2 {
  margin: 0.35rem 0 0.5rem;
}

.support-notes {
  gap: 1rem;
}

.support-notes > div {
  padding: 1rem;
}

.success-card {
  margin-bottom: 0.9rem;
  border-color: rgba(36, 86, 77, 0.22);
}

.history-list {
  display: grid;
  gap: 0.9rem;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.history-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.history-item span {
  color: var(--muted);
  font-size: 0.93rem;
  white-space: nowrap;
}

.empty-state {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0 2rem;
  color: var(--muted);
}

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

.footer p {
  margin: 0.35rem 0 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero,
  .split-page,
  .workspace-grid,
  .proof-grid,
  .pricing-grid,
  .result-grid,
  .hero-points,
  .workspace-stats {
    grid-template-columns: 1fr;
  }

  .topbar,
  .panel-header,
  .recap-head,
  .history-item,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100vw - 1.2rem), var(--max));
  }

  .topbar {
    gap: 0.8rem;
  }

  .brand small {
    max-width: 20ch;
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .form-actions,
  .topnav {
    width: 100%;
  }

  .history-item span {
    white-space: normal;
  }
}
