/* ============================================================
   Convertize AI — editorial, premium design system
   Paper, ink, one accent. Quiet motion.
   ============================================================ */

:root {
  --paper: #f7f4ee;
  --paper-deep: #f1ece2;
  --card: #fdfcf9;
  --ink: #1b1712;
  --ink-soft: #4d463c;
  --muted: #8b8375;
  --line: #e2dccd;
  --line-strong: #d3cbb8;
  --accent: #e05c39;
  --accent-deep: #c84b2b;
  --accent-soft: rgba(224, 92, 57, 0.08);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 1, 0.4, 1);
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  background: var(--paper);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: rgba(224, 92, 57, 0.22); }

.inner {
  width: calc(100% - 48px);
  max-width: 1120px;
  margin: 0 auto;
}
.inner--narrow { max-width: 760px; }
.inner--wide { max-width: 1180px; }

em {
  font-style: italic;
  color: var(--accent);
}

/* ---------------- type ---------------- */
.eyebrow {
  display: block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow--light { color: rgba(247, 244, 238, 0.55); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.section-title em { font-weight: 400; }

.section-sub {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 480px;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 26px -12px rgba(27, 23, 18, 0.45);
}
.btn--ink:hover {
  background: #2c261e;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(27, 23, 18, 0.5);
}
.btn--ink:active { transform: translateY(0); }

.btn--paper {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
}
.btn--paper:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.btn--lg { padding: 17px 36px; font-size: 15.5px; }
.btn--sm { padding: 10px 22px; font-size: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--ink); border-color: var(--ink); }
.link-arrow:hover span { transform: translateY(3px); }

/* ---------------- nav ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(247, 244, 238, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease,
              backdrop-filter 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(247, 244, 238, 0.85);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: calc(100% - 48px);
  max-width: 1120px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__mark { width: 32px; height: 32px; }
.nav__wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__links a:hover { color: var(--ink); background: rgba(27, 23, 18, 0.05); }

.nav__burger {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  background: var(--card);
}
.nav__burger span {
  position: absolute; left: 12px; right: 12px; height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 24px; }
.nav__burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 24px 26px;
  background: rgba(247, 244, 238, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a:not(.btn) {
  padding: 14px 4px;
  color: var(--ink-soft);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.nav__mobile .btn { margin-top: 16px; }
.nav__mobile.is-open { display: flex; }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 92px) 0 0;
  text-align: center;
  overflow: hidden;
}

/* soft warm halo behind the headline */
.hero::before {
  content: "";
  position: absolute;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 640px;
  background: radial-gradient(ellipse, rgba(224, 92, 57, 0.07), transparent 65%);
  pointer-events: none;
}

.hero__headline {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero__sub {
  position: relative;
  margin: 30px auto 0;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 17.5px;
}

.hero__actions {
  position: relative;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.hero__note {
  position: relative;
  margin-top: 34px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- conceptual flow diagram --- */
.flow {
  position: relative;
  margin: 84px auto 0;
  padding: 46px 48px 42px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, var(--card), rgba(253, 252, 249, 0));
}

.flow__track {
  position: absolute;
  top: 68px;
  left: 9%;
  right: 9%;
  height: 1px;
}
.flow__rail {
  position: absolute;
  inset: 0;
  background: var(--line-strong);
}
.flow__pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 76px;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  animation: flow-travel 5.5s var(--ease) infinite;
}
@keyframes flow-travel {
  0%   { left: -8%; opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 102%; opacity: 0; }
}

.flow__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.flow__dot {
  width: 11px; height: 11px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.6px solid var(--line-strong);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.flow__step--accent .flow__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.flow__label {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.flow__step--accent .flow__label { color: var(--accent-deep); }

.flow__desc {
  color: var(--muted);
  font-size: 13px;
}

/* ---------------- claims strip ---------------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
  overflow: hidden;
  padding: 15px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.strip__track {
  display: flex;
  width: max-content;
  animation: strip-scroll 44s linear infinite;
}
.strip:hover .strip__track { animation-play-state: paused; }
.strip__group { display: flex; align-items: center; flex-shrink: 0; }
.strip__group span {
  padding: 0 30px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.strip__group i {
  color: var(--accent);
  font-style: normal;
  font-size: 8px;
}
@keyframes strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------- sections ---------------- */
.section { padding: 128px 0; }

.section--framed {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  max-width: 640px;
  margin-bottom: 72px;
}

.section__cols {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: start;
}
.section__left {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

/* ---------------- ledger (numbered editorial list) ---------------- */
.ledger { border-top: 1px solid var(--line); }

.ledger__row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease);
}
.ledger__row:hover { padding-left: 10px; }

.ledger__num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding-top: 5px;
}

.ledger__row h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.ledger__row p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 460px;
}

/* ---------------- steps ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.steps__item {
  padding: 8px 32px 8px 0;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.steps__item:first-child { border-left: 0; padding-left: 0; }

.steps__num {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 26px;
}
.steps__num--accent { color: var(--accent); }

.steps__item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 12px;
}
.steps__item p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ---------------- outcomes ---------------- */
.outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.outcomes__item {
  padding: 48px 40px 8px 0;
  border-right: 1px solid var(--line);
  margin-right: 40px;
}
.outcomes__item:last-child { border-right: 0; margin-right: 0; }

.outcomes__figure {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.outcomes__item:last-child .outcomes__figure { color: var(--accent); }

.outcomes__item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.outcomes__item p {
  color: var(--ink-soft);
  font-size: 14.5px;
}
.outcomes__item p strong { color: var(--ink); font-weight: 600; }

/* ---------------- comparison ---------------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.compare__col {
  border-radius: 22px;
  padding: 42px 44px;
}

.compare__col h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.compare__col h3 img { width: 26px; height: 26px; }

.compare__col ul { display: flex; flex-direction: column; }
.compare__col li {
  position: relative;
  padding: 13px 0 13px 30px;
  font-size: 15px;
  border-bottom: 1px solid;
}
.compare__col li:last-child { border-bottom: 0; }
.compare__col li::before {
  position: absolute;
  left: 2px;
  font-size: 13px;
}

.compare__col--old {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}
.compare__col--old h3 { color: var(--ink-soft); }
.compare__col--old li { border-color: var(--line); }
.compare__col--old li::before { content: "—"; color: var(--line-strong); }

.compare__col--new {
  background: var(--ink);
  color: rgba(247, 244, 238, 0.8);
  box-shadow: 0 30px 70px -30px rgba(27, 23, 18, 0.5);
}
.compare__col--new h3 { color: var(--paper); }
.compare__col--new li { border-color: rgba(247, 244, 238, 0.12); }
.compare__col--new li::before { content: "✓"; color: var(--accent); }

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

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

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}
.faq__item summary:hover { color: var(--accent-deep); }
.faq__item summary::-webkit-details-marker { display: none; }

.faq__mark {
  position: relative;
  flex: 0 0 22px;
  height: 22px;
}
.faq__mark::before, .faq__mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 1.5px;
  background: var(--ink-soft);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), background 0.25s ease;
}
.faq__mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__mark::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item[open] .faq__mark::before,
.faq__item[open] .faq__mark::after { background: var(--accent); }

.faq__body { padding: 0 4px; }
.faq__body p {
  padding-bottom: 28px;
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 620px;
}

/* ---------------- final CTA (dark) ---------------- */
.cta {
  background: var(--ink);
  color: var(--paper);
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  bottom: -300px; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 560px;
  background: radial-gradient(ellipse, rgba(224, 92, 57, 0.14), transparent 65%);
  pointer-events: none;
}

.cta__inner { position: relative; max-width: 720px; }

.cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.cta h2 em { color: var(--accent); }

.cta__sub {
  margin: 26px auto 40px;
  max-width: 520px;
  color: rgba(247, 244, 238, 0.72);
  font-size: 16.5px;
}

.cta__note {
  margin-top: 24px;
  color: rgba(247, 244, 238, 0.45);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------------- footer ---------------- */
.footer {
  background: var(--ink);
  color: rgba(247, 244, 238, 0.6);
  border-top: 1px solid rgba(247, 244, 238, 0.1);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--paper);
}
.footer__mark { width: 26px; height: 26px; }
.footer__tag { font-size: 13.5px; }
.footer__copy { margin-left: auto; font-size: 13px; }

/* ---------------- reveal ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- responsive ---------------- */
@media (max-width: 1000px) {
  .section__cols { grid-template-columns: 1fr; gap: 48px; }
  .section__left { position: static; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .steps__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .outcomes { grid-template-columns: 1fr; border-top: 0; }
  .outcomes__item {
    border-right: 0;
    margin-right: 0;
    padding: 40px 0;
    border-top: 1px solid var(--line);
  }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

@media (max-width: 800px) {
  .compare { grid-template-columns: 1fr; }
  .flow { padding: 38px 26px 34px; }
  .flow__track { display: none; }
  .flow__steps { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
}

@media (max-width: 620px) {
  .inner { width: calc(100% - 36px); }
  .section { padding: 92px 0; }
  .hero { padding-top: calc(var(--nav-h) + 60px); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; max-width: 340px; }
  .flow { margin-top: 60px; }
  .flow__steps { grid-template-columns: 1fr; gap: 26px; }
  .flow__step { flex-direction: column; }
  .ledger__row { grid-template-columns: 48px 1fr; gap: 12px; padding: 28px 0; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps__item { border-left: 0; padding-left: 0; padding-right: 0; }
  .compare__col { padding: 32px 26px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__copy { margin-left: 0; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .strip__track { animation: none; }
  .flow__pulse { display: none; }
}
