/* ============================================================
   AmeBook — 产品页
   Palette sampled from the Amebook poster (site/assets/shot-08.png):
   paper #f0e8d6 · cape rust #ba6942 · far-mountain blue #839db4
   pine slate #4e5a61 · path #c1b793
   ============================================================ */

@font-face {
  font-family: "AmeKai";
  src: url("assets/amekai.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* AmeKai is intentionally small; this keeps its handwritten look for glyphs
   it has while covering the remaining Chinese characters consistently. */
@font-face {
  font-family: "AmeKai CJK";
  src: url("assets/lxgw-wenkai-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f0e8d6;
  --paper-deep: #e7ddc5;
  --paper-lift: #f7f1e3;
  --card: #fbf6ea;

  --ink: #232a2e;
  --ink-soft: #4e5a61;
  --ink-faint: #5f5a4a;
  --line: #ddd2b8;
  --line-strong: #c1b793;

  --rust: #ba6942;
  --rust-deep: #8f4b2c;
  --rust-wash: rgba(186, 105, 66, 0.12);
  --blue: #839db4;
  --blue-wash: #d9e0e6;
  --indigo: #3d4a63;
  --sage: #9fa47a;
  --sage-wash: #cfd0b4;

  --night: #1f272b;
  --night-2: #182023;
  --night-ink: #b9bcae;

  --display: "AmeKai", "AmeKai CJK", "LXGW WenKai", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, "Cascadia Mono", Consolas, "PingFang SC", monospace;

  --wrap: 1240px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper tooth: a faint ruled grid, like a layout sheet */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(78, 90, 97, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 90, 97, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 99;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}
.skip:focus { left: 16px; }

.wrap { width: min(var(--wrap), calc(100% - 56px)); margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- shared type ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--rust-deep);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 4px var(--rust-wash);
}
.kicker-light { color: #e0c6ab; }
.kicker-light::before { background: var(--rust); box-shadow: 0 0 0 4px rgba(186, 105, 66, 0.28); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(46px, 5.3vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
h1 em { display: block; color: var(--rust-deep); font-style: normal; }

h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.14;
  margin: 0 0 20px;
}

h3 {
  font-size: clamp(24px, 2.4vw, 31px);
  line-height: 1.34;
  margin: 0 0 16px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease),
    border-color 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }

.btn-primary {
  border-color: var(--rust-deep);
  background: var(--rust-deep);
  color: #fdf7ec;
  box-shadow: 0 12px 24px rgba(143, 75, 44, 0.2);
}
.btn-primary:hover { background: var(--rust); border-color: var(--rust); box-shadow: 0 16px 32px rgba(186, 105, 66, 0.28); }

.btn-ghost { background: rgba(251, 246, 234, 0.7); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--card); }

.btn-plain { border-color: transparent; background: none; color: var(--ink-soft); }
.btn-plain:hover { color: var(--rust-deep); border-color: var(--line); }

.btn-lime {
  border-color: var(--rust);
  background: var(--rust);
  color: #fdf7ec;
  box-shadow: none;
}
.btn-lime:hover { background: #cf7a4f; border-color: #cf7a4f; }

.btn-outline { border-color: rgba(224, 198, 171, 0.5); background: none; color: #e0c6ab; }
.btn-outline:hover { border-color: #e0c6ab; background: rgba(224, 198, 171, 0.1); }

.inline-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--rust-deep);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.inline-link:hover { color: var(--rust); }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(193, 183, 147, 0.72);
  background: rgba(240, 232, 214, 0.86);
  backdrop-filter: blur(18px) saturate(1.2);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand-icon {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.brand-word { display: grid; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; }
.brand-word small {
  margin-top: 5px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
}
.nav-links { display: flex; justify-content: center; gap: 30px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transition: transform 180ms var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { justify-self: end; }

/* ---------- hero ---------- */

.hero { padding: 92px 0 76px; overflow: clip; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: 56px;
}
.hero-copy { max-width: 620px; }
.lede {
  max-width: 560px;
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-faint); font-family: var(--mono); font-size: 11.5px; }
.hero-notes li { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--rust); }

/* the offset colour plane behind the app window — with rain */
.stage { position: relative; min-width: 0; padding: 34px 0 34px 32px; }
.stage-panel {
  position: absolute;
  inset: 0 -120px 0 0;
  z-index: -1;
  overflow: hidden;
  border-radius: 48px 0 0 48px;
  background: linear-gradient(158deg, var(--blue-wash) 0%, var(--sage-wash) 100%);
}
.stage-panel::before,
.stage-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(35, 42, 46, 0.14);
  transform: rotate(16deg);
}
.stage-panel::before { top: -180px; right: 60px; width: 460px; height: 460px; border-radius: 44%; }
.stage-panel::after { right: 290px; bottom: -230px; width: 500px; height: 500px; border-radius: 50%; }

.rain {
  position: absolute;
  inset: -40% -10%;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    74deg,
    rgba(255, 255, 255, 0.72) 0px,
    rgba(255, 255, 255, 0.72) 1px,
    transparent 1px,
    transparent 26px
  );
  background-size: 100% 220px;
  animation: rainfall 3.4s linear infinite;
}
@keyframes rainfall {
  from { background-position: 0 0; }
  to { background-position: -80px 220px; }
}

.win {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(35, 42, 46, 0.7);
  border-radius: 9px;
  background: #14161a;
  box-shadow: 0 28px 62px rgba(35, 42, 46, 0.26);
}
.win-tilt { transform: rotate(1.1deg); animation: lift 800ms var(--ease) both; }
.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-bottom: 1px solid #2f3238;
  color: #9a9489;
  font-family: var(--mono);
  font-size: 9px;
}
.win-bar i { width: 7px; height: 7px; border-radius: 50%; background: #7f7a74; }
.win-bar i:nth-child(2) { background: var(--rust); }
.win-bar i:nth-child(3) { background: var(--sage); }
.win-bar span { margin-left: 8px; }
.win img { width: 100%; }

.stage-cap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 12px 4px 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10.5px;
}
.stage-cap b { font-family: var(--display); font-size: 13px; font-weight: 400; color: var(--rust-deep); }

/* ---------- download rail + stats ---------- */

.rail-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.rail {
  display: grid;
  grid-template-columns: minmax(210px, 0.62fr) 1.38fr;
  align-items: center;
  gap: 44px;
  padding: 44px 0 38px;
}
.rail-title { margin: 0 0 6px; font-family: var(--display); font-size: 26px; line-height: 1.3; }
.rail-sub { margin: 0; color: var(--ink-faint); font-size: 11px; }
.rail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }

.plat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-strong);
}
.plat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 14px;
}
.plat-txt { display: grid; gap: 4px; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.plat-txt small { color: var(--ink-faint); font-size: 10.5px; font-weight: 400; letter-spacing: 0.02em; }
.plat-state { color: var(--ink-faint); font-size: 11px; }
.plat.is-ready .plat-icon { border-color: var(--rust); color: var(--rust-deep); background: var(--rust-wash); }
.plat:not(.is-ready):not(.is-alt) { opacity: 0.56; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 30px 0 36px;
  border-top: 1px solid var(--line-strong);
}
.stats li { display: grid; gap: 4px; }
.stats b {
  font-family: var(--display);
  font-size: clamp(38px, 4.2vw, 54px);
  font-weight: 400;
  line-height: 1;
  color: var(--rust-deep);
}
.stats b i { font-family: var(--mono); font-size: 15px; font-style: normal; letter-spacing: 0.02em; }
.stats span { color: var(--ink-soft); font-size: 12.5px; }

/* ---------- why ---------- */

.why { padding: 110px 0; }
.why-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) 1.28fr;
  align-items: start;
  gap: 72px;
}
.poster {
  position: sticky;
  top: 108px;
  margin: 0;
  border: 1px solid var(--line-strong);
  background: var(--card);
  box-shadow: 16px 16px 0 rgba(186, 105, 66, 0.16);
  transform: rotate(-1.2deg);
}
.poster img { width: 100%; }
.poster figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.why-copy { display: grid; gap: 56px; }
.why-copy p { max-width: 620px; color: var(--ink-soft); font-family: var(--display); font-size: 18.5px; line-height: 1.9; }
.why-copy p.kicker { font-family: var(--mono); font-size: 11px; color: var(--rust-deep); }
.why-copy em { color: var(--ink); font-style: normal; box-shadow: inset 0 -0.5em 0 var(--rust-wash); }

.flip-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 20px; background: var(--line-strong); border: 1px solid var(--line-strong); }
.flip-col { padding: 22px 24px; background: var(--paper); }
.flip-col p.mono { margin: 0 0 10px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.flip-col p:not(.mono) { margin: 0; font-family: var(--sans); font-size: 14.5px; line-height: 1.85; }
.flip-col.is-off p:not(.mono) { color: var(--ink-faint); }
.flip-col.is-on { background: var(--card); }
.flip-col.is-on p.mono { color: var(--rust-deep); }
.flip-col.is-on p:not(.mono) { color: var(--ink); }
.flip-note { max-width: 620px; margin: 0 0 14px; font-family: var(--sans) !important; font-size: 14.5px !important; line-height: 1.9 !important; color: var(--ink-soft); }

/* ---------- how ---------- */

.how { padding: 8px 0 110px; }
.sec-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 96px 0 8px;
}
.sec-note { max-width: 300px; margin: 0; color: var(--ink-faint); font-size: 13.5px; line-height: 1.85; }

.step {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 64px;
  padding: 62px 0;
  border-top: 1px solid var(--line);
}
.step.is-flip .step-copy { order: 2; }
.step.is-flip .step-visual { order: 1; }
.step-no { margin: 0 0 14px; color: var(--rust-deep); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; }
.step-copy p { max-width: 540px; color: var(--ink-soft); font-size: 15px; line-height: 1.92; }
.step-rule {
  padding: 16px 20px;
  border-left: 2px solid var(--rust);
  background: var(--rust-wash);
  color: var(--ink) !important;
  font-size: 14.5px !important;
}
.step-rule b { font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chips li {
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 12.5px;
  transition: border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.chips li:hover { transform: translateY(-2px); border-color: var(--rust); color: var(--rust-deep); }

.step-visual { position: relative; min-width: 0; }
.step-visual .win { transition: transform 260ms var(--ease), box-shadow 260ms var(--ease); }
.step-visual .win:hover { transform: translateY(-6px); box-shadow: 0 34px 70px rgba(35, 42, 46, 0.3); }

.shot-inset {
  position: absolute;
  right: -18px;
  bottom: -46px;
  width: 33%;
  max-width: 220px;
  margin: 0;
  padding: 8px 8px 0;
  border: 1px solid var(--line-strong);
  background: var(--card);
  box-shadow: 0 18px 40px rgba(35, 42, 46, 0.18);
  transform: rotate(2deg);
}
.shot-inset img { width: 100%; max-height: 260px; object-fit: cover; object-position: top; }
.shot-inset figcaption { padding: 8px 2px 9px; color: var(--ink-faint); font-size: 9.5px; letter-spacing: 0.04em; }

/* ---------- local ---------- */

.local { padding: 100px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.local-lede { max-width: 420px; margin: 0 0 26px; color: var(--ink-soft); font-family: var(--display); font-size: 18px; line-height: 1.9; }
.local-list { display: grid; gap: 0; }
.local-list li { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.local-list li:first-child { padding-top: 0; }
.local-list b { font-family: var(--display); font-size: 20px; font-weight: 400; }
.local-list span { color: var(--ink-soft); font-size: 14px; line-height: 1.85; }

/* ---------- ame ---------- */

.ame { padding: 118px 0; }
.ame-inner { max-width: 760px; margin-inline: auto; text-align: center; }
.ame .kicker { margin-bottom: 26px; }
.ame-lead { font-family: var(--display); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.5; margin: 0 0 32px; }
.ame blockquote { margin: 0 0 32px; padding: 0; }
.ame blockquote p {
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 2;
}
.ame-close {
  display: inline-block;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
  color: var(--rust-deep);
  font-family: var(--display);
  font-size: clamp(19px, 2.1vw, 25px);
}

/* ---------- get ---------- */

.get { background: var(--night); color: #ddd8c8; }
.get-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; padding: 104px 0 116px; }
.get h2 { color: #f2ebdb; }
.get-lede { max-width: 420px; margin: 0 0 26px; color: var(--night-ink); font-family: var(--display); font-size: 17.5px; line-height: 1.9; }
.get-note { margin: 0; padding-top: 20px; border-top: 1px solid rgba(186, 105, 66, 0.42); color: #9aa096; font-size: 11px; }
.get-note b { color: var(--rust); font-weight: 600; }

.get-list .plat { border-bottom-color: rgba(186, 105, 66, 0.3); }
.get-list .plat-icon { border-color: rgba(224, 198, 171, 0.4); color: #d8c3a9; }
.get-list .plat.is-ready .plat-icon { border-color: var(--rust); background: rgba(186, 105, 66, 0.22); color: #f0cdb1; }
.get-list .plat-txt { color: #e6e0cf; }
.get-list .plat-txt small { color: #9aa096; }
.get-list .plat-state { color: #8f958b; }
.get-list .plat.is-alt { border-bottom: none; padding-top: 22px; }

/* ---------- footer ---------- */

footer { background: var(--night-2); color: #8d9289; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; font-size: 11px; }
.foot-brand { font-family: var(--display); font-size: 18px; color: var(--rust); }

/* ---------- author ---------- */

.author {
  border-top: 1px solid var(--line);
  background: var(--paper-lift);
}
.author-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: 86px;
  padding: 96px 0 104px;
}
.author h2 { max-width: 560px; }
.author-lede {
  max-width: 590px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.85;
}
.author-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.author-projects { align-self: end; }
.author-projects > .kicker { margin-bottom: 7px; }
.author-list { border-top: 1px solid var(--line-strong); }
.author-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-strong);
  transition: padding 180ms var(--ease), color 180ms var(--ease), background 180ms var(--ease);
}
.author-list a:hover { padding-inline: 10px; color: var(--rust-deep); background: rgba(186, 105, 66, 0.08); }
.author-project-name { display: block; font-family: var(--display); font-size: 22px; line-height: 1.2; }
.author-project-meta { display: block; margin-top: 4px; color: var(--ink-faint); font-family: var(--mono); font-size: 10px; line-height: 1.5; }
.author-project-arrow { color: var(--rust-deep); font-family: var(--mono); font-size: 16px; transition: transform 180ms var(--ease); }
.author-list a:hover .author-project-arrow { transform: translate(3px, -3px); }

/* ---------- motion ---------- */

[data-reveal] { opacity: 0; transform: translateY(20px); }
[data-reveal].in { opacity: 1; transform: none; transition: opacity 720ms var(--ease), transform 720ms var(--ease); }
.hero [data-reveal].in { transition-delay: 60ms; }
.hero .stage[data-reveal].in { transition-delay: 180ms; }

@keyframes lift {
  from { opacity: 0; transform: translate(22px, 16px) rotate(1.1deg); }
  to { opacity: 1; transform: translate(0, 0) rotate(1.1deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .rain { display: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .stage { padding-left: 0; }
  .stage-panel { right: -36px; border-radius: 40px; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .poster { position: static; max-width: 420px; }
  .step, .step.is-flip { grid-template-columns: 1fr; gap: 40px; }
  .step.is-flip .step-copy, .step.is-flip .step-visual { order: 0; }
  .rail { grid-template-columns: 1fr; gap: 26px; padding-bottom: 30px; }
  .local-grid, .get-grid, .author-grid { grid-template-columns: 1fr; gap: 44px; }
  .shot-inset { right: -12px; bottom: -34px; }
}

@media (max-width: 900px) {
  .wrap { width: min(100% - 36px, 680px); }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { padding: 68px 0 60px; }
  .why, .local { padding: 78px 0; }
  .how { padding-bottom: 78px; }
  .sec-head { display: block; padding-top: 72px; }
  .sec-note { margin-top: 18px; }
  .ame { padding: 88px 0; }
  .get-grid, .author-grid { padding: 80px 0 88px; }
  .rail-list { grid-template-columns: 1fr; gap: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 24px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .brand-word small { display: none; }
  h1 { font-size: clamp(40px, 12.5vw, 62px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .flip-pair { grid-template-columns: 1fr; }
  .step { padding: 44px 0; }
  .shot-inset { position: static; width: 100%; max-width: none; margin-top: 18px; transform: none; }
  .shot-inset img { max-height: 200px; }
  .plat { grid-template-columns: auto 1fr; row-gap: 12px; }
  .plat .btn, .plat-state { grid-column: 2; justify-self: start; }
  .stats b { font-size: 36px; }
  .foot { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 22px 0; }
}
