/* Paper: 09 · Pale blue. The home and PDF to MP3 pages share this card.
   https://app.paper.design/file/01M3RT0JPTMQE30JZPXQBZJ9KT/p-1-0/1FI-0 */
html.landing-root:has(body:not(.is-focus-mode)),
body.landing-page:not(.is-focus-mode) {
  --ui-toolbar-scale: 1;
  --ui-footer-scale: 1;
  height: auto;
  min-height: 100%;
  padding: 0;
  overflow: auto;
  background: #f0f8ff;
}

.landing-page:not(.is-focus-mode) .player-stage {
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: #f0f8ff;
}

.landing-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px;
  color: #1f2937;
  font-family: "Site Inter", system-ui, sans-serif;
}

.landing-intro { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 24px; }
.landing-intro h1 {
  display: block;
  width: auto;
  min-height: 0;
  margin: 0;
  color: #050b1a;
  font-family: "Libre Baskerville", Baskerville, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 62px;
}
.landing-intro h1 span,
.landing-description span { display: block; }
.landing-description { margin: 0; color: #697386; font-size: 18px; line-height: 30px; letter-spacing: -.02em; }
.landing-upload-card {
  display: grid;
  gap: 13px;
  padding: 24px;
  border: 1px solid #d5e3ed;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 24px #274f6c07;
}
.landing-upload-card h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 28px; letter-spacing: -.02em; }
.landing-upload-card p { margin: 0; color: #697386; font-size: 14px; line-height: 20px; }
.landing-choose-file {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #6c28d9;
  border-radius: 999px;
  color: #fff;
  background: #7b3aed;
  box-shadow: inset 0 1px 0 #ffffff47, 0 8px 18px #7b3aed24;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.landing-choose-file svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.landing-choose-file:hover { background: #6c28d9; }
.landing-layout :is(button, a):focus-visible { outline: 2px solid #7b3aed; outline-offset: 4px; }

.landing-player {
  min-width: 0;
  overflow: clip;
  border: 1px solid #d5e3ed;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px #274f6c10, 0 3px 8px #274f6c06;
}
.landing-player-header {
  display: flex;
  min-height: 53px;
  align-items: center;
  gap: 16px;
  padding: 4px 24px;
  border-bottom: 1px solid #e5eef5;
  background: #f8fbfe;
  color: #697386;
  font-size: 14px;
  line-height: 18px;
}
.landing-document-meta { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.landing-document-meta > span:first-child { color: #6c28d9; font-weight: 600; }
.landing-player-settings { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.landing-window-controls { display: flex; align-items: center; gap: 4px; }
.landing-player-header :is(.tool-item, .focus-mode-button) {
  position: static;
  display: inline-flex;
  min-width: 0;
  width: auto;
  height: 44px;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #4f596a;
  background: transparent;
  box-shadow: none;
  font: 500 13px/18px "Site Inter", system-ui, sans-serif;
  transform: none;
  cursor: pointer;
}
.landing-player-header .tool-label { display: inline; color: inherit; font: inherit; }
.landing-player-header #autoButton .tool-label { order: -1; }
.landing-player-header #autoButton .glass-orb {
  position: relative;
  width: 30px;
  height: 18px;
  min-width: 30px;
  border: 0;
  border-radius: 999px;
  background: #d5e3ed;
  box-shadow: none;
  transform: none;
}
.landing-player-header #autoButton[aria-pressed="true"] .glass-orb { background: #7b3aed; }
.landing-player-header #autoButton .glass-orb::before { display: none; }
.landing-player-header #autoButton .glass-orb::after {
  content: "";
  position: absolute;
  inset: 3px auto auto 3px;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 1;
  filter: none;
  transform: none;
}
.landing-player-header #autoButton[aria-pressed="true"] .glass-orb::after { left: 15px; }
.landing-player-header #autoButton svg { display: none; }
.landing-player-header #speedButton { gap: 10px; }
.landing-player-header #speedButton .tool-label { order: -1; color: #697386; }
.landing-player-header #speedValue { min-width: 22px; width: auto; height: auto; border: 0; background: transparent; box-shadow: none; color: #4f596a; font: 700 13px/18px "Site Inter", system-ui, sans-serif; transform: none; }
.landing-player-header #speedValue::before,
.landing-player-header #speedValue::after { display: none; }
.landing-speed-caret { display: none; }
.landing-player-header .landing-speed-caret { display: block; width: 6px; height: 6px; color: #7e8698; }
.landing-player-header #tipsButton { height: 28px; gap: 7px; padding-left: 20px; border-left: 1px solid #e7eaf0; border-radius: 0; font-size: 14px; }
.landing-player-header #tipsButton .glass-orb { width: 18px; height: 18px; min-width: 18px; border: 0; color: #697386; background: transparent; box-shadow: none; transform: none; }
.landing-player-header #tipsButton .glass-orb::before,
.landing-player-header #tipsButton .glass-orb::after { display: none; }
.landing-player-header #tipsButton svg { width: 18px; height: 18px; stroke-width: 1.6; }
.landing-player-header .focus-mode-button { width: 44px; color: #4f596a; }
.landing-player-header .focus-mode-button > span { display: none; }
.landing-player-header .focus-mode-button:hover,
.landing-player-header .tool-item:hover { color: #7b3aed; }

.landing-layout .player-hero {
  position: relative;
  inset: auto;
  display: flex;
  width: 100%;
  height: 326px;
  min-height: 326px;
  max-width: none;
  align-items: safe center;
  margin: 0;
  padding: 36px 48px;
  overflow-y: auto;
}
.landing-root body.landing-page .landing-layout .player-hero { bottom: auto; }
.landing-layout .player-hero,
.landing-layout .player-hero * { font-family: "Libre Baskerville", Baskerville, "Times New Roman", serif; }
.landing-layout :is(.player-title-block, .sample-chapter-heading, .position-label, .paragraph-progress, .paragraph-name) { display: none; }
.landing-page:not(.is-focus-mode) :is(.chapter-sidebar, .chapter-sidebar-backdrop) { display: none; }
.landing-layout .sample-document,
.landing-layout .sample-chapter,
.landing-layout .paragraph-copy { width: 100%; margin: 0; padding: 0; }
.landing-layout .sentence-list { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.landing-layout .sentence {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  color: #4f596a;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 36px;
}
.landing-layout .sentence.is-current { color: #1f2937; }
.landing-layout .sentence-listened-dot { top: .5lh; }
.has-js .landing-layout .sentence[data-landing-visible="false"] { display: none; }
.landing-layout .sentence-marker { padding: 0; }
.landing-layout .spoken-part.is-current,
.landing-layout .sentence.is-current:not(:has(.spoken-part.is-current)) .landing-first-word {
  border-radius: 4px;
  color: #1f2937;
  background: #bbf7d0;
  box-shadow: 0 0 0 3px #bbf7d0;
}

.landing-player .player-footer {
  position: relative;
  inset: auto;
  display: flex;
  height: 112px;
  min-height: 112px;
  padding: 0 24px;
  border-top: 1px solid #e5eef5;
  background: #f8fbfe;
  box-shadow: 0 -6px 18px #232a3b03;
  backdrop-filter: none;
}
.landing-player .player-footer :is(.chapter-sidebar-toggle, .footer-tools, .footer-more) { display: none; }
.landing-player .player-footer .action-row { width: 520px; flex: 0 1 520px; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 18px; margin: 0; transform: translateX(-30px); }
.landing-player .player-footer .action-row.has-feature-active { transform: none; }
.landing-player .player-footer .player-controls { display: flex; flex: 0 0 260px; width: 260px; gap: 14px; }
.landing-player .player-footer .control { width: 46px; height: 46px; flex-shrink: 0; }
.landing-player .player-footer #repeatButton { display: grid; }
.landing-player .player-footer .control-play { width: 61px; height: 61px; }
.landing-player .player-footer .control-purple {
  border-color: #6c28d9;
  background: #7b3aed;
  box-shadow: inset 0 1px 0 #ffffff5c, 0 14px 28px #7b3aed3d, 0 5px 10px #232a3b1a, 0 1px 2px #232a3b14;
}
.landing-player .player-footer .control-purple:hover { background: #6c28d9; transform: none; }
.landing-player .player-footer .speak-pill:not(.is-feature-active) { display: flex; width: 112px; height: 42px; margin: 0; flex-shrink: 0; font-size: 15px; }
.landing-player .player-footer .speak-pill:not(.is-feature-active) svg { width: 18px; height: 18px; }
.landing-player .footer-keyboard-hint { display: flex; top: 32px; right: 24px; left: auto; width: 72px; height: 48px; transform: none; }
.landing-root body.landing-page .landing-player .footer-keyboard-hint { visibility: visible; }

body.landing-page:not(.is-focus-mode):not(.is-small-window):not(.mcp-reader) .site-footer {
  border-color: #d5e3ed;
  color: #4f596a;
  font-family: "Site Inter", system-ui, sans-serif;
}
body.landing-page:not(.is-focus-mode):not(.is-small-window):not(.mcp-reader) .site-footer a.site-footer-brand {
  color: #050b1a;
  font-size: 18px;
}
body.landing-page:not(.is-focus-mode):not(.is-small-window):not(.mcp-reader) .site-footer :is(.landing-footer-tagline, .site-footer-copyright, .site-footer-heading) {
  color: #697386;
}
body.landing-page:not(.is-focus-mode):not(.is-small-window):not(.mcp-reader) .site-footer .site-footer-heading { font-weight: 700; }
body.landing-page:not(.is-focus-mode):not(.is-small-window):not(.mcp-reader) .site-footer a:focus-visible { outline-color: #7b3aed; }

@media (max-width: 1350px) {
  .landing-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; padding: 56px 32px; }
  .landing-player-header { gap: 12px; padding-inline: 20px; }
  .landing-player-settings { gap: 12px; }
  .landing-document-meta { gap: 12px; }
  .landing-player-header #tipsButton { padding-left: 12px; }
  .landing-layout .player-hero { padding-inline: 32px; }
  .landing-player .player-footer .action-row { transform: none; }
  .landing-player .footer-keyboard-hint { display: none; }
}

@media (max-width: 1100px) {
  .landing-layout { grid-template-columns: 1fr; gap: 36px; max-width: 960px; }
  .landing-intro { grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: center; }
  .landing-intro h1 { font-size: 44px; line-height: 54px; }
  .landing-description { grid-column: 1; font-size: 17px; line-height: 27px; }
  .landing-upload-card { grid-column: 2; grid-row: 1 / span 2; }
  .landing-player-header { padding-inline: 24px; }
  .landing-layout .player-hero { padding-inline: 40px; }
}

@media (max-width: 640px) {
  .landing-layout { padding: 32px 16px; gap: 32px; }
  .landing-intro { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .landing-intro h1 { font-size: 40px; line-height: 49px; }
  .landing-upload-card { grid-column: 1; grid-row: auto; padding: 20px; }
  .landing-player-header { flex-wrap: wrap; gap: 0 12px; padding: 8px 16px; }
  .landing-document-meta { flex: 1 0 calc(100% - 104px); min-height: 44px; }
  .landing-window-controls { order: 1; }
  .landing-player-settings { order: 2; flex: 1 0 100%; flex-wrap: wrap; justify-content: flex-start; gap: 4px 20px; margin: 0; }
  .landing-player-header #tipsButton { margin-left: auto; padding-left: 20px; }
  .landing-layout .player-hero { height: 340px; min-height: 340px; padding: 24px; }
  .landing-layout .sentence { font-size: 19px; line-height: 32px; }
  .landing-player .player-footer { height: 152px; padding: 12px 16px; }
  .landing-player .player-footer .action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; flex-basis: 100%; }
  .landing-player .player-footer .player-controls { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .landing-player .player-footer .speak-pill:not(.is-feature-active) { grid-row: 2; justify-self: center; width: 112px; height: 42px; }
  .landing-player .player-footer .action-row.has-feature-active { display: flex; }
  .landing-player .player-footer .speak-pill.is-feature-active { width: min(100%, 440px); }
}

@media (max-width: 380px) {
  .landing-player-header { padding-inline: 12px; }
  .landing-document-meta { font-size: 12px; gap: 10px; }
  .landing-player-settings { column-gap: 10px; }
  .landing-player-header #tipsButton { padding-left: 10px; }
}
