:root {
  --paper: #f1f4ef;
  --surface: #fbfcf8;
  --ink: #101914;
  --muted: #5d6b62;
  --line: #d5ddd2;
  --forest: #1b3b2d;
  --forest-2: #142a21;
  --amber: #d99a2b;
  --amber-ink: #9c6410;
  --amber-soft: #f4e7c8;
  --rose: #b4513f;
  --display: 'Prata', Georgia, serif;
  --sans: 'Golos Text', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 154, 43, 0.08), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(27, 59, 45, 0.08), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.brand small {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

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

.button-primary {
  background: var(--amber);
  color: #17150f;
}

.button-primary:hover {
  background: #e7ad43;
}

.button-ghost {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  color: var(--ink);
}

.button-ghost:hover {
  background: var(--surface);
}

.button-light {
  background: var(--paper);
  color: var(--forest);
}

.header-cta {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  padding: clamp(56px, 9vw, 112px) 0 clamp(42px, 6vw, 78px);
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 6.4vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 em,
.section h2 em {
  color: var(--amber-ink);
  font-style: normal;
}

.lead {
  max-width: 34rem;
  margin: 24px 0 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.micro {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.preview {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(241, 244, 239, 0.14);
  border-radius: 14px;
  background:
    radial-gradient(circle at 70% 18%, rgba(217, 154, 43, 0.16), transparent 16rem),
    linear-gradient(145deg, var(--forest), var(--forest-2));
  color: #eef3ec;
  box-shadow: 0 24px 70px rgba(20, 42, 33, 0.18);
  overflow: hidden;
}

.preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(241, 244, 239, 0.12) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
}

.preview > * {
  position: relative;
  z-index: 1;
}

.preview-top,
.preview-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(238, 243, 236, 0.58);
}

.preview-word {
  margin: 54px 0 16px;
  font-family: var(--display);
  font-size: clamp(54px, 8vw, 86px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
}

.orp {
  color: var(--amber);
}

.preview-line {
  width: min(250px, 70%);
  height: 1px;
  margin: 0 auto 16px;
  background: rgba(238, 243, 236, 0.16);
  position: relative;
}

.preview-line span {
  position: absolute;
  left: 40%;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.preview-bottom {
  margin-bottom: 28px;
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(238, 243, 236, 0.12);
  border: 1px solid rgba(238, 243, 236, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.preview-cards div {
  padding: 12px;
  background: rgba(20, 42, 33, 0.72);
}

.preview-cards b {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--amber);
}

.preview-cards span {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(238, 243, 236, 0.5);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div {
  padding: 20px 18px;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats b {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stats span {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section {
  padding: clamp(58px, 8vw, 104px) 0;
}

.section-head {
  max-width: 700px;
  margin-bottom: 34px;
}

.section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-head > p:last-child {
  max-width: 600px;
  margin: 16px 0 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature {
  min-height: 210px;
  padding: 22px;
  background: var(--surface);
}

.feature-index {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
}

.feature h3 {
  margin: 24px 0 8px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.how {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.how-grid > div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.step {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-soft);
  color: #6e4a0d;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.how-grid h3 {
  margin: 14px 0 8px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
}

.how-grid p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

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

.text-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.text-card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 154, 43, 0.55);
}

.text-meta,
.text-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.badge {
  padding: 2px 6px;
  border: 1px solid rgba(217, 154, 43, 0.5);
  border-radius: 3px;
  color: #8b5c10;
  text-transform: uppercase;
  font-size: 8px;
}

.text-card h3 {
  margin: 22px 0 8px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
}

.text-card p {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.text-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cognitive {
  background:
    radial-gradient(circle at 82% 15%, rgba(217, 154, 43, 0.18), transparent 22rem),
    var(--forest);
  color: var(--paper);
}

.cognitive .eyebrow {
  color: #e9b85f;
}

.cognitive-inner {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.cognitive h2 {
  color: var(--paper);
}

.cognitive p {
  max-width: 560px;
  color: rgba(241, 244, 239, 0.68);
}

.cognitive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(241, 244, 239, 0.16);
  background: rgba(241, 244, 239, 0.16);
}

.cognitive-grid div {
  padding: 24px 16px;
  background: rgba(20, 42, 33, 0.6);
}

.cognitive-grid b {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  color: var(--amber);
}

.cognitive-grid span {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(241, 244, 239, 0.55);
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
}

.price-card-pro {
  background: var(--forest);
  color: var(--paper);
}

.price-card-head .micro {
  color: var(--muted);
}

.price-card-pro .micro {
  color: rgba(241, 244, 239, 0.58);
}

.price-value {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-card-head p {
  max-width: 420px;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.price-card-pro .price-card-head p {
  color: rgba(241, 244, 239, 0.64);
}

.price-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.price-card-pro .price-list {
  border-color: rgba(241, 244, 239, 0.16);
  color: rgba(241, 244, 239, 0.76);
}

.price-list li {
  position: relative;
  padding-left: 18px;
}

.price-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber-ink);
}

.price-card-pro .price-list li::before {
  color: var(--amber);
}

.price-card .button {
  margin-top: auto;
  width: 100%;
}

.price-card-pro .button-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--forest-2);
}

.price-card-pro .button-primary:hover {
  background: var(--amber-soft);
  border-color: var(--amber-soft);
}

.price-note {
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
  color: var(--muted);
}

.price-card-pro .price-note {
  color: rgba(241, 244, 239, 0.52);
}

.price-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.price-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-strip span {
  position: relative;
  padding-left: 14px;
}

.price-strip span::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--amber-ink);
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 18px 36px 18px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--amber-ink);
}

.faq details[open] summary::after {
  content: '−';
}

.faq p {
  max-width: 720px;
  margin: -4px 0 20px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.final-cta {
  padding: clamp(52px, 7vw, 86px) 0;
  background: var(--amber-soft);
  border-top: 1px solid rgba(139, 92, 16, 0.18);
}

.final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.final-inner h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.final-inner p {
  margin: 0;
  color: #6c552d;
}

.footer {
  padding: 28px 0;
  background: var(--forest-2);
  color: rgba(241, 244, 239, 0.72);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 14px;
  color: var(--paper);
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
  font-size: 12px;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-copy {
  width: 100%;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(241, 244, 239, 0.12);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(241, 244, 239, 0.42);
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero,
  .cognitive-inner {
    grid-template-columns: 1fr;
  }

  .preview {
    max-width: 560px;
  }

  .feature-grid,
  .library-grid,
  .how-grid {
    grid-template-columns: 1fr 1fr;
  }

  .final-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .header-inner {
    min-height: 60px;
    gap: 12px;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    margin-left: auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .stats div:nth-child(2) {
    border-right: 0;
  }

  .stats div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .feature-grid,
  .library-grid,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 0;
  }

  .preview-word {
    margin-top: 42px;
  }

  .final-inner .button {
    width: 100%;
  }

  .footer-links {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Legal and support pages */
.legal-page {
  max-width: 780px;
  padding: clamp(42px, 7vw, 76px) 0 80px;
}

.legal-page h1 {
  margin: 8px 0 18px;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.legal-page h2 {
  margin: 34px 0 10px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.legal-page p,
.legal-page li {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-lead {
  max-width: 680px;
  font-size: 16px !important;
  color: var(--ink) !important;
}

.legal-note {
  margin-top: 38px;
  padding: 16px 18px;
  border: 1px solid rgba(217, 154, 43, 0.45);
  background: rgba(217, 154, 43, 0.08);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  color: #7a5511;
}

.support-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.support-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.form-consent input {
  margin-top: 2px;
  flex-shrink: 0;
}

.form-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.support-thanks .hero-actions {
  margin-top: 26px;
}

@media (max-width: 620px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .support-form {
    padding: 16px;
  }
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 16px;
  width: min(760px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 16px 48px rgba(16, 25, 20, 0.14);
}

.cookie-banner p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}

.cookie-banner a {
  color: var(--forest);
}

.cookie-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.cookie-actions button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-actions .cookie-accept {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper);
}

.cookie-actions button:hover {
  opacity: 0.86;
}

@media (max-width: 620px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions button {
    flex: 1;
  }
}

.faq p a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}
