.home-v7 {
  --bg: #efe6d3;
  --paper: #fff9ec;
  --ink: #17120d;
  --muted: #706552;
  --line: rgba(69, 49, 30, 0.18);
  --green: #17614d;
  --green-dark: #102f28;
  --blue: #2c6d74;
  --sky: #e8dac2;
  --coral: #9c4f32;
  --gold: #d7a64f;
  --book: #3e3022;
  --panel: #162821;
  --shadow: 0 32px 90px rgba(45, 29, 15, 0.18);
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 0%, rgba(215, 166, 79, 0.16), transparent 34vw),
    radial-gradient(circle at 12% 10%, rgba(23, 97, 77, 0.16), transparent 30vw),
    linear-gradient(180deg, #17120d 0%, #f3ead9 24%, var(--bg) 62%, #e6d5b9 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.home-v7 *,
.home-v7 *::before,
.home-v7 *::after {
  box-sizing: border-box;
}

.home-v7 a {
  color: inherit;
}

.home-v7 h1,
.home-v7 h2,
.home-v7 h3,
.home-v7 p,
.home-v7 figure {
  margin-top: 0;
}

.home-v7 h1,
.home-v7 h2,
.home-v7 h3,
.home-v7 p,
.home-v7 a,
.home-v7 span,
.home-v7 b,
.home-v7 li {
  overflow-wrap: break-word;
}

.home-v7 img {
  display: block;
  max-width: 100%;
}

.home-v7 main {
  width: 100%;
  max-width: none;
  margin: 0;
}

.home-header,
.books-flow,
.interface-preview,
.intro-strip,
.product-section,
.feature-grid,
.download-block,
.home-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 14px 0;
  backdrop-filter: blur(24px);
}

.home-v7:has(.hero-backdrop) .home-header {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(9, 10, 12, 0.46), rgba(9, 10, 12, 0));
  transition: background 180ms ease, color 180ms ease;
}

.home-brand,
.home-nav {
  display: flex;
  align-items: center;
}

.home-brand {
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.home-v7:has(.hero-backdrop) .home-brand,
.home-v7:has(.hero-backdrop) .home-nav {
  color: rgba(255, 248, 234, 0.92);
}

.home-v7.past-hero .home-header {
  background: rgba(239, 230, 211, 0.84);
  color: var(--ink);
  border-bottom: 1px solid rgba(69, 49, 30, 0.1);
}

.home-v7.past-hero .home-brand,
.home-v7.past-hero .home-nav {
  color: #3d3021;
}

.home-brand img {
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.14);
}

.home-nav {
  gap: 22px;
  color: #4f4333;
  font-size: 14px;
  font-weight: 600;
}

.home-nav a {
  text-decoration: none;
}

.home-nav a:hover {
  color: var(--green);
}

.home-v7:has(.hero-backdrop) .home-nav a:hover {
  color: #fff;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #1c6b56, var(--green-dark));
  color: #fff !important;
}

.hero {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 132svh;
  margin: -66px 0 44px;
  padding: 0;
  text-align: left;
  color: #fff;
  background: #120f0c;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 8, 10, var(--hero-shade-strong, 0.34)) 0%, rgba(7, 8, 10, var(--hero-shade-opacity, 0.18)) 42%, rgba(7, 8, 10, 0.08) 100%),
    linear-gradient(180deg, rgba(6, 7, 9, 0.08) 0%, rgba(6, 7, 9, 0.02) 42%, rgba(6, 7, 9, var(--hero-shade-opacity, 0.18)) 100%);
  pointer-events: none;
}

.hero-backdrop {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #120f0c;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

.hero-copy {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  width: min(1180px, calc(100% - 48px));
  max-width: none;
  margin: -100svh auto 0;
  padding: 0 0 9svh;
  opacity: var(--hero-reveal, 0);
  transform: translateY(var(--hero-copy-y, 38px));
  transition: opacity 120ms linear, transform 120ms linear;
  pointer-events: none;
}

.home-v7.hero-copy-active .hero-copy {
  pointer-events: auto;
}

.books-flow,
.interface-preview,
.intro-strip,
.product-section,
.feature-grid,
.download-block,
.home-footer {
  position: relative;
  z-index: 3;
}

.eyebrow {
  margin: 0 0 14px;
  color: #956018;
  font-size: 14px;
  font-weight: 850;
}

.hero .eyebrow {
  color: #ffd389;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 760px;
  color: #fff8ea;
  font-size: clamp(58px, 8.2vw, 112px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.52);
}

.hero-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 248, 234, 0.88);
  font-size: 19px;
  font-weight: 450;
  line-height: 1.62;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.46);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
}

.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.18);
}

.primary-button.light {
  border-color: #fff;
  background: #fff;
  color: var(--green-dark) !important;
}

.secondary-button {
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.hero .primary-button {
  border-color: #fff8ea;
  background: #fff8ea;
  color: #14110d !important;
}

.hero .secondary-button {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #fff8ea;
  backdrop-filter: blur(14px);
}

.interface-preview {
  margin-bottom: 34px;
}

.product-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(236, 214, 171, 0.22);
  border-radius: 8px;
  background: #17110c;
  box-shadow:
    0 36px 88px rgba(37, 23, 12, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.product-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 -80px 110px rgba(21, 13, 7, 0.18) inset;
}

.product-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-shot-wide {
  aspect-ratio: 2928 / 1848;
}

.product-shot-wide img {
  object-position: 52% 50%;
}

.overview-shots {
  position: relative;
  padding-bottom: clamp(92px, 9vw, 138px);
}

.overview-note {
  width: min(560px, calc(100% - 36px));
  margin: 12px 0 0 18px;
  color: rgba(61, 48, 33, 0.58);
  font-size: 12px;
  font-weight: 420;
  line-height: 1.6;
  text-align: left;
}

.overview-inset {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: 0;
  width: min(560px, 48%);
  aspect-ratio: 2940 / 1912;
  z-index: 2;
  box-shadow:
    0 36px 90px rgba(21, 13, 7, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.overview-inset img {
  object-position: 50% 50%;
}

.books-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 32px;
  align-items: center;
  margin-top: 0;
  margin-bottom: 28px;
  padding: 30px 36px;
  border: 1px solid rgba(69, 49, 30, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 249, 236, 0.92), rgba(239, 226, 201, 0.82));
  box-shadow: 0 20px 58px rgba(45, 29, 15, 0.1);
}

.books-flow h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}

.books-flow-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 520;
  line-height: 1.7;
}

.books-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.books-flow-steps article {
  min-height: 126px;
  padding: 22px;
  border: 1px solid rgba(69, 49, 30, 0.14);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.88);
}

.books-flow-steps span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.books-flow-steps h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 680;
  line-height: 1.2;
}

.books-flow-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 520;
  line-height: 1.62;
}

.hero-stage {
  position: relative;
  height: clamp(520px, 52vw, 710px);
  overflow: hidden;
  border: 1px solid rgba(69, 49, 30, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 74% 18%, rgba(215, 166, 79, 0.24), transparent 28%),
    linear-gradient(135deg, #2b2117 0%, #594128 42%, #f8efd9 100%);
  box-shadow: var(--shadow);
  text-align: left;
}

.book-window,
.companion-window,
.lookup-popover {
  position: absolute;
  border: 1px solid rgba(69, 49, 30, 0.2);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.18);
}

.book-window {
  left: 34px;
  top: 38px;
  width: 72%;
  height: 82%;
  overflow: hidden;
  background: var(--book);
  color: #f2e8d7;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.16);
}

.window-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-dots i:nth-child(1) {
  background: #ff5f57;
}

.window-dots i:nth-child(2) {
  background: #ffbd2e;
}

.window-dots i:nth-child(3) {
  background: #28c840;
}

.window-dots span {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 760;
}

.book-spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  padding: 52px;
  font-family: Georgia, "Times New Roman", serif;
}

.book-spread p {
  margin: 0 0 22px;
  color: #f2e8d7;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.45;
}

.book-title {
  color: #cbbda8 !important;
  font-size: 15px !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

.highlight-line {
  margin: 24px -14px !important;
  padding: 14px;
  background: rgba(255, 245, 220, 0.16);
  color: #fff !important;
}

.companion-window {
  right: 34px;
  top: 70px;
  width: min(360px, 34%);
  min-height: 430px;
  padding: 18px;
  background: #132820;
  color: #fff9ec;
}

.companion-top,
.tool-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.companion-top b {
  font-size: 17px;
  font-weight: 720;
}

.companion-top span {
  color: #a9dfc2;
  font-size: 12px;
  font-weight: 800;
}

.tool-tabs {
  margin: 16px 0;
}

.tool-tabs span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #d5c6aa;
  font-size: 12px;
  font-weight: 680;
}

.tool-tabs .active {
  background: var(--green);
  color: #fff;
}

.sentence-card,
.translation-card {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.09);
}

.sentence-card small,
.translation-card small {
  display: block;
  margin-bottom: 8px;
  color: #bdae93;
  font-size: 11px;
  font-weight: 850;
}

.sentence-card p,
.translation-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.45;
}

.translation-card p {
  color: #d9b45d;
}

.player-card {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  min-height: 86px;
  margin-top: 18px;
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.09);
}

.player-card span,
.player-card b {
  width: 7px;
  border-radius: 999px;
  background: #d9b45d;
}

.player-card span:nth-child(1) {
  height: 26px;
}

.player-card span:nth-child(2) {
  height: 52px;
}

.player-card b {
  height: 70px;
  background: #e8cf83;
}

.player-card span:nth-child(4) {
  height: 44px;
}

.player-card span:nth-child(5) {
  height: 60px;
}

.lookup-popover {
  left: 12%;
  bottom: 42px;
  width: min(420px, 38%);
  padding: 20px;
  background: rgba(23, 18, 13, 0.92);
  color: #fff;
  backdrop-filter: blur(16px);
}

.lookup-popover b {
  display: block;
  font-size: 32px;
  font-weight: 760;
  line-height: 1;
}

.lookup-popover span {
  display: block;
  margin: 8px 0 12px;
  color: #d9b45d;
  font-weight: 800;
}

.lookup-popover p {
  margin: 0;
  color: #f1e2c8;
  font-size: 16px;
  font-weight: 720;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
  margin-bottom: 36px;
}

.intro-strip article,
.feature-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.84);
  box-shadow: 0 16px 44px rgba(45, 29, 15, 0.08);
}

.intro-strip article {
  padding: 24px;
}

.intro-strip span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.intro-strip h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 680;
  line-height: 1.14;
  letter-spacing: 0;
}

.intro-strip p,
.section-copy p:not(.eyebrow),
.feature-grid p,
.download-block p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 520;
  line-height: 1.65;
}

.product-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 140px;
}

.product-section.reverse {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.product-section.reverse .section-copy {
  order: 2;
}

.product-section.reverse .focus-showcase {
  order: 1;
}

.product-section#practice {
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
}

.section-copy {
  position: sticky;
  top: 94px;
}

.section-copy h2,
.download-block h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-copy p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.72;
}

.focus-showcase {
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(69, 49, 30, 0.16);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.screenshot-stack,
.screenshot-pair {
  position: relative;
  padding: 16px;
  background:
    radial-gradient(circle at 82% 12%, rgba(215, 166, 79, 0.28), transparent 30%),
    linear-gradient(135deg, #21160d 0%, #362313 44%, #123226 100%);
}

.screenshot-stack .product-shot {
  position: absolute;
}

.screenshot-stack .shot-main {
  inset: 16px 132px 16px 16px;
}

.screenshot-stack .shot-secondary {
  right: 16px;
  bottom: 16px;
  width: min(330px, 34%);
  height: calc(100% - 72px);
  z-index: 2;
  box-shadow:
    0 38px 82px rgba(11, 15, 20, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.reading-media .shot-main img {
  object-position: 45% 50%;
}

.language-media {
  background:
    radial-gradient(circle at 20% 22%, rgba(60, 112, 159, 0.34), transparent 30%),
    linear-gradient(135deg, #23170f 0%, #16354b 100%);
}

.language-media .shot-main {
  right: 190px;
}

.language-media .shot-main img {
  object-position: center top;
}

.language-media .shot-secondary {
  width: min(300px, 32%);
}

.immersive-media {
  position: relative;
  min-height: 650px;
  padding: 18px;
  background:
    radial-gradient(circle at 72% 14%, rgba(215, 166, 79, 0.24), transparent 30%),
    linear-gradient(135deg, #20170f 0%, #3d3329 52%, #122c25 100%);
}

.immersive-media .product-shot {
  position: absolute;
}

.immersive-main {
  inset: 18px 18px 106px 18px;
}

.immersive-main img {
  object-position: center 50%;
}

.immersive-inset {
  right: 34px;
  bottom: 22px;
  width: min(430px, 42%);
  aspect-ratio: 2940 / 1786;
  z-index: 2;
  box-shadow:
    0 38px 82px rgba(11, 15, 20, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.immersive-media figcaption {
  position: absolute;
  z-index: 4;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 248, 234, 0.14);
  border-radius: 999px;
  background: rgba(18, 15, 12, 0.72);
  color: #fff4dc;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  backdrop-filter: blur(14px);
}

.immersive-inset figcaption {
  top: auto;
  bottom: 12px;
}

.shot-phone img,
.shot-tall img {
  object-position: center top;
}

.screenshot-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: center;
  min-height: 640px;
  background:
    radial-gradient(circle at 75% 18%, rgba(76, 142, 204, 0.24), transparent 30%),
    linear-gradient(135deg, #151a1d 0%, #222a2c 50%, #3a281a 100%);
}

.screenshot-pair .product-shot {
  min-height: 0;
  background: #202428;
}

.practice-media .product-shot img {
  object-fit: contain;
}

.practice-media .shot-dialogue {
  aspect-ratio: 1264 / 1266;
}

.practice-media .shot-article {
  aspect-ratio: 1510 / 1756;
}

.reading-showcase {
  position: relative;
  background:
    radial-gradient(circle at 18% 14%, rgba(215, 166, 79, 0.28), transparent 28%),
    linear-gradient(135deg, #1f170f 0%, #18362c 100%);
}

.reader-panel {
  position: absolute;
  inset: 30px auto 30px 30px;
  width: 58%;
  padding: 38px;
  border-radius: 8px;
  background: #223f33;
  color: #fff5df;
}

.reader-panel p {
  margin: 0;
  font-size: clamp(25px, 2.7vw, 36px);
  font-weight: 640;
  line-height: 1.55;
}

.reader-panel mark {
  background: transparent;
  color: #e2bb62;
}

.word-pop {
  position: absolute;
  left: 170px;
  bottom: 52px;
  width: min(430px, 58%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(25, 20, 14, 0.92);
  color: #fff;
  backdrop-filter: blur(18px);
}

.word-pop h3 {
  margin: 0;
  font-size: 38px;
  font-weight: 760;
  line-height: 1;
}

.word-pop span,
.dictionary-panel span {
  display: inline-flex;
  margin: 14px 0;
  padding: 7px 10px;
  border-radius: 8px;
  background: #d7a64f;
  color: #17120d;
  font-size: 13px;
  font-weight: 850;
}

.word-pop p,
.word-pop small {
  display: block;
  margin: 0;
  color: #dce9f3;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.5;
}

.listen-panel {
  position: absolute;
  right: 28px;
  top: 42px;
  width: 260px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.92);
  color: #3b2d1e;
}

.listen-panel p {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 620;
  line-height: 1.46;
}

.listen-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 70px;
  border-radius: 8px;
  background: #efe2c9;
}

.listen-controls b {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
}

.listen-controls i {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #b7a17d;
}

.listen-panel span {
  display: block;
  margin-top: 12px;
  color: #697986;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.language-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.58fr);
  gap: 16px;
  padding: 16px;
  background:
    linear-gradient(135deg, #efe2c9 0%, #e7d6b9 100%);
}

.grammar-panel,
.dictionary-panel,
.practice-card {
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(45, 29, 15, 0.1);
}

.grammar-panel {
  padding: 34px;
  background: linear-gradient(135deg, #241b12 0%, #16362b 100%);
  color: #fff6e4;
}

.panel-label {
  margin: 0 0 18px;
  color: #d9b45d;
  font-size: 14px;
  font-weight: 860;
}

.grammar-panel h3 {
  margin: 0 0 28px;
  font-size: clamp(25px, 2.8vw, 36px);
  font-weight: 720;
  line-height: 1.25;
}

.grammar-panel ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
  color: #eadcc3;
  font-size: 17px;
  font-weight: 520;
  line-height: 1.62;
}

.dictionary-panel {
  align-self: end;
  padding: 26px;
  background: var(--paper);
}

.dictionary-panel h3 {
  margin: 0;
  color: var(--green);
  font-size: 38px;
  font-weight: 760;
  line-height: 1;
}

.dictionary-panel p {
  margin: 0;
  color: #544838;
  font-size: 18px;
  font-weight: 620;
  line-height: 1.5;
}

.practice-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
  background:
    linear-gradient(135deg, #e8dcc2 0%, #fff2d9 100%);
}

.practice-card {
  padding: 30px;
  background: #1c2f27;
  color: #fff;
}

.practice-card.article {
  background: #fff9ec;
  color: var(--ink);
}

.practice-card h3 {
  margin: 0 0 28px;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 720;
  line-height: 1.16;
}

.level-row,
.feedback-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.level-row span,
.level-row b,
.feedback-row span,
.feedback-row b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 700;
}

.level-row b,
.feedback-row b {
  background: #d7a64f;
  color: #17120d;
}

.article-lines {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}

.article-lines i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #d6c5a5;
}

.article-lines i:nth-child(1) {
  width: 94%;
}

.article-lines i:nth-child(2) {
  width: 78%;
}

.article-lines i:nth-child(3) {
  width: 86%;
}

.article-lines i:nth-child(4) {
  width: 62%;
}

.practice-card button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #1c2f27;
  color: #fff9ec;
  font: inherit;
  font-weight: 850;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 118px;
}

.feature-grid article {
  padding: 24px;
  border-top: 3px solid var(--green);
}

.feature-grid article:nth-child(2) {
  border-top-color: #8a5f2b;
}

.feature-grid article:nth-child(3) {
  border-top-color: var(--coral);
}

.feature-grid article:nth-child(4) {
  border-top-color: var(--gold);
}

.feature-grid article:nth-child(5) {
  border-top-color: var(--blue);
}

.feature-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 720;
}

.download-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 34px;
  align-items: center;
  margin-bottom: 56px;
  padding: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #17120d 0, #17362c 58%, #5a3d1d 100%);
  color: #fff;
}

.download-block h2 {
  max-width: 680px;
  color: #fff;
}

.download-block p {
  color: #eadcc3;
}

.download-block .eyebrow {
  color: #e8cf83;
}

.download-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.download-card h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 720;
}

.download-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding-left: 18px;
  color: #e3eee9;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.52;
}

.download-card-actions {
  display: grid;
  gap: 10px;
}

.secondary-button.dark {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff9ec;
}

.secondary-button.dark:hover {
  background: rgba(255, 255, 255, 0.16);
}

.home-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 36px 0 52px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 520;
}

.home-footer a {
  text-decoration: none;
}

.home-footer a:hover {
  color: var(--ink);
}

@media (max-width: 1040px) {
  .product-section,
  .product-section.reverse,
  .product-section#practice,
  .download-block,
  .books-flow {
    grid-template-columns: 1fr;
  }

  .product-section.reverse .section-copy,
  .product-section.reverse .focus-showcase {
    order: initial;
  }

  .section-copy {
    position: static;
  }

  .feature-grid,
  .intro-strip,
  .books-flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .home-header {
    position: sticky;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .home-nav {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .hero {
    height: 138svh;
    min-height: 0;
    margin-top: -92px;
    padding: 0;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-copy p:not(.eyebrow),
  .section-copy p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero-stage {
    height: 680px;
  }

  .book-window {
    left: 16px;
    top: 18px;
    width: calc(100% - 32px);
    height: 55%;
  }

  .book-spread {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 34px;
  }

  .book-spread article:nth-child(2) {
    display: none;
  }

  .companion-window {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 20px;
    width: auto;
    min-height: 0;
  }

  .lookup-popover {
    display: none;
  }

  .language-showcase,
  .practice-showcase {
    grid-template-columns: 1fr;
  }

  .screenshot-stack,
  .screenshot-pair,
  .immersive-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
  }

  .overview-shots {
    display: grid;
    gap: 14px;
    padding-bottom: 0;
  }

  .overview-inset {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
  }

  .screenshot-stack .product-shot,
  .screenshot-stack .shot-main,
  .screenshot-stack .shot-secondary,
  .immersive-media .product-shot,
  .immersive-main,
  .immersive-inset {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }

  .immersive-main,
  .immersive-inset {
    aspect-ratio: 2940 / 1786;
  }

  .immersive-media figcaption {
    left: 12px;
    top: 12px;
    max-width: calc(100% - 24px);
  }

  .immersive-inset figcaption {
    top: auto;
    bottom: 12px;
  }

  .screenshot-stack .shot-main {
    aspect-ratio: 16 / 11;
  }

  .screenshot-stack .shot-secondary {
    max-height: 620px;
    aspect-ratio: 9 / 14;
  }

  .screenshot-pair .product-shot {
    min-height: 0;
  }

  .screenshot-pair .shot-dialogue {
    aspect-ratio: 1 / 1;
  }

  .screenshot-pair .shot-article {
    aspect-ratio: 10 / 12;
  }

  .focus-showcase {
    min-height: auto;
  }

  .reading-showcase {
    min-height: 660px;
  }

  .reader-panel {
    inset: 18px 18px auto;
    width: auto;
    min-height: 330px;
  }

  .word-pop {
    left: 32px;
    right: 32px;
    bottom: 34px;
    width: auto;
  }

  .listen-panel {
    display: none;
  }
}

@media (max-width: 560px) {
  .home-header,
  .books-flow,
  .interface-preview,
  .intro-strip,
  .product-section,
  .feature-grid,
  .download-block,
  .home-footer {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero {
    height: 142svh;
    min-height: 0;
    margin-top: -116px;
    padding: 0;
  }

  .hero-copy {
    width: calc(100% - 28px);
    padding-bottom: 7svh;
  }

  .books-flow {
    gap: 22px;
  }

  .books-flow-steps article {
    min-height: 104px;
  }

  .overview-note {
    width: 100%;
    margin-left: 0;
  }

  .product-section {
    margin-bottom: 86px;
  }

  .hero-backdrop img {
    object-position: 53% 50%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-stage {
    height: 620px;
  }

  .book-spread {
    padding: 24px;
  }

  .book-spread p {
    font-size: 18px;
  }

  .companion-window {
    padding: 14px;
  }

  .intro-strip,
  .feature-grid,
  .books-flow-steps {
    grid-template-columns: 1fr;
  }

  .section-copy h2,
  .download-block h2 {
    font-size: 34px;
    line-height: 1.12;
  }

  .reader-panel {
    padding: 24px;
  }

  .reader-panel p {
    font-size: 25px;
  }

  .word-pop {
    left: 18px;
    right: 18px;
  }

  .grammar-panel,
  .dictionary-panel,
  .practice-card,
  .books-flow,
  .books-flow-steps article,
  .download-card {
    padding: 22px;
  }

  .level-row,
  .feedback-row {
    grid-template-columns: 1fr;
  }

  .download-block {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}
