/* home.css — page-scoped shop-front styles. Consumes app-ui.css theme tokens,
   so light/dark are automatic. No global-chrome edits. */

.home {
  display: block;
  /* crisp white cards that float on the tinted canvas (mockup recipe);
     raised charcoal + black shadow in dark. */
  --home-surface: #fff;
  --home-shadow: 0 .5rem 1.5rem rgba(87, 79, 236, .12);
  --home-shadow-lg: 0 1.25rem 2.75rem rgba(87, 79, 236, .22);
}
[data-bs-theme="dark"] .home {
  --home-surface: var(--bs-tertiary-bg);
  --home-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .5);
  --home-shadow-lg: 0 1.25rem 2.75rem rgba(0, 0, 0, .65);
}

/* ---- section rhythm ---- */
.home .home-section { padding: 3.5rem 0; }
.home-wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.home-head { max-width: 640px; margin: 0 auto 2.25rem; text-align: center; }
.home-head h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); font-weight: 800; letter-spacing: -.02em; }
.home-head p { color: var(--bs-secondary-color); margin-top: .5rem; }
.home-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--app-accent); margin-bottom: .6rem; }

/* ---- hero band (pitch + welcome share it) ---- */
/* NB: `.home`-prefixed so these beat core.min.css `body:not(.layout-admin) section
   { padding:100px 0 }` (specificity 0,1,2), which otherwise clobbers every
   page-scoped <section> padding (and kills the console overhang). 0,2,0 wins. */
.home .home-hero { background: var(--app-hero); color: #fff; text-align: center; padding: 3.5rem 1.25rem 5.5rem; }
.home-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; letter-spacing: -.02em; max-width: 780px; margin: 0 auto; text-wrap: balance; }
.home-hero .home-eyebrow { color: rgba(255, 255, 255, .82); }
.home-hero-sub { color: rgba(255, 255, 255, .88); font-size: 1.08rem; max-width: 580px; margin: .9rem auto 0; }
.home-hero-cta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.home-pills { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.home-pill { font-size: .8rem; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24); padding: .32rem .8rem; border-radius: 999px; }

/* hero button variants on the indigo band (reuse Bootstrap .btn .btn-lg sizing) */
.home-btn-light { background: #fff; color: #3a31ad; border: 0; }
.home-btn-light:hover, .home-btn-light:focus { background: #fff; color: #3a31ad; filter: brightness(.97); }
.home-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.home-btn-ghost:hover, .home-btn-ghost:focus { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---- lifted console (overlaps the hero) ---- */
.home .home-console-wrap { display: flex; justify-content: center; padding: 0 1.25rem 1rem; margin-top: -4.5rem; position: relative; z-index: 2; }
@media (max-width: 760px) { .home .home-console-wrap { margin-top: -3rem; } }

/* per-control limits: upload format hint here; the record cap ("Max 15:00") is
   set by recorder.js on #record-limit-note, which sits directly under the mic. */
.home .dropzone-hint { font-size: .8rem; color: var(--bs-secondary-color); }
.home .dropzone.has-file .dropzone-hint { display: none; }

/* console path labels + toggle helper (UX: name each path and its limits) */
.home .start-path-label { width: 100%; margin: 0; text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-secondary-color); }
.home .start-mode-help { margin: -.6rem 0 0; text-align: center; font-size: .8rem; color: var(--bs-secondary-color); }
/* screen-reader-only assertive region for the mic-access error */
.home .start-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- grids + cards (steps, studios) ---- */
.home-section-alt { background: var(--bs-secondary-bg); }
.home-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 760px) { .home-grid3 { grid-template-columns: 1fr; } }

.home-card { background: var(--home-surface); border: 1px solid var(--bs-border-color); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--home-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.home-card:hover { transform: translateY(-4px); box-shadow: var(--home-shadow-lg); }
.home-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.home-card p { color: var(--bs-secondary-color); font-size: .95rem; margin: 0; }

.home-step-n { font-variant-numeric: tabular-nums; font-weight: 800; font-size: .9rem; color: #fff; background: var(--app-hero); width: 2rem; height: 2rem; border-radius: .6rem; display: grid; place-items: center; margin-bottom: .9rem; }

.home-card-ico { width: 2.6rem; height: 2.6rem; border-radius: .7rem; display: grid; place-items: center; margin-bottom: .9rem; font-size: 1.3rem; background: rgba(var(--app-primary-rgb), .13); color: var(--app-accent); }

/* ---- account CTA ---- */
.home-cta-card { background: var(--app-hero); color: #fff; border-radius: 1.5rem; padding: 2.5rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; box-shadow: var(--app-shadow-lg); }
@media (max-width: 760px) { .home-cta-card { grid-template-columns: 1fr; padding: 1.75rem; } }
.home-cta-card h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; }
.home-cta-card p { color: rgba(255, 255, 255, .88); margin-top: .5rem; }
.home-cta-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.home-cta-list li { display: flex; gap: .6rem; align-items: flex-start; color: rgba(255, 255, 255, .92); font-size: .96rem; }
.home-cta-list .bi { margin-top: .15rem; flex: 0 0 auto; }
.home-cta-actions { display: flex; flex-direction: column; gap: .7rem; }

/* ---- privacy note ---- */
.home-privacy { max-width: 720px; margin: 0 auto; text-align: center; }
.home-privacy .bi { font-size: 1.8rem; color: var(--app-accent); }
.home-privacy h2 { font-size: 1.4rem; font-weight: 800; margin: .6rem 0 .4rem; }
.home-privacy p { color: var(--bs-secondary-color); }

/* ---- FAQ (native <details>) ---- */
.home-faq { max-width: 760px; margin: 0 auto; display: grid; gap: .6rem; }
.home-faq details { background: var(--home-surface); border: 1px solid var(--bs-border-color); border-radius: .8rem; padding: 0 1.1rem; box-shadow: var(--app-shadow); }
.home-faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; color: var(--bs-emphasis-color); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq-chev { color: var(--app-accent); transition: transform .2s ease; flex: 0 0 auto; }
.home-faq details[open] .home-faq-chev { transform: rotate(180deg); }
.home-faq p { color: var(--bs-secondary-color); margin: 0; padding: 0 0 1rem; }

/* ---- funders: one indigo tile per funder. The white-on-transparent logos sit
   on var(--app-hero), which already has a dark-theme value — no override needed. ---- */
.home-funder-tile { background: var(--app-hero); border-radius: 1rem; padding: 2.25rem 1.25rem; display: grid; place-items: center; box-shadow: var(--home-shadow); }
.home-funder-tile img { height: 80px; width: auto; max-width: 100%; }
@media (max-width: 760px) { .home-funder-tile { padding: 1.5rem 1rem; } .home-funder-tile img { height: 60px; } }

/* ---- welcome-back recent chips ---- */
.home-recent { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.home-recent-chip { display: inline-flex; align-items: center; gap: .5rem; max-width: 260px; padding: .5rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24); color: #fff; text-decoration: none; font-size: .88rem; font-weight: 600; transition: background .15s ease; }
.home-recent-chip:hover, .home-recent-chip:focus { background: rgba(255, 255, 255, .24); color: #fff; }
.home-recent-chip .bi { opacity: .85; flex: 0 0 auto; }
.home-recent-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- reveal (only active once home.js adds .home-anim-ready) ---- */
.home-anim-ready .home-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.home-anim-ready .home-reveal.is-in { opacity: 1; transform: none; }

/* ---- server flash at top of page (password-reset / confirm outcomes) ----
   The wrapper renders unconditionally (it also carries the fixed
   #alert-container for common.js toasts), so it must cost no height when
   empty: only the alert itself takes margin. */
.home-flash .alert { margin: 1.25rem 0 0; }
