@font-face {
  font-family: 'Source Serif';
  src: url('/fonts/SourceSerif4-Variable.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; }
:root {
  /* Mediapolka: lib/theme/app_colors.dart and app_dimensions.dart. */
  --page: #f6f7f4;
  --surface: #eef0ec;
  --surface-high: #fefefa;
  --ink: #1e2a28;
  --muted: #53635e;
  --heading: #26332e;
  --heading-font: "Source Serif",Georgia,serif;
  --accent: #7faf9a;
  --line: #d5dad4;
  --radius: 24px;
  --ease-out: cubic-bezier(.215,.61,.355,1);
}
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; }
h1,h2,h3,p,figure { margin: 0; }
a { color: inherit; }
button { font: inherit; }
button,a { -webkit-tap-highlight-color: transparent; }
a:focus-visible,button:focus-visible,[tabindex="0"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1060px,calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; top: -90px; left: 20px; background: var(--surface-high); padding: 12px; z-index: 10; }
.skip:focus { top: 12px; }
nav { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--heading-font); font-size: 21px; font-weight: 600; letter-spacing: -.35px; text-decoration: none; }
.brand img { width: 31px; height: 31px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; color: var(--muted); font-size: 12px; }
.nav-links a { text-decoration: none; transition: color 220ms ease-out; }
.nav-links a:hover { color: var(--ink); }
.nav-download { padding-bottom: 3px; border-bottom: 1px solid var(--line); }
.hero { text-align: center; background: var(--page); }
.hero-copy { padding: 40px 24px 0; }
.hero-mark { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 4px 12px #1e2a280a; margin-bottom: 24px; }
h1 { font-family: var(--heading-font); color: var(--heading); font-size: clamp(40px,4.5vw,56px); font-weight: 600; letter-spacing: -1.1px; line-height: 1.14; margin-bottom: 20px; }
.hero-copy > p { max-width: 480px; margin: 0 auto 28px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 8px; background: var(--ink); color: var(--surface-high); text-decoration: none; transition: background 220ms ease-out,translate 350ms var(--ease-out); }
.store-btn:hover { background: #364e45; translate: 0 -2px; }
.store-btn svg { width: 25px; height: 29px; fill: currentColor; }
.store-label { font-size: 20px; line-height: 1.14; font-weight: 500; }
.store-label small { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 400; }
.hero-copy .download-note { margin: 12px auto 0; font-size: 11px; color: var(--muted); }
.hero-stage { position: relative; width: min(1060px,calc(100% - 40px)); height: 675px; margin: 48px auto 0; perspective: 1600px; isolation: isolate; }
.hero-stage::before { content: ""; position: absolute; inset: 40px 0 10px; z-index: -1; background: radial-gradient(ellipse at center,#7faf9a24,transparent 70%); }
.handset { position: absolute; width: 242px; padding: 5px; border-radius: 38px; background: linear-gradient(110deg,#aab3ae,#29322d 8%,#18201c 88%,#aab3ae); box-shadow: inset 0 0 0 1px #77877b,0 18px 35px #1e2a281a; transform-origin: 50% 65%; }
.handset img { display: block; width: 100%; height: auto; border-radius: 32px; }
.hero-left { left: calc(50% - 357px); top: 100px; transform: rotate(-9deg) rotateY(10deg); z-index: 1; }
.hero-center { width: 274px; left: calc(50% - 137px); top: 26px; transform: rotate(2deg); z-index: 3; }
.hero-right { left: calc(50% + 114px); top: 100px; transform: rotate(9deg) rotateY(-10deg); z-index: 2; }
.chapter { margin-top: 24px; }
.chapter:first-child { margin-top: 40px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { position: relative; background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: 0 3px 14px #1e2a2804; }
.panel h2 { margin-bottom: 12px; font-family: var(--heading-font); color: var(--heading); font-size: 28px; line-height: 1.22; font-weight: 600; letter-spacing: -.45px; text-wrap: balance; }
.panel p { max-width: 39ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
.panel-copy { padding: 36px 36px 28px; }
.collection-panel,.search-panel { display: flex; flex-direction: column; }
.collection-art,.search-art { display: flex; justify-content: center; align-items: center; padding: 8px 36px 36px; }
.collection-art { order: 2; }
.collection-panel .panel-copy { order: 1; }
.collection-art,.search-art { flex: 1; }
.collection-art img,.search-art img { display: block; width: min(100%,222px); height: auto; border-radius: 29px; box-shadow: 0 10px 24px #1e2a2812; border: 3px solid #34443a; }
.browser-panel { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; background: var(--surface-high); }
.browser-copy { padding: 40px; align-self: center; }
.browser-copy h2 { font-size: 32px; letter-spacing: -.5px; }
.browser-copy > p { min-height: 3.2em; }
.screen-tabs { position: relative; display: inline-flex; gap: 2px; max-width: 100%; margin-top: 24px; padding: 4px; border-radius: 12px; background: var(--surface); }
.screen-tabs button { border: 0; border-radius: 8px; padding: 10px 11px; background: transparent; color: var(--muted); font-size: 11px; white-space: nowrap; cursor: pointer; transition: background 220ms ease-out,color 220ms ease-out,box-shadow 220ms ease-out; }
.screen-tabs button[aria-selected="true"] { background: var(--surface-high); color: var(--ink); box-shadow: 0 2px 5px #1e2a280d; }
.browser-art { display: flex; align-items: center; justify-content: center; margin: 16px; padding: 28px; border-radius: 16px; background: var(--surface); }
.browser-art img { display: block; width: min(100%,242px); height: auto; border: 3px solid #34443a; border-radius: 31px; box-shadow: 0 10px 24px #1e2a2812; }
.progress-panel,.notifications-panel { display: flex; flex-direction: column; }
.progress-art,.notification-detail { display: flex; align-items: center; justify-content: center; flex: 1; padding: 8px 36px 36px; }
.progress-art img,.notification-detail img { display: block; width: min(100%,222px); height: auto; object-fit: contain; border-radius: 28px; border: 3px solid #34443a; box-shadow: 0 10px 24px #1e2a2812; }
.recommendation-panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); }
.recommendation-panel .panel-copy { align-self: center; padding: 40px; }
.recommendation-panel h2 { font-size: 32px; letter-spacing: -.5px; }
.recommendation-art { display: flex; justify-content: center; align-items: center; padding: 32px; }
.recommendation-art img { display: block; width: min(100%,242px); height: auto; border: 3px solid #34443a; border-radius: 31px; box-shadow: 0 10px 24px #1e2a2812; }
.stats-panel { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; background: var(--surface-high); }
.stats-art { display: flex; align-items: center; justify-content: center; padding: 32px; margin: 16px; background: var(--surface); border-radius: 16px; }
.stats-art img { display: block; width: min(100%,242px); height: auto; border: 3px solid #34443a; border-radius: 31px; box-shadow: 0 10px 24px #1e2a2812; }
.stats-panel .panel-copy { align-self: center; padding: 40px; }
.privacy-note { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin: 56px 0 64px; }
.privacy-note h2 { font-family: var(--heading-font); color: var(--heading); font-size: 25px; font-weight: 600; line-height: 1.25; letter-spacing: -.25px; }
.privacy-note p { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 570px; }
.privacy-note a { display: inline-block; margin-top: 12px; font-size: 11px; text-underline-offset: 4px; }
.closing { padding: 48px 24px 40px; text-align: center; background: var(--surface); }
.closing > img { width: 56px; height: 56px; margin-bottom: 18px; border-radius: 14px; }
.closing h2 { margin-bottom: 24px; font-family: var(--heading-font); color: var(--heading); font-size: 36px; line-height: 1.2; font-weight: 600; letter-spacing: -.6px; }
.final-screens { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 36px auto 0; max-width: 970px; }
.final-screens img { display: block; width: calc((100% - 80px)/5); min-width: 0; height: auto; border: 3px solid #34443a; border-radius: 23px; box-shadow: 0 8px 18px #1e2a280d; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0 32px; font-size: 11px; color: var(--muted); }
footer div { display: flex; gap: 24px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
@media(prefers-reduced-motion:no-preference) {
 .motion-ready .reveal { transition: opacity 240ms ease-out,translate 420ms var(--ease-out); transition-delay: var(--entry-delay,0ms); }
 .motion-ready .reveal.is-pending { opacity: 0; translate: 0 22px; }
 .motion-ready .handset.reveal { transition: opacity 240ms ease-out,translate 550ms var(--ease-out); transition-delay: var(--entry-delay,0ms); }
 .screen-enter { animation: screen-enter 350ms var(--ease-out) both; }
 @keyframes screen-enter { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
}
@media(max-width:900px) {
 .wrap { width: calc(100% - 48px); }
 .hero-stage { height: 660px; }
 .handset { width: 212px; }
 .hero-center { width: 244px; left: calc(50% - 122px); }
 .hero-left { left: calc(50% - 310px); }
 .hero-right { left: calc(50% + 98px); }
 .panel-copy,.browser-copy,.recommendation-panel .panel-copy,.stats-panel .panel-copy { padding: 28px; }
 .screen-tabs button { padding: 10px 8px; font-size: 10px; }
}
@media(max-width:620px) {
 .wrap { width: calc(100% - 36px); }
 nav { height: 70px; }
 .brand { font-size: 20px; }
 .brand img { width: 28px; height: 28px; }
 .nav-links { font-size: 11px; gap: 16px; }
 .nav-links a:first-child { display: none; }
 .hero-copy { padding-top: 24px; }
 .hero-mark { width: 46px; height: 46px; margin-bottom: 18px; border-radius: 12px; }
 h1 { font-size: 39px; letter-spacing: -.7px; line-height: 1.15; }
 .hero-copy > p { max-width: 335px; font-size: 16px; line-height: 1.55; margin-bottom: 24px; }
 .hero-copy .download-note { font-size: 10px; }
 .hero-stage { width: calc(100% - 20px); height: calc(74vw + 40px); margin-top: 40px; }
 .handset { width: 25%; padding: 3px; border-radius: 23px; }
 .handset img { border-radius: 19px; }
 .hero-left { left: 7%; top: 60px; transform: rotate(-7deg); }
 .hero-center { width: 32%; left: 34%; top: 12px; transform: rotate(1deg); }
 .hero-right { left: auto; right: 7%; top: 60px; transform: rotate(7deg); }
 .chapter:first-child { margin-top: 24px; }
 .chapter + .chapter { margin-top: 18px; }
 .feature-grid { grid-template-columns: 1fr; gap: 18px; }
 .panel { border-radius: 24px; }
 .panel h2 { font-size: 26px; line-height: 1.23; letter-spacing: -.3px; }
 .panel p { font-size: 16px; line-height: 1.6; }
 .panel-copy { padding: 28px 28px 24px; }
 .collection-art,.search-art { padding: 4px 28px 28px; }
 .collection-art img,.search-art img,.progress-art img,.notification-detail img { width: min(100%,210px); }
 .browser-panel,.recommendation-panel,.stats-panel { grid-template-columns: 1fr; }
 .browser-panel,.stats-panel { margin-top: 18px; }
 .browser-copy { padding: 28px; }
 .browser-copy h2 { font-size: 28px; }
 .browser-copy > p { min-height: 3.2em; }
 .screen-tabs { margin-top: 20px; }
 .screen-tabs button { padding: 10px 9px; }
 .browser-art { margin: 0 12px 12px; padding: 26px 20px; }
 .browser-art img { width: min(100%,230px); }
 .progress-art,.notification-detail { padding: 4px 28px 28px; }
 .recommendation-panel .panel-copy { padding: 28px 28px 24px; }
 .recommendation-panel h2 { font-size: 28px; }
 .recommendation-art { padding: 4px 28px 28px; }
 .recommendation-art img { width: min(100%,230px); }
 .stats-panel .panel-copy { order: -1; padding: 28px; }
 .stats-art { margin: 0 12px 12px; padding: 26px 20px; }
 .stats-art img { width: min(100%,230px); }
 .privacy-note { grid-template-columns: 1fr; gap: 16px; margin: 36px 0 40px; }
 .closing { padding: 36px 18px 30px; }
 .closing > img { width: 50px; height: 50px; border-radius: 12px; }
 .closing h2 { font-size: 30px; }
 .final-screens { gap: 12px; margin-top: 30px; }
 .final-screens img { width: calc((100% - 24px)/3); border-width: 2px; border-radius: 16px; }
 .final-screens img:nth-child(n+4) { display: none; }
 footer { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 0; }
 footer div { flex-wrap: wrap; gap: 20px; }
}
@media(max-width:360px) {
 h1 { font-size: 34px; }
 .screen-tabs button { padding-inline: 7px; }
 .handset { border-radius: 19px; }
 .handset img { border-radius: 15px; }
}
@media(prefers-reduced-motion:reduce) {
 html { scroll-behavior: auto; }
 *,*::before,*::after { animation-duration: 0s !important; transition-duration: 0s !important; }
 .reveal { opacity: 1 !important; translate: none !important; }
}

.hero-left { --entry-delay: 60ms; }
.hero-right { --entry-delay: 120ms; }
.feature-grid > .panel:nth-child(2) { --entry-delay: 60ms; }

.screen-tabs button { position: relative; z-index: 1; }
.tab-indicator { position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 8px; background: var(--surface-high); box-shadow: 0 2px 5px #1e2a280d; pointer-events: none; transition: translate 250ms var(--ease-out),width 250ms var(--ease-out); }
.has-indicator button[aria-selected="true"] { background: transparent; box-shadow: none; }


/* Share the natural text-row height between adjacent cards. */
@supports (grid-template-rows: subgrid) {
 @media(min-width:621px) {
  .feature-grid > .panel { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; }
  .collection-panel .panel-copy { order: 0; }
  .collection-art { order: 1; }
 }
}

h1,.panel h2,.closing h2,.brand { font-optical-sizing: auto; }
@media(max-width:360px) { .browser-copy > p { min-height: 4.8em; } }

/* Real cover artwork, fetched once through the app's public lookup. */
.cover-art { padding: 12px 32px 36px; }
.cover-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 16px; width: 100%; max-width: 410px; }
.cover-button { display: block; width: 100%; aspect-ratio: 2 / 3; padding: 0; border: 0; border-radius: 6px; background: var(--surface-high); cursor: zoom-in; box-shadow: 0 5px 12px #1e2a2812; transition: box-shadow 220ms ease-out; }
.cover-grid .cover-button img,.book-trio .cover-button img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; border: 0; border-radius: 6px; box-shadow: none; }
.cover-button:hover { box-shadow: 0 7px 18px #1e2a2824; }
.book-art { padding: 48px 28px; min-height: 360px; }
.book-trio { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; gap: 16px; width: 100%; max-width: 410px; }
.book-trio figure:nth-child(2) { translate: 0 -16px; }
.book-trio .cover-button { aspect-ratio: 415 / 680; }
.cover-open { overflow: hidden; }
.cover-dialog { position: fixed; width: min(440px,calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--page); color: var(--ink); box-shadow: 0 20px 70px #1e2a2833; }
.cover-dialog::backdrop { background: #1e2a287d; backdrop-filter: blur(5px); }
.cover-close { display: flex; align-items: center; gap: 12px; padding: 4px 0; margin: 0 0 18px auto; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.cover-close span { font-size: 23px; line-height: 1; }
#cover-preview { display: block; width: 100%; height: min(52dvh,480px); margin: auto; object-fit: contain; }
.cover-caption { margin-top: 20px; text-align: center; }
.cover-caption h2 { font-family: var(--heading-font); font-optical-sizing: auto; font-size: 25px; line-height: 1.2; font-weight: 600; }
.cover-caption p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
@media(prefers-reduced-motion:no-preference) {
 .cover-dialog[open] { animation: cover-open 250ms var(--ease-out) both; }
 @keyframes cover-open { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
}
@media(max-width:620px) {
 .cover-art { padding: 8px 28px 32px; }
 .cover-grid { gap: 14px 12px; max-width: 340px; }
 .book-art { padding: 32px 26px; min-height: 280px; }
 .book-trio { gap: 12px; max-width: 340px; }
 .book-trio figure:nth-child(2) { translate: 0 -10px; }
 .cover-dialog { padding: 18px; }
 .cover-caption h2 { font-size: 23px; }
}

/* A single horizontal shelf, with native touch/trackpad scrolling. */
.intro-grid { grid-template-columns: minmax(0,1fr); }
.intro-grid > .collection-panel { display: flex; grid-row: auto; }
.cover-rail .panel-copy { order: 0; padding: 36px 36px 24px; }
.cover-rail .cover-art { order: 1; display: block; padding: 0 32px 24px; min-width: 0; }
.cover-track { display: flex; gap: 20px; max-width: none; width: 100%; padding: 12px 4px 18px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.cover-track::-webkit-scrollbar { display: none; }
.cover-track > figure { flex: 0 0 154px; min-width: 0; }
.intro-grid > .search-panel { display: grid; grid-row: auto; grid-template-rows: auto; grid-template-columns: 1fr 1fr; align-items: center; margin-top: 0; }
.intro-grid .search-panel .panel-copy { align-self: center; padding: 40px; }
.browser-art img { width: auto; max-width: 100%; height: 560px; object-fit: contain; }
.final-screens { max-width: 630px; }
.final-screens img { width: calc((100% - 40px)/3); }
@media(max-width:620px) {
 .cover-rail .panel-copy { padding: 28px 28px 12px; }
 .cover-rail .cover-art { padding: 0 24px 22px; }
 .cover-track { gap: 16px; }
 .cover-track > figure { flex-basis: 128px; }
 .intro-grid > .search-panel { grid-template-columns: 1fr; }
 .intro-grid .search-panel .panel-copy { padding: 28px 28px 24px; }
 .browser-art img { width: auto; max-width: 100%; height: 480px; }
 .final-screens img { width: calc((100% - 24px)/3); }
}


/* Match the inset rhythm of the full-width and paired panels. */
.browser-art { margin: 20px; padding: 32px; }
.browser-copy { padding: 40px; }
.browser-art img { height: 540px; }
.cover-track { overflow-anchor: none; }
@media(min-width:621px) and (max-width:900px) {
 .browser-copy { padding: 28px; }
 .browser-art { margin: 16px; padding: 24px; }
 .browser-art img { height: auto; width: 100%; max-width: 250px; }
 .screen-tabs { flex-wrap: wrap; }
}
@media(max-width:620px) {
 .browser-copy { padding: 28px 28px 24px; }
 .browser-art { margin: 0 16px 16px; padding: 28px 20px; }
 .browser-art img { height: auto; width: min(100%,222px); }
 .cover-rail .panel-copy { padding: 28px 28px 20px; }
 .cover-rail .cover-art { padding: 0 24px 18px; }
}

/* Keep each cover's native proportions, without a pale backing rectangle. */
.cover-track > figure { flex: 0 0 auto; }
.cover-track .cover-button { width: auto; height: 231px; aspect-ratio: auto; background: transparent; }
.cover-track .cover-button img { width: auto; height: 100%; max-width: none; object-fit: contain; }
.interface-panel { overflow: hidden; display: flex; flex-direction: column; }
.interface-art { display: flex; align-items: flex-end; justify-content: center; padding: 8px 36px 0; }
/* Isolate the existing iOS interface in the App Store exports. The original
   export ends before the bottom of the screen; let it meet the panel edge. */
.ios-excerpt { position: relative; overflow: hidden; flex: 0 1 280px; aspect-ratio: 1108 / 2118; border-radius: 20px 20px 0 0; box-shadow: 0 8px 28px #1e2a2814; background: #f6f7f4; }
.ios-excerpt img { position: absolute; display: block; width: 119.134%; max-width: none; height: auto; left: -9.567%; top: -35.411%; }
@media(min-width:621px) {
 .feature-grid > .interface-panel { display: grid; }
 .interface-art { padding-top: 12px; }
}
@media(max-width:620px) {
 .cover-track .cover-button { height: 192px; }
 .interface-art { padding: 4px 28px 0; }
 .ios-excerpt { flex-basis: 246px; border-radius: 18px 18px 0 0; }
}

.store-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store-buttons .store-btn { min-width: 180px; justify-content: center; }
.play-btn svg { width: 25px; height: 29px; }
@media(max-width:420px) {
 .store-buttons { gap: 10px; }
 .store-buttons .store-btn { min-width: 0; padding: 11px 14px; gap: 8px; }
 .store-buttons .store-label { font-size: 18px; }
 .store-buttons .store-btn svg { width: 22px; height: 26px; }
}

/* The shelf runs flush to its container edges. */
.cover-rail { overflow: hidden; }
.cover-rail .cover-art { padding-inline: 0; }
.cover-track { padding-inline: 0; }
