/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ============ Palette ============ */
:root {
  --ink: #000000;
  --paper: #F7F7F4;
  --accent: #4F46E5;
  --accent-hover: #5B54E8;

  --ink-04: rgba(14,15,17,0.04);
  --ink-08: rgba(14,15,17,0.08);
  --ink-14: rgba(14,15,17,0.14);
  --ink-40: rgba(14,15,17,0.40);
  --ink-60: rgba(14,15,17,0.62);

  --paper-06: rgba(247,247,244,0.06);
  --paper-10: rgba(247,247,244,0.10);
  --paper-18: rgba(247,247,244,0.18);
  --paper-50: rgba(247,247,244,0.55);
  --paper-70: rgba(247,247,244,0.72);

  --accent-14: rgba(79,70,229,0.14);
  --accent-30: rgba(79,70,229,0.30);

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1160px;
}

/* ============ Base ============ */
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 600; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 600;
  margin-bottom: 14px;
}

.lede {
  font-size: 1.05rem;
  color: var(--ink-60);
  max-width: 46ch;
}

.accent { color: var(--accent); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-teal { background: var(--accent); color: var(--paper); }
.btn-teal:hover { background: var(--accent-hover); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-14); }
.btn-ghost:hover { border-color: var(--ink-40); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink-14); }
.btn-outline:hover { border-color: var(--accent); }

.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-lg { padding: 15px 30px; font-size: 0.98rem; }
.btn-block { width: 100%; }

/* ============ Top bar ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.topbar.scrolled {
  border-bottom-color: var(--paper-10);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-icon {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  filter: invert(1);
}

.logo-img {
  height: 72px;
  width: auto;
  display: block;
  filter: invert(1);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  font-size: 0.88rem;
  color: var(--paper-70);
  transition: color 0.15s ease;
}
.nav a:not(.btn):hover { color: var(--paper); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.nav-toggle span {
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
}

/* ============ Hero ============ */
.hero { padding: 36px 0 100px; background: var(--paper); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.check-list { margin: 30px 0 38px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; color: var(--ink-60); }
.check-list strong { color: var(--ink); font-weight: 600; }
.check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-14);
  color: var(--accent);
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.fine-print { margin-top: 14px; font-size: 0.8rem; color: var(--ink-40); }

/* ---- Hero product screenshot ---- */
.hero-shot {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin-left: auto;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(14,15,17,0.18);
  border: 1px solid var(--ink-08);
  object-fit: cover;
  object-position: right center;
}

/* ---- How-it-works steps ---- */
.step-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--ink-08);
}
.step-row:last-of-type { border-bottom: none; }
.step-row.reverse .step-copy { order: 2; }
.step-num { font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.step-copy h2 { margin-bottom: 16px; }
.step-shot {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--ink-08);
  box-shadow: 0 24px 60px rgba(14,15,17,0.12);
}

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--ink-04); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 640px; }
.eyebrow-right { margin-bottom: 0; }

/* ============ Feature grid ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-08);
  border: 1px solid var(--ink-08);
  border-radius: 14px;
  overflow: hidden;
}
.feature-card {
  background: var(--paper);
  padding: 32px 28px;
  transition: background 0.2s ease;
}
.feature-card:hover { background: var(--ink-04); }
.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p:not(.kicker) { color: var(--ink-60); font-size: 0.92rem; }

/* ============ Showcase ============ */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.showcase-card h3 { margin: 20px 0 8px; }
.showcase-card p { color: var(--ink-60); font-size: 0.92rem; }

.showcase-shot {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 1px solid var(--ink-08);
  box-shadow: 0 10px 30px rgba(14,15,17,0.06);
}

/* ============ Who it's for ============ */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.numbered-list { display: flex; flex-direction: column; gap: 30px; }
.numbered-list li { display: flex; gap: 18px; }
.numbered-list .num { font-size: 0.8rem; font-weight: 700; color: var(--accent); flex-shrink: 0; padding-top: 2px; }
.numbered-list h3 { margin-bottom: 6px; }
.numbered-list p { color: var(--ink-60); font-size: 0.95rem; }

/* ============ Pricing ============ */
.section-pricing { background: var(--ink-04); }
.pricing-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.pricing-head .eyebrow { text-align: center; }
.pricing-head .lede { margin: 14px auto 0; }

.page-head { text-align: center; max-width: 640px; margin: 0 auto 24px; }
.page-head .eyebrow { text-align: center; }
.page-head .lede { margin: 14px auto 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(125,216,204,0.16);
  transform: translateY(-8px);
}
.price-badge {
  position: absolute;
  top: -13px; left: 28px;
  background: var(--accent);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}
.price-plan { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.price-num { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-period { font-size: 0.85rem; color: var(--ink-40); }
.price-desc { font-size: 0.88rem; color: var(--ink-60); margin-bottom: 22px; min-height: 60px; }
.price-note { font-size: 0.72rem; color: var(--ink-40); text-align: center; margin-top: 10px; }

.price-card-body { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ink-08); }
.price-includes { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-40); margin-bottom: 14px; }
.price-features { display: flex; flex-direction: column; gap: 11px; }
.price-features li {
  font-size: 0.86rem;
  color: var(--ink-60);
  padding-left: 20px;
  position: relative;
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- Breakdown accordion ---- */
.breakdown { margin-top: 64px; }
.breakdown-label { text-align: center; font-size: 0.78rem; color: var(--ink-40); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 20px; }

.accordion { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--ink-08); }
.accordion-item { border-bottom: 1px solid var(--ink-08); }
.accordion-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6px;
  font-weight: 600;
  font-size: 0.96rem;
}
.accordion-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.accordion-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--ink-40);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.accordion-item[open] summary::after { content: "–"; }
.accordion-item ul { padding: 0 6px 22px; display: flex; flex-direction: column; gap: 9px; }
.accordion-item li { font-size: 0.88rem; color: var(--ink-60); padding-left: 18px; position: relative; }
.accordion-item li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-40);
}
.accordion-item p { padding: 0 6px 22px; color: var(--ink-60); font-size: 0.92rem; max-width: 60ch; }

.accordion-faq { margin-top: 8px; }

/* ============ Forms (start-trial, contact) ============ */
.form-panel {
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: 16px;
  padding: 36px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label { font-size: 0.82rem; font-weight: 600; }
.form-field input,
.form-field textarea,
.form-field select {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--ink-14);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.92rem;
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-fine-print { font-size: 0.78rem; color: var(--ink-40); margin-top: 4px; text-align: center; }

.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--ink-60); font-size: 0.92rem; }
.form-panel.is-submitted form { display: none; }
.form-panel.is-submitted .form-success { display: block; }

.recap-panel {
  background: var(--ink-04);
  border: 1px solid var(--ink-08);
  border-radius: 16px;
  padding: 32px;
}
.recap-panel h3 { margin-bottom: 18px; }

/* ============ Newsletter band ============ */
.cta-band { background: var(--ink); padding: 100px 0; }
.cta-band-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.cta-band-inner h2 { color: var(--paper); margin-bottom: 14px; }
.cta-band-inner p { color: var(--paper-70); margin-bottom: 32px; font-size: 1rem; }

.newsletter-band { background: var(--ink); padding: 100px 0; }
.newsletter-inner { text-align: center; max-width: 480px; margin: 0 auto; }
.newsletter-inner .eyebrow { color: var(--paper-70); text-align: center; }
.newsletter-inner h2 { color: var(--paper); margin-bottom: 14px; }
.newsletter-sub { color: var(--paper-70); margin-bottom: 32px; font-size: 1rem; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border-radius: 8px;
  border: 1px solid var(--paper-18);
  background: var(--paper-06);
  color: var(--paper);
  font-family: var(--font);
  font-size: 0.92rem;
}
.newsletter-form input::placeholder { color: var(--paper-50); }
.newsletter-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.newsletter-note { margin-top: 14px; font-size: 0.78rem; color: var(--paper-50); }
.newsletter-success { display: none; color: var(--paper); font-size: 0.98rem; font-weight: 600; }
.newsletter-inner.is-submitted .newsletter-form,
.newsletter-inner.is-submitted .newsletter-note { display: none; }
.newsletter-inner.is-submitted .newsletter-success { display: block; }

/* ============ Contact Us modal ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14,15,17,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: 16px;
  padding: 32px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(14,15,17,0.25);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink-04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}
.modal-close:hover { background: var(--ink-08); }
.modal-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.modal-card h3 { margin-bottom: 4px; }
.modal-role { color: var(--ink-60); font-size: 0.88rem; margin-bottom: 22px; }
.modal-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
  padding: 12px 0;
  border-top: 1px solid var(--ink-08);
}
.modal-contact-row .modal-label { color: var(--ink-60); font-size: 0.82rem; }
.modal-contact-row a { font-weight: 600; }
.modal-contact-row a:hover { color: var(--accent); }
.modal-card .btn { margin-top: 20px; }

/* ============ Footer ============ */
.footer { background: var(--ink); padding: 32px 0; border-top: 1px solid var(--paper-06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { font-size: 0.84rem; color: var(--paper-70); }
.footer-nav a:hover { color: var(--paper); }
.footer-copy { font-size: 0.78rem; color: var(--paper-50); }

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .who-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; gap: 48px; }
  .showcase-shot { height: 420px; max-width: 420px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card-featured { transform: none; }
  .step-row { grid-template-columns: 1fr; gap: 32px; }
  .step-row.reverse .step-copy { order: 0; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav { position: fixed; top: 56px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: flex-start; padding: 20px; gap: 18px; border-bottom: 1px solid var(--paper-10); transform: translateY(-120%); transition: transform 0.25s ease; }
  .nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 28px 0 64px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .newsletter-form { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .form-panel { padding: 24px; }
  .step-row { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .step-row.reverse .step-copy { order: 0; }
}
