/* ===================================================================
   Readflow site — "paper & ink"
   Calm, editorial, matching the app: warm paper surfaces, ink text,
   serif display type, one blue accent (the app's gloss color), and
   the dog mark on a warm gradient tile.
   =================================================================== */

:root {
  color-scheme: light;
  --bg: #faf8f4;
  --bg-soft: #f3f0e9;
  --card: #ffffff;
  --text: #1e1c18;
  --muted: #6e6a61;
  --line: rgba(30, 28, 24, 0.12);
  --hairline: rgba(30, 28, 24, 0.08);
  --nav-bg: rgba(250, 248, 244, 0.8);
  --blue: #2e64c7;
  --blue-soft: rgba(46, 100, 199, 0.09);
  --gold: #c9a23f;
  --tile-grad: linear-gradient(160deg, #e38150, #c84032);
  --ph-bg: #ffffff;
  --ph-text: #1d1d1f;
  --ph-muted: #6e6e73;
  --ph-soft: #f3f2ee;
  --ph-paper: #fffdf8;
  --ph-body: #2b2b2e;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-book: "New York", "Iowan Old Style", Georgia, "Songti SC", "Noto Serif SC", serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111113;
  --bg-soft: #18181b;
  --card: #1c1c1f;
  --text: #edeae4;
  --muted: #9b978e;
  --line: rgba(237, 234, 228, 0.14);
  --hairline: rgba(237, 234, 228, 0.08);
  --nav-bg: rgba(17, 17, 19, 0.78);
  --blue: #86a9ea;
  --blue-soft: rgba(134, 169, 234, 0.13);
  --gold: #d4b060;
  --ph-bg: #1c1c1e;
  --ph-text: #f5f5f7;
  --ph-muted: #98989d;
  --ph-soft: #2c2c2e;
  --ph-paper: #1c1c1e;
  --ph-body: #d8d8dc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a { color: inherit; text-decoration: none; }

/* Display type: serif, like the app's reading surfaces */
h1, h2, .brand-word, .brand-sm, .legal h1 {
  font-family: var(--font-book);
  font-weight: 600;
}

/* ---------- nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -0.01em; font-family: var(--font-book); font-weight: 600; }
.brand-tile {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--tile-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.25), 0 1px 3px rgba(120, 40, 20, 0.3);
}
.brand-tile img { display: block; width: 24px; height: 24px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.lang-toggle, .theme-toggle {
  font: inherit;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
}
.lang-toggle { padding: 3px 12px; }
.theme-toggle {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.lang-toggle:hover, .theme-toggle:hover { color: var(--text); border-color: var(--muted); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 500px) auto;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 130px 24px 90px;
  position: relative;
}
.hero-icon {
  width: 76px; height: 76px;
  border-radius: 20px;
  background: var(--tile-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.3),
    0 2px 6px rgba(120, 40, 20, 0.22),
    0 14px 32px -14px rgba(120, 40, 20, 0.45);
  margin-bottom: 30px;
}
.hero-icon img { width: 64px; height: 64px; }
.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.015em;
}
.hero-sub {
  margin-top: 22px;
  font-size: 17px;
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.75;
}
.hero-badges { margin-top: 36px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  border-radius: 14px;
  padding: 10px 20px;
  cursor: default;
  user-select: none;
}
.badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.badge-text small { font-size: 10px; opacity: 0.75; }
.badge-text strong { font-size: 16px; font-weight: 600; }
.free-note { font-size: 13px; color: var(--muted); }
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--muted);
  animation: hint-bob 2.4s ease-in-out infinite;
}
@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ---------- phone mock ---------- */
.phone {
  width: 300px;
  height: 620px;
  border-radius: 48px;
  background: #0c0c0d;
  padding: 9px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 30px 70px -24px rgba(30, 24, 12, 0.4);
  flex-shrink: 0;
}
[data-theme="dark"] .phone {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 24px 60px -20px rgba(0, 0, 0, 0.8);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  background: var(--ph-bg);
  color: var(--ph-text);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px 4px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.island {
  width: 78px; height: 22px;
  background: #0c0c0d;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.sb-right { width: 34px; height: 10px; border-radius: 3px; background: var(--ph-text); opacity: 0.85; }

.app-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 18px 10px;
}
.app-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- scroll scenes ---------- */
.scene { min-height: 100vh; }
.pin {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pin-inner {
  display: flex;
  align-items: center;
  gap: 88px;
  padding: 0 24px;
  max-width: 1080px;
}
#scene-simplify { border-top: 1px solid var(--hairline); }
#scene-explain { background: var(--bg-soft); }

.scene-copy { max-width: 400px; }
.kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
}
.scene-copy h2, .features-title, .pricing-title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-top: 12px;
}
.steps { margin-top: 32px; list-style: none; }
.steps li {
  position: relative;
  padding: 10px 0 10px 24px;
  color: var(--muted);
  opacity: 0.4;
  transition: opacity 0.4s ease;
  font-size: 15px;
}
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  transition: background 0.4s ease, opacity 0.4s ease;
}
.steps li strong { display: block; color: var(--text); font-size: 15px; }
.steps li.active { opacity: 1; }
.steps li.active::before { background: var(--blue); opacity: 1; }

/* reader page inside phone */
.reader-page { padding: 26px 22px; font-family: var(--font-book); background: var(--ph-paper); flex: 1; transition: background 0.3s ease; }
.reader-screen { background: var(--ph-paper); }
.reader-title {
  font-size: 19px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.reader-p { font-size: 14.5px; line-height: 1.85; margin-bottom: 14px; color: var(--ph-body); }

/* inline gloss — the app's Simple tier */
.gl { color: var(--blue); }
.gl i { font-style: normal; opacity: 0.75; font-size: 0.92em; }

/* demo sentence states */
.demo-sentence { position: relative; transition: opacity 0.25s ease; border-radius: 3px; }
.demo-sentence.swapping { opacity: 0; }
.demo-sentence.st-verysimple { color: var(--blue); }
.demo-sentence.shimmer {
  background-image: linear-gradient(100deg, transparent 30%, var(--blue-soft) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: shimmer-sweep 1.1s linear infinite;
}
@keyframes shimmer-sweep {
  from { background-position: 130% 0; }
  to { background-position: -90% 0; }
}

/* tap pulse */
.tap-dot {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(46, 100, 199, 0.25);
  border: 2px solid rgba(46, 100, 199, 0.5);
  margin-left: -30px;
  margin-top: 2px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.4);
}
.tap-dot.pulse { animation: tap-pulse 0.6s ease-out; }
@keyframes tap-pulse {
  0% { opacity: 0; transform: scale(0.4); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* ---------- scene: review ---------- */
.review-screen {
  position: absolute;
  inset: 0;
  padding-top: 34px;
  display: flex;
  flex-direction: column;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.story-screen {
  position: absolute;
  inset: 0;
  padding-top: 34px;
  background: var(--ph-paper);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s ease;
}
.saved-card {
  margin: 6px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ph-soft);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.saved-card small { font-size: 10px; color: var(--ph-muted); }
.saved-card p { font-size: 12.5px; line-height: 1.5; font-family: var(--font-book); margin-top: 3px; }
.saved-card mark { background: rgba(201, 162, 63, 0.28); color: inherit; border-radius: 2px; padding: 0 1px; }
.sc-2 { transition-delay: 0.12s; }
.sc-3 { transition-delay: 0.24s; }

.generate-btn {
  margin: 18px 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ph-bg);
  background: var(--ph-text);
  border: none;
  border-radius: 12px;
  padding: 12px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
  position: relative;
  overflow: hidden;
  pointer-events: none;
}
.generate-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(46, 100, 199, 0.5) 45%, rgba(201, 162, 63, 0.45) 58%, transparent 75%);
  background-size: 250% 100%;
  background-position: 130% 0;
  opacity: 0;
}
.story-meta { display: block; text-align: center; font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ph-muted); margin-bottom: 8px; }
.story-p {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.rp {
  border-bottom: 2px dotted var(--blue);
  padding-bottom: 1px;
}

/* stage classes set by JS on #scene-review */
.scene[data-scene="review"].rv-0 .saved-card,
.scene[data-scene="review"].rv-1 .saved-card,
.scene[data-scene="review"].rv-0 .generate-btn,
.scene[data-scene="review"].rv-1 .generate-btn {
  opacity: 1;
  transform: translateY(0);
}
.scene[data-scene="review"].rv-1 .generate-btn::after {
  opacity: 1;
  animation: gen-sweep 1.4s linear infinite;
}
.scene[data-scene="review"].rv-1 .saved-card {
  opacity: 0.35;
  transform: translateY(0) scale(0.97);
}
@keyframes gen-sweep {
  from { background-position: 130% 0; }
  to { background-position: -150% 0; }
}
.scene[data-scene="review"].rv-2 .review-screen {
  opacity: 0;
  transform: translateY(-16px);
}
.scene[data-scene="review"].rv-2 .story-screen {
  opacity: 1;
  transform: translateY(0);
}
.scene[data-scene="review"].rv-2 .story-p { opacity: 1; transform: translateY(0); }
.scene[data-scene="review"].rv-2 .story-p:nth-of-type(2) { transition-delay: 0.25s; }
.scene[data-scene="review"].rv-2 .story-p:nth-of-type(3) { transition-delay: 0.5s; }

/* ---------- scene: explain (study card) ---------- */
.study-screen { background: var(--ph-paper); }
.study-page { padding: 16px 16px; flex: 1; overflow: hidden; }
.study-src { display: block; font-size: 10px; letter-spacing: 0.04em; color: var(--ph-muted); margin-bottom: 7px; }
.study-original {
  font-family: var(--font-book);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ph-body);
}
.kp {
  border-radius: 3px;
  padding: 0 2px;
  transition: background 0.5s ease, color 0.5s ease;
}
.scene[data-scene="explain"]:is(.ex-1, .ex-2, .ex-3) .kp {
  background: var(--blue-soft);
  color: var(--blue);
}

.study-btn {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 12px;
  padding: 12px;
  max-height: 60px;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, max-height 0.5s ease, margin 0.5s ease, padding 0.5s ease;
}
.scene[data-scene="explain"]:is(.ex-1, .ex-2, .ex-3) .study-btn {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.study-card {
  margin-top: 11px;
  padding: 12px 13px 4px;
  border-radius: 14px;
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scene[data-scene="explain"]:is(.ex-1, .ex-2, .ex-3) .study-card {
  opacity: 1;
  transform: translateY(0);
}
.study-sec {
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.scene[data-scene="explain"]:is(.ex-1, .ex-2, .ex-3) .study-meaning,
.scene[data-scene="explain"]:is(.ex-2, .ex-3) .study-keylang,
.scene[data-scene="explain"].ex-3 .study-takeaway {
  opacity: 1;
  transform: translateY(0);
}
.study-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.study-sec > p {
  font-family: var(--font-book);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
  color: var(--ph-body);
}
.kl-item { margin-top: 7px; }
.kl-item:first-of-type { margin-top: 5px; }
.kl-phrase {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 2px 7px;
  border-radius: 7px;
}
.kl-gloss {
  margin-top: 3px;
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.35;
  color: var(--ph-muted);
}
.kl-eg {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  margin-top: 3px;
  font-family: var(--font-book);
  font-size: 11px;
  line-height: 1.35;
  font-style: italic;
  color: var(--ph-body);
  opacity: 0.85;
}
.kl-eg svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }

/* ---------- library: formats + reading fit ---------- */
.formats { padding: 150px 24px; border-top: 1px solid var(--hairline); }
.formats-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 88px;
  flex-wrap: wrap;
}
.body-copy { margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.format-chips { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.fchip {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
}

.fit-card {
  width: 340px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 22px 48px -30px rgba(30, 24, 12, 0.35);
}
.fit-head { display: flex; align-items: center; gap: 13px; }
.fit-cover {
  width: 46px; height: 66px;
  border-radius: 7px;
  background: var(--tile-grad);
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-book);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.25);
}
.fit-head strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.fit-head small { color: var(--muted); font-size: 12px; }
.fit-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #2c7a4b;
  background: rgba(44, 122, 75, 0.12);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
[data-theme="dark"] .fit-badge { color: #7fd4a1; background: rgba(127, 212, 161, 0.14); }
.fit-rows { margin-top: 18px; display: flex; flex-direction: column; gap: 11px; }
.fit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--muted);
}
.fit-row strong { color: var(--text); font-weight: 600; font-size: 13.5px; }
.fit-meter {
  width: 130px;
  height: 5px;
  border-radius: 3px;
  background: var(--bg-soft);
  overflow: hidden;
}
[data-theme="dark"] .fit-meter { background: #2a2a2e; }
.fit-meter i { display: block; height: 100%; border-radius: 3px; background: var(--blue); }
.fit-note {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- features ---------- */
.features { padding: 70px 24px 150px; max-width: 1080px; margin: 0 auto; }
.features-title { text-align: center; margin-bottom: 60px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.fcard {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -28px rgba(30, 24, 12, 0.45);
}
.fcard svg {
  display: block;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 10px;
  border-radius: 13px;
  box-sizing: content-box;
}
.fcard h3 { margin-top: 14px; font-size: 16px; letter-spacing: -0.01em; }
.fcard p { margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }

/* ---------- pricing ---------- */
.pricing { padding: 130px 24px 150px; background: var(--bg-soft); border-top: 1px solid var(--hairline); }
.pricing-title { text-align: center; }
.pricing-sub {
  text-align: center;
  margin: 16px auto 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16px;
}
.price-cards {
  margin: 52px auto 0;
  max-width: 780px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.price-card h3 { font-size: 18px; letter-spacing: -0.01em; }
.price-line { margin-top: 10px; }
.price-line strong {
  font-family: var(--font-book);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.price-line strong small { font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.price-alt { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.price-card ul { margin-top: 20px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price-card li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--muted);
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 10px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(40deg);
}
.price-card.plus {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
  box-shadow: 0 30px 60px -34px rgba(30, 24, 12, 0.7);
}
.price-card.plus h3 { color: var(--bg); }
.price-card.plus li, .price-card.plus .price-alt { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.price-card.plus li::before { border-color: var(--gold); }
.price-card.plus .price-line strong small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.plus-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.price-fine {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px;
  color: color-mix(in srgb, var(--bg) 62%, transparent);
}

/* ---------- closing + footer ---------- */
.closing { text-align: center; padding: 140px 24px 150px; border-top: 1px solid var(--hairline); }
.closing-icon {
  width: 58px; height: 58px;
  border-radius: 15px;
  background: var(--tile-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.3),
    0 12px 28px -12px rgba(120, 40, 20, 0.5);
  margin-bottom: 26px;
}
.closing-icon img { width: 48px; height: 48px; }
.closing h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.01em;
}
.closing p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.closing .hero-badges { justify-content: center; margin-top: 32px; }

.site-footer { border-top: 1px solid var(--hairline); padding: 56px 24px 32px; }
.footer-cols {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.fcol { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.fcol strong { font-size: 14px; }
.brand-sm { font-size: 18px; }
.footer-tag { color: var(--muted); max-width: 28ch; }
.fcol a { color: var(--muted); }
.fcol a:hover { color: var(--text); }
.copyright {
  max-width: 1080px;
  margin: 40px auto 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- legal pages ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 130px 24px 100px;
}
.legal h1 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.01em;
}
.legal-date { margin-top: 10px; color: var(--muted); font-size: 14px; }
.legal-lead {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}
.legal h2 {
  margin-top: 38px;
  font-size: 20px;
  letter-spacing: -0.01em;
  font-family: var(--font-book);
  font-weight: 600;
}
.legal p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal ul { margin-top: 12px; padding-left: 22px; }
.legal li { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal a { color: var(--blue); }
.legal a:hover { text-decoration: underline; }

/* ---------- reveal on view ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.inview { opacity: 1; transform: translateY(0); }
.feature-grid .fcard:nth-child(2) { transition-delay: 0.06s; }
.feature-grid .fcard:nth-child(3) { transition-delay: 0.12s; }
.feature-grid .fcard:nth-child(4) { transition-delay: 0.18s; }
.feature-grid .fcard:nth-child(5) { transition-delay: 0.24s; }
.feature-grid .fcard:nth-child(6) { transition-delay: 0.3s; }
.feature-grid .fcard:nth-child(7) { transition-delay: 0.36s; }
.feature-grid .fcard:nth-child(8) { transition-delay: 0.42s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding-top: 110px;
  }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; }
  .hero-phone { display: flex; justify-content: center; }
  .pin-inner { flex-direction: column; gap: 28px; }
  .scene-copy { text-align: center; max-width: 460px; }
  .steps { display: none; }
  .scene-copy .stage-note { display: block; }
  .phone { width: 250px; height: 516px; }
  .phone-screen { border-radius: 34px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .formats-inner { gap: 48px; }
  .price-cards { grid-template-columns: 1fr; max-width: 420px; }
}

/* On phones the step rail is hidden; show a single live caption instead */
.stage-note {
  display: none;
  margin-top: 18px;
  min-height: 3.2em;
  color: var(--muted);
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .saved-card, .story-p, .generate-btn,
  .study-card, .study-sec, .study-btn, .kp { transition: none; }
  .scroll-hint { animation: none; }
  .demo-sentence.shimmer { animation: none; background-image: none; }
}

/* ICP filing notice — required in the footer of a China-hosted site. */
.icp { margin-top: 4px; text-align: center; font-size: 0.78rem; opacity: 0.6; }
.icp a { color: inherit; text-decoration: none; }
.icp a:hover { text-decoration: underline; }
