:root {
  color-scheme: light;
  --paper: #f6f4ef;
  --surface: #fffefa;
  --ink: #29372e;
  --muted: #637366;
  --rule: #d9ddd3;
  --brand: #7d8a7b;
  --accent: #435e47;
  --accent-soft: #e7ece2;
  --media-shadow: 0 16px 36px -12px rgb(41 55 46 / 26%), 0 4px 12px -3px rgb(41 55 46 / 14%);
  --demo-scale: .85;
  --page-width: 78rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 3px;
}
::selection { background: #dbe4d5; color: var(--ink); }
.page-width, .site-header, .site-footer, .page-main {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: absolute;
  z-index: 20;
  top: .75rem;
  left: var(--gutter);
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 6.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1;
  text-decoration: none;
}
.wordmark-icon { flex: none; width: 2.65rem; height: 2.65rem; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 1.75rem; }
.header-nav { display: flex; align-items: center; gap: 1.75rem; }
.header-nav a {
  padding-block: .8rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 550;
  text-decoration: none;
}
.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.language-switch { display: flex; flex: none; gap: .15rem; padding: .2rem; border: 1px solid var(--rule); border-radius: 999px; }
.language-switch a { padding: .45rem .65rem; border-radius: 999px; color: var(--muted); font-size: .78rem; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.language-switch a:hover { color: var(--ink); background: var(--accent-soft); }
.language-switch a[aria-current="true"] { color: var(--paper); background: var(--ink); }
h1, h2, h3 { font-weight: 650; letter-spacing: -.055em; }
h1, h2, h3, p, figure { margin: 0; }
.eyebrow { color: var(--muted); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.hero { position: relative; overflow: hidden; }
.hero::before, .feature-excerpt::before, .feature-review::before {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
  background: url("/assets/images/reading-wave.svg") center / 100% 100% no-repeat;
}
.hero::before { width: max(1500px, 130%); height: 690px; left: 50%; top: 300px; transform: translateX(-50%); opacity: .76; }
.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 3rem;
  padding-block: 3rem 5.5rem;
}
.hero-copy { position: relative; z-index: 1; padding-bottom: 1rem; }
.hero .eyebrow { margin-bottom: 1.75rem; }
.hero h1 { font-size: clamp(3.4rem, 6.6vw, 6rem); line-height: 1.035; }
.hero-description { max-width: 29rem; margin-top: 2rem; font-size: clamp(1.05rem, 1.45vw, 1.2rem); line-height: 1.65; color: var(--muted); }
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.75rem;
  margin-top: 2rem;
  padding: 1rem 1.35rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: .95rem;
  font-weight: 550;
  text-decoration: none;
  transition: background 180ms ease;
}
.button:hover { background: var(--accent); color: var(--paper); }
.button span { font-size: 1.3rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2rem; }
.app-store-badge { display: inline-block; flex: none; border-radius: 7px; }
.app-store-badge img { width: auto; height: 3rem; }
.hero-actions .text-link { padding-block: .75rem; }
.availability { margin-top: 1rem; font-size: .78rem; color: var(--muted); }
.hero-visual, .feature-visual { display: flex; justify-content: center; position: relative; }
/* Screen pixels are the approved native captures; the frame is a separate layer. */
.device {
  position: relative;
  isolation: isolate;
  flex: none;
  width: calc(min(100%, 19.75rem) * var(--demo-scale));
  padding: calc(5px * var(--demo-scale));
  border: calc(2px * var(--demo-scale)) solid #b2b9af;
  border-radius: calc(43px * var(--demo-scale));
  background: #101411;
  box-shadow: 0 0 0 4px #e3e2dc, var(--media-shadow);
}
.device img, .device video { display: block; width: 100%; height: auto; border-radius: calc(36px * var(--demo-scale)); }
.device video { background: var(--surface); }
.demo-media { position: relative; }
.demo-media .demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; background: var(--surface); }
/* Native controls must remain visible and clickable during loading too. */
.demo-media video[controls] + .demo-poster { visibility: hidden; }
.device video:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
/* Simulator footage includes the island; keep its blank loop frames clear too. */
.device.home-demo::after { content: none; }
.device::after {
  position: absolute;
  z-index: 1;
  content: "";
  top: 2.2%;
  left: 37.6%;
  width: 24.8%;
  height: 3.3%;
  border-radius: 999px;
  background: #020303;
}
.hero .device { width: calc(min(100%, 19.5rem) * var(--demo-scale)); }
.feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding-block: 7.5rem;
  overflow: hidden;
}
.feature-copy { position: relative; z-index: 1; }
.feature h2, .library-feature h2 { font-size: clamp(2.5rem, 4.3vw, 4.15rem); line-height: 1.08; }
.feature-copy p, .library-copy p { max-width: 26rem; margin-top: 1.7rem; font-size: 1.08rem; line-height: 1.75; color: var(--muted); }
.feature-copy .quiet-copy { margin-top: 1.1rem; }
.feature-excerpt .feature-copy { grid-column: 2; grid-row: 1; }
.feature-excerpt .feature-visual { grid-column: 1; grid-row: 1; }
.feature-excerpt::before { width: 140%; height: 540px; top: 290px; left: -60%; opacity: .4; transform: rotate(-12deg); }
.library-section { padding-block: 6rem 0; background: #e9ede5; overflow: hidden; }
.library-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.library-feature { display: flex; flex-direction: column; align-items: center; }
.library-copy { width: 100%; max-width: 25rem; min-height: 15.5rem; }
.library-feature h2 { font-size: clamp(2.35rem, 3.55vw, 3.35rem); }
.library-copy p { font-size: 1rem; margin-top: 1.2rem; }
.library-feature .device { margin-top: 2rem; margin-bottom: -7rem; }
.feature-review::before { width: 130%; height: 620px; top: 310px; left: -3%; opacity: .45; }
.widget-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); padding-block: 4rem 6rem; border-top: 1px solid var(--rule); }
.widget-home-preview { width: calc(min(100%, 30rem) * var(--demo-scale)); margin-inline: auto; border-radius: 2.25rem; overflow: hidden; box-shadow: var(--media-shadow); }
.widget-home-preview img { width: 100%; height: auto; }
.widget-feature-copy h2 { margin-top: 1.25rem; font-size: clamp(2.5rem, 4.3vw, 4.15rem); line-height: 1.08; }
.widget-feature-copy > p:not(.eyebrow) { max-width: 27rem; margin-top: 1.7rem; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.widget-feature-copy .text-link { display: inline-block; margin-top: 1.5rem; }
.guide-invitation { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding-block: 3rem 4rem; border-top: 1px solid var(--rule); }
.guide-invitation h2 { max-width: 35rem; margin-top: 1rem; font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.2; }
.guide-invitation p:not(.eyebrow) { max-width: 35rem; margin-top: 1rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.guide-invitation .button { flex: none; margin-top: 0; }
.reading-note { display: flex; align-items: center; justify-content: space-between; gap: 3rem; border-top: 1px solid var(--rule); padding-top: 3rem; padding-bottom: 2.5rem; }
.reading-note h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.reading-note p { max-width: 38rem; margin-top: 1rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.text-link { flex: none; font-size: .9rem; }
.text-link span { display: inline-block; margin-left: .6rem; }
.sample-note { padding-bottom: 4rem; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.site-footer { min-height: 7rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding-block: 1.75rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { text-decoration: underline; }
.footer-credit { flex-basis: 100%; font-size: .68rem; line-height: 1.6; }

/* Supporting pages share the same light palette and type, retaining their content. */
.page-main { padding-block: 4rem 7rem; }
.page-heading { padding-block: 2rem 4rem; }
.page-heading .eyebrow, .not-found .eyebrow { margin-bottom: 1.5rem; }
.page-heading h1, .not-found h1 { max-width: 13ch; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.04; }
.accent { color: var(--brand); }
.page-intro { max-width: 40rem; margin-top: 1.75rem; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.65; color: var(--muted); }
.effective-date { margin-top: 1.5rem; font-size: .8rem; color: var(--muted); }
.content-section { display: grid; grid-template-columns: minmax(12rem, .8fr) minmax(0, 1.45fr); gap: 1rem 4rem; padding-block: 2.75rem; border-top: 1px solid var(--rule); }
.content-section h2 { grid-column: 1; grid-row: 1; font-size: clamp(1.45rem, 2vw, 1.8rem); letter-spacing: -.035em; line-height: 1.2; }
.content-section p, .content-section ul { grid-column: 2; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.content-section .policy-emphasis { color: var(--ink); font-size: 1.125rem; }
.content-section ul { padding-left: 1.25rem; }
.content-section li + li { margin-top: .65rem; }
.content-section a, .page-intro a { color: var(--accent); overflow-wrap: anywhere; }
.not-found { min-height: 32rem; }

/* Match the Traditional Chinese artwork without squeezing full-width glyphs. */
html:lang(zh-Hant) body { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif; }
html:lang(zh-Hant) h1, html:lang(zh-Hant) h2, html:lang(zh-Hant) h3 { font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
html:lang(zh-Hant) .hero h1 { font-size: clamp(2.4rem, 4.35vw, 4.25rem); }
html:lang(zh-Hant) .eyebrow { letter-spacing: .1em; }

@media (min-width: 1450px) {
  .hero-layout { padding-block: 4rem 6rem; }
  .hero .device { width: calc(21rem * var(--demo-scale)); }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 9rem; }
  .site-header { min-height: 7rem; display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; padding-block: .85rem; }
  .header-actions { display: contents; }
  .language-switch { grid-column: 2; grid-row: 1; }
  .header-nav { grid-column: 1 / -1; grid-row: 2; }
  .guide-invitation { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
  .hero-layout { gap: 2rem; grid-template-columns: 1.15fr 1fr; }
  .hero h1 { font-size: clamp(3rem, 6.5vw, 4rem); }
  .hero-description { font-size: 1rem; }
  .device { width: calc(17rem * var(--demo-scale)); border-radius: calc(37px * var(--demo-scale)); }
  .device img, .device video { border-radius: calc(30px * var(--demo-scale)); }
  .feature { gap: 3rem; padding-block: 5rem; }
  .feature h2 { font-size: 2.65rem; }
  .feature-copy p { font-size: 1rem; }
  .library-layout { gap: 3rem; }
  .library-copy { min-height: 16rem; }
  .reading-note { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 650px) {
  .widget-feature { grid-template-columns: 1fr; gap: 2.75rem; padding-block: 3rem 4.5rem; }
  .widget-feature-copy { grid-row: 1; }
  .widget-feature-copy h2 { font-size: clamp(2.25rem, 8.3vw, 3.15rem); }
  .widget-home-preview { width: calc(min(100%, 20rem) * var(--demo-scale)); }
  .wordmark { font-size: 1.4rem; }
  .wordmark-icon { width: 2.1rem; height: 2.1rem; }
  .header-nav { gap: clamp(.65rem, 4vw, 1.5rem); }
  .header-nav a { font-size: .78rem; }
  .hero-layout { grid-template-columns: 1fr; gap: 3.5rem; padding-block: 2.75rem 4rem; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(3.15rem, 10.7vw, 4.8rem); }
  html:lang(zh-Hant) .hero h1 { font-size: clamp(1.9rem, 8.6vw, 3.1rem); }
  .hero .eyebrow { font-size: .68rem; margin-bottom: 1.35rem; }
  .hero-description { margin-top: 1.5rem; font-size: 1rem; }
  .desktop-break { display: none; }
  .button { margin-top: 1.5rem; }
  .hero-actions { margin-top: 1.5rem; }
  .hero .device, .device { width: calc(min(76vw, 18.5rem) * var(--demo-scale)); border-radius: calc(39px * var(--demo-scale)); }
  .device img, .device video { border-radius: calc(32px * var(--demo-scale)); }
  .hero::before { width: 1200px; height: 600px; top: 570px; }
  .feature { grid-template-columns: 1fr; gap: 2.75rem; padding-block: 4.5rem; }
  .feature h2 { font-size: clamp(2.25rem, 8.3vw, 3.15rem); }
  .feature-copy p { margin-top: 1.25rem; }
  .feature-excerpt .feature-copy, .feature-excerpt .feature-visual { grid-column: auto; grid-row: auto; }
  .feature-excerpt::before { top: 480px; width: 1200px; left: -200px; }
  .library-section { padding-block: 4.5rem; }
  .library-layout { grid-template-columns: 1fr; gap: 4.5rem; }
  .library-copy { min-height: 0; max-width: none; }
  .library-feature h2 { font-size: clamp(2.25rem, 8.3vw, 3.15rem); }
  .library-feature .device { margin-top: 2.5rem; margin-bottom: 0; }
  .library-feature + .library-feature { padding-top: 3.5rem; border-top: 1px solid #cdd5c8; }
  .feature-review::before { top: 530px; width: 1200px; left: -350px; }
  .reading-note { padding-top: 2rem; padding-bottom: 2rem; }
  .sample-note { padding-bottom: 2.5rem; }
  .page-main { padding-block: 1.5rem 4rem; }
  .page-heading { padding-block: 1.5rem 3rem; }
  .content-section { grid-template-columns: 1fr; gap: 1rem; padding-block: 2rem; }
  .content-section p, .content-section ul { grid-column: 1; }
  .site-footer { min-height: 6rem; gap: 1rem; font-size: .75rem; flex-wrap: wrap; padding-block: 1.5rem; }
  .site-footer nav { gap: 1rem; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 2.8rem; }
  .hero .eyebrow { letter-spacing: .09em; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
