:root {
  color-scheme: light;
  --ink: #153b2e;
  --muted: #476156;
  --paper: #faf8f1;
  --white: #fffdf7;
  --sage: #e7eee0;
  --border: #cdd8c9;
  --light: #f4f4de;
  --content: 73rem;
  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html[lang="en"] { font-family: system-ui, sans-serif; }
html[lang="zh-Hans"] { font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; }
html[lang="zh-Hant"] { font-family: "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif; }
html { scroll-padding-top: 5.4rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 1rem; line-height: 1.85; }
h1, h2, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #638b35; outline-offset: 5px; }
.container { width: min(var(--content), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: .7rem; left: .7rem; padding: .5rem 1rem; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid #20493716; background: var(--paper); }
.header-inner, .brand, .header-inner > nav, .header-actions { display: flex; align-items: center; }
.header-inner { min-height: 4.65rem; justify-content: space-between; gap: 1.4rem; }
.brand { gap: .65rem; flex: none; text-decoration: none; font-weight: 850; font-size: 1.125rem; letter-spacing: .035em; }
.brand img { flex: none; border-radius: .62rem; }
.header-inner > nav { flex-wrap: wrap; justify-content: center; gap: clamp(.7rem, 2.35vw, 2.1rem); font-size: .875rem; font-weight: 650; }
.header-inner > nav a { text-decoration: none; }
.header-inner > nav a:hover, .footer-inner a:hover { text-decoration: underline; }
.header-actions { flex: none; gap: .75rem; }
.header-languages { position: relative; }
.header-languages summary {
  display: flex; align-items: center; gap: .45rem;
  min-height: 2.75rem; padding-inline: .6rem; border: 1px solid var(--border); border-radius: .55rem;
  font-size: .875rem; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.header-language-text { display: grid; gap: .08rem; line-height: 1.2; }
.header-language-label { color: var(--muted); font-size: .75rem; font-weight: 600; }
.header-languages summary::marker,
.header-languages summary::-webkit-details-marker { display: none; content: ""; }
.header-languages summary::after {
  content: ""; width: .42rem; height: .42rem; margin-top: -.2rem;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.header-languages[open] summary::after { margin-top: .2rem; transform: rotate(225deg); }
.header-language-menu {
  position: absolute; top: calc(100% + .35rem); right: 0; min-width: 9rem; padding: .28rem;
  border: 1px solid var(--border); border-radius: .6rem;
  background: var(--white); box-shadow: 0 .55rem 1.25rem #173b2e24;
}
.header-language-menu a {
  display: block; padding: .45rem .7rem; border-radius: .35rem; font-size: .875rem; text-decoration: none;
}
.header-language-menu a:hover,
.header-language-menu a:focus-visible,
.header-language-menu a[aria-current="page"] { background: var(--sage); }
.header-language-menu a[aria-current="page"] { font-weight: 750; }

.store-badge { display: block; width: 10.25rem; flex: none; border-radius: .35rem; }
.store-badge img { width: 100%; }
.store-badge-compact { width: 7.65rem; }
.hero .store-badge:focus-visible, .download-section .store-badge:focus-visible { outline-color: #e2f3bd; }

.hero {
  overflow: hidden; color: var(--white);
  background: radial-gradient(ellipse at 90% 53%, #31584a 0%, #1d4638 38%, #12392e 79%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1rem, 3vw, 3rem); padding-block: clamp(3.3rem, 6.8vw, 6.35rem); }
.hero-copy { position: relative; z-index: 1; }
.hero-label { margin-bottom: 1rem; color: #c0d4ba; font-size: .94rem; font-weight: 750; letter-spacing: .09em; }
.hero h1 { font-size: clamp(2.6rem, 4.7vw, 4.22rem); font-weight: 850; line-height: 1.22; letter-spacing: .015em; }
.hero h1 span { display: block; width: max-content; max-width: 100%; }
.hero-description { margin: 1.42rem 0 1.69rem; color: #eff3e8; font-size: clamp(.98rem, 1.36vw, 1.125rem); line-height: 1.92; }
.app-name { white-space: nowrap; }
.download-note { margin-top: .25rem; color: #c9d9c9; font-size: .875rem; }
.hero-art { min-width: 0; min-height: 23.5rem; position: relative; display: grid; align-items: center; isolation: isolate; }
.hero-book {
  width: 80%; border: 1px solid #e5edcf; border-radius: .9rem; transform: rotate(-7deg) translateX(2%);
  box-shadow: 0 1.25rem 2.4rem #0a241b7a; position: relative;
}
.hero-reader {
  position: absolute; right: 3.6%; top: 7%; width: 35%; border: .32rem solid #e1e9cd;
  border-radius: 1.1rem; transform: rotate(8deg); box-shadow: 0 1.25rem 2.6rem #09241bb3;
}
.frame { position: absolute; display: block; width: 2rem; height: 2rem; border: 1px solid #bcd6b288; z-index: -1; }
.frame-top { left: 2%; top: 3%; border-width: 1px 0 0 1px; border-top-left-radius: .25rem; }
.frame-bottom { right: 1%; bottom: 1%; border-width: 0 1px 1px 0; border-bottom-right-radius: .25rem; }

.section { padding-block: clamp(3.35rem, 6.9vw, 6.2rem); }
.reading-section, .faq-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr); align-items: center; gap: clamp(2.2rem, 6vw, 6rem); }
h2 { font-size: clamp(1.65rem, 3.37vw, 2.72rem); line-height: 1.38; letter-spacing: .015em; font-weight: 840; }
.lead { color: var(--muted); margin-top: 1rem; }
.detail-list { list-style: none; padding: 0; margin: 1.46rem 0 0; border-top: 1px solid var(--border); }
.detail-list li { display: grid; gap: .24rem; padding: .79rem 0; border-bottom: 1px solid var(--border); }
.detail-list strong { font-weight: 800; }
.detail-list span { color: var(--muted); font-size: .94rem; line-height: 1.65; }
.scan-section {
  --step-gap: clamp(1.45rem, 3.25vw, 2.8rem);
  container-type: inline-size;
}
.scan-section h2 span { display: inline-block; }
.scan-flow {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--step-gap);
  margin: 0; padding: 0; list-style: none; counter-reset: scan-step;
}
.scan-flow li { position: relative; counter-increment: scan-step; }
.scan-visual {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid #c3d1bc; border-radius: .85rem; background: #9aa991;
}
.scan-visual img { width: 100%; height: 100%; object-fit: cover; }
.scan-framing::after {
  content: ""; position: absolute; inset: 5% 3%;
  background:
    linear-gradient(#f3ffe6, #f3ffe6) top left / 1.1rem 2px,
    linear-gradient(#f3ffe6, #f3ffe6) top left / 2px 1.1rem,
    linear-gradient(#f3ffe6, #f3ffe6) top right / 1.1rem 2px,
    linear-gradient(#f3ffe6, #f3ffe6) top right / 2px 1.1rem,
    linear-gradient(#f3ffe6, #f3ffe6) bottom left / 1.1rem 2px,
    linear-gradient(#f3ffe6, #f3ffe6) bottom left / 2px 1.1rem,
    linear-gradient(#f3ffe6, #f3ffe6) bottom right / 1.1rem 2px,
    linear-gradient(#f3ffe6, #f3ffe6) bottom right / 2px 1.1rem;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 2px #122f2677);
}
.scan-flow li:not(:last-child)::after {
  content: ""; position: absolute; top: calc((100cqw - 2 * var(--step-gap)) / 8);
  right: calc(-.5 * var(--step-gap) - .28rem);
  width: .56rem; height: .56rem; border: solid #50785e; border-width: 2px 2px 0 0;
  transform: rotate(45deg); transform-origin: center; pointer-events: none;
}
.scan-step-copy { padding-top: .9rem; }
.scan-step-copy h3 {
  display: flex; align-items: center; gap: .55rem;
  margin: 0; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.48; font-weight: 800;
}
.scan-step-copy h3::before {
  content: counter(scan-step); flex: none; display: grid; place-items: center;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  color: #fffdf7; background: var(--ink); font-size: .875rem; font-weight: 750;
}
.scan-step-copy p { margin-top: .42rem; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.scan-options {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--step-gap);
  margin-top: 1.9rem;
}

.edit-section { background: var(--sage); border-block: 1px solid #cdd8c980; }
.section-heading { max-width: 43rem; margin-bottom: 1.9rem; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.comparison figure { position: relative; overflow: hidden; border: 1px solid #c1cdb8; border-radius: .95rem; background: #d0d8c8; }
.comparison img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #e9eee1; }
.comparison figcaption {
  position: absolute; top: .75rem; left: .75rem; padding: .26rem .68rem; border-radius: .38rem;
  background: var(--white); font-size: .875rem; font-weight: 800;
}
.comparison figure:last-child figcaption { color: var(--white); background: var(--ink); }

.reading-section { grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); }
.copyright-note {
  margin-top: .85rem; padding: .8rem .95rem;
  border: 1px solid var(--border); border-radius: .6rem; background: var(--sage);
  color: var(--muted); font-size: .875rem; line-height: 1.7;
}
.copyright-note h3 { margin: 0 0 .24rem; color: var(--ink); font-size: inherit; font-weight: 800; }
.reading-art {
  min-width: 0; position: relative; display: flex; align-items: center; min-height: clamp(16rem, 35vw, 25rem);
  padding: 2rem 1rem 2rem 1.4rem; border-radius: 1.1rem; background: #e6ecdc;
}
.library-shot { width: 68%; border: 1px solid #aebfad; border-radius: .68rem; box-shadow: 0 .8rem 1.6rem #27463228; }
.reading-shot {
  position: absolute; right: 6%; width: 36%; border: .24rem solid #274c3d; border-radius: .83rem;
  transform: rotate(6deg); box-shadow: 0 1rem 1.7rem #2746323b;
}
.faq-section { background: #f1eee4; }
.faq-inner { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); align-items: start; }
.questions { border-top: 1px solid var(--border); }
.questions details { border-bottom: 1px solid var(--border); }
.questions summary { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; padding: .93rem .14rem; font-weight: 770; cursor: pointer; }
.questions summary::marker, .questions summary::-webkit-details-marker { display: none; content: ""; }
.questions summary::after { content: "+"; flex: none; font-size: 1.22rem; font-weight: 550; }
.questions details[open] summary::after { content: "−"; }
.questions details p { color: var(--muted); padding: 0 .14rem 1rem; }

.download-section { background: #153d31; color: var(--white); }
.download-inner, .download-brand, .footer-inner { display: flex; align-items: center; }
.download-inner { justify-content: space-between; gap: 1.2rem; padding-block: 2.85rem; }
.download-brand { gap: 1rem; }
.download-brand img { border-radius: .9rem; }
.download-brand h2 { font-size: 1.5rem; }
.download-brand p { color: #cddccd; font-size: .9rem; }
.site-footer { background: var(--paper); }
.footer-inner { padding-block: 1.55rem; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-inner small, .footer-inner a { font-size: .875rem; color: var(--muted); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; }
.footer-inner a { text-decoration: none; }
.language-nav a { padding-block: .28rem; }
.language-nav a[aria-current="page"] {
  color: var(--ink); font-weight: 750; text-decoration: underline;
}

@media (max-width: 62rem) {
  .hero-inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .hero-art { min-height: 20rem; }
  .hero-reader { top: 14%; }
  .desktop-break { display: none; }
}

@media (max-width: 48rem) {
  html { scroll-padding-top: 4.1rem; }
  .header-inner { min-height: 3.75rem; gap: .45rem; }
  .header-inner > nav { display: none; }
  .site-header .brand { gap: .45rem; font-size: .95rem; letter-spacing: .015em; }
  .site-header .brand img { width: 2.125rem; }
  .header-actions { gap: .45rem; }
  .header-languages summary { padding-inline: .43rem; gap: .38rem; }
  .hero-inner, .reading-section, .faq-inner { grid-template-columns: 1fr; gap: 1.65rem; }
  .hero-inner { padding-block: 2.65rem 2rem; }
  .hero h1 { font-size: clamp(2.3rem, 9.5vw, 4rem); }
  .hero-description { margin-block: 1rem 1.25rem; }
  .hero-art { width: min(100%, 31rem); min-height: 0; aspect-ratio: 1.53; margin: .35rem auto 0; }
  .hero-reader { top: 4%; right: 4%; }
  .frame-top { left: 0; top: 1%; }
  .frame-bottom { right: 1%; bottom: 1%; }
  .reading-copy { grid-row: 1; }
  .reading-art { width: min(100%, 32rem); margin-inline: auto; min-height: 0; aspect-ratio: 1.42; }
  .faq-inner { gap: 1.3rem; }
  .scan-flow { grid-template-columns: 1fr; gap: 1.1rem; }
  .scan-flow li { display: grid; grid-template-columns: 40% minmax(0, 1fr); align-items: center; gap: .85rem; }
  .scan-flow li:not(:last-child)::after { display: none; }
  .scan-step-copy { padding-top: 0; }
  .scan-options { grid-template-columns: 1fr; }
  .comparison { gap: .7rem; }
  .comparison figcaption { top: .46rem; left: .46rem; padding: .12rem .52rem; }
}

@media (max-width: 28rem) {
  .comparison { grid-template-columns: 1fr; }
  .download-inner { flex-wrap: wrap; }
}

@media (max-width: 23.75rem) {
  .brand span { display: none; }
}
