/* Home: one fixed canvas (decoration, aria-hidden) behind native-scrolling HTML stops.
   Without WebGL / with reduced motion / before the 3D loads, each stop paints its own background
   and the hero shows a still render of the 3D Otto365 (the poster). */

.home { background: var(--night); }
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; }
.stage.ready canvas { opacity: 1; }
.stop-hero .poster { position: absolute; z-index: 0; right: max(2vw, calc(50% - 660px)); top: 50%; width: min(46vw, 620px); height: auto; transform: translateY(-46%); transition: opacity .6s ease; }
.stop-hero .wrap { position: relative; z-index: 1; }
.has-3d .stop-hero .poster { opacity: 0; }

.stop { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 24px) 0 48px; }
.stop .wrap { display: flex; }
.stop.right .wrap { justify-content: flex-end; }
.panel { max-width: 34rem; }
.stop-hero .panel { max-width: 40rem; }
.stop-hero h1 { font-size: clamp(2.2rem, 1.2rem + 3.3vw, 4rem); }
.stop h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.7rem); }
.stop p { font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 4px rgba(229, 72, 77, .18); }
@media (prefers-reduced-motion: no-preference) { .eyebrow .dot { animation: onair 1.8s ease-in-out infinite; } }
@keyframes onair { 50% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } }

/* Stop backgrounds: used as-is when there is no canvas; transparent over the canvas. */
.stop-hero { background: radial-gradient(120% 90% at 75% 45%, #FFFFFF 0%, #EEF0FA 55%, #E4E7F5 100%); }
.stop[data-theme="dark"] { background: radial-gradient(110% 80% at 60% 50%, #1A2250 0%, var(--night) 70%); }
.has-3d .stop { background: transparent; }

/* Text panels over 3D keep AA contrast against the brightest frame (rule R6): a soft scrim. */
.has-3d .panel { padding: clamp(20px, 3vw, 32px); border-radius: 22px; }
.has-3d .stop-hero .panel { background: linear-gradient(90deg, rgba(246, 247, 251, .82), rgba(246, 247, 251, .55)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.has-3d .panel.on-night { background: rgba(10, 15, 36, .62); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(148, 140, 246, .18); }
.on-night, .on-night h2, .on-night h3 { color: var(--on-night); }
.on-night p, .on-night li { color: var(--on-night-2); }
.on-night .eyebrow { color: var(--lavender); }
.on-night strong { color: #fff; }
.muted-night { color: var(--on-night-2); font-size: .95rem !important; }
.link-night { color: #C9C5FF; }
.link-night:hover { color: #fff; }

.today { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 26px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); color: var(--ink); text-decoration: none; max-width: 36rem; }
.today:hover { color: var(--ink); box-shadow: var(--shadow); }
.today-title { font-weight: 650; }
.today.pending { color: var(--ink-2); font-size: 1rem !important; }

.points { margin: 18px 0 0; padding-left: 1.3em; display: grid; gap: 12px; }
.points strong { display: block; }
.proof { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 12px; }
.proof li { display: flex; gap: 12px; align-items: flex-start; }
.proof .ic { color: var(--lavender); margin-top: .2em; }
.ep-list { list-style: none; margin: 16px 0 22px; padding: 0; display: grid; gap: 8px; }
.ep-list a { display: flex; gap: 12px; align-items: baseline; color: var(--on-night); text-decoration: none; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.ep-list a:hover { background: rgba(255, 255, 255, .1); }
.ep-list time { margin-left: auto; color: var(--on-night-2); font-size: .9rem; }

/* Flat conversion content: the canvas is paused behind it (rule R10). */
.flat { position: relative; z-index: 1; background: var(--paper); }
.get-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.follow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.promo { padding-top: 0; }
.promo-card { border-radius: 26px; padding: clamp(26px, 4vw, 48px); background: linear-gradient(135deg, #111842, #1B2466 60%, #2A2F8F); color: var(--on-night); position: relative; overflow: hidden; }
.promo-card h2 { color: #fff; max-width: 22ch; }
.promo-card p { color: var(--on-night-2); max-width: 60ch; }
.promo-label { display: inline-block; font: 700 .75rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .12); padding: 7px 12px; border-radius: 999px; }
.promo-card .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.promo-card .btn.ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Pause motion (WCAG 2.2.2): shown only once motion is running. */
.motion-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid rgba(15, 22, 46, .18); color: var(--ink-2); border-radius: 999px; min-height: 40px; padding: 0 14px; font: 600 .88rem/1 var(--font-text); cursor: pointer; }
.motion-btn .when-off { display: none; }
.motion-btn[aria-pressed="true"] .when-on { display: none; }
.motion-btn[aria-pressed="true"] .when-off { display: inline-flex; }
.motion-btn span { display: inline-flex; align-items: center; gap: 6px; }
.site-header.on-dark .motion-btn { color: var(--on-night-2); border-color: rgba(255, 255, 255, .25); }

@media (max-width: 860px) {
  .stop { align-items: flex-end; padding-bottom: 28px; }
  .stop.right .wrap { justify-content: flex-start; }
  .stop-hero .poster { width: min(78vw, 420px); right: 50%; top: calc(var(--header-h) + 8px); transform: translateX(50%); }
  .stop-hero { align-items: flex-end; padding-top: calc(var(--header-h) + 34vh); }
  .has-3d .stop-hero .panel { background: rgba(246, 247, 251, .9); }
  .get-grid { grid-template-columns: 1fr; }
  .motion-btn span span { display: none; }
  .motion-btn { padding: 0 10px; margin-left: auto; }
  .site-header .btn.sm { margin-left: 0; }
}
