:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5d6975;
  --line: #d9e1e8;
  --surface: #ffffff;
  --soft: #f4f7f8;
  --accent: #137c72;
  --accent-dark: #0e5e56;
  --warn: #a95f00;
  --risk: #b3261e;
  --ok: #157347;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
textarea,
input {
  font: inherit;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 32, 38, 0.08);
  background: rgba(251, 252, 252, 0.92);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  gap: 18px;
}

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

nav a {
  color: var(--muted);
  font-size: 14px;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  min-height: 72vh;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(56px, 8vw, 98px) clamp(18px, 5vw, 72px) 42px;
  background:
    linear-gradient(115deg, rgba(19, 124, 114, 0.12), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(219, 111, 49, 0.15), transparent 28%),
    #eef5f3;
}

.hero-copy {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
}

.hero-copy > p:not(.eyebrow),
.section-heading p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions,
.control-grid,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.icon-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(23, 32, 38, 0.1);
}

.primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.ghost {
  color: var(--ink);
  background: #fff;
}

.hero-panel {
  border: 1px solid rgba(23, 32, 38, 0.09);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(33, 49, 58, 0.16);
}

.snapshot-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.snapshot-header span,
.price span {
  color: var(--muted);
  font-size: 14px;
}

.meter {
  height: 12px;
  margin: 22px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8e5;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #db6f31);
}

.hero-panel ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-panel li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.workspace,
.pricing,
.checkout,
.faq {
  padding: 64px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 26px;
}

.app-shell {
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 16px 48px rgba(23, 32, 38, 0.08);
}

.sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: var(--soft);
}

.plan-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.plan-panel span,
.fine-print {
  color: var(--muted);
  font-size: 12px;
}

.plan-panel strong {
  display: block;
  margin-top: 4px;
}

label {
  display: grid;
  gap: 8px;
  color: #33414d;
  font-size: 13px;
  font-weight: 800;
}

textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  line-height: 1.45;
}

textarea:focus {
  outline: 3px solid rgba(19, 124, 114, 0.18);
  border-color: var(--accent);
}

input:focus {
  outline: 3px solid rgba(19, 124, 114, 0.18);
  border-color: var(--accent);
}

.results {
  min-width: 0;
  background: #fff;
}

.result-toolbar {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.icon-button {
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.revenue-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff7e8;
  color: #5b3a08;
}

.revenue-banner span {
  flex: 1;
}

.revenue-banner a {
  font-weight: 900;
  text-decoration: underline;
}

.revenue-banner.paid {
  color: #0f5132;
  background: #e8f5ee;
}

.answer-list {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.empty-state {
  display: grid;
  min-height: 420px;
  place-content: center;
  text-align: center;
}

.empty-state p {
  max-width: 480px;
  color: var(--muted);
}

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

.handoff-card {
  border: 1px solid #a7d8c2;
  border-radius: 8px;
  padding: 16px;
  background: #f0faf5;
}

.handoff-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.handoff-card li,
.handoff-card p {
  color: #315144;
  line-height: 1.5;
}

.answer-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.answer-card h3 {
  font-size: 16px;
  line-height: 1.4;
}

.badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.badge.ready {
  color: var(--ok);
  background: #e8f5ee;
}

.badge.review {
  color: var(--warn);
  background: #fff3df;
}

.badge.risk {
  color: var(--risk);
  background: #fdecea;
}

.answer-card textarea {
  min-height: 86px;
  margin-bottom: 12px;
}

.evidence {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
}

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

.price-grid article,
.faq-grid article {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.price-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.price-card.featured {
  border-color: rgba(19, 124, 114, 0.35);
  box-shadow: 0 14px 36px rgba(19, 124, 114, 0.12);
}

.price {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 34px;
  font-weight: 900;
}

.price-grid p:not(.price) {
  color: var(--muted);
  line-height: 1.55;
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  max-width: 1120px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.checkout-grid .button {
  width: 100%;
}

.faq-grid p {
  color: var(--muted);
  line-height: 1.55;
}

footer {
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

footer a {
  margin-left: 12px;
  color: var(--accent-dark);
  font-weight: 800;
}

.legal-page {
  padding: 64px clamp(18px, 5vw, 72px);
}

.legal-page section {
  max-width: 880px;
}

.legal-page h1 {
  font-size: clamp(40px, 6vw, 68px);
}

.legal-page h2 {
  margin-top: 34px;
  font-size: 24px;
}

.legal-page p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .app-shell,
  .price-grid,
  .checkout-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .result-toolbar,
  .answer-card header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 40px;
  }

  .workspace,
  .pricing,
  .checkout,
  .faq {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .revenue-banner,
  .plan-panel {
    align-items: stretch;
    flex-direction: column;
  }
}
