:root {
  --ink: #292827;
  --muted: #6f6c69;
  --canvas: #f7f6f3;
  --surface: #ffffff;
  --warm: #e9e5dd;
  --line: #dcd7d3;
  --line-strong: #bcb6b1;
  --purple: #17152d;
  --purple-2: #24205a;
  --accent: #cbb7fb;
  --green: #267a51;
  --blue: #236d90;
  --shadow: 0 18px 48px rgba(41, 40, 39, 0.12);
  --radius: 8px;
  --font: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 16px/1.5 var(--font);
  letter-spacing: 0;
}
a { color: inherit; text-underline-offset: 0.22em; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
:where(a, button):focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; box-shadow: 0 0 0 4px rgba(203, 183, 251, 0.55); }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: white;
  background: var(--purple);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-hero {
  overflow: hidden;
  color: white;
  background:
    linear-gradient(120deg, rgba(23, 21, 45, 0.96), rgba(36, 32, 90, 0.92)),
    linear-gradient(0deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08));
}
.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand, .nav-links {
  display: flex;
  align-items: center;
}
.brand {
  gap: 11px;
  color: white;
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--purple);
  background: var(--accent);
  font-weight: 850;
}
.nav-links {
  gap: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: white; }
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 140ms, background 140ms, border-color 140ms;
}
.button:hover { transform: translateY(-1px); }
.button-primary, .button-light {
  color: var(--purple);
  background: var(--accent);
}
.button-primary:hover, .button-light:hover { background: #bda5f5; }
.button-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}
.site-hero .button-ghost {
  border-color: rgba(255,255,255,0.34);
  color: white;
  background: rgba(255,255,255,0.08);
}
.button-dark {
  color: white;
  background: var(--purple);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  gap: 56px;
  align-items: center;
  min-height: 690px;
  padding: 52px 0 86px;
}
.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-hero .eyebrow { color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(46px, 6.3vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}
h3 { margin-bottom: 8px; font-size: 20px; line-height: 1.18; }
.hero-lede {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 22px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.76);
  font-size: 13px;
}
.hero-proof span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}

.product-preview {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background: #fbfaf8;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.preview-topbar {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 750;
}
.status { color: var(--green); }
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
}
.draft-panel, .rewrite-panel {
  padding: 24px;
}
.draft-panel {
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.rewrite-panel { background: #f4f0eb; }
.panel-label {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.draft-panel p, .rewrite-panel p {
  color: var(--ink);
  font: 20px/1.72 Georgia, "Times New Roman", serif;
}
.voice-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}
.voice-pill {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  background: var(--surface);
  cursor: pointer;
}
.voice-pill.is-active {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--accent);
}
.meter {
  overflow: hidden;
  width: 120px;
  height: 7px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--warm);
}
.meter span {
  display: block;
  width: 72%;
  height: 100%;
  background: var(--green);
}
.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}
.preview-stats div {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.preview-stats div:last-child { border-right: 0; }
.preview-stats dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.preview-stats dd {
  margin: 3px 0 0;
  font-size: 24px;
  font-weight: 850;
}

.section { padding: 88px 0; }
.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}
.section-heading p {
  color: var(--muted);
  font-size: 18px;
}
.compact { margin-bottom: 0; }
.feature-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.feature-card, .proof-card, .price-card, .security-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature-card {
  min-height: 245px;
  padding: 22px;
}
.feature-card p, .proof-card p, .price-card p, .security-list p, .timeline p {
  color: var(--muted);
}
.icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: var(--radius);
  color: var(--purple);
  background: var(--warm);
}
.workflow-band, .pricing-band { background: var(--surface); }
.workflow-grid, .security-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 58px;
  align-items: start;
}
.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
}
.timeline span {
  grid-row: 1 / 3;
  color: var(--blue);
  font-weight: 850;
}
.timeline strong { font-size: 18px; }
.timeline p { margin: 4px 0 0; }
.proof-band { background: var(--warm); }
.proof-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.proof-card {
  min-height: 190px;
  padding: 22px;
}
.proof-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}
.price-card.featured {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple) inset, var(--shadow);
}
.tier-row {
  display: flex;
  min-height: 26px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tier-row span:last-child {
  color: var(--purple);
  letter-spacing: 0;
  text-transform: none;
}
.price-card h3 {
  margin: 0;
  color: var(--purple);
  font-size: 40px;
}
.price-card h3 small {
  color: var(--muted);
  font-size: 14px;
}
.price-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.security-band { background: #fbfaf8; }
.security-list {
  display: grid;
  gap: 12px;
}
.security-list article {
  padding: 20px;
}
.security-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}
.security-list p { margin-bottom: 0; }
.policy-body {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.7;
}
.policy-body h2 {
  margin: 30px 0 8px;
  color: var(--ink);
  font-size: 1.12rem;
}
.policy-body p { margin: 0 0 14px; }
.final-cta {
  padding: 72px 0;
  color: white;
  background: var(--purple);
}
.final-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.final-grid h2 {
  max-width: 780px;
  margin: 0;
}
.final-grid .button-dark {
  color: var(--purple);
  background: var(--accent);
}
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}
.footer-row, .footer-row div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 980px) {
  .hero-grid, .workflow-grid, .security-grid, .proof-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid { min-height: 0; padding: 44px 0 68px; }
  .product-preview { max-width: 720px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .nav { align-items: flex-start; padding: 16px 0; }
  .nav-links {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 14px;
  }
  .nav-links a:not(.button):not(.nav-signin) { display: none; }
  .hero-grid { gap: 34px; }
  h1 { font-size: 44px; }
  .hero-lede { font-size: 17px; }
  .preview-grid, .preview-stats, .feature-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .draft-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .meter { width: 100%; margin-left: 0; }
  .section { padding: 60px 0; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline span { grid-row: auto; }
  .final-grid, .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .nav { flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  .nav-links .button { width: 100%; }
  .hero-actions .button { width: 100%; }
  .draft-panel p, .rewrite-panel p { font-size: 18px; }
  .price-card h3 { font-size: 34px; }
}
