/* Homepage content only. Site navigation is shared through navigation.css. */
.home-page { overflow-x: visible; }
.home-main {
    --ink: #142b43;
    --muted: #526275;
    --blue: #245dde;
    --paper: #faf9f6;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
}
.home-main *, .home-main *::before, .home-main *::after { box-sizing: border-box; }
.home-main section { padding: 0; }
.home-main h2, .home-main h3, .home-main p, .home-main figure { margin: 0; }
.home-main h2, .home-main h3 { text-align: left; line-height: 1.08; letter-spacing: -0.045em; }
.home-main em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.home-main a { color: inherit; }
.home-main img { display: block; max-width: 100%; }
.home-main button { font: inherit; }
.home-main [hidden] { display: none !important; }
.home-main :focus-visible, .home-page footer a:focus-visible {
    outline: 3px solid #d56c38;
    outline-offset: 5px;
}
.home-main [id] { scroll-margin-top: 28px; }
.home-container { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.home-main .eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.6;
    text-transform: uppercase;
}
.norwegian-flag {
    display: inline-block;
    flex: 0 0 23px;
    width: 23px;
    height: 17px;
    background:
        linear-gradient(90deg, transparent 27%, #16375b 27% 37%, transparent 37%),
        linear-gradient(transparent 41%, #16375b 41% 59%, transparent 59%),
        linear-gradient(90deg, transparent 22%, white 22% 42%, transparent 42%),
        linear-gradient(transparent 33%, white 33% 67%, transparent 67%), #c23c48;
    border-radius: 2px;
}
/* Hero: original, already-framed app screenshots, without added device shells. */
.home-main .home-hero {
    padding-top: 68px;
    background: radial-gradient(ellipse at 82% 30%, #e7eefc 0, transparent 49%), var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 36px; align-items: center; }
.hero-copy { padding: 12px 0 48px; position: relative; z-index: 1; }
.home-main .hero-copy h2 { font-size: clamp(54px, 5.1vw, 72px); margin: 22px 0 25px; }
.hero-copy h2 em { color: var(--blue); }
.home-main .hero-description { font-size: 18px; color: var(--muted); max-width: 390px; margin-bottom: 28px; }
.home-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store-button {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 12px 16px;
    background: #142b43;
    color: white !important;
    border: 1px solid #142b43;
    border-radius: 12px;
    text-decoration: none;
    min-height: 64px;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.store-button img { width: 32px; height: 34px; object-fit: contain; flex-shrink: 0; border-radius: 6px; }
.store-button span { line-height: 1.2; }
.store-button small { display: block; font-size: 10px; letter-spacing: 0.025em; margin-bottom: 3px; color: #e0e8f2; }
.store-button strong { font-size: 17px; font-weight: 600; white-space: nowrap; }
.store-arrow { font-size: 17px; margin-left: 8px; color: #bdd0e9; }
.store-button:hover { background: #234263; transform: translateY(-3px); box-shadow: 0 8px 22px #142b431c; }
.home-main .download-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.download-note span { margin-inline: 6px; }
/* The full learning experience is localized, not just the interface. */
.home-main .home-languages {
    max-width: 420px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #dce0e4;
}
.home-main .home-languages-title { font-size: 14px; font-weight: 600; line-height: 1.5; }
.home-main .home-languages-description { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.home-main .home-language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}
.home-language-list li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; white-space: nowrap; }
.home-language-list img { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px #142b4310; }
.download-qr { margin-top: 18px; max-width: 398px; font-size: 12px; }
.download-qr summary { cursor: pointer; min-height: 44px; padding-block: 12px; width: fit-content; }
.download-qr summary span { padding-left: 7px; }
.qr-options { display: flex; flex-wrap: wrap; gap: 18px; padding: 16px 0; }
.qr-options a { text-align: center; text-decoration: none; font-size: 11px; }
.qr-options img { padding: 6px; background: white; border-radius: 8px; margin-bottom: 6px; }
.home-main .text-link { display: inline-flex; align-items: center; gap: 16px; text-underline-offset: 5px; font-size: 13px; font-weight: 600; min-height: 44px; }
.hero-explore { margin-top: 15px; }
.hero-art { position: relative; height: 590px; isolation: isolate; }
.hero-orbit {
    position: absolute;
    width: 98%;
    aspect-ratio: 1;
    top: 8%;
    left: 1%;
    border: 1px solid #b9cce7;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #d4e1fd 0, #eef3fc 65%, transparent 66%);
}
.hero-orbit::after { content: ''; position: absolute; inset: 10%; border: 1px dashed #becfe7; border-radius: 50%; }
.hero-screen { position: absolute; width: 46%; height: auto; filter: drop-shadow(0 24px 17px #15365926); }
.hero-screen--back { left: 3%; top: 70px; transform: rotate(-9deg); }
.hero-screen--front { left: 48%; top: 15px; transform: rotate(8deg); }
.hero-greeting { position: absolute; left: 8%; top: -23px; font: italic 65px Georgia, serif; color: var(--blue); transform: rotate(-13deg); }
.home-main .hero-art-caption { position: absolute; bottom: -24px; right: 10%; font-size: 12px; letter-spacing: 0.015em; }
.hero-art-caption span { color: var(--blue); margin-right: 8px; font-size: 20px; }
.hero-bottom { display: grid; grid-template-columns: minmax(max-content, 1.1fr) repeat(3, 1fr); align-items: center; gap: 24px; padding-block: 27px; border-top: 1px solid #dce0e4; }
.hero-bottom p { display: flex; align-items: center; gap: 0.3em; min-height: 44px; font-size: 12px; color: var(--muted); line-height: 1.65; white-space: nowrap; }
.hero-bottom p strong { font-weight: 600; color: var(--ink); }
.hero-bottom a { display: flex; gap: 12px; align-items: center; font-size: 12px; text-decoration: none; min-height: 44px; }
.hero-bottom a > span:first-child { color: #697f98; font-size: 10px; }
.hero-bottom a > span:last-child { margin-left: auto; color: var(--blue); }
.hero-bottom a:hover { color: var(--blue); }

/* A connected feature story; layouts alternate between spotlights, pairs and bands. */
.home-main .home-features { padding-bottom: 104px; }
.section-intro { padding: 90px 0 46px; max-width: 760px; }
.section-intro h2 { font-size: clamp(35px, 4.2vw, 56px); margin: 19px 0 21px; }
.section-intro h2 em { color: var(--blue); }
.section-intro > p:last-child { max-width: 485px; color: var(--muted); font-size: 16px; }
.feature { position: relative; border-radius: 24px; margin-bottom: 26px; }
.feature-copy { position: relative; z-index: 1; min-width: 0; }
.feature-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; letter-spacing: 0; font-size: 10px; flex-shrink: 0; opacity: 0.75; }
.feature h3 { margin: 22px 0; font-size: clamp(34px, 4.2vw, 58px); }
.feature-copy > p:not(.eyebrow) { font-size: 16px; color: var(--muted); margin-bottom: 20px; max-width: 480px; }
.feature-visual { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.feature-visual > img { position: relative; width: 238px; height: auto; max-width: 82%; filter: drop-shadow(0 20px 18px #122a4229); z-index: 1; }
.feature-visual figcaption { position: relative; z-index: 1; font-size: 11px; line-height: 1.6; opacity: 0.85; text-align: center; }
.feature--pronunciation { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 64px; background: radial-gradient(ellipse at 95% 25%, #254c7e 0, transparent 60%), #142d4c; color: #fff; }
.feature--pronunciation h3 em { color: #98baff; }
.feature--pronunciation .feature-copy > p:not(.eyebrow) { color: #d0ddee; }
.practice-steps { list-style: none; padding: 0; margin: 30px 0 0; }
.practice-steps li { display: flex; gap: 15px; border-top: 1px solid #ffffff24; padding: 15px 0; }
.practice-steps li > span { color: #9db6da; font-size: 10px; margin-top: 4px; }
.practice-steps strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.practice-steps p { font-size: 13px; color: #bfcee2; max-width: 340px; }
.sound-lines { position: absolute; inset: 0; display: flex; gap: 10px; align-items: center; justify-content: center; opacity: 0.38; }
.sound-lines i { width: 6px; height: 90px; border-radius: 6px; background: #7aa9ed; }
.sound-lines i:nth-child(2n) { height: 200px; }
.sound-lines i:nth-child(3n) { height: 340px; }
.sound-lines i:nth-child(5n) { height: 450px; }
.feature--dictionary { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; padding: 58px 64px; background: #e9efe8; }
.feature--dictionary .feature-visual { grid-row: 1; grid-column: 1; }
.feature--dictionary .feature-copy { grid-column: 2; }
.feature--dictionary .feature-visual::before { content: ''; position: absolute; width: 100%; max-width: 365px; aspect-ratio: 1; border-radius: 50%; border: 1px solid #b8cdb9; background: #dee8dd; }
.feature--dictionary h3 em { color: #3d6650; }
.word-journey { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 8px 0 0; margin: 0; font-size: 12px; color: #3d6650; font-weight: 600; }
.word-journey li:not(:last-child)::after { content: '→'; margin-left: 12px; font-weight: 400; }
.feature--game { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 55px; padding: 58px 64px; background: #f2e5dd; align-items: center; }
.feature--game h3 em { color: #9b4836; }
.game-lettering { position: absolute; top: -10px; right: 0; font-weight: 800; font-size: clamp(110px, 12vw, 160px); line-height: 1; letter-spacing: -0.1em; color: #deb9a8; transform: rotate(12deg); }
.feature--game .feature-visual > img { width: 200px; margin-top: 40px; transform: rotate(-5deg); }
.home-main .game-note { border-top: 1px solid #d7bbae; padding-top: 20px; font-size: 12px !important; color: #7f3b2d !important; margin-bottom: 0 !important; }
.game-note span { margin-right: 8px; }
.section-intro--compact { padding-top: 60px; }
.feature-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.feature-pair .feature { padding: 38px 40px 26px; display: flex; flex-direction: column; }
.feature-pair .feature h3 { font-size: 34px; }
.feature-pair .feature-copy { min-height: 218px; }
.feature-pair .feature-copy > p:not(.eyebrow) { font-size: 15px; }
.feature--exercise { background: #e9eef7; }
.feature--flashcards { background: #ece7f3; }
.feature--grammar, .feature--reading { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 68px; padding: 45px 64px; }
.feature--grammar { background: #eeebe3; }
.feature--reading { background: #e4edf0; }
.feature--reading .screenshot-gallery { grid-row: 1; grid-column: 1; }
.feature--reading .feature-copy { grid-column: 2; }
.feature--grammar h3, .feature--reading h3 { font-size: 45px; }
.feature-pair--last .feature-copy { min-height: 185px; }
.feature--rankings { background: #edf0e3; }
.feature--profile { background: #f1e9e4; }
.feature-pair--last .screenshot-gallery { --shot-height: 340px; }

/* Scrollable with no JavaScript; buttons enhance it when scripting is available. */
.screenshot-gallery { min-width: 0; width: 100%; --shot-height: 395px; margin-top: auto; }
.gallery-track { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #72859f transparent; border-radius: 2px; }
.screenshot-gallery.is-enhanced .gallery-track { scrollbar-width: none; }
.screenshot-gallery.is-enhanced .gallery-track::-webkit-scrollbar { display: none; }
.home-main .gallery-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; padding: 14px 18px 22px; }
.gallery-slide img { height: var(--shot-height); width: 100%; object-fit: contain; filter: drop-shadow(0 10px 8px #142b431a); }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 8px; }
.gallery-controls button { cursor: pointer; width: 44px; height: 44px; border-radius: 50%; background: transparent; color: var(--ink); border: 1px solid #708095; line-height: 1; transition: background 160ms ease; }
.gallery-controls button:hover { background: #ffffffb3; }
.gallery-controls button:disabled { opacity: 0.3; cursor: default; }
.gallery-count { font-size: 11px; color: #45596e; min-width: 38px; text-align: center; font-variant-numeric: tabular-nums; }
.home-main .home-finale { background: radial-gradient(ellipse at 50% 130%, #cbdcfc, transparent 70%), #ebf0f8; padding: 78px 0 80px; }
.finale-content { text-align: center; }
.finale-content .eyebrow, .finale-content .home-stores { justify-content: center; }
.finale-content h2 { text-align: center; font-size: clamp(39px, 5vw, 66px); margin: 25px 0 22px; }
.finale-content h2 em { color: var(--blue); }
.finale-content > p:not(.eyebrow):not(.download-note) { color: var(--muted); font-size: 16px; }
.finale-content .home-stores { margin-top: 28px; }
.finale-content .text-link { margin-top: 12px; }
.home-page > footer { background: #142b43; padding: 25px 0; font-size: 12px; }
.home-page > footer a { min-height: 44px; display: inline-flex; align-items: center; }

/* Content is visible by default, including when JavaScript is unavailable. */
@media (prefers-reduced-motion: no-preference) {
    html:has(.home-page) { scroll-behavior: smooth; }
    .reveal { transition: opacity 3000ms ease, transform 3000ms cubic-bezier(0.22, 1, 0.36, 1); }
    .reveal.will-reveal { opacity: 0; transform: translateY(24px); }
}
@media (min-width: 1000px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
    .hero-art { transform: translate(var(--pointer-x, 0px), var(--pointer-y, 0px)); transition: transform 500ms ease-out; }
}
@media (max-width: 1100px) {
    .home-container { width: calc(100% - 64px); }
    .hero-grid { gap: 15px; }
    .hero-art { height: 510px; }
    .hero-copy h2 { font-size: 65px; }
    .hero-bottom { gap: 18px; }
    .feature--pronunciation, .feature--dictionary, .feature--game, .feature--grammar, .feature--reading { padding: 44px; gap: 34px; }
    .feature-pair .feature { padding: 32px; }
    .feature-pair .feature h3 { font-size: 30px; }
    .feature-pair .feature-copy { min-height: 240px; }
}
@media (max-width: 820px) {
    .hero-grid { grid-template-columns: 1fr 0.85fr; }
    .home-main .hero-copy h2 { font-size: 54px; }
    .home-main .hero-description { font-size: 16px; }
    .hero-art { height: 410px; }
    .store-arrow { display: none; }
    .store-button { padding: 11px 12px; gap: 8px; }
    .store-button strong { font-size: 15px; }
    .store-button img { width: 25px; height: 30px; }
    .hero-art-caption { right: 0 !important; }
    .hero-bottom { grid-template-columns: repeat(3, 1fr); }
    .hero-bottom > p { grid-column: 1 / -1; }
    .feature h3 { font-size: 38px; }
    .feature--pronunciation, .feature--dictionary, .feature--game, .feature--grammar, .feature--reading { padding: 34px; gap: 28px; }
    .feature-visual > img { max-width: 90%; }
    .feature .eyebrow { font-size: 10px; letter-spacing: 0.1em; }
    .feature-pair .feature { padding: 28px 24px; }
    .feature-pair .feature-copy { min-height: 246px; }
    .screenshot-gallery { --shot-height: 330px; }
    .feature-pair--last .screenshot-gallery { --shot-height: 300px; }
}
@media (max-width: 640px) {
    .home-container { width: calc(100% - 40px); }
    .home-main .home-hero { padding-top: 32px; }
    .hero-grid { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
    .hero-copy { padding: 8px 0 22px; }
    .home-main .hero-copy h2 { font-size: clamp(48px, 10.8vw, 64px); margin-block: 20px; }
    .home-main .hero-description { max-width: 380px; }
    .home-stores { gap: 10px; }
    .store-button { padding: 12px; gap: 10px; }
    .store-button img { width: 28px; height: 32px; }
    .store-button strong { font-size: 16px; }
    .hero-explore { margin-top: 0; }
    .hero-art { width: 100%; max-width: 420px; margin: 16px auto 24px; height: auto; aspect-ratio: 0.98; }
    .hero-screen { width: 40%; }
    .hero-screen--back { left: 10%; top: 13%; }
    .hero-screen--front { left: 48%; top: 2%; }
    .hero-orbit { width: 85%; left: 7%; top: 2%; }
    .hero-greeting { font-size: 45px; top: -8%; left: 10%; }
    .home-main .hero-art-caption { bottom: -8px; right: 9% !important; font-size: 11px; }
    .hero-bottom { grid-template-columns: 1fr; padding-block: 20px; gap: 0; }
    .hero-bottom > p { margin-bottom: 12px; }
    .hero-bottom a { padding: 8px 0; border-top: 1px solid #dce0e4; font-size: 13px; }
    .section-intro { padding: 55px 0 30px; }
    .section-intro h2 { font-size: clamp(31px, 7.7vw, 44px); }
    .section-intro > p:last-child { font-size: 15px; }
    .feature { border-radius: 20px; margin-bottom: 20px; }
    .feature--pronunciation, .feature--dictionary, .feature--game, .feature--grammar, .feature--reading { display: flex; flex-direction: column; align-items: stretch; gap: 32px; padding: 30px 24px; }
    .feature .feature-copy { min-height: 0; }
    .feature h3, .feature-pair .feature h3 { font-size: clamp(31px, 8vw, 42px); margin-block: 20px; }
    .feature-copy > p:not(.eyebrow) { font-size: 15px; }
    .feature-visual > img { width: 198px; max-width: 80%; }
    .feature--dictionary .feature-visual::before { max-width: 285px; }
    .feature--game .feature-visual > img { width: 185px; }
    .game-lettering { right: 4%; font-size: 140px; }
    .feature-visual figcaption { font-size: 10px; }
    .sound-lines { gap: 8px; }
    .sound-lines i:nth-child(5n) { height: 350px; }
    .section-intro--compact { padding-top: 32px; }
    .feature-pair { grid-template-columns: 1fr; gap: 0; }
    .feature-pair .feature { padding: 30px 24px; }
    .screenshot-gallery { --shot-height: 370px; }
    .feature-pair--last .screenshot-gallery { --shot-height: 330px; }
    .home-main .home-features { padding-bottom: 40px; }
    .home-main .home-finale { padding-block: 55px; }
    .finale-content h2 { font-size: clamp(32px, 8.1vw, 46px); }
    .finale-content > p:not(.eyebrow):not(.download-note) { font-size: 15px; }
    .finale-content > p br { display: none; }
}
@media (max-width: 380px) {
    .home-container { width: calc(100% - 32px); }
    .store-button { gap: 7px; padding: 10px; }
    .store-button strong { font-size: 14px; }
    .store-button small { font-size: 9px; }
    .home-main .eyebrow { font-size: 10px; letter-spacing: 0.1em; }
    .feature--pronunciation, .feature--dictionary, .feature--game, .feature--grammar, .feature--reading, .feature-pair .feature { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-main *, .home-main *::before, .home-main *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal.will-reveal { opacity: 1; transform: none; }
}
