/* ============================================================
   RuntCMS Marketing Site — Shared Stylesheet
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap");

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --accent: #672ccf;
  --accent-dark: #5620b0;
  --accent-light: #ece4f5;
  --near-black: #18181b;
  --subtitle: #3f3f46;
  --body-text: #27272a;
  --muted: #52525c;
  --border: #e4e4e7;
  --bg: #f7f7f7;
  --bg-white: #ffffff;
  --bg-mint: #e7f2ee;
  --bg-blue: #e1ecf7;
  --bg-lavender: #ece4f5;
  --footer-dark: #0f0f1a;
  --section-dark: #0d1738;
  --shadow-purple: 0 0 20px rgba(103, 45, 207, 0.15);
  --nav-height: 78px;
  --content-width: 1200px;
  --section-pad: 100px;
  --radius-card: 10px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --font-serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "Montserrat", system-ui, -apple-system, sans-serif;
}

/* ── Accessibility helpers ──────────────────────────────────── */
.skip-nav {
  position: absolute;
  top: -999px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 15px;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Focus indicators (WCAG 2.4.11) ────────────────────────── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-text);
  background: var(--footer-dark);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ── Typography helpers ─────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 7px;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 400;
  color: var(--near-black);
  line-height: 1.2;
  letter-spacing: 0;
}
.section-subhead {
  font-size: 23px;
  font-weight: 400;
  color: var(--subtitle);
  margin-top: 16px;
  line-height: 1.4;
}

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}
.text-center {
  text-align: center;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: 99px;
  transition:
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s,
    transform 0.2s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  position: relative;
}
.btn::after {
  content: "";
  display: inline-block;
  width: 100%;
  height: 100%;
  border-radius: 99px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  background: var(--accent);
}
.btn-white::after {
  background: #fff;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.btn:hover::after {
  transform: scaleX(1.4) scaleY(1.6);
  opacity: 0;
}
.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 14px 28px;
  font-size: 15px;
}
.btn-outline::after {
  display: none;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 13px 20px;
  font-size: 18px;
  border-color: #fff;
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover {
  background: #ce3e01;
  border-color: #ce3e01;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  padding: 14px 28px;
  font-size: 15px;
  border-color: var(--accent);
}
.btn-secondary:hover {
  background: var(--accent-light);
}

.btn-large {
  background: var(--accent);
  color: #fff;
  padding: 16px 32px;
  font-size: 16px;
  border-color: var(--accent);
}
.btn-large:hover {
  background: #ce3e01;
  border-color: #ce3e01;
}

.btn-cta-pricing {
  display: block;
  width: 100%;
  font-size: 22px;
  background: #E5650B;
  border-color: #E5650B;
  color: #fff;
  text-align: center;
}
.btn-cta-pricing:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-white {
  background: #fff;
  color: var(--accent);
  padding: 16px 32px;
  font-size: 16px;
  border-color: #fff;
  font-weight: 700;
}
.btn-white:hover {
  background: var(--accent-light);
}

/* CTA button (inside CTA section card) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #f7f7fb;
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 700;
  line-height: 25px;
  padding: 5px 25px;
  border-radius: 99px;
  border: 2px solid #fff;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s,
    transform 0.12s;
  margin: 24px auto 0;
}
.btn-cta:hover {
  background: #ce3e01;
}

/* ── Placeholder boxes ──────────────────────────────────────── */
.placeholder-box {
  background: #f0eef8;
  border: 2px dashed #d4c8f0;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 24px;
}
.placeholder-box .ph-icon {
  font-size: 32px;
  opacity: 0.7;
}
.placeholder-video {
  aspect-ratio: 16/9;
  width: 100%;
}
.placeholder-laptop {
  width: 100%;
  height: 500px;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  overflow: visible;
  background: var(--bg);
  transition:
    box-shadow 0.25s,
    border-color 0.25s;
}
.site-nav.scrolled {
}
.nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img {
  height: 34px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  position: relative;
}
.nav-links a {
  font-size: 16px;
  font-weight: 400;
  color: var(--near-black);
  text-decoration: none;
  transition: color 0.15s;
  position: relative;
  padding-bottom: 6px;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a.active {
  color: var(--near-black);
}
.nav-indicator {
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(0);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.15s;
  opacity: 0;
  pointer-events: none;
}
.nav-cta {
  font-size: 16px !important;
  font-weight: 400 !important;
  padding: 5px 25px !important;
  margin-left: auto;
  color: #fff !important;
  margin-top: -10px;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--near-black);
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero Orbs ──────────────────────────────────────────────── */
.hero-orb {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.hero-orb-1 {
  width: 520px;
  height: 420px;
}
.hero-orb-1::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(103, 44, 207, 0.18);
  filter: blur(80px);
}
.hero-orb-2 {
  width: 380px;
  height: 320px;
}
.hero-orb-2::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(103, 44, 207, 0.11);
  filter: blur(80px);
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, #ffffff 0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 80px;
  background: var(--bg);
  overflow: clip;
  text-align: center;
}
.hero-coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ece4f5 0%, #fff 100%);
  border: 2px solid rgba(103, 44, 207, 0.2);
  border-radius: 99px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 400;
  color: var(--accent-dark);
  box-shadow: var(--shadow-purple);
  margin-bottom: 80px;
}
@keyframes word-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(56px, 11vw, 112px);
  font-weight: 400;
  color: var(--near-black);
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 64px;
}
.hero-headline .word {
  display: inline-block;
  opacity: 0;
  animation: word-pop 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
  background: linear-gradient(150deg, var(--near-black) 30%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subhead {
  font-size: 23px;
  font-weight: 400;
  color: var(--subtitle);
  line-height: 28px;
}

/* ── Section: CTA Card ──────────────────────────────────────── */
.section-cta {
  padding: 0 5% 0;
  background: #ffffff;
}
.cta-gradient-wrap {
  background: linear-gradient(135deg, #e8ddf7 0%, #d5c4f2 40%, #dce8fa 100%);
  border-radius: 30px;
  padding: 80px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: var(--shadow-purple);
  padding: 40px 48px;
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.cta-body {
  font-size: 18px;
  font-weight: 400;
  color: var(--near-black);
  line-height: 1.6;
}
.cta-reassurance {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--body-text);
  line-height: 21px;
}
.cta-guarantee {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  line-height: 21px;
}

/* ── Section: Laptop / Video ────────────────────────────────── */
.section-laptop {
  background: #ffffff;
  padding: 40px 0 0;
}
.laptop-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}
.laptop-frame {
  position: relative;
}
.laptop-img {
  display: block;
  width: 100%;
  height: auto;
}
.laptop-screen {
  position: absolute;
  top: 5.82%;
  left: 13.7%;
  width: 72.6%;
  height: 83.3%;
  overflow: hidden;
  background: #000;
}
.laptop-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.laptop-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: background 0.2s;
}
.laptop-play-overlay:hover {
  background: rgba(0, 0, 0, 0.45);
}
.laptop-play-icon {
  width: 18%;
  min-width: 40px;
  max-width: 80px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition:
    transform 0.15s ease,
    opacity 0.15s;
}
.laptop-play-overlay:hover .laptop-play-icon {
  transform: scale(1.1);
}
.laptop-screen.is-playing .laptop-play-overlay {
  display: none;
}
.laptop-pause-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
}
.laptop-pause-flash.show {
  opacity: 1;
}
.laptop-pause-icon {
  width: 14%;
  min-width: 36px;
  max-width: 64px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}
@media (max-width: 640px) {
  .laptop-frame {
    display: contents;
  }
  .laptop-img {
    display: none;
  }
  .laptop-screen {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .laptop-screen video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

/* ── Section: 3 Steps ───────────────────────────────────────── */
.section-steps {
  background: #ffffff;
  padding: var(--section-pad) 0;
}
.steps-header {
  margin-bottom: 56px;
}
.steps-heading {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 400;
  color: var(--near-black);
  line-height: 1.2;
}
.steps-subhead {
  font-size: 23px;
  font-weight: 400;
  color: var(--subtitle);
  margin-top: 16px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  border-radius: var(--radius-card);
  padding: 64px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-card-1 {
  background: var(--bg-mint);
}
.step-card-2 {
  background: var(--bg-blue);
}
.step-card-3 {
  background: var(--bg-lavender);
}
.step-number-wrap {
  background: #fff;
  border-radius: var(--radius-card);
  width: 47%;
  aspect-ratio: 1.04;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 48px;
  flex-shrink: 0;
}
.step-number {
  font-family: var(--font-serif);
  font-size: clamp(80px, 9vw, 144px);
  font-weight: 400;
  color: var(--near-black);
  line-height: 1;
  display: block;
}
.step-title {
  font-size: 21px;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
  text-align: center;
  line-height: 25px;
}
.step-desc {
  font-size: 15px;
  font-weight: 400;
  color: #000;
  line-height: 24px;
  text-align: left;
}
.step-desc code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 16px;
}

/* ── Section: Features ──────────────────────────────────────── */
.section-features {
  position: sticky;
  top: 0; /* overridden by JS to pin at bottom */
  z-index: 1;
  background: var(--section-dark);
  padding: calc(var(--section-pad) + 60px) 0 var(--section-pad);
  clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
  margin-top: -60px;
}
.section-features .eyebrow {
  color: #7f96c3;
}
.section-features .section-heading {
  color: #fff;
}
.section-features .section-subhead {
  color: #7f96c3;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: none;
  box-shadow: none;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(103, 44, 207, 0.25);
}
.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-bottom: 24px;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
}
.feature-icon img {
  width: 52px;
  height: 52px;
}
.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 12px;
  text-align: center;
}
.feature-desc {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.65;
}

/* ── Section: Pricing Teaser ─────────────────────────────────── */
.section-pricing-teaser {
  position: relative;
  z-index: 2;
  background:
    radial-gradient(
      ellipse 60% 50% at 50% 0%,
      rgba(103, 44, 207, 0.09) 0%,
      transparent 70%
    ),
    #f2f0f5;
  padding: var(--section-pad) 0;
  border-radius: 28px;
  box-shadow:
    0 -8px 48px rgba(0, 0, 0, 0.2),
    0 12px 48px rgba(0, 0, 0, 0.18);
}
.pricing-teaser-header {
  margin-bottom: 48px;
}
.pricing-teaser-heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  color: var(--near-black);
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 12px;
}
.pricing-teaser-subhead {
  font-size: 18px;
  color: var(--muted);
}
.pricing-card-wrap {
  max-width: 520px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 48px 40px 40px;
  text-align: center;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.25);
}
.price-tag {
  font-family: var(--font-serif);
  font-size: 96px;
  font-weight: 400;
  color: var(--near-black);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}
.price-tag sup {
  font-family: var(--font-serif);
  font-size: 40px;
  vertical-align: top;
  margin-top: 16px;
  font-weight: 400;
}
.price-subhead {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}
.checklist {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.5;
}
.checklist li::before {
  content: "✓";
  background: #22c55e;
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.guarantee-block {
  background: var(--accent-light);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 28px;
  text-align: left;
}
.guarantee-block p {
  font-size: 14px;
  color: var(--accent-dark);
  line-height: 1.55;
}
.guarantee-block strong {
  font-weight: 700;
}
.checkout-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Pricing Page ───────────────────────────────────────────── */
.section-pricing-card {
  padding: var(--section-pad) 0;
  background: var(--bg);
}
.pricing-card-centered {
  max-width: 560px;
  margin: 0 auto;
}
.pricing-card-centered .pricing-card {
  box-shadow: 0 4px 32px rgba(103, 44, 207, 0.12);
  border: 2px solid var(--border);
}
.dev-note {
  background: #f9f9ff;
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  text-align: left;
}

/* ── Compact hero (inner pages) ─────────────────────────────── */
.hero-compact {
  padding-top: var(--nav-height);
  background: var(--bg-lavender);
  padding-bottom: 64px;
}
.hero-compact-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px 24px 0;
  text-align: center;
}
.hero-compact .hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.hero-compact .hero-subhead-compact {
  font-size: 18px;
  color: var(--subtitle);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Templates Band ──────────────────────────────────────────── */
.section-templates-pricing {
  padding: calc(var(--section-pad) + 60px) 0 var(--section-pad);
  background: var(--section-dark);
  color: #fff;
  clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
  margin-top: -60px;
}
.section-templates-pricing .eyebrow {
  color: #7f96c3;
}
.section-templates-pricing .section-heading {
  color: #fff;
}
.section-templates-pricing .templates-pricing-price {
  color: #fff;
}
.section-templates-pricing .btn-secondary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.section-templates-pricing .btn-secondary::after {
  display: none;
}
.section-templates-pricing .btn-secondary:hover {
  background: #e84d0e;
  border-color: #e84d0e;
  color: #fff;
}
.section-templates-pricing .placeholder-box {
  background: rgba(255, 255, 255, 0.06);
  color: #7f96c3;
  border-color: rgba(255, 255, 255, 0.1);
}
.templates-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.templates-pricing-price {
  font-family: var(--font-serif);
  font-size: 96px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -2px;
  line-height: 1;
  margin: 16px 0;
}
.templates-pricing-price sup {
  font-family: var(--font-serif);
  font-size: 40px;
  vertical-align: top;
  margin-top: 16px;
  font-weight: 400;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.section-faq {
  padding: var(--section-pad) 0;
  background: var(--bg);
  border-radius: 0 0 28px 28px;
  box-shadow:
    0 -8px 48px rgba(0, 0, 0, 0.2),
    0 12px 48px rgba(0, 0, 0, 0.18);
}
.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--bg-white);
  border-radius: 16px;
  border: none;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--near-black);
  cursor: pointer;
  background: none;
  border: none;
  gap: 16px;
  transition: color 0.15s;
}
.faq-question:hover {
  color: var(--accent);
}
.faq-chevron {
  width: 32px;
  height: 32px;
  padding: 6px;
  color: var(--muted);
  flex-shrink: 0;
  background: var(--bg);
  border-radius: 50%;
  transition:
    transform 0.25s,
    background 0.15s;
}
.faq-item:hover .faq-chevron {
  background: var(--border);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}
.faq-answer-inner {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}
.faq-answer-inner a {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Changelog Page ─────────────────────────────────────────── */
.section-changelog {
  padding: var(--section-pad) 0;
  background: var(--bg);
  border-radius: 0 0 28px 28px;
}
.changelog-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.changelog-release {
  border-bottom: 1px solid var(--border);
  padding-bottom: 56px;
}
.changelog-release:last-child {
  border-bottom: none;
}
.changelog-version {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 800;
  color: var(--near-black);
  margin-bottom: 32px;
}
.changelog-date {
  font-weight: 400;
  font-size: 16px;
  color: var(--muted);
}
.changelog-category {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 28px 0 12px;
}
.changelog-release > h3:first-of-type {
  margin-top: 0;
}
.changelog-release ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.changelog-release li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--body-text);
}
.changelog-release li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.changelog-release code {
  font-size: 13px;
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ── Templates Page ─────────────────────────────────────────── */
.section-template-grid {
  padding: var(--section-pad) 0;
  background: var(--bg);
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.template-card {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.template-card:hover {
  box-shadow: 0 8px 32px rgba(103, 44, 207, 0.12);
  transform: translateY(-2px);
}
.template-thumb {
  height: 200px;
  overflow: hidden;
}
.template-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.template-info {
  padding: 20px 24px 24px;
}
.template-tag {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.template-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 8px;
}
.template-desc {
  font-size: 14px;
  color: var(--body-text);
  margin-bottom: 16px;
  line-height: 1.55;
}
.template-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}
.template-actions {
  display: flex;
  gap: 10px;
}
.template-actions .btn {
  font-size: 14px;
  padding: 10px 18px;
}
.template-actions .btn-secondary {
  color: var(--accent);
  background: transparent;
  border-color: var(--accent);
}
.template-actions .btn-secondary::after {
  display: none;
}
.template-actions .btn-secondary:hover {
  color: #e84d0e;
  border-color: #e84d0e;
  background: transparent;
  box-shadow: none;
}
.coming-soon-badge {
  display: inline-block;
  background: #f4f3fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ── Cross-sell Band ─────────────────────────────────────────── */
.section-crosssell {
  background: linear-gradient(135deg, #7b45d4, #5620b0);
  padding: 80px 0;
  text-align: center;
  border-radius: 0 0 28px 28px;
  box-shadow:
    0 -8px 48px rgba(0, 0, 0, 0.2),
    0 12px 48px rgba(0, 0, 0, 0.18);
}
.crosssell-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.crosssell-body {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.crosssell-note {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Learn Page ─────────────────────────────────────────────── */
.section-video {
  background: var(--bg);
  padding: var(--section-pad) 0;
}
.video-container {
  max-width: 840px;
  margin: 48px auto 0;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.section-featured-video {
  padding: var(--section-pad) 0;
  background: var(--section-dark);
  color: rgba(255, 255, 255, 0.85);
}
.section-featured-video .eyebrow {
  color: var(--accent);
}
.section-featured-video .section-heading,
.section-featured-video h2 {
  color: #fff;
}
.section-featured-video .btn-primary {
  border-color: transparent;
}
.section-featured-video .video-caption {
  color: rgba(255, 255, 255, 0.5);
}
.featured-video-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.section-tutorials {
  padding: var(--section-pad) 0;
  background: var(--bg);
}
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.tutorial-card {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.tutorial-card:hover {
  box-shadow: 0 8px 32px rgba(103, 44, 207, 0.1);
  transform: translateY(-2px);
}
.tutorial-card {
  position: relative;
}
.tutorial-thumb {
  position: relative;
}
.tutorial-thumb .video-embed {
  border-radius: 0;
  box-shadow: none;
}
.tutorial-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
}
.tutorial-info {
  padding: 20px 22px 22px;
}
.tutorial-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 8px;
  line-height: 1.35;
}
.tutorial-desc {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.55;
}
.section-docs-cta {
  background: linear-gradient(135deg, #7b45d4, #5620b0);
  padding: 80px 0;
  text-align: center;
  border-radius: 0 0 28px 28px;
  box-shadow:
    0 -8px 48px rgba(0, 0, 0, 0.2),
    0 12px 48px rgba(0, 0, 0, 0.18);
}
.section-docs-cta .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}
.section-docs-cta .section-heading {
  color: #fff;
}
.section-docs-cta p {
  color: rgba(255, 255, 255, 0.8);
}
.section-docs-cta .btn-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.section-docs-cta .btn-secondary::after {
  display: none;
}
.section-docs-cta .btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.docs-cta-inner {
  max-width: 520px;
  margin: 0 auto;
}

/* ── Contact Page ───────────────────────────────────────────── */
.section-contact-routing {
  padding: var(--section-pad) 0;
  background: var(--bg);
}
.contact-options {
  max-width: 620px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-option {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  cursor: pointer;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.contact-option:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(103, 44, 207, 0.1);
}
.contact-option.active {
  border-color: var(--accent);
  background: var(--accent-light);
}
.contact-option-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-option-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 4px;
}
.contact-option-desc {
  font-size: 14px;
  color: var(--muted);
}
.contact-target {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.contact-target.open {
  margin-top: 16px;
  margin-bottom: 16px;
}
.contact-panel {
  background: var(--bg-lavender);
  border-radius: var(--radius-card);
  padding: 32px;
}
.contact-panel h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 12px;
}
.contact-panel p {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.65;
  margin-bottom: 16px;
}
.contact-panel .btn {
  margin-top: 4px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--near-black);
}
.form-group input,
.form-group textarea,
.form-group select {
  font-family: inherit;
  font-size: 15px;
  color: var(--near-black);
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-response-time {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.form-success {
  display: none;
  background: var(--bg-mint);
  border: 2px solid #22c55e;
  border-radius: var(--radius-card);
  padding: 24px 28px;
  text-align: center;
}
.form-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 8px;
}
.form-success p {
  font-size: 15px;
  color: var(--body-text);
}

/* ── Legal Pages ────────────────────────────────────────────── */
.section-legal {
  padding: var(--section-pad) 0;
  background: var(--bg);
  border-radius: 0 0 28px 28px;
  box-shadow:
    0 -8px 48px rgba(0, 0, 0, 0.2),
    0 12px 48px rgba(0, 0, 0, 0.18);
}
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--near-black);
  margin: 40px 0 12px;
  letter-spacing: -0.3px;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--near-black);
  margin: 24px 0 8px;
}
.legal-content p {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.75;
  margin-bottom: 16px;
}
.legal-content ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.75;
}
.legal-content li {
  margin-bottom: 6px;
}
.legal-content a {
  color: var(--accent);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  background: var(--footer-dark);
  padding: 120px 48px 0;
}

/* All sections sit above the fixed footer (site-nav excluded — has its own z-index) */
.hero,
.section-cta,
.section-laptop,
.section-steps,
.hero-compact,
.section-pricing-card,
.section-templates-pricing,
.section-faq,
.section-crosssell,
.section-template-grid,
.section-featured-video,
.section-tutorials,
.section-docs-cta,
.section-contact-routing,
.section-changelog,
.section-legal,
.section-pad,
.section-video {
  position: relative;
  z-index: 1;
}

.section-pad {
  padding: 80px 0;
}
.section-dark-features {
  background: var(--section-dark);
}
.section-dark-features .eyebrow {
  color: #7f96c3;
}
.section-dark-features .section-heading {
  color: #fff;
}
.section-dark-features .section-subhead {
  color: #7f96c3;
}
.section-dark-features .feature-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}
.section-dark-features .feature-title {
  color: #fff;
}
.section-dark-features .feature-desc {
  color: rgba(255, 255, 255, 0.65);
}
.section-dark-features .feature-desc code,
.section-dark-features .code-inline {
  background: rgba(0, 0, 0, 0.5);
  color: #c4b5fd;
}
.code-inline {
  background: #f4f2fd;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 12px;
  color: #5620b0;
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 660px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 48px;
}

.footer-snipit {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
  line-height: 0;
}
.footer-snipit img {
  width: 360px;
  height: auto;
  display: block;
}

.footer-col-heading {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col-links a:hover {
  color: #fff;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  margin-top: 48px;
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
.footer-built-with {
  position: absolute;
  bottom: 0;
  left: 48px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--accent);
  border-radius: 8px 8px 0 0;
  padding: 5px 20px 12px;
}
.footer-built-with-label {
  font-size: 11px;
  font-weight: 400;
  color: rgba(241, 241, 249, 0.7);
  padding-left: 40px;
}

/* ── Scroll Reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Divider ─────────────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: var(--border);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  :root {
    --section-pad: 64px;
  }

  .nav-hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--bg);
    backdrop-filter: blur(12px);
    padding: 24px;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 16px;
    padding: 10px 20px;
    width: 100%;
    text-align: center;
    border-radius: 999px;
  }
  .nav-links a.active {
    background: var(--accent-light);
    color: var(--accent-dark);
  }
  .nav-indicator {
    display: none;
  }
  .nav-cta {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    font-size: 16px !important;
    color: #fff !important;
  }

  .hero-headline {
    font-size: clamp(40px, 12vw, 80px);
  }
  .hero-coming-soon {
    font-size: 15px;
    padding: 10px 16px;
    margin-bottom: 40px;
  }
  .hero-subhead {
    font-size: 18px;
  }

  .cta-card {
    padding: 32px 24px;
  }
  .cta-gradient-wrap {
    padding: 48px 16px;
    border-radius: 20px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .step-number-wrap {
    width: 140px;
    height: 134px;
  }
  .step-number {
    font-size: 90px;
  }

  .section-features {
    clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
    margin-top: -30px;
    padding-top: calc(var(--section-pad) + 30px);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .templates-pricing-grid,
  .featured-video-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
  .tutorial-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 32px 24px;
  }
  .price-tag {
    font-size: 56px;
  }

  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }
  .footer-snipit {
    display: none;
  }
  .footer-bottom {
    justify-content: flex-end;
  }
  .footer-copy {
    position: static;
    transform: none;
  }
}

@media (max-width: 550px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 24px 0 20px;
  }
  .footer-built-with {
    position: static;
    border-radius: 8px;
    align-items: center;
    width: fit-content;
    margin: 0 auto;
  }

  .contact-option {
    flex-direction: column;
    gap: 12px;
  }
}

/* ── Reduced motion (WCAG 2.2.2, 2.3.3) ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  /* Stop orb animation — hidden by JS too */
  .hero-orb {
    display: none;
  }
  /* Ensure headline words are visible even if animation skipped */
  .hero-headline .word {
    opacity: 1 !important;
    animation: none !important;
  }
  /* Scroll reveal — show immediately, no transition */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* Disable button halo expansion */
  .btn::after {
    display: none;
  }
  /* Disable card hover lift */
  .feature-card {
    transition: none;
  }
  /* Disable pricing section entrance */
  .section-pricing-teaser {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
