/* Landing-only layout. Shared documentation styles stay isolated in styles.css. */
.home .hero {
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0;
  background: var(--bg);
}
.home .hero .wrap { max-width: 1180px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 72px); align-items: center; }
/* With a hero video the copy sits beside it; without one it stays a single column. */
.has-hero-video .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.hero-copy { min-width: 0; }
.hero-kicker { margin: 0 0 18px; color: #ff8293; font: 800 12px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.home .hero h1 { max-width: 760px; font-weight: 800; letter-spacing: -.03em; }
.home .hero p.lead { max-width: 690px; }
.home .button { min-height: 48px; padding-inline: 22px; border-radius: 9px; }
.home .button.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.home .button.ghost:hover { border-color: var(--brand); color: #fff; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; color: var(--muted); font: 600 13px/1.4 var(--font); list-style: none; }
.hero-facts li::before { content: "✓"; margin-right: 7px; color: var(--brand); font-weight: 900; }

/* Part of the hero: same background, only a divider line and rules between totals. */
.hero + .stats { margin-top: -1px; padding: 0 0 clamp(40px, 6vw, 64px); border: 0; background: var(--bg); }
.home .hero:has(+ .stats) { border-bottom: 0; }
.stats-list { display: flex; flex-wrap: wrap; gap: 20px 0; margin: 0; padding: clamp(24px, 4vw, 36px) 0 0; border-top: 1px solid var(--line); list-style: none; }
.stats-list li { display: flex; flex: 1 1 140px; flex-direction: column; gap: 2px; padding-inline: clamp(16px, 4vw, 40px); border-left: 1px solid var(--line); }
.stats-list li:first-child { padding-left: 0; border-left: 0; }
.stats-list li[hidden] { display: none; }
.stats-list strong { color: var(--text); font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stats-list span { color: var(--muted); font: 600 14px/1.4 var(--font); }

.hero-hint { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.video-slot { margin: 0; }
.video-slot video { display: block; width: 100%; border: 1px solid #343441; border-radius: 16px; background: #000; box-shadow: 0 28px 80px rgb(0 0 0 / 45%); }
.video-slot figcaption { margin-top: 12px; color: var(--muted); font: 600 14px/1.4 var(--font); text-align: center; }
.video-embed { grid-column: 1 / -1; max-width: 960px; width: 100%; margin: 0 auto; }
.video-embed-play, .video-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid #343441; border-radius: 16px; background: #000; box-shadow: 0 28px 80px rgb(0 0 0 / 45%); }
.video-embed-play { position: relative; padding: 0; overflow: hidden; cursor: pointer; }
.video-embed-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-embed-play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 46px no-repeat; box-shadow: 0 10px 40px rgb(0 0 0 / 50%); transition: transform .15s; }
.video-embed-play:hover::after, .video-embed-play:focus-visible::after { transform: scale(1.08); }
.video-embed figcaption { margin-top: 12px; color: var(--muted); font: 600 14px/1.5 var(--font); text-align: center; }
.video-embed figcaption a { color: inherit; text-decoration: underline; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 4vw, 40px); margin-top: 28px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.feature { padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 12px; background: var(--paper); }
.feature h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.plan.featured { border-color: var(--brand); }
.plan-name { margin: 0; color: #ff8293; font: 800 12px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.plan-price { margin: 10px 0 18px; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.plan-price small { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.plan-tagline { margin: -6px 0 18px; color: var(--muted); font-size: 15px; }
.plan ul { flex: 1; margin: 0 0 24px; padding: 0; list-style: none; }
.plan li { margin-bottom: 8px; color: var(--muted); font-size: 15px; }
.plan li::before { content: "✓"; margin-right: 8px; color: var(--brand); font-weight: 900; }
.plan-note { margin: 0; color: var(--muted); font-size: 14px; }

/* Pre-registration: the offer on one side, the form on the other. */
.prereg-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.prereg[hidden] { display: none; }
.prereg-copy .sub { margin-bottom: 0; }
.prereg-form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 12px; background: var(--paper); }
.prereg-field { display: grid; gap: 6px; color: var(--muted); font: 650 14px/1.3 var(--font); }
.prereg-field input { min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg); color: var(--text); font: 500 16px/1.2 var(--font); }
.prereg-field input:focus-visible { outline: 3px solid #9cc2ad; outline-offset: 1px; border-color: var(--brand); }
.prereg-check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.prereg-check input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.prereg-form .button { width: 100%; cursor: pointer; }
.prereg-form .button:disabled { opacity: .6; cursor: default; }
.prereg-status { min-height: 1.5em; margin: 0; font: 650 14px/1.5 var(--font); }
.prereg-status[data-kind="ok"] { color: var(--brand); }
.prereg-status[data-kind="error"] { color: #b3261e; }
.prereg-status[data-kind="info"] { color: var(--muted); }
@media (max-width: 860px) { .prereg-box { grid-template-columns: minmax(0, 1fr); } }

.closing-cta { text-align: center; }
.closing-cta .wrap { max-width: 760px; }
.closing-cta .sub { margin-inline: auto; }
.closing-cta .actions { justify-content: center; }

/* Footer: brand + store badges, link columns, legal line. */
.home footer.site { margin-top: 0; padding: 56px 0 28px; background: var(--paper); }
.home footer.site .wrap { display: block; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 5vw, 56px); }
.home footer.site .footer-brand .brand { color: var(--text); }
.footer-brand p { max-width: 320px; margin: 14px 0 20px; color: var(--muted); font-size: 14px; }
a.store-badge { color: inherit; text-decoration: none; }
a.store-badge:hover { border-color: var(--brand); }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #000; color: #fff; opacity: .75; cursor: default; user-select: none; }
.store-text { display: flex; flex-direction: column; font: 700 15px/1.2 var(--font); }
.store-text small { color: #ff8293; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.footer-col h4 { margin: 0 0 12px; color: var(--text); font: 800 12px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { display: block; padding: 4px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .has-hero-video .hero-layout { grid-template-columns: minmax(0, 1fr); }
}
