@import url('https://fonts.bunny.net/css?family=space-grotesk:500,600,700|ibm-plex-sans:400,500,600');

:root {
  --ink: #14171F;
  --ink-line: #2A2E3A;
  --paper: #F6F4EF;
  --paper-line: #DAD5C9;
  --slate: #5B6270;
  --slate-soft: #8A8F9B;
  --amber: #D9A441;
  --amber-deep: #B8842E;
  --white: #FFFFFF;

  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand .dot { color: var(--amber-deep); }
.logo-mark { flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
}
.nav-links a {
  text-decoration: none;
  color: var(--slate);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--ink);
  padding: 9px 18px;
  border-radius: 3px;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: #262b38; }
.btn-ghost {
  border: 1px solid var(--paper-line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 96px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow-plain {
  color: var(--slate);
  font-size: 15px;
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  max-width: 12ch;
}
.hero p.lede {
  font-size: 19px;
  color: var(--slate);
  max-width: 42ch;
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 14px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--slate-soft); }

.diagram-box {
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  background: var(--white);
  padding: 28px;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .slate { color: #A7ADBC; }
hr.rule {
  border: none;
  border-top: 1px solid var(--paper-line);
  margin: 0;
}
.section-dark + section, section + .section-dark { border-top: 1px solid var(--paper-line); }

.kicker {
  font-size: 15px;
  color: var(--amber-deep);
  margin: 0 0 12px;
  font-weight: 500;
}
.section-dark .kicker { color: var(--amber); }

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  max-width: 18ch;
}

.section-intro { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; margin-bottom: 48px; }
.section-intro p { color: var(--slate); max-width: 38ch; margin: 0; font-size: 16px; }
.section-dark .section-intro p { color: #A7ADBC; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--paper-line);
}
.step {
  padding: 32px 28px 0;
  border-left: 1px solid var(--paper-line);
}
.step:first-child { border-left: none; }
.step-num {
  font-family: var(--display);
  font-size: 15px;
  color: var(--amber-deep);
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
}
.step p { color: var(--slate); font-size: 15px; margin: 0; }

/* ---------- Platform row ---------- */
.platform-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 8px;
}
.platform-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--slate);
}
.platform-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
}

/* ---------- Feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split h2 { max-width: none; }
.feature-list { list-style: none; margin: 24px 0 0; padding: 0; }
.feature-list li {
  padding: 16px 0;
  border-top: 1px solid var(--ink-line);
  font-size: 15.5px;
  color: #D3D6DD;
}
.feature-list li:last-child { border-bottom: 1px solid var(--ink-line); }
.feature-list strong { color: var(--paper); font-weight: 600; display: block; margin-bottom: 4px; }

/* ---------- Pricing ---------- */
.pricing-intro {
  color: var(--slate);
  font-size: 16px;
  max-width: 52ch;
  margin: -28px 0 40px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  align-items: stretch;
}
.price-card {
  background: var(--paper);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.price-card.highlight { background: var(--white); }
.price-tier { font-size: 15px; color: var(--slate); margin: 0 0 14px; font-weight: 500; }
.price-amount {
  font-family: var(--display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-amount span { font-size: 15px; color: var(--slate); font-family: var(--sans); font-weight: 400; }
.price-sub { font-size: 14.5px; color: var(--slate-soft); margin: 0 0 28px; min-height: 40px; }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; flex-grow: 1; }
.price-list li {
  font-size: 14.5px;
  color: var(--ink);
  padding: 11px 0;
  border-top: 1px solid var(--paper-line);
}
.price-list li:first-child { border-top: none; }
.price-card .btn { align-self: flex-start; }
.pricing-foot {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--slate-soft);
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: left;
  padding: 72px 0;
}
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 16ch; }

/* ---------- Footer ---------- */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--paper-line);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; gap: 28px; font-size: 14px; }
.footer-links a { text-decoration: none; color: var(--slate); }
.footer-links a:hover { color: var(--ink); }
.footer-legal { font-size: 13px; color: var(--slate-soft); }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--paper-line); }
.legal-hero .kicker { margin-bottom: 10px; }
.legal-hero h1 {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.legal-hero .updated { color: var(--slate-soft); font-size: 14px; }
.legal-body { padding: 48px 0 96px; max-width: 720px; }
.legal-body h2 {
  font-size: 22px;
  margin: 40px 0 14px;
  max-width: none;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: #33384A; font-size: 15.5px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-note {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-left: 3px solid var(--amber);
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--slate);
  margin: 32px 0;
}

/* ---------- Phone mockup + composer animation ---------- */
.phone-shell {
  width: 300px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(20, 23, 31, 0.35);
}
.phone-notch {
  width: 70px;
  height: 18px;
  background: var(--ink);
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.phone-screen {
  background: var(--white);
  border-radius: 22px;
  margin-top: -18px;
  padding: 26px 20px 22px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}
.phone-app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--slate-soft);
  margin-bottom: 18px;
}
.phone-app-bar .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--paper-line); }

.composer-image {
  width: 100%;
  height: 108px;
  border-radius: 6px;
  background: linear-gradient(135deg, #EDE8DC, #D9A441 140%);
  opacity: 0;
  transform: scale(0.96);
  margin-bottom: 14px;
  animation: cImage 8s infinite;
}
.composer-line {
  height: 9px;
  border-radius: 2px;
  background: #E2DFD5;
  overflow: hidden;
  margin-bottom: 8px;
  width: 0%;
  opacity: 0;
}
.composer-line.l1 { animation: cLine1 8s infinite; }
.composer-line.l2 { width: 68%; animation: cLine2 8s infinite; }

.composer-pills { display: flex; gap: 6px; margin: 14px 0 4px; flex-wrap: wrap; }
.composer-pill {
  font-size: 11.5px;
  color: var(--amber-deep);
  background: #FBF1DD;
  border: 1px solid #EED8A6;
  border-radius: 10px;
  padding: 4px 10px;
  opacity: 0;
  transform: translateY(4px);
}
.composer-pill.p1 { animation: cPop 8s infinite; }
.composer-pill.p2 { animation: cPop 8s infinite; animation-delay: 0s; }
.composer-pill.p3 { animation: cPop 8s infinite; }

.composer-tag {
  font-size: 12px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 4px;
  padding: 6px 10px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
}
.composer-tag .spark { color: var(--amber-deep); }

.composer-divider {
  height: 1px;
  background: var(--paper-line);
  margin: 16px 0 12px;
  opacity: 0;
  animation: cFadeSimple 8s infinite;
}
.composer-send-label {
  font-size: 11.5px;
  color: var(--slate-soft);
  margin-bottom: 10px;
  opacity: 0;
  animation: cFadeSimple 8s infinite;
}

.composer-badges { display: flex; gap: 10px; }
.composer-badge {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid var(--paper-line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--slate-soft);
  opacity: 0.4;
}
.composer-badge svg { width: 18px; height: 18px; }
.composer-badge .check {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
}
.composer-badge.b1 { animation: cBadge 8s infinite; }
.composer-badge.b1 .check { animation: cCheck 8s infinite; }
.composer-badge.b2 { animation: cBadge2 8s infinite; }
.composer-badge.b2 .check { animation: cCheck2 8s infinite; }
.composer-badge.b3 { animation: cBadge3 8s infinite; }
.composer-badge.b3 .check { animation: cCheck3 8s infinite; }
.composer-badge.b4 { animation: cBadge4 8s infinite; }
.composer-badge.b4 .check { animation: cCheck4 8s infinite; }

.composer-done {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--amber-deep);
  opacity: 0;
  animation: cFadeSimple 8s infinite;
  animation-delay: 0s;
}

@keyframes cImage {
  0%, 2% { opacity: 0; transform: scale(0.96); }
  8% { opacity: 1; transform: scale(1); }
  88% { opacity: 1; transform: scale(1); }
  94%, 100% { opacity: 0; transform: scale(0.96); }
}
@keyframes cLine1 {
  0%, 9% { width: 0%; opacity: 0; }
  10% { opacity: 1; }
  20% { width: 88%; opacity: 1; }
  88% { width: 88%; opacity: 1; }
  94%, 100% { width: 0%; opacity: 0; }
}
@keyframes cLine2 {
  0%, 22% { opacity: 0; }
  23% { opacity: 1; }
  88% { opacity: 1; }
  94%, 100% { opacity: 0; }
}
@keyframes cPop {
  0%, 37% { opacity: 0; transform: translateY(4px); }
  40% { opacity: 1; transform: translateY(0); }
  88% { opacity: 1; transform: translateY(0); }
  94%, 100% { opacity: 0; transform: translateY(4px); }
}
@keyframes cFadeSimple {
  0%, 57% { opacity: 0; }
  60% { opacity: 1; }
  88% { opacity: 1; }
  94%, 100% { opacity: 0; }
}
@keyframes cBadge {
  0%, 63% { opacity: 0.4; }
  66% { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes cCheck {
  0%, 65% { opacity: 0; transform: scale(0.5); }
  68% { opacity: 1; transform: scale(1); }
  93% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(0.5); }
}
@keyframes cBadge2 {
  0%, 69% { opacity: 0.4; }
  72% { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes cCheck2 {
  0%, 71% { opacity: 0; transform: scale(0.5); }
  74% { opacity: 1; transform: scale(1); }
  93% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(0.5); }
}
@keyframes cBadge3 {
  0%, 75% { opacity: 0.4; }
  78% { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes cCheck3 {
  0%, 77% { opacity: 0; transform: scale(0.5); }
  80% { opacity: 1; transform: scale(1); }
  93% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(0.5); }
}
@keyframes cBadge4 {
  0%, 81% { opacity: 0.4; }
  84% { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes cCheck4 {
  0%, 83% { opacity: 0; transform: scale(0.5); }
  86% { opacity: 1; transform: scale(1); }
  93% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .composer-image, .composer-line, .composer-pill, .composer-tag,
  .composer-divider, .composer-send-label, .composer-badge, .composer-badge .check,
  .composer-done { animation: none !important; opacity: 1 !important; width: auto !important; transform: none !important; }
  .composer-line.l1 { width: 88%; }
}

/* ---------- Step icons ---------- */
.step-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  position: relative;
}
.step-icon svg { width: 100%; height: 100%; }

.icon-upload-arrow {
  animation: iconUp 2.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes iconUp {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-3px); opacity: 0.6; }
}

.icon-write-line {
  animation: iconWrite 2.6s ease-in-out infinite;
}
@keyframes iconWrite {
  0% { width: 0; }
  45% { width: 100%; }
  75% { width: 100%; }
  100% { width: 0; }
}
.icon-spark {
  transform-origin: center;
  animation: iconSpark 1.8s ease-in-out infinite;
}
@keyframes iconSpark {
  0%, 100% { transform: scale(0.85) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.05) rotate(8deg); opacity: 1; }
}

.icon-dot { animation: iconDotFade 3.2s ease-in-out infinite; }
.icon-dot.d1 { animation-delay: 0s; }
.icon-dot.d2 { animation-delay: 0.3s; }
.icon-dot.d3 { animation-delay: 0.6s; }
.icon-dot.d4 { animation-delay: 0.9s; }
@keyframes iconDotFade {
  0%, 100% { fill: var(--paper-line); }
  30%, 70% { fill: var(--amber); }
}

/* ---------- Platform icons ---------- */
.platform-row {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-top: 8px;
}
.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--slate);
  width: 64px;
  text-align: center;
}
.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--paper-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.platform-icon svg { width: 22px; height: 22px; }
.platform-item.soon { color: var(--slate-soft); }
.platform-item.soon .platform-icon { border-style: dashed; color: var(--slate-soft); }

/* ---------- Waitlist modal ---------- */
.wl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 23, 31, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.wl-overlay.open { display: flex; }
.wl-modal {
  background: var(--paper);
  border-radius: 6px;
  max-width: 420px;
  width: 100%;
  padding: 36px 32px 32px;
  position: relative;
  box-shadow: 0 30px 70px -20px rgba(20, 23, 31, 0.45);
}
.wl-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--slate);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}
.wl-close:hover { background: var(--paper-line); color: var(--ink); }
.wl-modal h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
}
.wl-modal p.wl-sub {
  color: var(--slate);
  font-size: 14.5px;
  margin: 0 0 22px;
}
.wl-field { margin-bottom: 14px; }
.wl-field label {
  display: block;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 6px;
}
.wl-field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}
.wl-field input:focus { outline: none; border-color: var(--ink); }
.wl-submit {
  width: 100%;
  margin-top: 6px;
  border: none;
  cursor: pointer;
}
.wl-error {
  color: #B3432E;
  font-size: 13.5px;
  margin-top: 10px;
  display: none;
}
.wl-error.show { display: block; }
.wl-success { display: none; text-align: left; }
.wl-success.show { display: block; }
.wl-success h3 { margin-bottom: 10px; }
.wl-success p { color: var(--slate); font-size: 15px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: none; border-top: 1px solid var(--paper-line); padding-top: 28px; }
  .step:first-child { border-top: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section-intro { flex-direction: column; align-items: flex-start; gap: 16px; }
  .phone-shell { width: 260px; }
  .pricing-intro { margin-top: 0; }
}
