/* Touch layouts are kept outside print rules and the desktop design. */
.screen-preview .purchase-bar { transition: opacity .25s; }
.screen-preview .purchase-bar.reading-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.free-reading-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; border-top: 1px solid #4e385a; margin-top: 26px; padding-top: 15px; color: #a88aba; font-size: 12px; }
.free-reading-meta a { display: inline-flex; align-items: center; min-height: 44px; color: #ccb18e; }
.free-reading-journey { width: min(100%,760px); margin: 40px auto 50px; }
.free-reading-block { padding: 38px 32px; border-bottom: 1px solid #3a2c45; }
.free-reading-block:nth-child(even) { background: #1b1725; border-radius: 14px; border: 1px solid #3b2c48; margin: 12px 0; }
.free-reading-block .eyebrow { color: #b998c8; font-size: 11px; letter-spacing: .03em; }
.free-reading-block h2 { color: #e5d0af; font-size: 29px; line-height: 1.6; font-family: Georgia,'AppleMyungjo',serif; font-weight: 500; margin: 14px 0 26px; word-break: keep-all; }
.free-reading-block > p, .free-reading-scene p { color: #c0accd; font-size: 17px; line-height: 2.05; margin: 0 0 23px; word-break: keep-all; overflow-wrap: anywhere; }
.free-reading-scene { background: #292031; border-left: 2px solid #a27e6e; border-radius: 0 10px 10px 0; padding: 21px 24px; margin: 27px 0 4px; }
.free-reading-scene > span { color: #c7ac87; font-size: 12px; font-weight: 600; }
.free-reading-scene p { margin: 12px 0 0; font-size: 16px; }
.free-reading-questions { margin-top: 27px; }
.free-reading-questions h3 { color: #ccb4dc; font-size: 17px; margin-bottom: 15px; font-weight: 500; }
.free-reading-questions ol { padding-left: 24px; margin: 0; color: #b29abe; }
.free-reading-questions li { font-size: 16px; line-height: 1.9; margin-bottom: 10px; padding-left: 4px; }
.free-first-action { background: #e4d7bd; border-radius: 14px; padding: 27px 30px; margin: 35px 0 0; color: #514235; }
.free-first-action > span { font-size: 12px; font-weight: 600; color: #806748; }
.free-first-action p { font-size: 23px; line-height: 1.7; margin: 15px 0; word-break: keep-all; }
.free-first-action small { font-size: 12px; color: #8a745d; line-height: 1.8; }
.free-reading-hook { max-width: 760px; margin: 45px auto 60px; padding: 38px 34px; border: 1px solid #79576d; background: linear-gradient(140deg,#2b2033,#1d1828); border-radius: 18px; }
.free-hook-teacher { display: flex; align-items: center; gap: 16px; margin-bottom: 25px; }
.free-hook-teacher img { width: 56px; height: 72px; object-fit: cover; object-position: 50% 20%; border-radius: 30px 30px 7px 7px; }
.free-hook-teacher > span { color: #bba0ca; font-size: 13px; line-height: 1.8; }
.free-reading-hook h2 { font-size: 31px; line-height: 1.6; font-family: Georgia,'AppleMyungjo',serif; font-weight: 500; color: #eddbbd; margin: 0 0 23px; word-break: keep-all; }
.free-reading-hook > p { font-size: 17px; line-height: 2; color: #c5b0d0; word-break: keep-all; }
.free-hook-topics { border-top: 1px solid #5a405e; border-bottom: 1px solid #5a405e; padding: 22px 0; margin: 28px 0; }
.free-hook-topics > span { font-size: 12px; color: #aa88be; }
.free-hook-topics ul { list-style: none; margin: 13px 0 0; padding: 0; }
.free-hook-topics li { color: #d9c3e5; font-size: 15px; line-height: 1.8; margin-top: 9px; }
.free-hook-offer { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.free-hook-offer > span { font-size: 12px; color: #a58cb6; }
.free-hook-offer > b { font-size: 27px; font-weight: 500; color: #e4cba4; }
.free-hook-offer small { display: inline-block; font-size: 12px; margin-left: 8px; font-weight: 400; color: #b99dca; }
#free-reading-cta { width: 100%; min-height: 56px; font-size: 16px; }
.free-hook-note { display: block; color: #957da7; font-size: 11px; text-align: center; margin-top: 14px; line-height: 1.8; }
@media screen and (max-width:760px) {
 .free-reading-block { padding: 29px 8px; }
 .free-reading-block:nth-child(even) { padding: 27px 19px; }
 .free-reading-block h2 { font-size: 25px; line-height: 1.65; margin-bottom: 22px; }
 .free-reading-block > p, .free-reading-scene p { font-size: 16px; line-height: 2; }
 .free-reading-scene { padding: 18px 17px; }
 .free-reading-meta { margin-top: 20px; font-size: 11px; }
 .free-first-action { padding: 24px 21px; }
 .free-first-action p { font-size: 21px; }
 .free-reading-hook { padding: 27px 21px; margin: 35px 0 45px; }
 .free-reading-hook h2 { font-size: 26px; }
 .free-reading-hook > p { font-size: 16px; }
 .free-hook-offer small { display: block; margin: 8px 0 0; }
}
@media (prefers-reduced-motion:reduce) { .screen-preview .purchase-bar { transition: none; } }
.generation-page, .generation-library { padding-top: 48px; padding-bottom: 100px; max-width: 980px; }
.generation-page { padding-bottom: 155px; }
.generation-heading { margin: 0 auto 35px; max-width: 720px; text-align: center; }
.generation-heading .eyebrow { color: #c7aa7c; font-size: 11px; }
.generation-heading h1 { font-size: 38px; font-weight: 500; line-height: 1.5; color: #ecdfcb; margin: 15px 0; letter-spacing: -.04em; }
.generation-heading > p { font-size: 16px; line-height: 1.9; color: #b8aac5; }
.generation-workbench { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; padding: 32px; background: linear-gradient(140deg,#221c30,#191622); border: 1px solid #4c375a; border-radius: 20px; }
.generation-writer { text-align: center; min-width: 0; }
.generation-portrait { width: 150px; margin: 0 auto 20px; position: relative; }
.generation-portrait img { width: 150px; height: 200px; object-fit: cover; object-position: 50% 20%; border-radius: 80px 80px 14px 14px; }
.generation-portrait > span { position: absolute; bottom: -12px; right: -10px; font-size: 38px; color: #d5b880; animation: generation-glow 2.8s ease-in-out infinite; }
.generation-writer h2 { color: #e8d9c2; font-size: 22px; font-weight: 500; margin: 8px 0; }
.generation-writer > p { font-size: 13px; color: #ab96bd; margin: 0 0 14px; }
.generation-provider { display: inline-block; font-size: 11px; color: #d3bc90; border: 1px solid #5d4c4c; border-radius: 20px; padding: 5px 10px; }
.generation-progress-data { min-width: 0; }
.generation-status { min-height: 52px; line-height: 1.8; font-size: 16px; color: #d2bedf; }
.generation-count { display: flex; justify-content: space-between; align-items: center; margin: 15px 0; gap: 10px; }
.generation-count > b { font-size: 36px; color: #e7cf9f; font-weight: 500; }
.generation-count small { font-size: 15px; color: #ac97bd; }
.generation-count > span { font-size: 12px; color: #c2abd3; background: #3a2949; border-radius: 20px; padding: 6px 12px; }
.generation-progress { height: 7px; border-radius: 8px; background: #3c2c4a; overflow: hidden; }
.generation-progress i { height: 100%; display: block; background: linear-gradient(90deg,#a980c7,#e4c894); border-radius: 8px; transition: width .4s; }
.generation-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #9682a8; font-size: 11px; margin: 12px 0 20px; }
.generation-chapters { list-style: none; padding: 0; margin: 0; }
.generation-chapters li { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; gap: 10px; padding: 11px 0; border-bottom: 1px solid #392b44; font-size: 14px; color: #927e9f; }
.generation-chapters li:last-child { border-bottom: 0; }
.generation-chapters small { font-size: 11px; }
.generation-chapters .is-complete { color: #cdb4de; }
.generation-chapters .is-complete .generation-chapter-number { color: #b7cda9; }
.generation-chapters .is-writing { color: #f0d9ad; }
.generation-chapters .is-writing small { color: #e1bf7e; }
.generation-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.generation-actions button { min-height: 44px; font-size: 14px; }
.generation-page > .generation-actions { position: fixed; z-index: 10; bottom: max(12px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(850px,calc(100% - 32px)); box-sizing: border-box; background: #241d30f5; border: 1px solid #5f446d; border-radius: 14px; padding: 12px; margin: 0; box-shadow: 0 12px 35px #0005; backdrop-filter: blur(12px); }
.generation-page .secondary-button, .generation-library .secondary-button, .generation-resume .secondary-button { background: #33263e; color: #e2d0ed; border-color: #654d75; }
.generation-note { font-size: 13px; line-height: 1.9; text-align: center; color: #9c87ae; margin: 24px 0; }
.generation-model { max-width: 600px; margin: 20px auto; color: #9c87ae; font-size: 12px; overflow-wrap: anywhere; }
.generation-model summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.generation-model p { line-height: 1.8; margin: 10px 0; }
.generation-connection { color: #dec08e; font-size: 13px; }
.generation-records { display: grid; gap: 16px; }
.generation-record { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 20px; border: 1px solid #4d385a; border-radius: 15px; background: #211b2c; }
.generation-record > img { width: 72px; height: 90px; border-radius: 40px 40px 9px 9px; object-fit: cover; object-position: 50% 20%; }
.generation-record h2 { font-size: 20px; font-weight: 500; color: #e5d5c0; margin: 8px 0; }
.generation-record p { font-size: 13px; color: #a993ba; margin: 0; }
.generation-record-status { font-size: 11px; color: #c4a4d8; }
.generation-record-status.status-complete { color: #c2d6ad; }
.generation-record-status.status-failed, .generation-record-status.status-cancelled { color: #d6b382; }
.generation-record button { min-height: 44px; font-size: 13px; }
.generation-empty { text-align: center; padding: 40px 16px; border: 1px solid #4c3758; border-radius: 18px; color: #b3a1c1; }
.generation-empty > span { color: #cbb185; font-size: 45px; }
.generation-empty h2 { font-size: 24px; margin-top: 20px; color: #e5d4b9; }
.generation-empty p { font-size: 16px; line-height: 1.9; }
.generation-resume { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; margin: 0 0 24px; border: 1px solid #574161; border-radius: 12px; color: #c9b4d9; background: #231c2e; font-size: 14px; }
.generation-resume button { min-height: 44px; }
.generation-checkout-note { color: #907c9f; font-size: 12px; line-height: 1.8; margin: 10px 0 15px; }
.example-pay-button { width: 100%; min-height: 44px; font-size: 13px; }
.generate-pay-button { font-size: 15px; }
.generated-source { border: 1px solid #ddcce6; border-radius: 12px; background: #f1e9f7; padding: 16px 20px; margin: 20px 0 25px; }
.generated-source > span { font-size: 14px; font-weight: 600; color: #76518d; }
.generated-source > p { font-size: 12px; color: #94769e; margin: 8px 0 0; line-height: 1.8; }
@keyframes generation-glow { 50% { opacity: .5; transform: rotate(15deg); } }
@media screen and (max-width: 760px) {
 .generation-page, .generation-library { padding-top: 25px; }
 .generation-page { padding-bottom: 170px; }
 .generation-heading { margin-bottom: 24px; }
 .generation-heading h1 { font-size: 27px; line-height: 1.55; }
 .generation-heading > p { font-size: 14px; }
 .generation-workbench { grid-template-columns: 1fr; gap: 22px; padding: 22px 18px; border-radius: 15px; }
 .generation-writer { display: grid; grid-template-columns: 76px minmax(0,1fr); grid-template-rows: auto auto auto; text-align: left; column-gap: 16px; align-items: center; }
 .generation-portrait { grid-row: 1/4; margin: 0; width: 76px; }
 .generation-portrait img { width: 76px; height: 105px; }
 .generation-portrait > span { font-size: 25px; right: -7px; bottom: -7px; }
 .generation-writer h2 { font-size: 21px; margin: 0; }
 .generation-writer > p { margin: 0; font-size: 12px; }
 .generation-provider { justify-self: start; font-size: 10px; padding: 4px 8px; }
 .generation-count { margin: 10px 0; }
 .generation-count > b { font-size: 32px; }
 .generation-status { min-height: 0; }
 .generation-chapters li { font-size: 13px; padding: 12px 0; gap: 7px; }
 .generation-page > .generation-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 10px; }
 .generation-page > .generation-actions button { font-size: 12px; padding: 9px 7px; }
 .generation-page > .generation-actions button:last-child { grid-column: auto; }
 .generation-record { grid-template-columns: 60px minmax(0,1fr); gap: 12px; padding: 17px; }
 .generation-record > img { width: 60px; height: 82px; }
 .generation-record h2 { font-size: 18px; line-height: 1.5; }
 .generation-record > button { grid-column: 1/-1; width: 100%; }
 .generation-resume { padding: 13px 15px; gap: 10px; font-size: 12px; }
 .generation-resume button { font-size: 12px; padding: 9px; }
 .generated-source { padding: 14px 16px; }
}
.screen-generation .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
@media screen and (max-width: 760px) and (max-height: 650px) {
 .generation-page { padding-top: 14px; }
 .generation-heading { margin-bottom: 16px; }
 .generation-heading .eyebrow, .generation-heading .generation-description { display: none; }
 .generation-heading h1 { font-size: 22px; line-height: 1.4; margin: 6px 0 10px; }
 .generation-heading > p { font-size: 13px; margin: 0; }
 .generation-workbench { padding: 16px 14px; gap: 14px; }
 .generation-writer { grid-template-columns: 48px minmax(0,1fr); column-gap: 13px; }
 .generation-portrait { width: 48px; }
 .generation-portrait img { width: 48px; height: 66px; }
 .generation-portrait > span { font-size: 18px; }
 .generation-writer h2 { font-size: 18px; }
 .generation-status { font-size: 14px; }
 .generation-meta { font-size: 10px; }
}
@media screen and (max-width: 1000px) and (max-height: 500px) {
 .generation-page { padding-top: 14px; }
 .generation-page > .generation-heading { display: none; }
 .generation-workbench { grid-template-columns: 130px minmax(0,1fr); padding: 18px; gap: 24px; }
 .generation-writer { display: block; text-align: center; }
 .generation-portrait, .generation-portrait img { width: 70px; }
 .generation-portrait { margin: 0 auto 8px; }
 .generation-portrait img { height: 92px; }
 .generation-writer h2 { font-size: 18px; }
 .generation-writer > p { margin: 6px 0; }
 .generation-status { min-height: 0; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .generation-portrait > span { animation: none; } .generation-progress i { transition: none; } }
@media print { .generation-actions, .generation-model { display: none !important; } }
.birth-date { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.birth-date > legend { margin-bottom: 12px; font-weight: 600; }
.birth-date-parts { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 10px; }
.birth-date-parts .field { margin-bottom: 0; }
.birth-date-parts input { text-align: center; }
.person-fields > .checkbox-label { margin-bottom: 20px; }
.person-fields > .time-row { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.hero-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.shop-hero .hero-topline .eyebrow { margin: 0; }
.hero-mode-actions { display: flex; gap: 10px; margin: 0 0 24px; }
.hero-mode-actions a { min-height: 48px; flex: 1; max-width: 230px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.hero-mode-actions .secondary-button { color: #ecdfcb; border-color: #716078; background: #2b2334; }
.hero-auth { display: flex; flex-shrink: 0; gap: 8px; }
.hero-auth a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 15px; border: 1px solid #53465f; border-radius: 9px; color: #d8c9e6; font-size: 13px; font-weight: 600; }
.hero-auth .hero-signup { color: #392c22; background: #e4d5b9; border-color: #e4d5b9; }
.hero-auth a:hover { filter: brightness(1.12); }
.reading-stats { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; color: #9985ac; font-size: 13px; line-height: 1.7; margin: 15px 0; }
.preview-heading { flex-wrap: wrap; }
.preview-heading .reading-stats { flex: 0 0 100%; margin-top: 0; }
.chapter-details { margin-top: 28px; }
.chapter-details h3 { font-size: 19px; font-weight: 600; margin: 28px 0 14px; color: #533c65; }
.chapter-details p { overflow-wrap: anywhere; }
.reading-context { padding: 18px 20px; border-left: 3px solid #aa83c0; background: #f2eaf8; color: #6f507d; font-size: 15px; line-height: 1.9; margin-bottom: 28px; }
.chapter-example { margin: 26px 0; padding: 20px 24px; border: 1px solid #e7dbec; border-radius: 12px; background: #faf6fc; }
.chapter-example h3, .chapter-questions h3 { margin-top: 0; }
.chapter-example p:last-child { margin-bottom: 0; }
.chapter-questions { padding: 22px 24px; margin: 24px 0; border-radius: 12px; background: #f0ebf5; }
.chapter-questions ol { margin: 0; padding-left: 22px; color: #65516f; }
.chapter-questions li { padding: 4px 0 7px 4px; font-size: 16px; line-height: 1.85; }
.reading-progress { width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; padding: 30px 25px; border: 1px solid #5b436a; border-radius: 20px; background: #211b2e; color: #eadff3; text-align: center; }
.reading-progress::backdrop { background: #100d1bd9; backdrop-filter: blur(5px); }
.reading-progress > img { display: block; width: 72px; height: 72px; object-fit: cover; object-position: 50% 20%; border-radius: 50%; margin: 0 auto 14px; }
.reading-progress h2 { font-size: 24px; line-height: 1.5; margin: 15px 0 12px; }
.reading-progress > p { font-size: 16px; line-height: 1.8; color: #baa8cd; }
.reading-progress ul { text-align: left; list-style: none; padding: 16px 0; margin: 12px 0; border-top: 1px solid #44324f; border-bottom: 1px solid #44324f; }
.reading-progress li { padding: 6px 0; font-size: 14px; line-height: 1.7; }
.reading-progress li::before { content: '✦'; color: #cbb08b; margin-right: 10px; }
.reading-progress small { font-size: 11px; color: #9b88ae; }
.reading-spinner { display: block; width: 26px; height: 26px; margin: auto; border: 2px solid #5d426c; border-top-color: #d1b38d; border-radius: 50%; animation: reading-turn 1.2s linear infinite; }
@keyframes reading-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reading-spinner { animation: none; } }
@media print {
  .chapter { break-inside: auto; }
  .chapter-details h3 { break-after: avoid; }
  .chapter-example, .chapter-questions { break-inside: avoid; }
  .reading-progress { display: none; }
}

@media screen {
  button, a { touch-action: manipulation; }
  .main-modes button, .main-modes a, .topic-filters button,
  .teacher-chat, .contents a { min-height: 44px; }
  .followup textarea { font-size: 16px; }
  .purchase-bar .offer-time { font-size: 13px; line-height: 1.4; display: inline; }
  .intro-close { min-width: 44px; min-height: 44px; top: 4px; right: 4px; }
}

@media screen and (max-width: 760px) {
  html { scroll-padding-top: 12px; }
  .page-width { width: calc(100% - 32px); }
  .header-inner { padding: calc(8px + env(safe-area-inset-top)) 16px 8px; gap: 6px 10px; }
  .brand { font-size: 23px; min-height: 44px; gap: 7px; }
  .brand-star { font-size: 27px; }
  .header-right { gap: 6px; }
  .header-right .text-button { min-width: 44px; min-height: 44px; font-size: 11px; }
  .demo-badge { font-size: 9px; padding: 5px 7px; }
  .main-modes { padding: 2px; }
  .main-modes button, .main-modes a { padding: 8px; font-size: 14px; }

  .shop-page { padding: 20px 0 30px; }
  .shop-hero { padding: 4px 0 22px; }
  .hero-topline { gap: 8px; margin-bottom: 12px; }
  .hero-kicker-detail { display: none; }
  .hero-mode-actions { display: none; }
  .hero-auth { gap: 6px; }
  .hero-auth a { font-size: 12px; padding: 0 12px; }
  .shop-hero .eyebrow { margin-bottom: 12px; font-size: 9px; }
  .shop-hero h1 { font-size: 29px; line-height: 1.4; margin-bottom: 14px; }
  .shop-hero > p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
  .shop-orbit { display: none; }
  .shop-promises { font-size: 10px; gap: 8px 12px; }
  .shop-promises span { gap: 4px; }
  .topic-filters { padding: 14px 0 18px; gap: 6px; scroll-snap-type: x proximity; }
  .topic-filters button { scroll-snap-align: start; padding: 8px 13px; }
  .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .teacher-image { height: clamp(145px, 44vw, 190px); }
  .teacher-image > img { object-position: 50% 22%; }
  .teacher-topic { font-size: 9px; left: 9px; top: 9px; }
  .teacher-name { left: 11px; bottom: 5px; }
  .teacher-name h2 { font-size: 20px; }
  .teacher-name small { font-size: 9px; }
  .teacher-card-body { padding: 12px 11px 8px; }
  .teacher-specialty { font-size: 10px; line-height: 1.55; margin-bottom: 6px; }
  .teacher-card-body h3 { font-size: 15px; line-height: 1.45; min-height: 44px; margin-bottom: 7px; }
  .teacher-card-body > p { display: none; }
  .teacher-price { flex-direction: column; align-items: start; gap: 1px; padding: 8px 0; }
  .teacher-price > span { font-size: 9px; }
  .teacher-price > b { font-size: 18px; }
  .teacher-card .primary-button { font-size: 13px; min-height: 46px; padding: 10px 5px; gap: 5px; }
  .teacher-card .primary-button svg { width: 16px; height: 16px; }
  .teacher-chat { font-size: 12px; padding: 10px 0; }
  .two-ways { padding: 25px 0; gap: 22px; }

  .steps { margin: 20px auto 24px; }
  .input-layout { margin-top: 0; gap: 20px; }
  .selected-teacher { grid-template-columns: 80px minmax(0, 1fr); gap: 5px 16px; }
  .selected-teacher > img { width: 80px; height: 110px; border-radius: 44px 44px 9px 9px; }
  .selected-teacher h1 { font-size: 23px; }
  .selected-teacher .input-explain { font-size: 13px; line-height: 1.7; margin-top: 10px; }
  .selected-teacher .teacher-chat { min-height: 44px; padding: 8px 0; }
  .intro-open { grid-column: 1 / -1; min-height: 44px; margin-top: 0; padding: 8px 0; }
  .input-page .birth-form { padding: 22px 16px; border-radius: 15px; }
  .form-heading { gap: 8px; margin-bottom: 16px; }
  .form-heading h2 { font-size: 20px; }
  .form-heading .sample-button { min-height: 44px; padding: 8px; font-size: 12px; }
  .field input, .field select { font-size: 16px; height: 52px; }
  .checkbox-label { min-height: 44px; padding-top: 0; }
  .parent-toggle { padding: 8px 0 20px; }
  .form-submit { min-height: 50px; }

  .screen-preview .preview-heading h1 { font-size: 28px; }
  .screen-preview .fact-strip { padding: 14px 16px; gap: 12px; }
  .first-reading { padding: 23px 20px; }
  .first-reading h2 { font-size: 24px; }
  .first-reading p { font-size: 16px; line-height: 1.9; }
  .teaser-chapter { padding: 20px; }
  .screen-preview .preview-page { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
  .checkout-dialog { max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .checkout-inner { padding: 24px 21px; }
  .payment-options .text-button { min-height: 44px; padding: 8px; }

  .report-cover { grid-template-columns: minmax(0, 1fr) 94px; gap: 15px; padding-bottom: 25px; }
  .screen-report .report-cover h1 { font-size: 27px; }
  .report-cover > img { width: 94px; height: 170px; aspect-ratio: auto; margin-top: 15px; }
  .book-actions .secondary-button { min-height: 44px; }
  .contents { position: sticky; top: 0; z-index: 5; background: #f8f7fc; padding: 8px 0; scroll-snap-type: x proximity; }
  .contents a { display: flex; align-items: center; scroll-snap-align: start; }
  .chapter { scroll-margin-top: 68px; }
  .chapter p { font-size: 16px; line-height: 1.9; }
  .chapter-details h3 { font-size: 18px; }
  .reading-context { padding: 16px; font-size: 16px; }
  .chapter-example, .chapter-questions { padding: 18px 16px; }
  .reading-stats { font-size: 12px; gap: 3px 6px; }
  .followup { padding: 21px 16px; }
  .question-chips button { min-height: 44px; padding: 9px 12px; }
  .followup textarea { min-height: 95px; font-size: 16px; }
  #question-form .primary-button { min-height: 50px; }
  .site-footer { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

@media screen and (max-width: 760px), screen and (max-width: 950px) and (max-height: 500px) {
  html { scroll-padding-top: 12px; }
  .screen-preview .purchase-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 1.1fr); gap: 7px 10px; padding: 11px 13px; bottom: max(8px, env(safe-area-inset-bottom)); }
  .purchase-copy { display: contents !important; }
  .purchase-copy > span { display: none !important; }
  .purchase-copy > b { grid-column: 1; grid-row: 1; margin: 0; font-size: 21px; line-height: 1.4; }
  .purchase-copy del { font-size: 11px; margin-right: 5px; }
  .purchase-copy small { display: block; float: none; font-size: 11px; margin: 0; }
  .offer-label { grid-column: 1 / -1; grid-row: 2; justify-content: center; margin: 0; padding-top: 5px; border-top: 1px solid #493653; font-size: 10px; gap: 6px; }
  .screen-preview .purchase-bar > .primary-button { grid-column: 2; grid-row: 1; min-height: 48px; width: 100%; padding: 10px 8px; font-size: 14px; gap: 7px; }
  .screen-preview .toast { bottom: calc(132px + env(safe-area-inset-bottom)); }
}

@media screen and (max-width: 600px) and (max-height: 650px) {
  .intro-stage { width: min(200px, 24dvh); }
  .intro-caption { display: none; }
  .intro-copy { padding: 12px 20px 14px; }
  .intro-copy .eyebrow { margin-bottom: 8px; }
  .intro-copy h2 { font-size: 20px; }
  .intro-copy .intro-status { margin: 8px 0; }
  .intro-copy .primary-button { min-height: 44px; }
}
