/* The home page (en and fr index): one clear path. Plain sections on the page background, no filled cards, one primary
   action (the free check). Tokens only (MASTER.md). Loaded after site.css. */

.home { padding-bottom: 1rem; }
.home section { margin-block: 4.5rem; }
.home h2 { margin: 0 0 1.5rem; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.2; color: var(--display); }

/* Hero: the promise on the left, the check on the right. */
.home-hero h1 { margin: 0 0 1rem; font-size: clamp(2.25rem, 1.3rem + 2.8vw, 3.25rem); line-height: 1.1; color: var(--display); max-width: 16ch; }
.home-hero .lede { margin: 0; font-size: 1.15rem; max-width: 36ch; }
.home-hero__note { margin: 1rem 0 0; font-size: .95rem; }
.home .check-form.home-hero__form { background: transparent; color: var(--text-primary); border: 0; border-radius: 0; padding: 0; max-width: none; }

/* Steps: three columns of text, a rule above each, no boxes. */
.home-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 900px) { .home-steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-steps li { border-top: 2px solid var(--button-primary); padding-top: 1rem; }
.home-steps__num { margin: 0 0 .25rem; font-family: var(--font-display); font-size: 1.5rem; color: var(--display); }
.home-steps h3 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--text-primary); }
.home-steps p { margin: 0; color: var(--text-secondary); }

/* Report: one example, outlined, not a card. Beside its heading on wide screens, so the row is not half empty. */
.home-report { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .home-report { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.home-report .sample-report { background: none; width: 100%; max-width: 32rem; padding: 1.5rem; margin: 0; justify-self: end; }
@media (max-width: 899px) { .home-report .sample-report { justify-self: start; } }

/* Plans: three outlined cards of equal height, aligned at the top and at the button. The featured one is heavier. */
.home-plans__intro { margin: .25rem 0 1.25rem; }
.home-plans__cols { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .home-plans__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .home-plans__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.home-plan { display: flex; flex-direction: column; border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 1.5rem; }
.home-plan--featured { border: 2px solid var(--button-primary); }
.home-plan h3 { margin: 0 0 .25rem; font-size: 1.15rem; color: var(--text-primary); }
.home-plan__tag { margin: 0 0 .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--display); }
.home-plan__price { margin: 0 0 1rem; font-family: var(--font-display); font-size: 2rem; color: var(--display); }
.home-plan__price span { font-family: var(--font-body); font-size: .95rem; color: var(--text-secondary); }
.home-plan ul { margin: 0 0 1.5rem; padding-inline-start: 1.1rem; color: var(--text-secondary); flex: 1; }
.home-plan__cta { margin-top: auto; }
.home-plan__was { margin-inline-start: .35rem; font-family: var(--font-display); font-size: 1.35rem; color: var(--text-secondary); text-decoration: line-through; text-decoration-thickness: 2px; }
.home-plans__more { margin: 2rem 0 0; color: var(--text-secondary); }

/* Suite: one short paragraph, wide enough to read. */
.home-suite p { margin: 0; max-width: 60ch; font-size: 1.1rem; color: var(--text-secondary); }

/* Questions: narrow column. */
.home .faq { margin-block: 4.5rem; max-width: 46rem; }

@media (max-width: 760px) {
  .home section { margin-block: 3rem; }
  .home-hero { margin-block: 2rem 3rem; }
}

/* Plans, after the pricing reference: the featured plan is a dark card with its tag as a light chip; prices are larger. */
.home-plan--featured { background: var(--display); color: var(--text-on-color); border: 6px solid var(--hero-scrim); }
.home-plan--featured h3 { color: var(--text-on-color); }
.home-plan--featured ul, .home-plan--featured .home-plan__price span { color: var(--text-on-color); opacity: .85; }
.home-plan--featured .home-plan__price strong { color: var(--text-on-color); }
.home-plan--featured .home-plan__was { color: var(--text-on-color); opacity: .7; }
.home-plan--featured .home-plan__tag { align-self: flex-start; padding: .2rem .6rem; border-radius: 999px; background: var(--accent); color: var(--hero-scrim); letter-spacing: .02em; text-transform: none; font-size: .8125rem; }
.home-plan__price strong { font-size: 2.5rem; line-height: 1.1; font-weight: 400; }
.home-plan__price { display: grid; gap: .25rem; }
.home-plan h3 { font-size: 1.125rem; font-weight: 600; }

/* The suite statement, merged into the hero copy under the free-check note. */
.home-hero__more { margin-top: 1.5rem; max-width: 40ch; }
.home-hero__lead { margin: 0; color: var(--text-secondary); line-height: 1.6; }
.home-hero__lead strong { display: block; margin-bottom: .25rem; font-family: var(--font-display); font-weight: 600; color: var(--display); }

/* The hero (after the pricing reference): an eyebrow, the headline, trust points, a short video, and a gold action. */
.home-hero__eyebrow { margin: 0 0 .75rem; font: 600 .75rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.home-hero__trust { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9375rem; color: var(--text-primary); }
.home-hero__trust li { display: inline-flex; align-items: center; gap: .375rem; }
.home-hero__trust .material-symbols-outlined { font-size: 20px; color: var(--display); }
.home-hero__media { margin: 1.75rem 0 0; border: 1px solid var(--border-subtle); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.home-hero__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.home .home-hero__ask { margin: 0 0 1rem; font: 600 1.125rem/1.35 var(--font-display); color: var(--display); }
/* One field with the action embedded at its right edge. */
/* A pill-shaped field: the outline is deep green in day mode and gold in night mode. */
.home .home-hero__input { --edge: var(--display); display: flex; align-items: stretch; border: 2px solid var(--edge); border-radius: 999px; background: var(--background); }
[data-theme="night"] .home .home-hero__input { --edge: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="daylight"]) .home .home-hero__input { --edge: var(--accent); } }
.home .home-hero__sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.home .home-hero__input input { flex: 1 1 0; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; margin: 0; padding: .6rem 1.25rem; border: 0; background: transparent; color: var(--text-primary); font: inherit; outline: none; }
.home .home-hero__go { flex: 0 0 auto; margin: 4px; min-height: 36px; padding: 0 1rem; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--hero-scrim); font: 600 1rem/1 var(--font-body); white-space: nowrap; cursor: pointer; }
.home .home-hero__go:hover { background: color-mix(in srgb, var(--accent) 82%, var(--display)); border-color: color-mix(in srgb, var(--accent) 82%, var(--display)); }
.home .home-hero__go:focus-visible { outline: 3px solid var(--display); outline-offset: 2px; }

/* The full-screen hero: the video fills the section, a solid overlay in the page background colour keeps the text readable
   (WCAG AA) in both themes, and the form stays a panel in the surface colour. Full width without horizontal scroll. */
.home-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; margin: 0 0 4rem; padding: 4rem 1rem; color: var(--hero-text); background: var(--hero-overlay); box-sizing: border-box; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); opacity: .78; z-index: -1; }
.home-hero__bg { position: absolute; inset: 0; margin: 0; z-index: -2; overflow: hidden; }
.home-hero__bg video { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-hero__inner { width: 100%; max-width: var(--max-width); margin-inline: auto; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .home-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 4rem; } }
.home-hero h1 { color: var(--hero-text); }
.home-hero .lede { color: var(--hero-text); opacity: .95; }
.home-hero__eyebrow { color: var(--hero-text); opacity: .85; }
.home-hero__trust { color: var(--hero-text); }
.home-hero__trust .material-symbols-outlined { color: var(--text-primary); }
[data-theme="night"] .home-hero__trust .material-symbols-outlined { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="daylight"]) .home-hero__trust .material-symbols-outlined { color: var(--accent); } }
.home-hero__media { display: none; }
.home .home-hero__ask { color: var(--hero-text); }
.home .home-hero__form { background: transparent; color: var(--text-primary); border: 0; border-radius: 0; padding: 0; }
.home .home-hero__form legend, .home .home-hero__form label { color: var(--text-primary); }
.home .home-hero__form .hint, .home .home-hero__form .muted { color: var(--text-secondary); }
.home-hero__copy { display: grid; gap: 0; }
@media (max-width: 899px) { .home-hero { padding-block: 3rem; } }
@media (prefers-reduced-motion: reduce) { .home-hero__bg video { display: none; } .home-hero__bg { background: url("/assets/video/hero-poster.jpg") center / cover no-repeat; } }

/* The featured plan's button: gold with deep green text, so it shows on the dark card. */
.home-plan--featured .btn { background: var(--accent); color: var(--hero-scrim); border: 1px solid var(--accent); }
.home-plan--featured .btn:hover { background: color-mix(in srgb, var(--accent) 82%, var(--display)); border-color: color-mix(in srgb, var(--accent) 82%, var(--display)); }

/* The homepage hero starts right under the header: no space above it. */
main#main:has(.home-hero) { padding-top: 0; margin-top: 0; }
.home:has(> .home-hero) { padding-top: 0; margin-top: 0; }

/* Night: the featured plan is a deep green card with a gold border and gold text; its button stays gold with green text. */
[data-theme="night"] .home-plan--featured { background: var(--hero-scrim); color: var(--accent); border: 6px solid var(--accent); }
[data-theme="night"] .home-plan--featured h3,
[data-theme="night"] .home-plan--featured .home-plan__price strong,
[data-theme="night"] .home-plan--featured .home-plan__price span,
[data-theme="night"] .home-plan--featured ul,
[data-theme="night"] .home-plan--featured .home-plan__was { color: var(--accent); opacity: 1; }

/* The hero sits right under the navigation bar: the general section spacing does not apply to it. */
.home .home-hero, .home section.home-hero { margin-top: 0; }
@media (max-width: 899px) { .home .home-hero, .home section.home-hero { margin-top: 0; } }

