/* NextRidge — marketing site. Warm-paper (温暖纸感) theme, Iowan serif display.
   Self-contained, no web fonts. Light + dark. Palette from the app tokens
   (apps/mobile/lib/theme/tokens.dart) and the NextRidge site design. */

:root {
  --page:#F6F2EB; --alt:#EDE7DB; --alt-2:#F1EBDF; --card:#FFFDF9; --card-2:#F6F2EB;
  --ink:#38322A; --ink-2:#655C50; --ink-3:#877D6E; --faint:#A89D8E;
  --accent:#B0563A; --accent-2:#BF6B45; --link:#8A5A38;
  --hair:rgba(75,60,40,.10); --hair-2:rgba(75,60,40,.18);
  --wash:rgba(75,60,40,.06); --wash-2:rgba(75,60,40,.10); --wash-3:rgba(75,60,40,.16);
  --green:#7A9163; --blue:#5E7E96;
  --green-wash:rgba(122,145,99,.16); --blue-wash:rgba(94,126,150,.16); --accent-wash:rgba(176,86,58,.14);
  --shadow:rgba(56,50,42,.18); --shadow-soft:rgba(70,55,35,.07);
  --serif:'Iowan Old Style','Palatino Linotype',Palatino,'Book Antiqua',Georgia,serif;
  --sans:-apple-system,system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --wrap:1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page:#19160F; --alt:#211E19; --alt-2:#26231D; --card:#2E2A23; --card-2:#26231D;
    --ink:#EDE7DB; --ink-2:#C7BEB0; --ink-3:#A89D8E; --faint:#877D6E;
    --accent:#CE7B52; --accent-2:#BF6B45; --link:#CFA35C;
    --hair:rgba(246,242,235,.12); --hair-2:rgba(246,242,235,.20);
    --wash:rgba(246,242,235,.06); --wash-2:rgba(246,242,235,.10); --wash-3:rgba(246,242,235,.16);
    --green:#8AA173; --blue:#6E8EA6;
    --green-wash:rgba(138,161,115,.20); --blue-wash:rgba(110,142,166,.20); --accent-wash:rgba(206,123,82,.20);
    --shadow:rgba(0,0,0,.45); --shadow-soft:rgba(0,0,0,.30);
  }
}

*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
html,body { overflow-x:clip; }
body {
  margin:0; background:var(--page); color:var(--ink);
  font-family:var(--sans); font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } }

.wrap { width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:32px; }
img,svg,video { max-width:100%; }
img { height:auto; display:block; }
a { color:var(--link); text-decoration:none; }
a:hover { color:var(--accent); }
h1,h2,h3 { font-family:var(--serif); font-weight:600; margin:0; color:var(--ink); }
p { margin:0; }
b { font-weight:640; }
.center { text-align:center; }

.skip { position:absolute; left:-999px; top:0; background:var(--accent); color:#fff; padding:10px 16px; border-radius:0 0 10px 0; z-index:100; }
.skip:focus { left:0; }

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav { position:sticky; top:0; z-index:50; height:56px;
  background:color-mix(in srgb, var(--page) 90%, transparent);
  backdrop-filter:saturate(1.3) blur(12px); border-bottom:1px solid var(--hair); }
.nav-inner { height:56px; display:flex; align-items:center; gap:28px; }
.brand { display:inline-flex; align-items:center; gap:9px; color:var(--ink); }
.brand:hover { color:var(--ink); }
.brand-glyph { width:22px; height:22px; border-radius:6px; display:block; flex:none;
  box-shadow:0 1px 3px var(--shadow-soft); }
.brand-name { font-family:var(--serif); font-size:15.5px; font-weight:600; letter-spacing:-.2px; }
.nav-links { flex:1; display:flex; align-items:center; justify-content:flex-end; gap:24px; }
.nav-links a { color:var(--ink-2); font-size:13.5px; font-weight:520; }
.nav-links a:hover { color:var(--ink); }
.nav-cta { background:var(--ink); color:var(--page) !important; border-radius:9px;
  padding:8px 15px; font-size:13px; font-weight:620; }
.nav-cta:hover { opacity:.9; }

/* ── buttons / badges ────────────────────────────────────────────────── */
.appstore { display:inline-flex; align-items:center; gap:11px; height:52px; padding:0 16px;
  background:#000; color:#fff; border-radius:9px; box-shadow:0 5px 16px var(--shadow); }
.appstore:hover { color:#fff; opacity:.92; transform:translateY(-1px); transition:transform .12s, opacity .15s; }
.appstore-logo { flex:none; color:#fff; }
.appstore-txt { display:flex; flex-direction:column; line-height:1; }
.appstore-txt small { font-size:9.5px; letter-spacing:.02em; margin-bottom:2px; }
.appstore-txt b { font-size:20px; font-weight:500; letter-spacing:-.3px; }

.btn-outline { display:inline-flex; align-items:center; gap:11px; height:52px; padding:0 20px;
  background:var(--card); color:var(--ink); border:1px solid var(--hair-2); border-radius:9px; }
.btn-outline:hover { color:var(--ink); background:var(--alt-2); }
.btn-outline-txt { display:flex; flex-direction:column; line-height:1.1; }
.btn-outline-txt b { font-size:15.5px; font-weight:620; }
.btn-outline-txt small { font-size:10.5px; color:var(--ink-2); margin-top:3px; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { overflow:hidden; }
.hero-inner { display:flex; gap:56px; align-items:flex-start; padding-top:76px; }
.hero-copy { flex:1; padding-top:26px; min-width:0; }
.hero-lockup { display:flex; align-items:center; gap:15px; margin-bottom:26px; }
.lockup-icon { width:62px; height:62px; border-radius:14px; box-shadow:0 5px 15px var(--shadow); }
.lockup-title { font-family:var(--serif); font-size:27px; font-weight:600; letter-spacing:-.5px; line-height:1.1; }
.lockup-sub { font-size:12.5px; font-weight:620; color:var(--accent); margin-top:6px; }
.hero-h1 { font-size:clamp(2.2rem,4.6vw,3.25rem); font-weight:600; letter-spacing:-1.4px; line-height:1.1; margin:0 0 20px; text-wrap:pretty; }
.hero-lede { font-size:17px; line-height:1.65; color:var(--ink-2); margin:0 0 14px; max-width:470px; text-wrap:pretty; }
.hero-fine { font-size:14px; line-height:1.65; color:var(--ink-3); margin:0 0 32px; max-width:470px; }
.hero-cta { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.manifesto { max-width:470px; margin-top:44px; padding-top:30px; border-top:1px solid var(--hair-2); }
.manifesto-lead { font-family:var(--serif); font-size:21px; font-weight:500; line-height:1.45; letter-spacing:-.3px; color:var(--ink); margin:0 0 14px; text-wrap:pretty; }
.manifesto-body { font-size:14.5px; line-height:1.7; color:var(--ink-2); margin:0; text-wrap:pretty; }

/* device mockup */
.hero-device { flex:none; width:402px; margin-bottom:-90px; }
.device { border-radius:52px; padding:12px; background:linear-gradient(160deg,#3a3630,#211f1b);
  box-shadow:0 40px 80px -24px var(--shadow), 0 12px 30px -16px var(--shadow-soft); }
.device-screen { position:relative; height:840px; border-radius:42px; overflow:hidden;
  background:var(--page); display:flex; flex-direction:column; }
.board-head { padding:40px 16px 8px; }
.board-eyebrow { font-size:12px; color:var(--ink-3); font-weight:500; }
.board-title { font-family:var(--serif); font-size:22px; font-weight:700; color:var(--ink); letter-spacing:-.3px; }
.board-cols { flex:1; display:flex; gap:12px; padding:8px 0 0 16px; overflow:hidden; }
.board-col { width:300px; flex:none; background:var(--alt); border-radius:20px; padding:12px;
  display:flex; flex-direction:column; gap:10px; }
.col-head { display:flex; align-items:center; gap:8px; padding:6px 6px 2px; font-size:13px; font-weight:650; color:var(--ink); }
.col-head em { color:var(--faint); font-weight:500; font-style:normal; margin-left:4px; }
.dot { width:8px; height:8px; border-radius:50%; flex:none; }
.dot-green { background:var(--green); } .dot-blue { background:var(--blue); }
.mini-card { background:var(--card); border-radius:14px; padding:13px 14px; box-shadow:0 1px 2px var(--shadow-soft); }
.mc-plain { font-size:14.5px; color:var(--ink); font-weight:550; }
.mc-title { font-size:14.5px; color:var(--ink); font-weight:550; line-height:1.4; }
.mc-meta { display:flex; align-items:center; gap:7px; margin-top:9px; font-size:11.5px; color:var(--faint); }
.mc-slot { height:52px; border-radius:14px; background:var(--wash); box-shadow:inset 0 1px 3px var(--wash-2); }
.avatar { width:17px; height:17px; border-radius:50%; color:#fff; font-size:8px; font-weight:650;
  display:inline-flex; align-items:center; justify-content:center; flex:none; }
.avatar.sm { width:13px; height:13px; }
.board-float { position:absolute; left:38px; bottom:210px; width:296px; background:var(--card);
  border-radius:14px; padding:14px 15px; transform:rotate(-3deg) scale(1.04);
  box-shadow:0 18px 34px var(--shadow); }
.board-dots { position:absolute; left:0; right:0; bottom:40px; display:flex; justify-content:center; gap:6px; }
.board-dots span { width:6px; height:6px; border-radius:50%; background:var(--wash-2); }
.board-dots span.on { background:var(--ink-3); }

/* ── sections ────────────────────────────────────────────────────────── */
.section { padding:76px 0; }
.section-alt { background:var(--alt); }
.section-head { max-width:600px; margin-bottom:44px; }
.section-head h2 { font-size:clamp(1.7rem,3vw,2rem); font-weight:600; letter-spacing:-.7px; line-height:1.2; margin:0 0 12px; }
.section-sub { font-size:15.5px; line-height:1.65; color:var(--ink-2); margin:0; }
.eyebrow { font-size:11px; font-weight:700; letter-spacing:.12em; color:var(--accent); margin-bottom:14px; }

/* differently grid */
.diff-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.diff-card { background:var(--card); border-radius:18px; padding:26px 26px 0; overflow:hidden; box-shadow:0 2px 6px var(--shadow-soft); }
.diff-num { font-size:11px; font-weight:700; color:var(--accent); letter-spacing:.1em; }
.diff-card h3 { font-size:19px; font-weight:660; letter-spacing:-.3px; margin:9px 0; }
.diff-card p { font-size:14px; line-height:1.65; color:var(--ink-2); margin:0 0 22px; }
.diff-illo { height:132px; position:relative; margin:0 -26px; }

.illo-drag .illo-rows { position:absolute; left:26px; right:26px; top:0; display:flex; flex-direction:column; gap:8px; }
.illo-drag .illo-rows span { height:34px; border-radius:10px; background:var(--alt-2); }
.illo-drag .illo-rows span.slot { background:var(--wash); box-shadow:inset 0 1px 3px var(--wash-2); }
.illo-lift { position:absolute; left:52px; right:44px; top:30px; height:38px; border-radius:11px;
  background:var(--card); border:1px solid var(--hair); transform:rotate(-3.5deg);
  box-shadow:0 12px 24px var(--shadow); display:flex; align-items:center; gap:8px; padding:0 13px; }
.illo-lift i { flex:1; height:7px; border-radius:4px; background:var(--wash-3); }
.illo-lift b { width:14px; height:14px; border-radius:50%; background:var(--accent); flex:none; }

.illo-tunnel { display:flex; align-items:flex-end; justify-content:center; }
.illo-tunnel span { position:absolute; bottom:0; border-radius:10px; }
.illo-tunnel .t4 { bottom:52px; width:150px; height:26px; background:var(--alt); opacity:.5; }
.illo-tunnel .t3 { bottom:40px; width:186px; height:30px; background:var(--alt-2); opacity:.75; }
.illo-tunnel .t2 { bottom:24px; width:226px; height:34px; background:var(--card-2); }
.illo-tunnel .t1 { bottom:0; width:266px; height:52px; background:var(--card); border:1px solid var(--hair);
  box-shadow:0 -6px 20px var(--shadow); display:flex; flex-direction:column; justify-content:center; gap:6px; padding:0 16px; }
.illo-tunnel .t1 i { width:44%; height:7px; border-radius:4px; background:var(--accent); opacity:.6; }
.illo-tunnel .t1 b { width:72%; height:6px; border-radius:3px; background:var(--wash-3); }

.illo-map { padding:0 26px; display:flex; flex-direction:column; gap:10px; }
.map-row { background:var(--card-2); border-radius:12px; padding:12px 13px; }
.map-name { font-size:11.5px; font-weight:640; color:var(--ink); }
.map-bars { display:flex; align-items:flex-start; gap:4px; height:38px; margin-top:9px; }
.map-bars i { flex:1; border-radius:4px; }
.map-dim { opacity:.5; }

.illo-covers { padding:0 26px; display:flex; gap:10px; align-items:flex-start; }
.cov { flex:1; background:var(--card-2); border-radius:12px; overflow:hidden; box-shadow:0 1px 3px var(--shadow-soft); }
.cov-img { height:56px; }
.cov-img.sm { height:38px; position:relative; }
.cov-badge { position:absolute; right:6px; bottom:5px; background:rgba(40,34,26,.5); border-radius:5px;
  padding:1.5px 5px; font-size:8.5px; font-weight:650; color:#FFF6EE; }
.cov-body { padding:9px 11px; }
.cov.cov-text { padding:11px; }
.cov-title { font-size:11.5px; font-weight:600; color:var(--ink); line-height:1.35; }
.cov-meta { display:flex; align-items:center; gap:5px; margin-top:9px; }
.cov .bar { width:34px; height:5px; border-radius:3px; background:var(--wash-3); }
.cov .bar.wide { display:block; width:60%; margin-top:8px; }

/* quote */
.quote-band { padding:64px 0 8px; }
.quote { border-left:2px solid var(--accent); padding:4px 0 4px 22px; max-width:860px; margin:0; }
.quote-text { font-family:var(--serif); font-size:23px; font-style:italic; line-height:1.5; color:var(--ink); margin:0; text-wrap:pretty; }
.quote-text b { font-style:normal; font-weight:640; }
.quote-attr { display:flex; align-items:center; justify-content:flex-start; gap:10px; margin-top:18px; font-size:13px; color:var(--ink-2); }
.quote-rule { width:24px; height:1px; background:var(--hair-2); }
.quote-attr b { color:var(--ink); font-weight:640; }

/* pricing */
.price-grid { display:flex; gap:20px; align-items:stretch; flex-wrap:wrap; }
.price-card { position:relative; flex:1; min-width:270px; background:var(--card); border:1px solid var(--hair);
  border-radius:18px; padding:26px; display:flex; flex-direction:column; }
.price-card--pop { border:2px solid var(--accent); box-shadow:0 14px 34px -14px var(--accent-wash); }
.price-badge { position:absolute; top:-11px; left:50%; transform:translateX(-50%); background:var(--accent);
  color:#FFF6EE; font-size:11px; font-weight:700; letter-spacing:.04em; padding:4px 12px; border-radius:999px; white-space:nowrap; }
.price-name { font-size:15px; font-weight:660; color:var(--ink); }
.price-amt { font-family:var(--serif); font-size:36px; font-weight:600; letter-spacing:-1px; margin:12px 0 4px; }
.price-per { font-family:var(--sans); font-size:14px; font-weight:400; color:var(--ink-2); letter-spacing:0; }
.price-note { font-size:12.5px; color:var(--ink-2); margin-bottom:20px; }
.price-note .save { color:var(--accent); font-weight:620; }
.feat-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; flex:1;
  font-size:13.5px; line-height:1.5; color:var(--ink-2); }
.feat { display:flex; gap:10px; align-items:flex-start; }
.feat b { color:var(--ink); font-weight:600; }
.feat-check { flex:none; width:13px; height:11px; margin-top:4px;
  background:no-repeat center/contain; }
.feat-check { position:relative; }
.feat-check::after { content:""; position:absolute; left:1px; top:0; width:9px; height:5px;
  border-left:2.2px solid var(--green); border-bottom:2.2px solid var(--green); transform:rotate(-45deg); }
.feat-dash { flex:none; width:12px; height:1.5px; border-radius:1px; background:var(--faint); margin-top:9px; }
.feat-off span:last-child { color:var(--ink-3); }
.price-cta { margin-top:22px; border-radius:12px; padding:12px; text-align:center; font-size:14.5px; font-weight:620; }
.price-cta--ghost { background:var(--card); border:1px solid var(--hair-2); color:var(--ink); }
.price-cta--accent { background:var(--accent); color:#FFF6EE; box-shadow:0 5px 15px var(--accent-wash); }
.price-cta--accent:hover { color:#FFF6EE; opacity:.94; }
.price-fineprint { font-size:11.5px; color:var(--ink-2); text-align:center; margin-top:10px; }
.price-card--feat { flex:1.15; min-width:290px; padding:0; border:2px solid var(--accent); overflow:hidden;
  box-shadow:0 8px 26px var(--accent-wash); }
.price-ribbon { background:var(--accent); padding:7px 26px; font-size:11.5px; font-weight:700; color:#FFF6EE; letter-spacing:.06em; }
.price-card-body { padding:24px 26px 26px; display:flex; flex-direction:column; flex:1; }

/* suite (dark band — fixed dark in both themes) */
.section-dark { background:#38322A; color:#F6F2EB; }
.section-dark .section-head h2 { color:#F6F2EB; }
.section-dark .section-sub { color:rgba(246,242,235,.66); }
.section-dark .section-sub b { color:rgba(246,242,235,.9); }
.eyebrow-warm { color:#E9A882; }
.suite-grid { display:flex; gap:20px; flex-wrap:wrap; }
.suite-card { flex:1; min-width:280px; background:rgba(246,242,235,.035); border:1px solid rgba(246,242,235,.08);
  border-radius:18px; padding:26px; }
.suite-card--live { background:rgba(246,242,235,.06); border-color:rgba(246,242,235,.12); }
.suite-top { display:flex; align-items:center; gap:16px; margin-bottom:18px; }
.suite-top img { width:66px; height:66px; border-radius:15px; flex:none; box-shadow:0 6px 16px rgba(0,0,0,.28); }
.suite-name { font-size:18px; font-weight:660; color:#F6F2EB; letter-spacing:-.2px; white-space:nowrap; }
.suite-card p { font-size:13.5px; line-height:1.65; color:rgba(246,242,235,.62); margin:0; }
.badge { display:inline-flex; align-items:center; gap:5px; margin-top:6px; border-radius:14px; padding:3px 9px;
  background:rgba(246,242,235,.09); font-size:11px; font-weight:640; color:rgba(246,242,235,.5); }
.badge--live { background:rgba(122,145,99,.22); color:#B9D19C; }
.badge-dot { width:5px; height:5px; border-radius:50%; background:#A8C48A; }
.suite-included { margin-top:22px; padding:18px 24px; background:rgba(246,242,235,.05); border-radius:14px;
  font-size:13.5px; line-height:1.65; color:rgba(246,242,235,.62); }
.suite-included b { color:rgba(246,242,235,.88); font-weight:600; }

/* about / teams */
.about-grid { display:flex; gap:56px; flex-wrap:wrap; }
.about-col { flex:1.3; min-width:340px; }
.about-col h2 { font-size:clamp(1.6rem,2.6vw,1.9rem); font-weight:600; letter-spacing:-.6px; line-height:1.2; margin:0 0 16px; }
.about-col p { font-size:15px; line-height:1.7; color:var(--ink-2); margin:0 0 13px; }
.about-col p b { color:var(--ink); font-weight:600; }
.about-side { flex:1; min-width:280px; display:flex; flex-direction:column; gap:12px; }
.about-side h2 { margin-bottom:4px; }
.info-card { background:var(--card); border:1px solid var(--hair); border-radius:14px; padding:18px 20px; scroll-margin-top:20px; }
.info-title { font-size:14.5px; font-weight:640; color:var(--ink); margin-bottom:5px; }
.info-body { font-size:13px; line-height:1.6; color:var(--ink-2); }

/* footer */
.site-footer { background:var(--alt); border-top:1px solid var(--hair); padding:44px 0; }
.footer-inner { display:flex; gap:24px; align-items:baseline; flex-wrap:wrap; }
.brand-sm { flex:1; min-width:200px; }
.brand-sm .brand-glyph { width:20px; height:20px; }
.brand-sm .brand-name { font-size:14px; }
.footer-links { display:flex; gap:24px; flex-wrap:wrap; }
.footer-links a { font-size:13px; color:var(--link); }
.footer-legal { font-size:12px; color:var(--ink-2); width:100%; padding-top:8px; margin:0; }
.lang-select select { font-family:var(--sans); font-size:13px; color:var(--ink); background:var(--card);
  border:1px solid var(--hair-2); border-radius:9px; padding:.45em .7em; cursor:pointer; }

/* reveal on scroll */
.reveal { opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { flex-direction:column; gap:8px; }
  .hero-copy { padding-top:0; }
  .hero-lede, .hero-fine, .manifesto { max-width:none; }
  .hero-device { width:100%; max-width:402px; margin:16px auto -40px; }
  .diff-grid { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .wrap { padding-inline:20px; }
  .nav-links { gap:16px; }
  .nav-links a:not(.nav-cta) { display:none; }
  .section { padding:56px 0; }
  .device-screen { height:auto; min-height:560px; }
  .hero-cta { flex-direction:column; align-items:stretch; }
  .appstore, .btn-outline { justify-content:center; }
}

/* ── legal / support pages (privacy.html, terms.html, support.html) ───── */
.legal { padding:56px 0 88px; }
.legal .wrap { max-width:760px; }
.legal .eyebrow { margin-bottom:10px; }
.legal h1 { font-family:var(--serif); font-size:clamp(2rem,4vw,2.8rem); line-height:1.1; margin:0 0 6px; }
.legal .updated { color:var(--ink-2); font-size:.9rem; margin:0 0 40px; }
.legal h2 { font-family:var(--serif); font-size:1.4rem; margin:40px 0 10px; }
.legal h3 { font-size:1.02rem; margin:24px 0 6px; }
.legal p, .legal li { color:var(--ink); line-height:1.7; }
.legal p { margin:0 0 14px; }
.legal ul { margin:0 0 16px; padding-left:1.2em; }
.legal li { margin:0 0 8px; }
.legal a { color:var(--link); }
.legal .lede { font-size:1.1rem; color:var(--ink-2); margin-bottom:32px; }
.legal .note { background:var(--card-2); border:1px solid var(--hair); border-radius:14px; padding:16px 18px; margin:24px 0; color:var(--ink-2); font-size:.95rem; }
.legal strong { color:var(--ink); }
