/* Landing page sections: hero, steps, styles, pricing, FAQ. */

/* Hero */

.hero {
  padding-block: var(--space-8) var(--space-7);
  position: relative;
  overflow: clip;
}

.hero h1 em {
  font-style: normal;
}

.hero-inner {
  display: grid;
  gap: var(--space-6);
  max-width: 54rem;
}

.hero h1 {
  font-size: var(--text-h1);
}

.hero h1 em {
  color: var(--accent);
}

.hero-sub {
  font-size: var(--text-xl);
  color: var(--ink-soft);
  max-width: 38rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.hero-note {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.hero-figure {
  margin-top: var(--space-7);
}

/* Short desktop viewports (the 1366x768 / 1280x800 laptops most paid
   traffic arrives on): stacked, the slider sat almost entirely below the
   fold, so a proof-density lander opened on a screen of text. Here the
   hero goes side-by-side: pitch left, the full 4:3 slider right, both
   inside the first screen. Tall desktops keep the stacked composition;
   phones keep their peek rule below. */
@media (min-width: 960px) and (max-height: 940px) {
  .hero {
    padding-block: var(--space-6) var(--space-6);
  }

  .hero > .container {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-6);
    align-items: center;
  }

  .hero-inner {
    gap: var(--space-4);
  }

  .hero-sub {
    font-size: var(--text-lg);
  }

  .hero-figure {
    margin-top: 0;
  }
}

/* On phones, tighten the hero so the slider peeks above the fold:
   cut-off content is the scroll cue. */
@media (max-width: 719px) {
  .hero {
    padding-block: var(--space-5) var(--space-5);
  }

  .hero-inner {
    gap: var(--space-4);
  }

  .hero-sub {
    font-size: var(--text-lg);
  }

  .hero-figure {
    margin-top: var(--space-5);
  }
}

/* Load-in stagger */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rise {
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.rise-1 { animation-delay: 60ms; }
.rise-2 { animation-delay: 160ms; }
.rise-3 { animation-delay: 260ms; }
.rise-4 { animation-delay: 360ms; }
.rise-5 { animation-delay: 480ms; }

/* Steps strip */

.steps {
  border-block: 1px solid var(--line);
  background: var(--paper-deep);
}

.steps ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-6);
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: baseline;
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--accent);
}

.steps h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.steps p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

@media (min-width: 720px) {
  .steps ol {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

  .steps li:not(:first-child) {
    border-left: 1px solid var(--line-strong);
    padding-left: var(--space-6);
  }
}

/* Section scaffolding */

.section {
  /* Was space-9; tightened 2026-07-19 to pull the page's total height in. */
  padding-top: var(--space-8);
}

/* Mid-page CTA bands: the actionable elements between hero and pricing.
   A small top gap keeps each band attached to the section it answers. */

.cta-band-section {
  padding-top: var(--space-7);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  border: var(--border-hard);
  border-radius: var(--radius-md);
  background: var(--paper-card);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5) var(--space-6);
}

.cta-band-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.15;
}

.cta-band-note {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

@media (max-width: 719px) {
  .cta-band {
    padding: var(--space-5);
  }

  .cta-band .btn {
    width: 100%;
  }
}

.section-head {
  max-width: 40rem;
  margin-bottom: var(--space-7);
  display: grid;
  gap: var(--space-3);
}

.section-head h2 {
  font-size: var(--text-h2);
}

.section-head p {
  color: var(--ink-soft);
  font-size: var(--text-lg);
}

/* Proof wall */

.proof-grid {
  display: grid;
  gap: var(--space-6) var(--space-5);
}

@media (min-width: 720px) {
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.proof-card {
  display: grid;
  gap: var(--space-3);
}

.proof-card figcaption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

.proof-card figcaption strong {
  font-weight: 500;
  color: var(--ink);
}

.proof-card-wide {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 46rem;
  justify-self: center;
}

/* Sticky mobile CTA */

.mobile-cta {
  display: none;
}

@media (max-width: 719px) {
  .mobile-cta {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--paper) 65%, transparent);
    z-index: 6;
    transform: translateY(110%);
    transition: transform 250ms ease;
    pointer-events: none;
  }

  .mobile-cta.is-visible {
    transform: none;
    pointer-events: auto;
  }

  .mobile-cta .btn {
    width: 100%;
  }

  .site-footer {
    padding-bottom: calc(var(--space-9) + env(safe-area-inset-bottom));
  }
}

/* Style catalog grid: one room, every style */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 720px) {
  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.catalog-tile {
  position: relative;
  border: var(--border-hard);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-card);
}

.catalog-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 250ms ease;
}

.catalog-tile:hover img {
  transform: scale(1.04);
}

.catalog-tile figcaption {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(16, 16, 16, 0.82);
  color: var(--paper);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* Pricing */

.pricing {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-5);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--space-5);
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: "";
  position: absolute;
  inset: auto auto -55% -20%;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43, 60, 255, 0.35), transparent 70%);
  pointer-events: none;
}

.pricing > * {
  position: relative;
}

.pricing .kicker {
  color: var(--accent-soft);
}

.pricing h2 {
  font-size: var(--text-h2);
  max-width: 24ch;
}

.pricing .hero-note {
  color: #8a8a82;
}

.pricing-free-note {
  color: #8a8a82;
  font-size: var(--text-sm);
}

.pricing-free-note a {
  color: var(--accent-soft);
}

.pricing-anchor {
  color: #a3a39b;
  max-width: 34rem;
}

.price-toggle {
  display: inline-flex;
  border: 1px solid #3d3d38;
  border-radius: var(--radius-pill);
  padding: 0.25rem;
  gap: 0.25rem;
}

.price-toggle-btn {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a3a39b;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.55em 1.1em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.price-toggle-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.price-toggle-save {
  font-size: 0.85em;
  color: var(--accent-soft);
}

.price-toggle-btn.is-active .price-toggle-save {
  color: #cdd3ff;
}

.plan-grid {
  display: grid;
  gap: var(--space-4);
  width: 100%;
  max-width: 60rem;
  text-align: left;
}

@media (min-width: 720px) {
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
    /* One shared card height; the feature list flexes below so every
       CTA pins to the same baseline (polish pass 2026-07-24). */
    align-items: stretch;
  }
}

.plan-card {
  background: var(--paper-card);
  color: var(--ink);
  border: var(--border-hard);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}

.plan-card.is-featured {
  border: 2px solid var(--accent);
  box-shadow: 8px 8px 0 rgba(43, 60, 255, 0.65);
}

@media (min-width: 720px) {
  /* The featured card breaks the shared top line upward so the eye
     lands on Pro before it lands on a price. */
  .plan-card.is-featured {
    margin-top: calc(-1 * var(--space-3));
    padding-top: var(--space-6);
  }
}

.plan-tag {
  position: absolute;
  top: -0.85em;
  left: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #fff;
  padding: 0.2em 0.7em;
}

.plan-name {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.plan-price {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.2rem);
  line-height: 1;
}

.plan-price small {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink-soft);
}

.plan-note {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--ink-soft);
  margin-top: calc(-1 * var(--space-2));
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
  align-content: start;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  /* The list absorbs the height difference between plans, pinning every
     CTA to the card's foot. */
  flex: 1;
}

.plan-card ul li {
  display: flex;
  gap: 0.55em;
  align-items: baseline;
}

.plan-card ul li::before {
  content: "\2713";
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--accent);
}

/* The headline feature (the credit allowance) carries the row weight. */
.plan-card ul li:first-child {
  color: var(--ink);
  font-weight: 600;
}

.plan-cta {
  width: 100%;
  text-align: center;
  margin-top: var(--space-2);
}

/* FAQ */

.faq {
  display: grid;
  gap: var(--space-3);
}

.faq details {
  background: var(--paper-card);
  border: var(--border-hard);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

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

.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  color: var(--accent);
  font-size: 1.4em;
  line-height: 1;
  transition: transform 200ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-top: var(--space-3);
  color: var(--ink-soft);
}

/* Subscribe placeholder page */

.placeholder-page {
  min-height: 55vh;
  display: grid;
  align-content: center;
  gap: var(--space-4);
  padding-block: var(--space-8);
}

.placeholder-page h1 {
  font-size: var(--text-h2);
}

.placeholder-page p {
  color: var(--ink-soft);
  font-size: var(--text-lg);
  max-width: 34rem;
}
