/* eForms website — the site's own styles, on top of the shared stylesheet (kit.css).
   Colours come only from the shared tokens, so a theme changes this file's look too. */

:root {
  --band: clamp(3.5rem, 8vw, 6rem);
  --header-height: 64px;
}

section[id], h2[id] { scroll-margin-top: calc(var(--header-height) + .75rem); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 90%, transparent); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-height); }

.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.125rem; text-decoration: none; color: inherit; }
/* The drawn logo badge: the logo letters ("eF") on the brand gradient, like the app's icon. */
.brand-mark {
  display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .3rem; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  font-size: .875rem; font-weight: 800; letter-spacing: -.02em; line-height: 1;
}
.brand-logo { display: block; height: 2.25rem; width: auto; max-width: 12rem; object-fit: contain; }

.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { text-decoration: none; font-size: .9375rem; opacity: .8; padding: .625rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.is-current { opacity: 1; }
.site-nav a.is-current { border-bottom-color: var(--highlight); }

.header-actions { display: flex; align-items: center; gap: .625rem; }
.nav-toggle { display: none; }

.auth-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; }
.invite-only { font-size: .875rem; opacity: .85; }

.kicker {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .25rem .875rem; border-radius: 999px; font-size: .8125rem;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .25);
}
.lead { font-size: clamp(1rem, 1.6vw, 1.1875rem); opacity: .9; max-width: 38rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-grid.hero-single { grid-template-columns: 1fr; }
.hero h1 { margin: 1rem 0 .875rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.08; font-size: clamp(2rem, 5.2vw, 3.5rem); }

.prompt {
  display: flex; align-items: center; gap: .625rem; margin-top: 1.5rem; max-width: 38rem;
  background: #fff; color: #334155; border-radius: 16px; padding: .375rem .875rem; cursor: text;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 60%, #fff), 0 12px 40px color-mix(in srgb, var(--primary) 45%, transparent);
}
.prompt-icon { color: var(--accent); display: inline-flex; }
.prompt input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; font: inherit; color: #0f172a; }
.prompt input::placeholder { color: #64748b; }
.prompt:focus-within { box-shadow: 0 0 0 3px var(--highlight), 0 12px 40px color-mix(in srgb, var(--primary) 45%, transparent); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; max-width: 38rem; }
.chip {
  min-height: 36px; padding: .25rem .875rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .8125rem; color: #fff;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .25);
}
.chip:hover { background: rgba(255, 255, 255, .2); }

.prompt-answer {
  margin-top: .875rem; max-width: 38rem; padding: .75rem 1rem; border-radius: 14px; font-size: .9375rem;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .25);
}
.prompt-answer a { font-weight: 700; white-space: nowrap; }

.hero .auth-buttons { margin-top: 1.5rem; }
.reassure { margin-top: 1rem; font-size: .8125rem; opacity: .8; }

/* ---------- product preview ---------- */
.glass {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 20px; padding: 1rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.scenes { position: relative; min-height: 170px; }
.scene { position: absolute; inset: 0; opacity: 0; animation: scene-cycle 15s infinite; }
.scene:nth-child(2) { animation-delay: 5s; }
.scene:nth-child(3) { animation-delay: 10s; }
.scenes-1 .scene { animation: none; opacity: 1; }
.scenes-2 .scene { animation-duration: 10s; }
@keyframes scene-cycle {
  0% { opacity: 0; transform: translateY(8px); }
  5%, 30% { opacity: 1; transform: none; }
  36%, 100% { opacity: 0; transform: translateY(-8px); }
}

.window { background: #fff; color: #1e293b; border-radius: 14px; padding: 1rem; box-shadow: 0 12px 30px rgba(2, 6, 23, .35); }
.window-title { font-weight: 700; font-size: .9375rem; }
.line { height: 8px; border-radius: 4px; background: var(--border); margin: .625rem 0; }
.window .line { background: #e2e8f0; }
.w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .75rem; }

/* ---------- inner page heading ---------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero h1 { margin: 1rem 0 .75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(1.875rem, 4.4vw, 3rem); }
.legal-date { margin-top: 1rem; font-size: .875rem; opacity: .75; }

/* ---------- bands ---------- */
.band { padding: var(--band) 0; }
.band-plain { background: var(--surface); }
.band-soft { background: var(--surface-soft); }
.band-dark { background: var(--ink); color: #cbd5e1; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-tight { padding: clamp(1.75rem, 4vw, 2.75rem) 0; border-bottom: 1px solid var(--border); }

.section-title {
  text-align: center; font-weight: 800; letter-spacing: -.015em; line-height: 1.2;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem); margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.section-title.align-start { text-align: left; margin-bottom: 1rem; }
.section-more { text-align: center; margin-top: 1.75rem; }
.section-more .auth-buttons { justify-content: center; }

.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; text-align: center; }
.trust strong { display: block; font-size: 1.1875rem; font-weight: 800; }
.trust span { color: var(--text-muted); font-size: .9375rem; }

/* ---------- block layouts ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.card-tool { text-align: center; padding: 1rem .75rem; }

.segment-centered { margin: -1rem auto 1.75rem; }
[data-choice-value="me"] .choice-panel-business,
[data-choice-value="business"] .choice-panel-me { display: none; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.steps .card { text-align: center; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 999px; color: #fff; font-weight: 800; font-size: 1.125rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.point { font-size: .9375rem; }
.point .icon { width: 1.75rem; height: 1.75rem; color: color-mix(in srgb, var(--primary) 45%, #fff); }
.point h3 { font-size: 1.0625rem; margin: .625rem 0 .25rem; }

.explorer { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.explorer-list { display: flex; flex-direction: column; gap: .25rem; position: sticky; top: calc(var(--header-height) + 1rem); }
.explorer-list a {
  display: flex; align-items: center; gap: .625rem; min-height: 44px; padding: .5rem .875rem;
  border-radius: 12px; text-decoration: none; color: var(--text-muted); font-weight: 600;
}
.explorer-list a:hover { background: var(--surface-soft); color: var(--text); }
.explorer-list a.is-current { background: var(--tint-strong); color: var(--text); }
.explorer-detail { padding: clamp(1.25rem, 3vw, 2rem); }
.explorer-detail h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 800; margin: .75rem 0 .5rem; }
.explorer-description { font-size: 1.0625rem; color: var(--text); }
.explorer-detail .auth-buttons { margin-top: 1.5rem; }

.check-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .5rem; }
.check-list li { display: flex; gap: .625rem; align-items: flex-start; }
.check-list .icon { color: var(--primary); margin-top: .2em; }

.search-box-wide { max-width: 36rem; margin: 0 auto 1rem; }
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.75rem; }

.mobile-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; }
.mobile-grid p { color: var(--text-muted); max-width: 34rem; }
.stores { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.25rem; }
.store-badge {
  padding: .5rem 1rem; border-radius: 10px; font-size: .875rem; font-weight: 700; text-decoration: none;
  background: var(--surface-soft); color: var(--text-muted); border: 1px solid var(--border);
}
.store-badge-live { background: var(--ink); color: #fff; border-color: var(--ink); }
.phone-frame { width: 170px; margin: 0 auto; padding: .75rem; border: 3px solid var(--border); border-radius: 28px; background: var(--card); }
.phone-screen { height: 150px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--accent)); }

.prose p { margin-bottom: 1rem; }
.prose h2 { font-size: 1.25rem; font-weight: 800; margin: 2rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
/* formatted text written in the content editor */
.prose h3 { font-size: 1.0625rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.prose h4 { font-size: 1rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.5rem; }
.prose li { margin-bottom: .375rem; }
.prose a { color: var(--primary); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-small); }
.prose blockquote { margin: 0 0 1rem; padding: .25rem 0 .25rem 1rem; border-left: 3px solid var(--primary); color: var(--text-muted); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: .5rem .625rem; text-align: left; }
.prose pre { overflow-x: auto; padding: .75rem 1rem; background: var(--surface-soft); border-radius: var(--radius-small); margin-bottom: 1rem; }

.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.legal-contents { position: sticky; top: calc(var(--header-height) + 1rem); display: flex; flex-direction: column; gap: .125rem; font-size: .875rem; }
.legal-contents h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .5rem; }
.legal-contents a { text-decoration: none; color: var(--text-muted); padding: .3rem 0; }
.legal-contents a:hover { color: var(--text); }
.legal .prose { max-width: 46rem; }

/* ---------- public forms (contact, notify me) ---------- */
.section-lead { text-align: center; color: var(--text-muted); max-width: 38rem; margin: -.5rem auto 1.5rem; }
.site-form { display: grid; gap: 1rem; }
.site-form-inline { grid-template-columns: minmax(0, 1fr) auto; align-items: end; max-width: 32rem; margin: 0 auto; }
.site-form-inline .form-reply { grid-column: 1 / -1; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.form-field { display: grid; gap: .375rem; font-size: .875rem; font-weight: 700; }
.form-field input, .form-field textarea {
  width: 100%; min-height: 46px; padding: .625rem .875rem; border: 1px solid var(--border); border-radius: var(--radius-small);
  background: var(--card); color: var(--text); font: inherit; font-weight: 400;
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field input:focus-visible, .form-field textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.form-reply { padding: .75rem 1rem; border-radius: var(--radius-small); font-weight: 600; border: 1px solid transparent; }
.form-reply-ok { background: color-mix(in srgb, #16a34a 14%, var(--card)); border-color: color-mix(in srgb, #16a34a 40%, transparent); }
.form-reply-problem { background: color-mix(in srgb, #dc2626 12%, var(--card)); border-color: color-mix(in srgb, #dc2626 40%, transparent); }
/* The trap field: off screen, not merely invisible, so that programs still "see" a normal field. */
.form-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.message-page form { margin-bottom: 1rem; }
@media (max-width: 560px) {
  .site-form-inline { grid-template-columns: 1fr; }
}

/* ---------- testimonials, pricing, gallery ---------- */
.quote-card { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.quote-card blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.quote-card blockquote::before { content: "\201C"; display: block; font-size: 2.5rem; line-height: 1; color: var(--primary); }
.quote-card figcaption { margin-top: auto; display: grid; font-size: .875rem; }
.quote-card figcaption span { color: var(--text-muted); }
.price-card { display: flex; flex-direction: column; gap: .75rem; }
.price-card .price { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
.price-card .check-list { margin-top: 0; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-small); border: 1px solid var(--border); }
.gallery figcaption { margin-top: .375rem; font-size: .875rem; color: var(--text-muted); }

/* ---------- AI assistant: a button in the corner and its chat panel ---------- */
.assistant { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; }
.assistant-toggle {
  width: 56px; height: 56px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: var(--gradient);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 40%, transparent); display: grid; place-items: center;
}
.assistant-toggle .icon { width: 26px; height: 26px; }
.assistant-toggle:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }
.assistant-panel {
  position: absolute; right: 0; bottom: 68px; width: min(22.5rem, calc(100vw - 2rem)); height: min(32rem, calc(100vh - 7rem));
  display: flex; flex-direction: column; background: var(--card); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-strong, 0 20px 50px rgba(0, 0, 0, .25)); overflow: hidden;
}
.assistant-panel[hidden] { display: none; }
.assistant-head { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.assistant-head strong { margin-right: auto; }
.assistant-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.assistant-message { max-width: 88%; padding: .5rem .75rem; border-radius: 14px; font-size: .9375rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-message-bot { align-self: flex-start; background: var(--surface-soft); border-bottom-left-radius: 4px; }
.assistant-message-user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.assistant-message .btn { margin-top: .5rem; }
.assistant-thinking { color: var(--text-muted); font-style: italic; }
.assistant-suggestion {
  align-self: flex-start; padding: .375rem .75rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  color: var(--primary); font: inherit; font-size: .8125rem; cursor: pointer; text-align: left;
}
.assistant-suggestion:hover { border-color: var(--primary); }
.assistant-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--border); }
.assistant-form input {
  flex: 1; min-width: 0; min-height: 40px; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius-small);
  background: var(--card); color: var(--text); font: inherit;
}
.assistant-form input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
/* On a phone the sign-up bar sits along the bottom; the button stays clear of it. */
@media (max-width: 760px) {
  .assistant { bottom: 5rem; }
}

/* ---------- advert slot ---------- */
.advert-band { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.advert { display: flex; flex-direction: column; align-items: center; gap: .375rem; }
.advert-label { font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.advert iframe { border: 0; max-width: 100%; }
.advert-google { display: block; width: 100%; min-height: 90px; }

/* ---------- closing band, message pages ---------- */
.closing { text-align: center; }
.closing h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); font-weight: 800; letter-spacing: -.015em; margin-bottom: 1rem; }
.closing .lead { margin: 0 auto 1rem; }
.closing .auth-buttons { justify-content: center; margin-top: .5rem; }

.message-page { text-align: center; min-height: 60vh; display: flex; align-items: center; }
.message-page h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .75rem; }
.message-page .lead { margin: 0 auto 1.5rem; }
.status-code { font-size: .875rem; letter-spacing: .2em; opacity: .7; margin-bottom: .5rem; }
.reference { font-size: .8125rem; opacity: .7; margin-bottom: 1.5rem; word-break: break-all; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #94a3b8; padding: 3rem 0 1.5rem; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-footer .brand { color: #fff; margin-bottom: .5rem; }
.site-footer p { margin-bottom: 1rem; }
.site-footer h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: .625rem; }
.site-footer a:not(.btn) { display: block; text-decoration: none; padding: .25rem 0; }
.site-footer a:not(.btn):hover { color: #fff; }
.footer-note { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; }

/* ---------- phone bar ---------- */
.sticky-bar { display: none; }

/* ---------- "Ask" panel ---------- */
.ask-dialog {
  width: min(92vw, 640px); max-height: 80vh; margin: 10vh auto auto; padding: 1rem;
  border: 1px solid var(--border); border-radius: 20px; background: var(--card); color: var(--text);
  box-shadow: 0 30px 80px rgba(2, 6, 23, .45);
}
.ask-dialog::backdrop { background: rgba(2, 6, 23, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ask-head { display: flex; gap: .5rem; align-items: center; }
.ask-head .search-box { flex: 1; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent); }
.ask-head .search-box .icon { color: var(--accent); }
.ask-close { color: var(--text); border-color: var(--border); background: var(--surface-soft); }
.ask-close:hover { background: var(--border); }
.ask-results { margin-top: .75rem; display: grid; gap: .375rem; overflow-y: auto; max-height: 50vh; }
.ask-result {
  display: grid; grid-template-columns: auto 1fr; gap: .125rem .75rem; align-items: baseline;
  padding: .625rem .75rem; border-radius: 12px; text-decoration: none; color: inherit; border: 1px solid transparent;
}
.ask-result:hover, .ask-result:focus-visible { background: var(--surface-soft); border-color: var(--border); }
.ask-result .tag { grid-row: span 2; align-self: center; }
.ask-result strong { font-size: .9375rem; }
.ask-result span.ask-summary { color: var(--text-muted); font-size: .8125rem; }
.ask-message { color: var(--text-muted); padding: .75rem; font-size: .9375rem; }
.ask-hint { margin-top: .75rem; font-size: .75rem; color: var(--text-muted); text-align: center; }

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .prompt, .chips, .prompt-answer { width: 100%; }
  .chips { justify-content: center; }
  .preview { width: 100%; max-width: 480px; margin: 0 auto; }
  .span-3, .span-2 { grid-column: span 3; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explorer, .legal { grid-template-columns: 1fr; }
  .explorer-list { position: static; flex-direction: row; overflow-x: auto; padding-bottom: .5rem; }
  .explorer-list a { white-space: nowrap; background: var(--surface-soft); }
  .legal-contents { position: static; }
  .page-hero { text-align: center; }
  .page-hero .lead { margin-left: auto; margin-right: auto; }
}

@media (max-width: 839px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem;
    background: color-mix(in srgb, var(--ink) 98%, transparent); border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .875rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1rem; }
}

/* ---------- phone ---------- */
@media (max-width: 599px) {
  .auth-buttons-nav { display: none; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .span-3, .span-2 { grid-column: span 6; }
  .mobile-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero .auth-buttons, .closing .auth-buttons { width: 100%; }
  .hero .auth-buttons .btn, .closing .auth-buttons .btn { flex: 1; }

  .sticky-bar {
    display: block; position: sticky; bottom: 0; z-index: 40;
    padding: .625rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom));
    background: var(--card); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(15, 23, 42, .12);
  }
  .sticky-bar .auth-buttons { flex-wrap: nowrap; }
  .sticky-bar .btn { flex: 1; }
  .sticky-bar .invite-only { color: var(--text-muted); }
  /* With the buttons switched off the bar has nothing to show, so it is not drawn at all. */
  .sticky-bar:not(:has(.auth-buttons)) { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .scene { animation: none; }
  .scene:first-child { opacity: 1; }
}
