main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  letter-spacing: -0.01em;
}

/* The parallax layers bleed past the page edge; keep that from adding a horizontal scrollbar. */
body {
  overflow-x: clip;
}

/* HERO */
.hero {
  position: relative;
  text-align: center;
  padding: 60px 0 50px;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta {
  padding: 14px 28px;
  font-size: 16px;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* PLATFORMS */
.platforms {
  text-align: center;
  padding: 10px 0 50px;
}

.platforms-label {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.platform-list span {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  opacity: 0.75;
}

/* Shared card-style section wrapper */
.card-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 32px;
  margin-bottom: 60px;
}

.card-section h2 {
  text-align: center;
  font-size: 28px;
  margin: 0 0 8px;
}

/* SAMPLE OUTPUT */
.sample-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 36px;
  align-items: center;
}

.sample-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
}

.sample-status {
  display: inline-block;
  background: var(--success-bg);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.sample-title {
  font-size: 20px;
  margin: 0 0 14px;
}

.sample-keywords-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 4px;
  font-weight: 700;
}

.sample-keywords {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* HOW IT WORKS */
.how-it-works {
  padding: 20px 0 60px;
  text-align: center;
}

.how-it-works h2 {
  font-size: 28px;
  margin: 0 0 36px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* EXPORT */
.export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

.export-card {
  padding: 24px;
  background: var(--bg);
  border-radius: 12px;
}

.export-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

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

/* BENEFITS */
.benefits {
  padding: 20px 0 60px;
  text-align: center;
}

.benefits h2 {
  font-size: 28px;
  margin: 0 0 36px;
}

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

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--primary-tint);
  color: var(--primary);
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
}

.benefit h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

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

/* PRICING */
.pricing-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 32px;
}

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

/* Five cards in three columns: the two on the bottom row sit in the middle. */
@media (min-width: 801px) {
  .pricing-grid { grid-template-columns: repeat(6, 1fr); }
  .pricing-grid > .price-card { grid-column: span 2; }
  .pricing-grid > .price-card:nth-child(4) { grid-column: 2 / span 2; }
}

.price-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  position: relative;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 {
  margin: 4px 0 6px;
  font-size: 17px;
}

.price-card .price {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 18px;
}

.price-card .price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.price-card li {
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.price-card li:first-child {
  border-top: none;
}

.price-card {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
}

.price-card .price {
  margin-bottom: 2px;
}

.price-credits {
  margin: 0 0 16px;
  font-weight: 600;
}

.price-card ul {
  flex: 1;
}

.price-cta {
  width: 100%;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 14px;
}

/* Paid packs are listed before checkout exists: the button is a label. */
.price-soon {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.pricing-notes {
  list-style: none;
  max-width: 720px;
  margin: 28px auto 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.pricing-notes strong {
  color: var(--text);
}

/* FAQ */
.faq {
  padding: 20px 0 60px;
}

.faq h2 {
  text-align: center;
  font-size: 28px;
  margin: 0 0 30px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 18px;
  background: var(--card-bg);
}

.faq-item summary {
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
}

.faq-item p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* FINAL CTA */
.final-cta {
  text-align: center;
  padding: 20px 0 70px;
}

.final-cta h2 {
  font-size: 26px;
  margin: 0 0 22px;
}

/* MOTION — hero parallax layers (positions are set by /motion.js through `translate`) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg > span {
  position: absolute;
}

.hero-blob {
  border-radius: 50%;
}

.hero-blob-a {
  width: 480px;
  height: 480px;
  top: -140px;
  left: -160px;
  background: radial-gradient(circle, rgba(0, 136, 176, 0.2) 0%, rgba(0, 136, 176, 0) 70%);
}

.hero-blob-b {
  width: 380px;
  height: 380px;
  top: 10px;
  right: -120px;
  background: radial-gradient(circle, rgba(214, 0, 108, 0.14) 0%, rgba(214, 0, 108, 0) 70%);
}

.hero-blob-c {
  width: 320px;
  height: 320px;
  bottom: -90px;
  left: 42%;
  background: radial-gradient(circle, rgba(0, 136, 176, 0.14) 0%, rgba(0, 136, 176, 0) 70%);
}

/* Soft glow behind the closing call to action */
.final-cta {
  position: relative;
}

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

.cta-blob {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 320px;
  margin: -160px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 136, 176, 0.16), rgba(0, 136, 176, 0));
  pointer-events: none;
}

/* MOTION
   Everything that moves lives in this one block. It applies only when the visitor's system
   doesn't ask for reduced motion AND the signed-in user hasn't turned animations off in
   Settings (/motion-pref.js and /motion.js put .motion-off on <html> for that case).
   Otherwise the page is fully visible and static. */
@media (prefers-reduced-motion: no-preference) {
  /* Parallax layers are moved by /motion.js through `translate` */
  :root:not(.motion-off) .hero-inner,
  :root:not(.motion-off) .hero-bg > span {
    will-change: translate;
  }

  /* Hero copy rises in on load; chips fade in, then bob */
  :root:not(.motion-off) .hero-inner > * {
    animation: rise-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  :root:not(.motion-off) .hero-inner > :nth-child(2) { animation-delay: 0.12s; }
  :root:not(.motion-off) .hero-inner > :nth-child(3) { animation-delay: 0.24s; }
  :root:not(.motion-off) .hero-inner > :nth-child(4) { animation-delay: 0.36s; }

  @keyframes rise-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
  }

  /* Scroll reveal (classes are added by /motion.js, so nothing is hidden without JS) */
  :root:not(.motion-off) .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }

  :root:not(.motion-off) .reveal[data-reveal="left"]  { transform: translateX(-40px); }
  :root:not(.motion-off) .reveal[data-reveal="right"] { transform: translateX(40px); }
  :root:not(.motion-off) .reveal[data-reveal="scale"] { transform: scale(0.94); }

  :root:not(.motion-off) .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  /* Thin brand-coloured reading-progress bar along the top edge */
  :root:not(.motion-off) .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 100;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform-origin: 0 50%;
    transform: scaleX(0);
    pointer-events: none;
  }
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .hero h1 { font-size: 32px; }
  .sample-grid { grid-template-columns: 1fr; }
  .sample-image { max-width: 480px; margin: 0 auto; width: 100%; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .export-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .pricing-grid { grid-template-columns: 1fr; }
  /* One step per row: two columns leave ~150px per step on a 360px phone. */
  .steps-grid { grid-template-columns: 1fr; }
  /* Give the content more room on phones (32px side padding is too much). */
  .card-section { padding: 32px 18px; }
}
