.home {
  background: linear-gradient(145deg, #f3eaf4 0%, #e8def4 29rem, #f4eadf 65rem, #fbf8fc 110rem);
  word-break: keep-all;
}
.home main { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.home main { padding: 0; }
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: 39rem;
  padding: clamp(2.5rem, 7vw, 6rem) 0;
}
.product-name { font-size: .9rem; font-weight: 800; letter-spacing: .19em; color: var(--link); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(3.35rem, 7.1vw, 6.8rem); line-height: 1.095; letter-spacing: -.075em; font-weight: 820; }
.hero h1 span { color: #58427b; }
.hero-description { color: var(--muted); font-size: clamp(1rem, 2vw, 1.23rem); margin: 1.5rem 0 2rem; }
.primary-link { display: inline-block; padding: .76rem 1.25rem; border-radius: .85rem; color: #fff; background: #38284f; text-decoration: none; font-weight: 700; }
.primary-link:hover { background: #544070; }
.reader-stage { position: relative; display: grid; justify-items: center; gap: 1.3rem; margin: 0; isolation: isolate; }
.reader-stage::before { content: ""; position: absolute; z-index: -1; inset: 5% 0 9%; border-radius: 50%; background: radial-gradient(ellipse, #a48bb464, transparent 70%); }
.reader-frame { width: min(100% - 1rem, 18rem); padding: .48rem; border-radius: 2rem; background: #211d2d; border: 1px solid #706479; box-shadow: 16px 22px 55px #35234138, inset 0 0 0 2px #fff2; transform: rotate(5deg); }
.reader-screen { color: #f0eaf6; background: #191621; min-height: 25rem; border-radius: 1.55rem; overflow: hidden; display: flex; flex-direction: column; }
.reader-screen[data-theme="paper"] { background: #f8edda; color: #352a37; }
.reader-top { display: flex; justify-content: space-between; padding: .95rem 1.1rem; border-bottom: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 18%, transparent); font-size: .8rem; }
.reader-text { padding: 1.5rem 1.2rem 1rem; }
.reader-text h2 { font-size: 1.45rem; margin: .6rem 0 1rem; }
.reader-text p { font-size: .9rem; line-height: 1.8; }
.reader-text .sample-label { opacity: .78; font-size: .8rem; }
.reader-progress { padding: .65rem 1.2rem 1.2rem; margin-top: auto; font-size: .8rem; }
.progress-line { display: block; height: .28rem; margin: .48rem 0; border-radius: 1rem; background: linear-gradient(to right, #a98ac9 42%, #a98ac94d 42%); }
.theme-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: .35rem; }
.theme-controls button { cursor: pointer; color: var(--ink); background: #fff9; border: 1px solid #836c9b4d; border-radius: 2rem; padding: .45rem .85rem; font: 650 .875rem/1.4 system-ui, sans-serif; }
.theme-controls button[aria-pressed="true"] { color: white; background: #4e3b69; border-color: #4e3b69; }
.theme-controls button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.features { padding-bottom: clamp(3rem, 8vw, 6rem); scroll-margin-top: 2rem; }
.features > h2 { font-size: clamp(1.85rem, 4vw, 3rem); margin: 0 0 1.4rem; letter-spacing: -.05em; }
.feature-grid { display: grid; grid-template-columns: 1.16fr 1fr; gap: 1rem; }
.feature { background: #fffdfbd9; border: 1px solid #fff; border-radius: 1.6rem; padding: clamp(1.25rem, 4vw, 2.5rem); }
.feature h3 { margin: 0 0 .65rem; font-size: clamp(1.24rem, 2.6vw, 1.7rem); letter-spacing: -.035em; }
.feature p { color: var(--muted); margin: 0; }
.library-example { background: #ede6f5; border-radius: 1rem; padding: .9rem 1rem; margin-top: 1.25rem; }
.library-example > div:first-child { display: flex; justify-content: space-between; gap: .5rem; }
.library-example small { color: var(--muted); font-size: .8rem; }
.mode-labels { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.mode-labels span { padding: .38rem .72rem; background: #ede6f5; border-radius: 2rem; font-size: .875rem; color: #483760; }
.import-feature { grid-column: 1 / -1; display: grid; grid-template-columns: .95fr 1fr; padding: 0; overflow: hidden; align-items: center; }
.import-feature img { width: 100%; height: 100%; max-height: 20rem; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 52%; }
.import-feature > div { padding: clamp(1.25rem, 4vw, 2.5rem); }
@media (max-width: 680px) {
  .home main { width: min(100% - 2rem, 70rem); }
  .hero, .feature-grid, .import-feature { grid-template-columns: 1fr; }
  .hero { gap: 2.3rem; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4.8rem); }
  .reader-frame { width: min(100% - 2rem, 16rem); }
  .import-feature img { max-height: 15rem; }
}
