:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --line: #d7dee8;
  --primary: #0f766e;
  --primary-strong: #115e59;
  --accent: #b45309;
  --danger: #b91c1c;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(16px, 4vw, 42px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

h2 {
  font-size: 18px;
}

.topbar p {
  margin-top: 8px;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f7;
}

.tab {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 9px 12px;
  text-decoration: none;
  border-radius: 7px;
  font: inherit;
  font-weight: 750;
}

.tab.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.app-home-link {
  display: inline-flex;
  align-items: center;
}

main {
  padding: 24px clamp(16px, 4vw, 42px) 42px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.layout {
  display: grid;
  gap: 18px;
}

.layout.two {
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

label,
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 450;
  padding: 10px 11px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 92px;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-weight: 550;
}

.checks input {
  width: 16px;
  height: 16px;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  min-height: 40px;
  padding: 9px 13px;
}

button:hover {
  background: var(--primary-strong);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.secondary {
  background: #e7edf3;
  color: #1f2937;
}

.secondary:hover {
  background: #d8e0ea;
}

.icon-button {
  width: 40px;
  padding: 0;
  font-size: 21px;
}

.actions,
.draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.status.error {
  color: var(--danger);
}

.ideas,
.examples-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  min-height: 120px;
  padding: 14px;
  white-space: pre-wrap;
}

.empty {
  color: var(--muted);
}

.draft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.draft-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.draft-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.platform {
  color: var(--primary-strong);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 12px;
}

.status-pill {
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
  padding: 4px 8px;
}

.draft-content {
  color: #253244;
  line-height: 1.48;
  white-space: pre-wrap;
}

.example-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.example-item:last-child {
  border-bottom: 0;
}

.score {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 860px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tabs {
    overflow-x: auto;
  }

  .layout.two {
    grid-template-columns: 1fr;
  }
}

.landing-page {
  --bg: #f6f7f4;
  --panel: #ffffff;
  --text: #17212b;
  --muted: #5d6a76;
  --line: #dfe5e5;
  --primary: #0f766e;
  --primary-strong: #0b5f59;
  --accent: #d97706;
  background: var(--bg);
}

.landing-page main {
  padding: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(16px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(223, 229, 229, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav a {
  color: var(--text);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  font-weight: 750;
}

.site-nav a {
  color: #334155;
}

.site-nav .nav-cta {
  padding: 9px 13px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 108px clamp(16px, 5vw, 56px) 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 247, 244, 0.98) 0%, rgba(246, 247, 244, 0.88) 39%, rgba(246, 247, 244, 0.18) 72%),
    linear-gradient(0deg, rgba(246, 247, 244, 0.86) 0%, rgba(246, 247, 244, 0) 32%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.eyebrow,
.section-kicker {
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 16px;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
}

.hero-subtitle {
  max-width: 520px;
  margin-top: 20px;
  color: #334155;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 900;
  text-decoration: none;
}

.primary-link {
  background: var(--primary);
  color: #fff;
}

.primary-link:hover {
  background: var(--primary-strong);
}

.secondary-link {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.primary-link.compact {
  margin-top: 24px;
}

.trust-row {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 22px;
  color: #475569;
}

.trust-row strong {
  color: var(--accent);
  font-size: 26px;
}

.pain-band {
  padding: 22px clamp(16px, 5vw, 56px);
  background: #17212b;
}

.pain-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pain-list p {
  color: #f8fafc;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 850;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(16px, 5vw, 56px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.section h2 {
  margin-top: 12px;
  max-width: 640px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list article {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list span {
  color: var(--accent);
  font-weight: 950;
}

.feature-list h3 {
  margin: 0;
  font-size: 24px;
}

.feature-list p,
.faq-list p {
  color: var(--muted);
  line-height: 1.6;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  display: grid;
  gap: 10px;
  min-height: 190px;
  align-content: center;
  padding: 24px;
  background: #fff;
}

.stat strong {
  color: var(--primary-strong);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
}

.stat span {
  color: #334155;
  font-weight: 750;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1.25fr);
  gap: clamp(24px, 5vw, 72px);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

details p {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 116px;
  }

  .hero-overlay {
    background: rgba(246, 247, 244, 0.9);
  }

  .pain-list,
  .stats-band,
  .split-section,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 130px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: 42px;
  }
}
