/* ReadFlow website · design tokens come from the approved app icon */
:root {
  --paper: #F2EEE6;
  --paper-2: #EAE4D8;
  --card: #FBF9F4;
  --ink: #1B2B27;
  --muted: #5B6863;
  --green: #24473F;
  --terra: #C2674A;
  --peach: #D9A978;
  --line: rgba(36, 71, 63, .14);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(27, 43, 39, .05), 0 12px 32px rgba(27, 43, 39, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.7; font-size: 17px; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: min(100% - 40px, 1120px); margin: 0 auto; }
.narrow { width: min(100% - 40px, 760px); margin: 0 auto; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(242, 238, 230, .74); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); border-bottom: 1px solid rgba(36, 71, 63, .10); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .45); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.015em; }
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 6px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a { text-decoration: none; padding: 7px 14px; border-radius: 999px; transition: background .2s cubic-bezier(.22, 1, .36, 1), color .2s ease; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .58); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; background: var(--green); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 16px; border: 1.5px solid var(--green); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 14px rgba(27, 43, 39, .10); transition: transform .22s cubic-bezier(.22, 1, .36, 1), background .18s ease, box-shadow .22s ease; }
.btn:hover { background: #1c3a33; transform: translateY(-1.5px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 22px rgba(27, 43, 39, .16); }
.btn:active { transform: scale(.97); }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-big { padding: 17px 34px; font-size: 18px; }
.btn-ghost { background: rgba(255, 255, 255, .45); color: var(--green); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .78); }
.btn-light { background: rgba(251, 249, 244, .95); color: var(--green); border-color: rgba(255, 255, 255, .8); }
.btn-light:hover { background: #fff; }
.btn-outline-light { background: rgba(255, 255, 255, .10); color: var(--paper); border-color: rgba(242, 238, 230, .42); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .20); color: #fff; }
.btn-apple { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-apple:hover { background: #101a17; }
.btn-android { background: rgba(251, 249, 244, .72); color: var(--green); border-color: rgba(36, 71, 63, .36); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 4px 14px rgba(27, 43, 39, .06); }
.btn-android:hover { background: rgba(255, 255, 255, .92); border-color: var(--green); }
.btn-disabled, .btn:disabled { background: #e0dad1 !important; border-color: #d1c8bd !important; color: #827b72 !important; cursor: not-allowed !important; transform: none !important; box-shadow: none !important; }
.banner-notice { background: rgba(194, 103, 74, .08); border: 1px solid rgba(194, 103, 74, .25); border-radius: 12px; padding: 14px 18px; margin: 16px 0 20px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.banner-notice strong { color: var(--terra); }
.legal-content { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px; margin: 32px 0 64px; line-height: 1.8; color: var(--ink); }
.legal-content h1 { font-size: 28px; margin-bottom: 16px; }
.legal-content h2 { font-size: 20px; margin: 36px 0 14px; border-bottom: 1px solid var(--line); padding-bottom: 8px; color: var(--green); }
.legal-content h3 { font-size: 16px; margin: 24px 0 10px; }
.legal-content p { margin-bottom: 16px; }
.legal-content ul, .legal-content ol { margin: 12px 0 18px 24px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--green); text-decoration: underline; }
@media (max-width: 600px) { .legal-content { padding: 24px 18px; margin: 20px 0 40px; } }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-more { color: var(--green); font-weight: 600; text-decoration: none; margin-left: 6px; }
.link-more:hover { text-decoration: underline; }

/* ---------- type ---------- */
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); font-weight: 700; margin-bottom: 14px; }
h1 { font-size: clamp(32px, 5.2vw, 50px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
h1 .nb { white-space: nowrap; }
.h1-md { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.25; letter-spacing: -.015em; font-weight: 800; }
.h2-sm { font-size: 22px; margin: 52px 0 16px; }
h3 { font-size: 20px; line-height: 1.35; font-weight: 700; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin-top: 22px; max-width: 34em; }
.sub { color: var(--muted); margin-top: 14px; max-width: 36em; }
.para { color: var(--muted); margin-top: 12px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }
.center { text-align: center; max-width: 40em; margin: 28px auto 0; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.cta-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-art { position: relative; padding: 12px 0 24px; display: flex; align-items: center; justify-content: center; }
.orbs { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .24; pointer-events: none; }
.hero-showcase { position: relative; z-index: 1; width: 100%; max-width: 470px; padding-right: 16%; padding-bottom: 18px; }
.device-frame { margin: 0; background: #fff; border: 1px solid rgba(27, 43, 39, .14); overflow: hidden; box-shadow: 0 2px 6px rgba(27, 43, 39, .06), 0 18px 40px rgba(27, 43, 39, .14); transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease; }
.device-frame:hover { transform: translateY(-4px); box-shadow: 0 6px 14px rgba(27, 43, 39, .09), 0 24px 48px rgba(27, 43, 39, .18); }
.device-frame img { width: 100%; height: auto; display: block; }
.device-tablet { border-radius: 18px; }
.device-phone { border-radius: 24px; border: 5px solid #1B2B27; box-shadow: 0 4px 10px rgba(27, 43, 39, .12), 0 20px 44px rgba(27, 43, 39, .22); }
.hero-main-shot { width: 88%; }
.hero-float-shot { position: absolute; right: 0; bottom: 0; width: 41%; z-index: 2; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-2); }
.section-head { margin-bottom: 44px; }

/* flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.flow li { position: relative; padding: 26px 22px 24px; background: rgba(251, 249, 244, .82); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border: 1px solid rgba(36, 71, 63, .12); border-radius: 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 6px 20px rgba(27, 43, 39, .04); transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease; }
.flow li:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 14px 30px rgba(27, 43, 39, .08); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -21px; width: 22px; height: 2px; background: var(--terra); }
.num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--terra); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 16px; flex: none; }
.flow li:nth-child(2) .num { background: var(--green); }
.flow li:nth-child(3) .num { background: var(--peach); color: var(--ink); }
.flow li:nth-child(4) .num { background: var(--ink); }
.flow p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* cards */
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: rgba(251, 249, 244, .82); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border: 1px solid rgba(36, 71, 63, .12); border-radius: 24px; padding: 30px 28px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 6px 20px rgba(27, 43, 39, .04); transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease; }
.card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 14px 30px rgba(27, 43, 39, .08); }
.card .tag { color: var(--terra); font-weight: 600; font-size: 14px; margin: 6px 0 14px; }
.card p:not(.tag):not(.fine) { color: var(--muted); font-size: 16px; }
.plain li { padding: 7px 0 7px 22px; position: relative; color: var(--ink); border-bottom: 1px dashed var(--line); }
.plain li:last-child { border-bottom: 0; }
.plain li::before { content: ""; position: absolute; left: 0; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.cards.two .card:nth-child(2) .plain li::before { background: var(--terra); }

/* scenes */
.scene { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 40px 0; }
.scene + .scene { border-top: 1px solid var(--line); }
.scene.reverse .scene-copy { order: 2; }
.scene h3 { margin-bottom: 10px; }
.scene-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--green); background: rgba(36, 71, 63, .09); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.ticks li { position: relative; padding: 6px 0 6px 28px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border-left: 2px solid var(--terra); border-bottom: 2px solid var(--terra); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.chips span { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }

.scene-art { min-height: 260px; border-radius: 28px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; padding: 26px; border: 1px solid var(--line); overflow: hidden; }
.shot-stage { position: relative; }
.shot-pair { gap: 18px; align-items: flex-start; padding: 28px 24px; }
.shot-pair .device-phone { width: 46%; max-width: 204px; border-width: 4px; border-radius: 22px; }
.shot-pair .pair-offset { margin-top: 22px; }
.shot-combo { display: block; padding: 26px 24px 30px; }
.shot-combo .combo-back { width: 86%; }
.shot-combo .combo-front { position: absolute; right: 20px; bottom: 18px; width: 35%; max-width: 166px; border-width: 4px; border-radius: 20px; }
.shot-tablet-only { padding: 24px; }
.shot-tablet-only .device-tablet { width: 100%; }

/* cta band */
.cta-band { background: var(--green); color: var(--paper); padding: 64px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band p { color: rgba(242, 238, 230, .78); margin-top: 8px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--terra); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin-top: 12px; }

/* ---------- download page ---------- */
.dl-hero { padding-top: 64px; }
.dl-card { margin-top: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.dl-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 22px; margin-bottom: 20px; }
.pill { font-size: 13px; font-weight: 700; color: var(--green); background: rgba(36, 71, 63, .1); padding: 3px 12px; border-radius: 999px; }
.dl-hint { margin-top: 14px; font-size: 14px; color: var(--muted); }
.dl-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line); }
.dl-meta dt { font-size: 13px; color: var(--muted); }
.dl-meta dd { font-weight: 700; margin-top: 2px; }
.hash { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding: 14px 16px; background: var(--paper); border-radius: 12px; }
.hash-label { font-size: 13px; font-weight: 700; color: var(--terra); }
.hash code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13px; word-break: break-all; flex: 1 1 260px; }
.btn-copy { border: 1px solid var(--green); background: transparent; color: var(--green); border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-copy:hover { background: rgba(36, 71, 63, .08); }
.steps li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps p { color: var(--muted); margin-top: 4px; }
.steps .num { margin-bottom: 0; }
.code { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.7; margin: 12px 0 0; }
.code code { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.notes { counter-reset: n; }
.notes li { counter-increment: n; padding: 10px 0 10px 40px; position: relative; color: var(--muted); border-bottom: 1px dashed var(--line); }
.notes li::before { content: counter(n); position: absolute; left: 0; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); color: var(--green); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ios-note { margin-top: 56px; padding: 22px 24px; background: var(--paper-2); border-radius: 16px; }
.ios-note p { color: var(--muted); margin-top: 6px; }
.ios-note a { color: var(--green); font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(242, 238, 230, .72); padding: 40px 0 48px; font-size: 14px; }
.footer-in { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-brand strong { display: block; color: var(--paper); font-size: 18px; margin-bottom: 4px; }
.footer-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.footer a { color: rgba(242, 238, 230, .9); }

/* ---------- modal ---------- */
@keyframes iosPop {
  from { opacity: 0; transform: scale(.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(27, 43, 39, .42); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop[hidden] { display: none; }
.modal-dialog { width: min(100%, 420px); background: rgba(251, 249, 244, .92); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border: 1px solid rgba(255, 255, 255, .75); border-radius: 28px; padding: 28px 26px 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 24px 60px rgba(27, 43, 39, .22); animation: iosPop .26s cubic-bezier(.22, 1, .36, 1); }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-in, .scene { grid-template-columns: 1fr; gap: 32px; }
  .scene.reverse .scene-copy { order: 0; }
  .hero { padding-top: 40px; }
  .hero-art { max-width: 480px; margin: 0 auto; width: 100%; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:not(:last-child)::after { display: none; }
  .cards.three, .cards.two { grid-template-columns: 1fr; }
  .nav { display: none; }
  .topbar-in .btn { margin-left: auto; }
  .footer-meta { text-align: left; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .flow { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .dl-card { padding: 24px 20px; }
  .btn-big { width: 100%; }
  .hero-showcase { padding-right: 12%; }
  .hero-float-shot { width: 43%; border-width: 4px; border-radius: 20px; }
  .shot-pair { gap: 12px; padding: 20px 14px; }
  .shot-pair .device-phone { width: 48%; border-width: 3px; border-radius: 18px; }
  .shot-pair .pair-offset { margin-top: 14px; }
  .shot-combo { padding: 18px 14px 24px; }
  .shot-combo .combo-front { right: 12px; bottom: 12px; width: 37%; border-width: 3px; border-radius: 16px; }
  .shot-tablet-only { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
