/* Front page: the first screen (the existing auth layout) and the feature sections below it. */

/* The first screen fills the window below the header. "See how it works" closes it: its own last row (a fixed height, so floating it never moves the page), centred on the page under both columns, clear of the card above and the rounded edge below. */
.home-main .auth-shell { min-height: calc(100dvh - 64px); grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr) 56px; padding-block-start: calc(var(--space-7) + 8px); padding-block-end: 40px; }
.home-main .auth-stage-wrap { grid-row: 1 / 5; }
.home-main .auth-brand__top { display: none; }

.home-scroll-cue { grid-column: 1 / -1; grid-row: 5; justify-self: center; align-self: end; display: flex; align-items: center; gap: 10px; width: fit-content; height: 48px; margin: 0; padding: 0 6px 0 20px; border: 0; border-radius: 999px; background: var(--accent-strong); color: var(--accent-contrast); font-size: 0.9375rem; font-weight: 650; text-decoration: none; box-shadow: var(--shadow-md); transition: opacity 200ms ease, transform 300ms ease, box-shadow 200ms ease; }
/* Desktop, while its spot is below the fold: centred at the bottom of the window (site.js). */
.home-scroll-cue.is-floating { position: fixed; bottom: 24px; left: 50%; z-index: 15; translate: -50% 0; box-shadow: var(--shadow-lg); }
.home-scroll-cue.is-fading { opacity: 0; pointer-events: none; }
.home-scroll-cue:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.home-scroll-cue:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.home-scroll-cue__arrow { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--accent-contrast); color: var(--accent-strong); animation: home-cue 1.8s var(--ease-standard) infinite; }
.home-scroll-cue__arrow svg { width: 18px; height: 18px; }
@keyframes home-cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.home-sections { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 112px); padding: clamp(56px, 8vw, 104px) clamp(16px, 5vw, 64px); scroll-margin-top: 64px; }
.home-section { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 5vw, 72px); width: min(1180px, 100%); margin: 0 auto; }
.home-section.is-reversed .home-section__copy { order: 2; }
.home-section__copy { display: flex; flex-direction: column; gap: var(--space-3); }
.home-kicker { color: var(--accent-strong); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.home-section h2, .home-cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.15; }
.home-section p, .home-cta p { color: var(--color-text-muted); font-size: 1.0625rem; line-height: 1.65; }
.home-shot { margin: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-surface); box-shadow: var(--shadow-lg); }
.home-shot img { display: block; width: 100%; height: auto; }
.home-section.has-narrow-shot .home-shot { justify-self: center; width: min(320px, 100%); border-radius: 28px; }
.home-section:nth-of-type(3) .home-shot { justify-self: center; width: min(520px, 100%); }
.home-facts { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.home-facts li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface); font-size: 1.0625rem; }
.home-facts svg { flex: 0 0 26px; width: 26px; height: 26px; color: var(--accent-strong); }
.home-sections .pricing { width: min(1120px, 100%); margin: 0 auto; scroll-margin-top: 80px; }
.home-cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); width: min(720px, 100%); margin: 0 auto; padding: clamp(32px, 5vw, 56px); border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-surface); text-align: center; box-shadow: var(--shadow-sm); }
.home-cta .btn { margin-top: var(--space-2); text-decoration: none; }

@media (max-width: 900px) {
	.home-section { grid-template-columns: minmax(0, 1fr); }
	.home-section.is-reversed .home-section__copy { order: 0; }
	.home-main .auth-shell { min-height: 0; padding-block-end: var(--space-7); }
	.home-scroll-cue { align-self: center; }
	.home-scroll-cue.is-floating { position: static; translate: none; }
}
@media (prefers-reduced-motion: reduce) { .home-scroll-cue { transition: none; } .home-scroll-cue__arrow { animation: none; } }

/* "See it in action" slideshow. */
.home-demo { display: flex; flex-direction: column; gap: var(--space-3); width: min(1180px, 100%); margin: 0 auto; }
.home-demo__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.home-demo__controls { display: flex; gap: var(--space-2); }
.home-demo__button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--color-border); border-radius: 50%; background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 1.1rem; cursor: pointer; }
.home-demo__button:hover, .home-demo__button:focus-visible { border-color: var(--accent); outline: none; }
.home-demo__slide { margin: 0; background: var(--color-surface); }
.home-demo__slide img { display: block; width: 100%; height: auto; }
.home-demo__slide figcaption { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.5; }
.home-demo__slide figcaption strong { display: block; margin-bottom: 2px; color: var(--color-text); font-size: 1rem; }
.home-section h2, .home-cta h2, .home-section p { text-wrap: pretty; }
.home-demo__slide > figure { margin: 0; }
