:root {
  --white: #fff;
  --mint: #eaf4ef;
  --green: #12684b;
  --ink: #183e32;
  --muted: #61756b;
  --yellow: #f3e9af;
  --line: #d7e4dd;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 6px; }
[hidden] { display: none !important; }
.shell { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; background: white; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 650; letter-spacing: -.5px; white-space: nowrap; }
.brand img { border-radius: 11px; }
.site-header nav { display: flex; gap: 36px; font-size: 14px; }
.site-header nav a:hover, .footer-links a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.header-download { font-size: 14px; border: 1px solid var(--ink); border-radius: 30px; padding: 11px 23px; white-space: nowrap; }
.header-download:hover { background: var(--mint); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 690px; align-items: center; gap: 24px; padding-block: 25px 60px; }
.hero-copy { padding-bottom: 16px; }
.intro { font-size: 14px; margin-bottom: 27px; display: flex; align-items: center; gap: 10px; }
.intro::before { content: ''; width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
h1 { font-size: clamp(46px, 4.5vw, 66px); line-height: 1.28; letter-spacing: -3px; font-weight: 650; }
.hero-lead { margin-top: 26px; color: var(--muted); font-size: 18px; line-height: 1.95; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 35px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--green); padding: 15px 21px; border-radius: 9px; font-size: 14px; font-weight: 600; min-height: 50px; transition: background .15s; }
.download-note { display: block; color: var(--muted); font-size: 12px; margin-top: 16px; }
.explore-link { display: inline-block; margin-top: 45px; font-size: 14px; text-decoration: underline; text-underline-offset: 7px; }
.path-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 38px; display: grid; grid-template-columns: 215px 1fr; gap: 30px; }
.path-heading { display: flex; gap: 18px; align-items: center; }
.path-heading h2 { font-size: 22px; line-height: 1.5; letter-spacing: -.7px; }
.path-heading > p { display: none; }
.learning-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.learning-path li > span { font: 14px Georgia, serif; color: var(--muted); }
.learning-path h3 { font-size: 18px; font-weight: 600; margin-top: 8px; }
.learning-path p { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.feature-section, .everyday-section { padding-top: 104px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; margin-bottom: 38px; }
h2 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.4; letter-spacing: -1.3px; font-weight: 600; }
.section-heading > p, .everyday-grid p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.feature-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 34px; }
.feature-menu { display: flex; flex-direction: column; gap: 8px; padding-top: 30px; }
.feature-choice { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid transparent; background: transparent; padding: 23px 20px; color: var(--muted); cursor: pointer; border-radius: 0 12px 12px 0; }
.feature-choice span { display: block; font-size: 21px; font-weight: 550; }
.feature-choice small { display: block; font-size: 12px; margin-top: 10px; line-height: 1.7; }
.feature-choice:hover { background: #f5f8f6; }
.feature-choice[aria-selected="true"] { color: var(--ink); border-left-color: var(--green); background: var(--mint); }
.feature-panel { min-height: 460px; padding: 35px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; border-radius: 22px; background: #f1f6f3; overflow: hidden; align-items: center; }
.feature-panel + .feature-panel { margin-top: 20px; }
.feature-description { align-self: stretch; padding-top: 22px; padding-bottom: 38px; display: flex; flex-direction: column; align-items: flex-start; }
.russian-word { font: italic 44px Georgia, serif; color: var(--green); margin-bottom: 29px; }
.feature-description h3, .everyday-grid h3 { font-size: 28px; line-height: 1.5; font-weight: 550; letter-spacing: -.7px; }
.feature-description p { color: var(--muted); font-size: 14px; line-height: 1.95; max-width: 240px; margin-top: 18px; }
.feature-caption { font-size: 11px; color: var(--muted); margin-top: auto; padding-top: 24px; }
.everyday-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; }
.everyday-grid article { padding: 40px; border-radius: 22px; overflow: hidden; min-height: 420px; position: relative; }
.everyday-grid p { margin-top: 14px; }
.alphabet-card { background: #f7f5e9; }
.alphabet-card .card-footnote { margin-top: 28px; font-size: 12px; }
.wordbook-card { background: var(--mint); }
.wordbook-card > div { position: relative; z-index: 1; max-width: 290px; }
.faq-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; padding-block: 110px; }
.faq-section > div > p { color: var(--muted); margin-top: 18px; font-size: 14px; }
.faq-section > div > a { display: inline-block; margin-top: 30px; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 23px 8px; font-size: 16px; line-height: 1.7; }
.faq-list details p { padding: 0 8px 24px; color: var(--muted); font-size: 14px; line-height: 1.95; }
.download-section { text-align: center; background: var(--mint); padding: 50px 24px; border-radius: 28px; }
.download-section > img { margin: auto auto 23px; border-radius: 18px; }
.download-section > p[lang] { font: italic 36px Georgia, serif; color: var(--green); margin-bottom: 14px; }
.download-section > p:not([lang]) { margin-top: 15px; font-size: 14px; color: var(--muted); }
.download-section .download-actions { justify-content: center; margin-top: 28px; }
.site-footer { padding-block: 50px 32px; display: flex; justify-content: space-between; gap: 60px; }
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand img { border-radius: 10px; }
.footer-brand strong { display: block; font-size: 17px; margin-bottom: 10px; }
.footer-brand span { font-size: 11px; color: var(--muted); line-height: 1.9; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: start; gap: 15px 23px; max-width: 510px; font-size: 11px; color: var(--muted); }
.record-link { display: inline-flex; align-items: center; gap: 5px; }
@media (min-width: 1500px) { .hero { min-height: 740px; } }
@media (max-width: 1100px) {
  .shell { width: calc(100% - 64px); }
  .hero { grid-template-columns: 1fr 1fr; gap: 32px; }
  .button { padding: 13px 16px; }
  .feature-layout { grid-template-columns: 225px 1fr; gap: 20px; }
  .feature-panel { grid-template-columns: 1fr; padding-inline: 26px; gap: 15px; }
  .feature-description h3 { font-size: 24px; }
  .path-section { grid-template-columns: 170px 1fr; }
}
@media (max-width: 800px) {
  .shell { width: calc(100% - 40px); }
  .site-header { min-height: 82px; gap: 15px; }
  .site-header nav { gap: 18px; font-size: 12px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .header-download { padding: 9px 15px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 40px; }
  .hero-copy { text-align: center; }
  .intro, .hero .download-actions { justify-content: center; }
  h1 { font-size: 52px; }
  .hero-lead { font-size: 16px; }
  .explore-link { margin-top: 26px; }
  .path-section { grid-template-columns: 1fr; gap: 28px; }
  .path-heading { justify-content: space-between; }
  .path-heading h2 br { display: none; }
  .path-heading > p { display: block; font-size: 12px; color: var(--muted); line-height: 1.7; }
  .feature-section, .everyday-section { padding-top: 65px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 28px; }
  .section-heading p br { display: none; }
  .feature-layout { grid-template-columns: 1fr; }
  .feature-menu { flex-direction: row; padding: 0; gap: 4px; }
  .feature-choice { padding: 16px 10px; border-left: 0; border-bottom: 3px solid transparent; border-radius: 10px 10px 0 0; text-align: center; }
  .feature-choice[aria-selected="true"] { border-bottom-color: var(--green); }
  .feature-choice span { font-size: 16px; }
  .feature-choice small { display: none; }
  .feature-panel { min-height: 460px; grid-template-columns: .9fr 1.1fr; padding-inline: 34px; }
  .everyday-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .everyday-grid article { padding: 26px; }
  .everyday-grid h3 { font-size: 23px; }
  .faq-section { grid-template-columns: 1fr; gap: 30px; padding-block: 65px; }
  .site-footer { flex-direction: column; gap: 26px; }
  .footer-links { justify-content: flex-start; max-width: none; }
}
@media (max-width: 520px) {
  .site-header nav { display: none; }
  .intro { font-size: 12px; margin-bottom: 20px; }
  h1 { font-size: 44px; letter-spacing: -2px; }
  .hero { padding-top: 23px; padding-bottom: 40px; gap: 25px; }
  .hero-lead { font-size: 14px; margin-top: 20px; }
  .download-actions { gap: 7px; margin-top: 26px; }
  .button { padding: 13px 12px; font-size: 12px; min-height: 46px; }
  .learning-path { grid-template-columns: repeat(3,1fr); row-gap: 25px; }
  .path-heading h2 { font-size: 21px; }
  h2 { font-size: 27px; }
  .feature-choice span { font-size: 14px; }
  .feature-panel { grid-template-columns: 1fr; padding: 27px; gap: 0; }
  .feature-description { padding: 0 0 26px; }
  .russian-word { font-size: 34px; margin-bottom: 15px; }
  .feature-description h3 br { display: none; }
  .feature-description h3 { font-size: 24px; }
  .feature-description p { max-width: none; margin-top: 12px; }
  .feature-caption { padding-top: 17px; }
  .everyday-grid { grid-template-columns: 1fr; }
  .everyday-grid article { min-height: 360px; padding: 30px; }
  .wordbook-card p { max-width: 190px; }
  .download-section { padding: 36px 14px; }
  .download-section h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Language, rather than device frames, is the visual subject. */
.platform-download { width: 158px; gap: 9px; padding-inline: 12px; background: var(--green); color: white; border-color: var(--green); white-space: nowrap; }
.platform-download:hover { background: #0b5039; border-color: #0b5039; }
.platform-logo { width: 22px; height: 22px; flex: 0 0 22px; object-fit: contain; filter: brightness(0) invert(1); }
.language-example { min-width: 0; padding: 27px; background: white; border-radius: 3px 20px 20px 20px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.example-label, .example-foot { color: var(--muted); font-size: 11px; line-height: 1.8; }
.example-label { margin-bottom: 28px; }
.example-foot { margin-top: 25px; }
.dictionary-example > strong { font: 48px/1.2 Georgia, serif; color: var(--green); }
.dictionary-example > p { font-size: 15px; margin-top: 14px; }
.dictionary-example > p span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; }
.example-sentence { padding-top: 23px; margin-top: 25px; border-top: 1px solid var(--line); }
.example-sentence p[lang], .dialogue-line p[lang] { font: 23px/1.5 Georgia, serif; }
.example-sentence p + p, .dialogue-line p + p { font-size: 12px; color: var(--muted); margin-top: 9px; }
.dialogue-line + .dialogue-line { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.reading-excerpt { font: 22px/1.7 Georgia, serif; }
.reading-translation { font-size: 12px; line-height: 2; color: var(--muted); margin-top: 23px; }
@media (max-width: 1100px) and (min-width: 801px) {
  .feature-description { padding-block: 0 24px; }
}
@media (max-width: 800px) {
  .feature-panel { gap: 24px; }
  .language-example { padding: 23px; }
}
@media (max-width: 520px) {
  .download-actions { flex-direction: column; align-items: center; }
  .download-actions .desktop-download { display: none; }
  .platform-download { width: 100%; max-width: 300px; font-size: 14px; min-height: 50px; }
  .feature-panel { gap: 0; }
  .language-example { padding: 25px; }
  .dictionary-example > strong { font-size: 43px; }
}

/* Reading-garden banner; mobile crops the illustration below the copy. */
/* Align copy with the 1240px shell; cap the inset when the 1600px banner stops growing. */
.hero { position: relative; display: flex; width: min(1600px, calc(100% - 48px)); min-height: 650px; padding: 58px clamp(44px, calc((100% - 1288px) / 2), 180px); margin-bottom: 48px; overflow: hidden; border-radius: 26px; background: var(--mint); isolation: isolate; }
.hero-copy { position: relative; z-index: 1; width: 54%; padding: 0; }
.hero h1 { font-size: clamp(44px, 4.1vw, 60px); }
.hero-background { position: absolute; inset: 0; z-index: -1; }
.hero-art { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero .download-actions { max-width: 464px; }
.hero .platform-download { width: 148px; }
.everyday-grid { grid-template-columns: 1fr 1fr; }
.everyday-grid article { padding: 36px 36px 0; }
.everyday-grid article > div { max-width: none; }
.learning-art { width: calc(100% + 72px); max-width: none; margin: 25px -36px 0; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 1100px) {
  .hero { padding: 40px 30px; min-height: 620px; }
  .hero .download-actions { max-width: 340px; }
  .hero .platform-download { width: 148px; }
}
@media (max-width: 800px) {
  .hero { width: calc(100% - 40px); display: flex; flex-direction: column; justify-content: flex-start; min-height: 0; padding: 40px 0 0; gap: 15px; }
  .hero-copy { width: 100%; padding-inline: 24px; }
  .hero .download-actions { max-width: none; }
  .hero-background { position: relative; inset: auto; width: 100%; height: 370px; flex: none; }
  .hero-art { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
  .everyday-grid article { padding: 26px 26px 0; }
  .learning-art { width: calc(100% + 52px); margin-inline: -26px; }
}
@media (max-width: 520px) {
  .hero { padding-top: 30px; margin-bottom: 32px; min-height: 0; }
  .hero-copy { padding-inline: 20px; }
  .hero h1 { font-size: 38px; }
  .hero .platform-download { width: 100%; max-width: 300px; }

  .everyday-grid { grid-template-columns: 1fr; }
  .everyday-grid article { min-height: 0; }
  .wordbook-card p { max-width: none; }
}
