/* Approved design (english-candidate-3) for every homepage and the About, Changelog and
 * 404 pages. Created as the English-only preview stylesheet english-v2.css (Phase 4);
 * renamed in Phase 9 once all 24 homepages adopted the design. */
html.site-v2 { scroll-behavior: auto; }
/* Korean separates words with spaces; the default word-break splits Hangul words between
 * syllables at any width. keep-all wraps at spaces (Phase 9 locale fitting). */
html.site-v2:lang(ko) { word-break: keep-all; }
.site-v2 body { background: var(--bg-content); color: var(--text-primary); font-size: 1rem; line-height: 1.65; }
.site-v2 main { overflow-wrap: anywhere; padding-top: 4rem; }
.site-v2 main :is(h1,h2,h3) { color: var(--text-primary); line-height: 1.2; letter-spacing: -.025em; }
.site-v2 main h1 { font-size: clamp(2.25rem,4.8vw,4.25rem); font-weight: 700; }
.site-v2 main h2 { font-size: clamp(1.65rem,3vw,2.5rem); font-weight: 650; }
.site-v2 main h3 { font-size: 1.25rem; font-weight: 650; }
.site-v2 main p { color: var(--text-secondary); }
.site-v2 main a:not(.play-badge):not(.btn-primary) { color: var(--accent-text); text-decoration: underline; text-underline-offset: .22em; }
.site-v2 :focus-visible { outline: 3px solid var(--accent-text); outline-offset: 4px; }
.site-v2 [hidden] { display: none !important; }
.home-v2 .home-width { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.home-v2 .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Hero: Lavender Dusk (light) / Royal Blue (dark) gradient band, copy + real screenshot.
   The dark band is lighter than the navy page so it stays visible; white text >= 6:1. */
html.home-v2 { --band-gradient: var(--hero-gradient); }
html.home-v2.dark { --band-gradient: linear-gradient(135deg, #2C4784 0%, #34509A 55%, #3D5DB0 100%); }
.home-v2 .home-hero-band { background: var(--band-gradient); color: #fff; }
.home-v2 .home-hero { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 3rem; align-items: center; padding-block: 3.5rem 4rem; }
.home-v2 .home-hero-band :is(h1, p, li) { color: #fff; }
.home-v2 .home-hero-band h1 { font-size: clamp(2rem,3.6vw,3.25rem); font-weight: 750; }
.home-v2 .home-hero-band :focus-visible, .home-v2 .home-final :focus-visible { outline-color: #fff; }
.home-v2 .eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1rem; }
.home-v2 .hero-intro { font-size: 1.2rem; max-width: 46ch; margin-block: 1.25rem; }
.home-v2 .trust-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0 0 1.75rem; padding: 0; }
.home-v2 .trust-row li { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; font-weight: 600; }
.home-v2 .trust-icon { flex-shrink: 0; }
.home-v2 .home-actions { display: flex; gap: 1rem 1.25rem; flex-wrap: wrap; align-items: center; }
.home-v2 .play-badge { display: inline-flex; min-height: 60px; flex-shrink: 0; border-radius: .5rem; }
.home-v2 .play-badge img { width: 202px; height: 60px; }
.home-v2 .home-hero-band .home-actions a.home-secondary { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .55rem 1.25rem; color: #fff; border: 2px solid #fff; border-radius: 999px; font-weight: 600; text-decoration: none; }
.home-v2 .home-hero-band .home-actions a.home-secondary:hover { background: rgb(255 255 255 / .14); }
.home-v2 .access-note { font-size: .92rem; max-width: 46ch; margin-top: 1rem; }
.home-v2 .hero-figure { display: grid; justify-items: center; padding: 1.25rem; background: rgb(255 255 255 / .14); border-radius: 2rem; }
.home-v2 .hero-figure img { width: min(100%, 240px); height: auto; border-radius: 1.1rem; box-shadow: 0 18px 40px rgb(16 16 36 / .35); }
/* A12 language suggestion: English root only, revealed by its inline script before the
   hero is parsed (no layout shift). Dark translucent pill keeps white text above the band's contrast. */
.home-v2 .language-suggestion { padding-top: 1.25rem; }
.home-v2 .language-suggestion:not([hidden]) ~ .home-hero { padding-top: 1.5rem; }
.home-v2 .suggestion-pill { display: inline-flex; align-items: center; gap: .25rem; max-width: 100%; padding: .2rem .2rem .2rem 1rem; border: 1px solid rgb(255 255 255 / .5); border-radius: 1.5rem; background: rgb(16 16 36 / .28); }
.home-v2 .home-hero-band .language-suggestion p { margin: 0; font-size: .95rem; font-weight: 600; }
.home-v2 .home-hero-band .language-suggestion a[data-lang] { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.home-v2 .language-suggestion button { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #fff; cursor: pointer; }
.home-v2 .language-suggestion button:hover { background: rgb(255 255 255 / .16); }

/* Sections */
.home-v2 .home-section { padding-block: 4rem; scroll-margin-top: 4rem; }
.home-v2 .home-band { background: var(--bg-panel); }
.home-v2 .section-intro { margin-top: .75rem; max-width: 58ch; }
.home-v2 .section-kicker { margin-top: .5rem; font-size: 1.15rem; font-weight: 650; }
.site-v2 main .section-kicker { color: var(--accent-text); }
.home-v2 .feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; list-style: none; margin: 2.25rem 0 0; padding: 0; }
.home-v2 .feature-item { padding: 1.5rem; background: var(--bg-panel); border: 1px solid var(--border-panel); border-radius: 1rem; }
.home-v2 .feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: .75rem; background: var(--accent-secondary); color: var(--accent-text); }
.home-v2 .feature-item h3 { font-size: 1.15rem; }
.home-v2 .feature-item p { margin-top: .5rem; font-size: .975rem; }
.home-v2 .home-steps, .home-v2 .home-uses { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2.5rem; margin-top: 2.5rem; }
.home-v2 .home-steps { list-style: none; padding: 0; }
.home-v2 .step-number { display: block; color: var(--accent-text); border-top: 1px solid var(--border-panel); padding-top: 1rem; margin-bottom: 1.5rem; font-size: .9rem; }
.home-v2 :is(.home-steps,.home-uses) p { margin-top: .8rem; }

/* Gallery: about 1.6 / 2.3 / 3.3 screenshots visible, so the next one peeks in. */
.home-v2 .gallery-strip { --gallery-gap: 1rem; --gallery-visible: 1.6; display: flex; gap: var(--gallery-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; margin-top: 2rem; padding: .5rem .25rem 1rem; }
.home-v2 .gallery-strip figure { flex: 0 0 calc((100% - (var(--gallery-visible) - 1) * var(--gallery-gap)) / var(--gallery-visible)); margin: 0; scroll-snap-align: start; }
.home-v2 .gallery-strip img { width: 100%; height: auto; border-radius: .9rem; box-shadow: 0 10px 26px rgb(16 16 36 / .16); }
.home-v2 .gallery-strip figcaption { color: var(--text-on-panel); font-size: .92rem; line-height: 1.5; padding-block: .85rem; }
/* Right padding keeps the round buttons clear of the floating back-to-top link. */
.home-v2 .gallery-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; margin-top: .5rem; padding-right: 4.5rem; }
.home-v2 .gallery-controls .gallery-button { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 999px; background: var(--accent-primary); color: var(--action-primary-text); box-shadow: 0 4px 12px rgb(16 16 36 / .2); cursor: pointer; }
.home-v2 .gallery-controls .gallery-button[aria-disabled="true"] { opacity: .45; cursor: default; box-shadow: none; }
.home-v2 .gallery-controls p { margin-left: .25rem; font-variant-numeric: tabular-nums; color: var(--text-secondary); }

/* Video: full-width centered 16:9 poster with a red play button; YouTube loads on click. */
.home-v2 .video-inner { text-align: center; }
.home-v2 .video-inner .section-intro { margin-inline: auto; }
.home-v2 lite-youtube { position: relative; display: block; width: 100%; max-width: 60rem; margin: 2rem auto 0; aspect-ratio: 16/9; background: #000; border-radius: 1rem; overflow: hidden; box-shadow: 0 24px 48px rgb(16 16 36 / .25); }
.home-v2 .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-v2 lite-youtube .lty-playbtn { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.home-v2 lite-youtube .lty-playbtn:focus-visible { outline: 3px solid #fff; outline-offset: -8px; box-shadow: inset 0 0 0 8px rgb(16 16 36 / .7); }
.home-v2 .video-play-icon { width: 68px; height: 48px; filter: drop-shadow(0 4px 10px rgb(0 0 0 / .35)); }
.home-v2 .lty-playbtn:is(:hover, :focus-visible) .video-play-shape { fill: #cc0000; }
.home-v2 lite-youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.home-v2 lite-youtube.lyt-activated .lty-playbtn { display: none; }
.home-v2 .video-notice { margin-top: 1rem; font-size: .95rem; }

.home-v2 .home-privacy { border-block: 1px solid var(--border-panel); }
.home-v2 .home-privacy p { max-width: 75ch; margin-top: 1rem; }
.home-v2 .policy-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1rem; }
.home-v2 .policy-links a { padding-block: .5rem; }
.home-v2 .home-faq { max-width: 52rem; margin-top: 2rem; }
.home-v2 .home-faq details { border-bottom: 1px solid var(--border-panel); padding-block: .5rem; }
.home-v2 .home-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 600; padding-block: .85rem; cursor: pointer; min-height: 44px; list-style: none; }
.home-v2 .home-faq summary::-webkit-details-marker { display: none; }
.home-v2 .home-faq summary::marker { content: ''; }
.home-v2 .home-faq summary::after { content: ''; flex-shrink: 0; width: .55rem; height: .55rem; margin-right: .35rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15rem) rotate(45deg); }
.home-v2 .home-faq details[open] > summary::after { transform: translateY(.15rem) rotate(-135deg); }
.home-v2 .home-faq p { margin: 0 0 1rem; max-width: 72ch; }

/* Final call to action on the brand gradient band. */
.home-v2 .home-final { background: var(--band-gradient); color: #fff; text-align: center; padding-block: 4.5rem; }
.home-v2 .home-final :is(h2, p) { color: #fff; }
.home-v2 .home-final p { max-width: 55ch; margin: 1rem auto 1.75rem; font-size: 1.15rem; }

@media(max-width: 1023px) {
  .home-v2 .gallery-strip { --gallery-visible: 2.3; }
  .home-v2 .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(min-width: 1024px) {
  .home-v2 .gallery-strip { --gallery-gap: 1.5rem; --gallery-visible: 3.3; }
}
@media(max-width: 639px) {
  .home-v2 .gallery-strip { --gallery-visible: 1.6; }
}
@media(max-width: 760px) {
  .home-v2 .home-width { width: min(100% - 2rem, 36rem); }
  .home-v2 .home-hero { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 2.25rem 2.75rem; }
  .home-v2 .hero-intro { font-size: 1.05rem; margin-block: 1rem; }
  .home-v2 .hero-figure { width: 100%; }
  .home-v2 .hero-figure img { width: 180px; }
  .home-v2 .language-suggestion:not([hidden]) ~ .home-hero { padding-top: 1.25rem; }
  .home-v2 .home-section { padding-block: 3rem; }
  .home-v2 .feature-grid, .home-v2 .home-steps, .home-v2 .home-uses { grid-template-columns: 1fr; gap: 1.25rem 1.75rem; }
  .home-v2 .feature-grid { gap: .75rem; }
  .home-v2 .feature-item { display: grid; grid-template-columns: 44px minmax(0,1fr); column-gap: 1rem; padding: 1.1rem; }
  .home-v2 .feature-icon { grid-row: span 2; margin-bottom: 0; }
  .home-v2 .feature-item p { margin-top: .25rem; }
  .home-v2 .home-final { padding-block: 3.25rem; }
}
.support-v2 main > header { background: var(--bg-panel); padding: 3rem 1.5rem; text-align: center; }
.support-v2 main > header p { max-width: 65ch; margin: 1rem auto 0; }
.support-v2 :is(.about-main,.cl-main) { max-width: 70rem; }
.support-v2 main :is(.about-card,.cl-entry,.nf-links) { border-radius: 1rem; box-shadow: none; background: var(--bg-panel); border: 1px solid var(--border-panel); }
.support-v2 :is(.about-cta,.cl-cta) { background: var(--bg-panel); }
.support-v2 .nf-wrap { min-height: auto; padding: 7rem 1.5rem 3rem; }
.support-v2 .nf-link { min-height: 44px; }
.site-v2 .feature-card { opacity: 1; transform: none; }
@media(prefers-reduced-motion: reduce) {
  html.site-v2, .site-v2 *, .site-v2 *::before, .site-v2 *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .site-v2 .hover-lift:hover, .site-v2 .nf-link:hover { transform: none; }
}
