.home-page {
    --home-paper: #f8f8f2;
    --home-ink: #252820;
    --home-muted: #686d60;
    --home-line: #e2e5da;
    --home-yellow: #fcdf03;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--home-ink);
    background: var(--home-paper);
    -webkit-font-smoothing: antialiased;
    text-size-adjust: 100%;
}

.home-page *, .home-page *::before, .home-page *::after { box-sizing: border-box; }
.home-page body { margin: 0; }
.home-page a { color: inherit; text-underline-offset: 4px; }
.home-page a, .home-page summary { -webkit-tap-highlight-color: #e6d55745; touch-action: manipulation; }
.home-page :focus-visible { outline: 3px solid #847600; outline-offset: 5px; }
.home-page p { line-height: 1.65; }
.home-page h1, .home-page h2, .home-page h3, .home-page p { margin-top: 0; }
.home-page h1, .home-page h2, .home-page h3 { text-wrap: balance; }
.home-page h2 { font-size: clamp(1.9rem, 3.2vw, 2.65rem); line-height: 1.15; letter-spacing: -.045em; }
.home-page [id] { scroll-margin-top: 2rem; }
.home-shell { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.home-skip { position: absolute; left: 16px; top: -100px; z-index: 2; padding: 14px 20px; background: var(--home-yellow); border-radius: 10px; }
.home-skip:focus { top: 12px; }
.home-header { background: #000; color: #fff; border-bottom: 1px solid #303030; }
.home-header .home-wordmark > span { color: #fff; }
.home-header :focus-visible { outline-color: #fcdf03; }
.home-nav { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 24px; }
.home-wordmark { font-size: 2rem; font-weight: 800; letter-spacing: -.085em; text-decoration: none; }
.home-wordmark > span { color: #938200; }
.home-nav nav { display: flex; align-items: center; gap: 30px; }
.home-nav nav a { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; font-size: .875rem; font-weight: 550; text-decoration: none; }
.home-nav nav a:hover { text-decoration: underline; }
.home-nav .home-nav-account { padding: 9px 18px; border: 1px solid #484848; border-radius: 10px; background: #222; }
.home-nav .home-nav-account:hover { background: #333; }
.home-message { padding: 16px 24px; background: #fff4b7; text-align: center; overflow-wrap: anywhere; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; padding-block: 76px 68px; }
.home-hero h1 { font-size: clamp(2.65rem, 4.3vw, 3.9rem); line-height: 1.06; letter-spacing: -.058em; font-weight: 750; margin-bottom: 24px; }
.home-title-dot { color: #ad9800; }
.home-lead { max-width: 39ch; font-size: 1.0625rem; color: var(--home-muted); margin-bottom: 32px; }
.home-choose h2 { font-size: .875rem; letter-spacing: -.01em; margin-bottom: 14px; }
.home-languages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(9rem, calc(50% - 5px))), 1fr)); gap: 10px; }
.home-language { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #dce0d2; border-radius: 13px; background: #fff; text-decoration: none; box-shadow: 0 2px 3px #30352103; transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.home-language strong { display: block; font-size: .9375rem; font-weight: 650; }
.home-flag { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; background: #f4f5ee; border-radius: 50%; font-size: 1.375rem; }
.home-greeting { display: block; font-size: .75rem; margin-top: 4px; color: var(--home-muted); }
.home-arrow { margin-left: auto; font-size: 1.125rem; color: #6d725f; }
.home-language:hover { background: #fffce5; border-color: #b4a64e; box-shadow: 0 4px 12px #3035210a; transform: translateY(-2px); }
.home-language:active { transform: scale(.98); background: #fff3a0; }
.home-reassurance { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: .8125rem; color: var(--home-muted); margin: 15px 0 0; }
.home-reassurance > span:first-child { color: #536e40; font-weight: 700; }
.home-preview-wrap { position: relative; }
.home-preview-wrap::before { content: ""; position: absolute; inset: 40px -20px 52px 22px; background: #eeeee0; border: 1px solid #e4e5d4; border-radius: 26px; transform: rotate(3deg); transform-origin: top right; z-index: -1; }
.home-story { overflow: hidden; border: 1px solid #dfe1d5; border-radius: 22px; background: #fff; box-shadow: 0 16px 48px #333c2110, 0 2px 5px #333c2105; }
.home-story-art { display: block; width: 100%; height: auto; aspect-ratio: 30 / 11; object-fit: cover; border-bottom: 1px solid #e4e4d7; }
.home-story-body { padding: 24px 28px 18px; }
.home-story-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .5625rem; letter-spacing: .09em; color: var(--home-muted); margin-bottom: 18px; }
.home-level-chip { padding: 5px 8px; border-radius: 6px; background: #edf1e4; color: #4c6137; font-size: .625rem; letter-spacing: 0; white-space: nowrap; }
.home-story h2 { font-size: 1.6rem; letter-spacing: -.035em; margin-bottom: 15px; }
.home-story-intro { font-size: .9375rem; color: #666b5f; margin-bottom: 6px; }
.home-translation { min-height: 11.5625rem; }
.home-translation summary { cursor: pointer; list-style: none; border-radius: 6px; font-size: .9375rem; line-height: 1.8; }
.home-translation summary::-webkit-details-marker { display: none; }
.home-translation mark { background: #fff1a0; color: inherit; padding: 3px 4px; border-radius: 4px; border-bottom: 2px solid #ddc447; }
.home-translation summary:hover mark { background: #fce365; }
.home-translation-hint { display: flex; align-items: center; gap: 7px; font-size: .625rem; color: var(--home-muted); margin-top: 10px; }
.home-translation[open] .home-translation-hint > span { transform: rotate(180deg); }
.home-word-card { margin-top: 9px; padding: 12px 16px; background: #f7f8f1; border: 1px solid #e0e5d4; border-radius: 12px; }
.home-word-card > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-word-card strong { font-size: .875rem; }
.home-word-type { font-size: .625rem; color: #6b5c8b; padding: 3px 7px; border-radius: 5px; background: #eeebf5; }
.home-word-card p { font-size: .875rem; margin: 5px 0 3px; }
.home-word-context { font-size: .75rem; color: var(--home-muted); }
.home-word-audio { display: inline-flex; align-items: center; gap: 6px; }
.home-audio-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; touch-action: manipulation; }
.home-audio-button:hover, .home-audio-button:focus-visible { background: #e7ecd9; }
.home-audio-button:disabled { cursor: wait; opacity: .6; }
.home-audio-button .home-feature-icon { margin: 0; }
.home-word-card .home-audio-status { font-size: .75rem; color: var(--home-muted); margin-top: 8px; }
.home-audio-status:empty { display: none; }
.home-preview-link { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 44px; margin-top: 12px; font-size: .75rem; text-decoration: none; }
.home-preview-link:hover { text-decoration: underline; }
.home-section { padding-block: 112px; }
.home-section-heading { text-align: center; margin-bottom: 38px; }
.home-section-heading h2 { margin-bottom: 14px; }
.home-section-heading > p { max-width: 62ch; margin: 0 auto; font-size: 1rem; color: var(--home-muted); }
.home-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.home-feature { padding-top: 24px; border-top: 1px solid var(--home-line); }
.home-feature h3 { display: flex; align-items: flex-start; gap: 10px; font-size: 1.25rem; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 12px; text-wrap: pretty; }
.home-feature-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: .15em; fill: none; stroke: #74815f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-feature p { font-size: 1rem; color: var(--home-muted); margin-bottom: 0; }
.home-levels-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; background: #eeeee3; border: 1px solid #e3e5d6; padding: 48px; border-radius: 22px; }
.home-levels-copy h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); margin-bottom: 18px; }
.home-levels-copy > p { color: var(--home-muted); font-size: .875rem; max-width: 40ch; }
.home-text-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; font-size: .8125rem; font-weight: 600; }
.home-level { display: flex; align-items: center; gap: 22px; padding: 24px 0; border-bottom: 1px solid #d7dacb; }
.home-level:first-child { padding-top: 0; }
.home-level:last-child { padding-bottom: 0; border-bottom: 0; }
.home-level > span { display: flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 70px; min-height: 40px; padding: 8px; border: 1px solid #d4d9c3; border-radius: 8px; font-size: .75rem; font-weight: 600; background: #f8f9f2; color: #5a644d; }
.home-level h3 { font-size: .875rem; letter-spacing: -.01em; margin: 0 0 5px; }
.home-level p { font-size: .75rem; color: var(--home-muted); margin: 0; }
.home-page #testimonials_heading { text-align: center; margin-bottom: 24px; }
.home-testimonial-controls { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
.home-testimonial-controls[hidden] { display: none; }
.home-testimonial-controls button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #d2d7c6; border-radius: 50%; background: #fff; color: var(--home-ink); font: inherit; font-size: 1.4rem; cursor: pointer; touch-action: manipulation; transition: background-color .15s, transform .15s; }
.home-testimonial-controls button:last-child { background: #fff0a0; border-color: #dcc969; }
.home-testimonial-controls button:hover:not(:disabled) { background: #fce365; }
.home-testimonial-controls button:active:not(:disabled) { transform: scale(.95); }
.home-testimonial-controls button:disabled { background: #f0f1e9; border-color: var(--home-line); color: #a1a68f; cursor: default; }
.home-page #testimonials_rail { position: relative; padding: 20px; border: 1px solid #d7dccb; border-radius: 20px; background: #f0f2e9; box-shadow: 0 3px 12px #30352104; }
.home-page #testimonials_scroll_container { display: flex; align-items: flex-start; gap: 18px; overflow-x: auto; padding: 4px 4px 20px; scroll-snap-type: x proximity; scroll-padding-inline: 4px; scrollbar-color: #a1a68f #e9ece0; }
.home-page .has-scrollbar #testimonials_scroll_container { scrollbar-width: none; scroll-snap-type: none; padding-bottom: 4px; }
.home-page .has-scrollbar #testimonials_scroll_container::-webkit-scrollbar { display: none; }
.home-testimonial-scrollbar { margin: 8px 4px 0; }
.home-testimonial-scrollbar[hidden] { display: none; }
.home-testimonial-scrollbar input { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; border-radius: 8px; }
.home-testimonial-scrollbar input::-webkit-slider-runnable-track { height: 12px; border: 1px solid #cbd1be; border-radius: 8px; background: #e0e5d6; }
.home-testimonial-scrollbar input::-moz-range-track { height: 10px; border: 1px solid #cbd1be; border-radius: 8px; background: #e0e5d6; }
.home-testimonial-scrollbar input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: max(44px, var(--scroll-thumb-width, 20%)); height: 10px; border: 1px solid #697554; border-radius: 7px; background: #879571; cursor: grab; }
.home-testimonial-scrollbar input::-moz-range-thumb { box-sizing: border-box; width: max(44px, var(--scroll-thumb-width, 20%)); height: 10px; border: 1px solid #697554; border-radius: 7px; background: #879571; cursor: grab; }
.home-testimonial-scrollbar input:active::-webkit-slider-thumb { background: #63734d; cursor: grabbing; }
.home-testimonial-scrollbar input:active::-moz-range-thumb { background: #63734d; cursor: grabbing; }
.home-page .testimonial_card { flex: 0 0 min(340px, 86%); padding: 26px; background: #fff; border: 1px solid var(--home-line); border-radius: 16px; scroll-snap-align: start; }
.home-page .testimonial_text { font-size: 1rem; line-height: 1.75; margin: 0 0 26px; }
.home-page .testimonial_author_container { display: flex; align-items: center; gap: 14px; }
.home-page .testimonial_avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #eef0e6; font-size: .75rem; font-weight: 700; color: #58644a; }
.home-page .testimonial_stars { font-size: 1rem; letter-spacing: 2px; color: #8b7800; }
.home-page #testimonials_scroll_hint { position: absolute; top: 20px; right: 20px; bottom: 20px; width: 64px; display: flex; justify-content: flex-end; align-items: flex-start; padding: 26px 10px 0 0; background: linear-gradient(to right, #f0f2e900, #e4e8daee); border-radius: 0 12px 12px 0; pointer-events: none; }
.home-page #testimonials_rail.has-scrollbar #testimonials_scroll_hint { bottom: 76px; }
.home-page #testimonials_scroll_hint[hidden] { display: none; }
.home-page #testimonials_chevron { width: 10px; height: 10px; border-top: 2px solid #6a7359; border-right: 2px solid #6a7359; transform: rotate(45deg); }
.home-final { padding: 56px 48px 40px; margin-bottom: 112px; border: 1px solid #e6dd97; border-radius: 22px; background: #faf3c5; text-align: center; }
.home-final h2 { margin-bottom: 16px; }
.home-final > p { font-size: .9375rem; color: #686447; }
.home-final .home-languages { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 30px; text-align: left; }
.home-final .home-language { border-color: #e4dcac; background: #fffef4; }
.home-final .home-language:hover { background: #fff; border-color: #b4a64e; }
.home-footer { background: #f0f1e9; border-top: 1px solid var(--home-line); padding: 46px 0 22px; }
.home-footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.home-footer-top p { font-size: .75rem; color: var(--home-muted); margin: 8px 0 0; }
.home-footer-top nav { display: flex; gap: 24px; }
.home-footer a:not(.home-wordmark) { display: inline-flex; align-items: center; min-height: 44px; font-size: .75rem; color: #5d6355; text-decoration: none; }
.home-footer a:hover { text-decoration: underline; }
.home-footer-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-block: 1px solid #dce0d1; padding-block: 28px; margin-block: 28px 14px; }
.home-footer-levels h2 { font-size: .75rem; letter-spacing: 0; line-height: 1.5; margin-bottom: 12px; }
.home-footer-levels a { display: flex !important; width: fit-content; }
.home-footer-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; font-size: .6875rem; color: var(--home-muted); }
.home-footer-bottom > span { margin-right: auto; }

@media (min-width: 1500px) {
    .home-hero { padding-block: 96px 88px; }
}

@media (max-width: 1100px) {
    .home-shell { width: calc(100% - 64px); }
    .home-hero { gap: 36px; padding-block: 56px; }
    .home-hero h1 { font-size: clamp(2.5rem, 4.8vw, 3.4rem); }
    .home-preview-wrap::before { right: -8px; }
    .home-story-body { padding-inline: 20px; }
    .home-language { gap: 10px; padding: 12px; }
    .home-levels-section { padding: 36px; gap: 36px; }
    .home-final { padding-inline: 32px; }
    .home-final .home-languages { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin-inline: auto; }
}

@media (max-width: 900px) {
    .home-nav { min-height: 80px; }
    .home-nav nav { gap: 20px; }
    .home-hero { grid-template-columns: 1fr; max-width: 600px; gap: 30px; }
    .home-hero-copy { text-align: center; }
    .home-reassurance { justify-content: center; }
    .home-hero h1 { font-size: clamp(2.65rem, 7vw, 3.7rem); }
    .home-title-break { display: none; }
    .home-lead { margin-inline: auto; }
    .home-choose { max-width: 470px; margin-inline: auto; }
    .home-language { text-align: left; padding: 14px 16px; }
    .home-preview-wrap { max-width: 440px; width: calc(100% - 20px); margin-inline: auto; }
    .home-story-body { padding: 24px 28px 18px; }
    .home-section { padding-block: 88px; }
    .home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .home-levels-section { grid-template-columns: 1fr; gap: 28px; }
    .home-levels-copy > p { max-width: 54ch; }
    .home-levels-copy h2 br { display: none; }
    .home-levels { width: 100%; }
    .home-page #testimonials_scroll_container { gap: 14px; }
    .home-page .testimonial_card { padding: 24px; }
    .home-final { margin-bottom: 88px; }
    .home-footer-top nav { gap: 18px; }
    .home-footer-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 540px) {
    .home-shell { width: calc(100% - 40px); }
    .home-nav { min-height: 72px; gap: 8px 16px; flex-wrap: wrap; padding-block: 12px; }
    .home-wordmark { font-size: 1.8rem; }
    .home-nav nav { gap: 16px; }
    .home-nav nav a { font-size: .75rem; }
    .home-nav .home-how-link { display: none; }
    .home-nav .home-nav-account { padding: 8px 12px; gap: 12px; }
    .home-hero { padding-block: 40px; }
    .home-hero h1 { font-size: clamp(2.35rem, 9.5vw, 3.15rem); line-height: 1.08; margin-bottom: 20px; }
    .home-lead { font-size: .9375rem; margin-bottom: 28px; }
    .home-choose h2 { font-size: .8125rem; }
    .home-language { padding: 12px; gap: 10px; border-radius: 12px; }
    .home-language strong { font-size: .8125rem; }
    .home-flag { width: 32px; height: 32px; font-size: 1.125rem; }
    .home-greeting { font-size: .6875rem; }
    .home-arrow { font-size: 1rem; }
    .home-reassurance { font-size: .75rem; gap: 5px; }
    .home-preview-wrap { width: calc(100% - 10px); padding-top: 4px; }
    .home-preview-wrap::before { inset: 36px -8px 50px 14px; transform: rotate(2deg); }
    .home-story-body { padding: 22px 20px 18px; }
    .home-story h2 { font-size: 1.45rem; }
    .home-story-meta { font-size: .5rem; }
    .home-story-intro, .home-translation summary { font-size: .875rem; }
    .home-translation { min-height: 11.4375rem; }
    .home-section { padding-block: 72px; }
    .home-section-heading { margin-bottom: 28px; }
    .home-features { grid-template-columns: 1fr; gap: 24px; }
    .home-feature { padding-top: 20px; }
    .home-levels-section { padding: 28px 24px; }
    .home-level { gap: 14px; }
    .home-level > span { min-width: 60px; font-size: .6875rem; }
    .home-level h3 { font-size: .8125rem; }
    .home-level p { font-size: .6875rem; }
    .home-page #testimonials_rail { padding: 12px; border-radius: 16px; }
    .home-page #testimonials_scroll_hint { top: 12px; right: 12px; bottom: 12px; width: 44px; }
    .home-page #testimonials_rail.has-scrollbar #testimonials_scroll_hint { bottom: 68px; }
    .home-final { padding: 36px 20px 28px; margin-bottom: 72px; }
    .home-final .home-languages { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(7rem, calc(50% - 5px))), 1fr)); }
    .home-final .home-language { padding: 12px 10px; gap: 8px; }
    .home-final .home-arrow { display: none; }
    .home-footer { padding-top: 32px; }
    .home-footer-top { flex-direction: column; align-items: flex-start; gap: 18px; }
    .home-footer-top nav { width: 100%; justify-content: space-between; }
    .home-footer-levels { margin-top: 18px; }
    .home-footer-bottom { gap: 6px 18px; }
    .home-footer-bottom > span { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *, .home-page *::before, .home-page *::after { transition: none; }
    .home-language:hover, .home-language:active { transform: none; }
}

@media (prefers-contrast: more) {
    .home-page { --home-muted: #444b3c; --home-line: #929885; }
    .home-language, .home-story, .home-word-card { border-color: #929885; }
}
