/* StipClear: Navy & Blue. No green. 8px spacing grid. */
:root {
  --navy: #0B1F3A;
  --navy-2: #13294B;
  --blue: #1E5EFF;
  --blue-600: #1749D6;
  --blue-50: #E8EEFF;
  --blue-25: #F4F7FF;
  --bg: #F7F8FA;
  --text: #1E293B;
  --body: #475569;
  --muted: #64748B;
  --subtle: #94A3B8;
  --line: #E6EAF0;
  --line-2: #D6DCE5;
  --card: #FFFFFF;
  --amber-bg: #FFF4DB; --amber: #93600A;
  --red-bg: #FDECEC; --red: #B42318;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --sh-xs: 0 1px 2px rgba(11, 31, 58, .05);
  --sh-sm: 0 1px 2px rgba(11, 31, 58, .04), 0 2px 8px rgba(11, 31, 58, .04);
  --sh-md: 0 1px 2px rgba(11, 31, 58, .04), 0 8px 24px rgba(11, 31, 58, .07);
  --sh-lg: 0 2px 4px rgba(11, 31, 58, .04), 0 24px 56px -12px rgba(11, 31, 58, .22);
  --ring: 0 0 0 4px rgba(30, 94, 255, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 15px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  color: var(--text); background: var(--card);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.xs { width: 14px; height: 14px; }
.container { width: 100%; max-width: 1312px; margin: 0 auto; padding: 0 48px; }
main { flex: 1; }
:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--navy); letter-spacing: -0.03em; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--navy); display: grid; place-items: center; box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .06), var(--sh-xs); }
.logo-mark svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.logo b { color: var(--blue); font-weight: 700; }
.nav-links { display: flex; gap: 8px; }
.nav-links a { padding: 8px 14px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--navy); background: var(--bg); }
.nav-links a.on { color: var(--navy); font-weight: 600; }
.nav-r { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.nav-r .login { font-size: 14.5px; font-weight: 500; color: var(--muted); padding: 8px 14px; border-radius: var(--r-sm); transition: color .15s; }
.nav-r .login:hover { color: var(--navy); }

/* ---------- Buttons, chips, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em; border: 1px solid transparent; transition: background .15s var(--ease), border-color .15s, box-shadow .15s, transform .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(30, 94, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-primary:hover { background: var(--blue-600); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: var(--sh-xs); }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line-2); box-shadow: var(--sh-xs); }
.btn-outline:hover { border-color: #B8C2D1; background: #FCFDFE; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.copied { background: var(--navy); color: #fff; border-color: var(--navy); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--navy); box-shadow: var(--sh-xs); transition: border-color .15s, box-shadow .15s, transform .15s, color .15s; }
.chip:hover { border-color: #C3CEDE; box-shadow: var(--sh-sm); transform: translateY(-1px); color: var(--blue); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.tag.easy { background: var(--blue-50); color: var(--blue-600); }
.tag.medium { background: var(--amber-bg); color: var(--amber); }
.tag.hard { background: var(--red-bg); color: var(--red); }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--subtle); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Landing ---------- */
.lhero { position: relative; border-bottom: 1px solid var(--line); background: #FBFCFD; overflow: hidden; }
.lhero::before { content: ""; position: absolute; inset: 0 0 0 52%; background-image: linear-gradient(rgba(11, 31, 58, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 31, 58, .05) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 152px; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--muted); margin-bottom: 24px; }
.kicker::before { content: ""; width: 20px; height: 2px; background: var(--blue); border-radius: 2px; }
.lhero h1 { font-size: 68px; line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 24px; }
.lhero h1 span { color: var(--blue); display: block; }
.lhero .sub { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 520px; margin-bottom: 32px; letter-spacing: -0.008em; }
.search-wrap { position: relative; max-width: 560px; isolation: isolate; }
.search-box { position: relative; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 6px 0 18px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 1px 2px rgba(11, 31, 58, .04), 0 8px 24px -8px rgba(11, 31, 58, .12); transition: border-color .15s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 1px 2px rgba(11, 31, 58, .04), 0 8px 24px -8px rgba(11, 31, 58, .12), var(--ring); }
.search-box > svg { color: var(--subtle); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--navy); height: 100%; }
.search-box input::placeholder { color: var(--subtle); }
.search-box input:focus { box-shadow: none; }
.search-box kbd { margin-right: 4px; }
.search-box .btn { height: 44px; padding: 0 18px; border-radius: 9px; }
.ac { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-lg); padding: 6px; z-index: 30; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s cubic-bezier(.2, .8, .2, 1), transform .15s cubic-bezier(.2, .8, .2, 1); }
.ac.open { opacity: 1; transform: none; pointer-events: auto; }
.ac-head { display: flex; justify-content: space-between; padding: 6px 10px 6px; font-size: 12px; color: var(--subtle); font-weight: 500; }
.ac-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; transition: background .12s; }
.ac-item.active, .ac-item:hover { background: var(--bg); }
.ac-ic { width: 32px; height: 32px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); flex: none; transition: color .12s, border-color .12s; }
.ac-item.active .ac-ic { color: var(--blue); border-color: #CCD9FF; }
.ac-tx { min-width: 0; }
.ac-t { font-weight: 500; color: var(--navy); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-t mark { background: none; color: var(--blue); font-weight: 600; }
.ac-s { font-size: 12.5px; color: var(--muted); }
.ac-item .tag { margin-left: auto; }
.ac-empty { padding: 20px 12px; color: var(--muted); font-size: 14px; }
.ac-foot { display: flex; gap: 16px; padding: 8px 10px 4px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 12px; color: var(--subtle); }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; font-weight: 500; color: var(--muted); background: #fff; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; line-height: 1; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 4px; margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 560px; }
.popular .pl { margin-right: 6px; }
.popular a { color: var(--navy); font-weight: 500; padding: 2px 6px; border-radius: 6px; transition: background .15s, color .15s; }
.popular a:hover { background: var(--blue-50); color: var(--blue-600); }
.popular .sep { color: var(--line-2); }

/* product preview */
.preview { position: relative; }
.pv { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(11, 31, 58, .04), 0 32px 64px -24px rgba(11, 31, 58, .28); overflow: hidden; }
.pv-top { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #FBFCFD; }
.pv-top i { width: 9px; height: 9px; border-radius: 50%; background: #E2E7EE; }
.pv-top .url { margin-left: 10px; font-size: 12px; color: var(--subtle); }
.pv-in { padding: 20px 22px 22px; }
.pv-crumb { font-size: 11.5px; color: var(--subtle); margin-bottom: 4px; }
.pv-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pv-h b { font-size: 17px; color: var(--navy); font-weight: 600; letter-spacing: -0.02em; }
.pv-loan { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 11.5px; font-weight: 500; color: var(--navy); background: #fff; white-space: nowrap; }
.pv-prog { display: flex; align-items: center; gap: 10px; margin: 14px 0 16px; font-size: 11.5px; font-weight: 600; color: var(--navy); }
.pv-prog .track { flex: 1; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.pv-prog .track span { display: block; height: 100%; width: 40%; background: var(--blue); border-radius: 4px; }
.pv-step { display: flex; gap: 10px; align-items: flex-start; }
.pv-step + .pv-step { margin-top: 8px; }
.pv-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; border: 1.5px solid var(--line-2); color: var(--muted); background: #fff; margin-top: 7px; }
.pv-n.d { background: var(--blue); border-color: var(--blue); color: #fff; }
.pv-n.d svg { width: 12px; height: 12px; stroke-width: 3; }
.pv-n.c { background: var(--navy); border-color: var(--navy); color: #fff; }
.pv-row { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13px; color: #334155; font-weight: 500; }
.pv-row.c { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 94, 255, .1); padding: 12px 14px; }
.pv-row .q { font-size: 14px; font-weight: 600; color: var(--navy); margin: 6px 0 10px; letter-spacing: -0.01em; }
.pv-dec { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; }
.pv-br { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-br div { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 12px; color: #475569; font-weight: 400; background: #FBFCFD; }
.pv-br div:first-child { border-color: #B7CAFF; background: var(--blue-25); }
.pv-br strong { display: block; font-size: 10px; letter-spacing: .08em; color: var(--navy); margin-bottom: 2px; }
.pv-br div:first-child strong { color: var(--blue-600); }
.pv-muted .pv-row { color: var(--muted); font-weight: 400; }
.pv-copy { position: absolute; left: -48px; bottom: -100px; width: 300px; background: var(--navy); color: #DCE6F5; border-radius: 12px; padding: 14px 16px; font-size: 12.5px; line-height: 1.55; box-shadow: 0 24px 48px -16px rgba(11, 31, 58, .5); }
.pv-copy .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pv-copy .hd span { font-size: 10px; letter-spacing: .08em; font-weight: 600; color: #A9C0FF; }
.pv-copy .hd em { font-style: normal; font-size: 11px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; padding: 1px 8px; }
.pv-where { position: absolute; right: -20px; top: 112px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 12px; color: var(--navy); box-shadow: var(--sh-md); }
.pv-where svg { color: var(--blue); }

/* sections */
.section { padding-top: 96px; padding-bottom: 96px; }
.section + .section { border-top: 1px solid var(--line); }
.s-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 48px; }
.s-head .eyebrow { display: block; margin-bottom: 12px; color: var(--blue-600); }
.s-head h2 { font-size: 40px; letter-spacing: -0.035em; line-height: 1.1; }
.s-head p { color: var(--body); font-size: 16.5px; line-height: 1.6; max-width: 480px; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.how > div { padding: 28px 28px 32px; }
.how > div + div { border-left: 1px solid var(--line); }
.how .k { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--subtle); margin-bottom: 12px; }
.how h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -0.015em; }
.how p { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.mini { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 12px; font-size: 12.5px; }
.mini-in { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--navy); }
.mini-in svg { color: var(--subtle); }
.mini-in .caret { width: 1px; height: 14px; background: var(--blue); margin-left: -6px; }
.mini-res { margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; color: var(--navy); font-weight: 500; }
.mini-res mark { background: none; color: var(--blue); font-weight: 600; }
.mini .seg { padding: 3px; border-radius: 9px; }
.mini .seg span { display: grid; place-items: center; height: 28px; border-radius: 7px; font-size: 12px; color: #475569; font-weight: 500; }
.mini .seg span.on { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 1px 2px rgba(11, 31, 58, .08); }
.mini .pg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.mini .pg span { display: grid; place-items: center; height: 28px; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; font-size: 11.5px; color: var(--navy); }
.mini .pg span.on { border-color: var(--blue); color: var(--blue-600); background: var(--blue-25); font-weight: 600; }
.mini .pg span.off { opacity: .4; }
.mini-step b { display: block; color: var(--navy); font-size: 13px; margin-bottom: 8px; font-weight: 600; }
.mini-where { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #DCE5FF; border-radius: 7px; padding: 6px 8px; color: var(--navy); }
.mini-where svg { color: var(--blue); }
.mini-sh { margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 8px; display: grid; gap: 5px; }
.mini-sh i { display: block; height: 6px; border-radius: 3px; background: #EEF2F7; width: 70%; }
.mini-sh i.b { width: 46%; background: var(--blue-50); outline: 1.5px solid var(--blue); }
.covered { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.cov-col h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.cov-col + .cov-col h4 { }
.cov-col a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--navy); font-weight: 500; transition: color .15s, padding .2s cubic-bezier(.2, .8, .2, 1); }
.cov-col a span { font-size: 12.5px; color: var(--subtle); font-weight: 400; white-space: nowrap; }
.cov-col a svg { color: var(--subtle); transition: color .15s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.cov-col a:hover { color: var(--blue-600); }
.cov-col a:hover svg { color: var(--blue); transform: translateX(2px); }
.cov-col .grp { font-size: 12px; color: var(--subtle); margin: 20px 0 0; }
.sources { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 28px 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.sources h3 { font-size: 16px; margin-bottom: 4px; }
.sources p { font-size: 14px; color: var(--muted); }
.sources .r { display: flex; gap: 8px; }

/* ---------- Page shell ---------- */
.page { padding-top: 40px; padding-bottom: 96px; }
.crumb { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.crumb a { transition: color .15s; }
.crumb a:hover { color: var(--navy); }
.crumb svg { color: var(--subtle); }

/* ---------- Library ---------- */
.lib-head { margin-bottom: 32px; }
.lib-head h1 { font-size: 36px; letter-spacing: -0.035em; margin-bottom: 8px; }
.lib-head p { color: var(--muted); font-size: 16px; }
.lib { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px; }
.side-sec + .side-sec { margin-top: 32px; }
.side-sec .eyebrow { margin-bottom: 12px; display: block; }
.cat-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; color: #334155; text-align: left; transition: background .15s, color .15s; }
.cat-btn:hover { background: var(--bg); }
.cat-btn span { font-size: 12.5px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.cat-btn.on { background: var(--navy); color: #fff; font-weight: 600; }
.cat-btn.on span { color: #9FB2CC; }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 0; font-size: 14.5px; color: #334155; text-align: left; transition: color .15s; }
.opt:hover { color: var(--navy); }
.opt .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #B7C1CF; background: #fff; display: grid; place-items: center; transition: background .15s, border-color .15s; flex: none; }
.opt .box.radio { border-radius: 50%; }
.opt .box svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3.2; opacity: 0; transition: opacity .15s; }
.opt.on .box { background: var(--blue); border-color: var(--blue); }
.opt.on .box svg { opacity: 1; }
.side-note { font-size: 12.5px; color: var(--subtle); margin-top: 6px; }
.lib-search { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; box-shadow: var(--sh-xs); transition: border-color .15s, box-shadow .15s; }
.lib-search:focus-within { border-color: var(--blue); box-shadow: var(--ring); }
.lib-search svg { color: var(--subtle); }
.lib-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 15.5px; color: var(--navy); background: transparent; }
.lib-search input:focus { box-shadow: none; }
.lib-search input::placeholder { color: var(--subtle); }
.res { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin: 16px 0 32px; min-height: 28px; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 10px; border-radius: 6px; background: var(--blue-50); color: var(--blue-600); font-size: 12.5px; font-weight: 600; }
.fchip button { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--blue-600); transition: background .15s; }
.fchip button:hover { background: rgba(30, 94, 255, .14); }
.linkbtn { color: var(--blue); font-weight: 600; font-size: 13.5px; }
.linkbtn:hover { color: var(--blue-600); text-decoration: underline; }
.group + .group { margin-top: 40px; }
.group-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.group-h h2 { font-size: 20px; letter-spacing: -0.02em; }
.group-h span { font-size: 13px; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.scard { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 152px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--sh-xs); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.scard:hover { border-color: #C9D6F5; box-shadow: var(--sh-md); transform: translateY(-2px); }
.scard-t { font-weight: 600; color: var(--navy); font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.35; }
.scard-s { font-size: 13.5px; color: var(--muted); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard-m { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.scard-m .m { display: inline-flex; align-items: center; gap: 5px; }
.scard-m .go { margin-left: auto; color: var(--subtle); transition: color .15s, transform .15s; }
.scard:hover .go { color: var(--blue); transform: translateX(2px); }
.empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: linear-gradient(180deg, #FBFCFE, #fff); }
.empty-ic { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm); display: grid; place-items: center; color: var(--muted); }
.empty h3 { font-size: 17px; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }

/* ---------- Walkthrough ---------- */
.wt { display: grid; grid-template-columns: minmax(0, 1fr) 368px; gap: 48px; align-items: start; }
.wt-title { font-size: 36px; letter-spacing: -0.035em; margin-bottom: 12px; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); }
.meta .m { display: inline-flex; align-items: center; gap: 6px; }
.loanbar { display: flex; align-items: center; gap: 12px; margin: 24px 0 32px; padding: 12px 12px 12px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.loanbar .lb-ic { width: 36px; height: 36px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); flex: none; }
.loanbar .lb-l { font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.3; }
.loanbar .lb-v { font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.loanbar .btn { margin-left: auto; height: 34px; padding: 0 12px; font-size: 13.5px; }
.pbar { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; font-size: 14px; font-weight: 600; color: var(--navy); }
.pbar .track { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.pbar .fill { height: 100%; background: var(--blue); border-radius: 99px; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.pbar .pct { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }

.tl-step { display: flex; gap: 16px; }
.rail { display: flex; flex-direction: column; align-items: center; width: 32px; flex: none; }
.num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 600; flex: none; background: #fff; color: var(--muted); border: 1.5px solid var(--line-2); transition: background .2s, color .2s, border-color .2s; font-variant-numeric: tabular-nums; }
.num.cur { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11, 31, 58, .08); }
.num.done { background: var(--blue); border-color: var(--blue); color: #fff; }
.num.done svg { width: 15px; height: 15px; stroke-width: 3; }
.rail .ln { width: 2px; flex: 1; background: var(--line); margin: 6px 0; border-radius: 2px; min-height: 16px; }
.rail .ln.done { background: #BFD0FF; }
.scardw { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 24px; margin-bottom: 16px; box-shadow: var(--sh-xs); transition: border-color .2s, box-shadow .2s; }
.scardw h3 { font-size: 16px; letter-spacing: -0.015em; line-height: 1.4; }
.scardw .peek { font-size: 14px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-step.done .scardw { background: #FCFDFE; }
.tl-step.done h3 { color: #334155; }
.tl-step.up .scardw { box-shadow: none; }
.tl-step.up h3 { color: #475569; }
.tl-step.cur .scardw { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 94, 255, .1), var(--sh-md); padding: 24px 28px; scroll-margin-top: 104px; }
.tl-step.cur h3 { font-size: 19px; letter-spacing: -0.02em; }
.badge-dec { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; margin-bottom: 12px; }
.badge-dec svg { width: 13px; height: 13px; }
.sbody { margin-top: 8px; font-size: 15px; color: var(--body); line-height: 1.6; }
.sbody b { color: var(--navy); font-weight: 600; }
.sbody ul { margin: 8px 0 0 20px; }
.sbody li { margin: 4px 0; }
.where { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--navy); background: var(--blue-25); border: 1px solid #DCE5FF; border-radius: 10px; padding: 10px 14px; }
.where svg { color: var(--blue); }
.related { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--blue); transition: color .15s; }
.related:hover { color: var(--blue-600); }
.ask-q { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; color: var(--navy); font-size: 15px; }
.br { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.bopt { position: relative; text-align: left; border-radius: 12px; padding: 16px 44px 16px 16px; border: 1.5px solid var(--line-2); background: #FBFCFD; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.bopt:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }
.bopt.y { border-color: #B7CAFF; background: var(--blue-25); }
.bopt.y:hover { border-color: var(--blue); }
.bopt.n:hover { border-color: #9AA8BC; background: #fff; }
.bopt strong { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.bopt.y strong { color: var(--blue-600); }
.bopt.n strong { color: var(--navy); }
.bopt span { font-size: 14px; color: #334155; }
.bopt .go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--subtle); transition: color .15s, transform .15s; }
.bopt:hover .go { color: var(--blue); transform: translate(2px, -50%); }
.wt-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-left: 48px; }
.wt-nav .hint { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.finish { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--r-lg); border: 1px solid #CCD9FF; background: var(--blue-25); margin: 8px 0 0 48px; }
.finish .fi { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.finish h3 { font-size: 17px; }
.finish p { color: var(--muted); font-size: 14.5px; margin: 4px 0 16px; }
.finish .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* right column */
.aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.callout { background: var(--blue-25); border: 1px solid #DCE5FF; border-left: 3px solid var(--blue); border-radius: var(--r); padding: 20px; }
.callout h4 { display: flex; align-items: center; gap: 8px; color: var(--blue-600); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.callout p { font-size: 14.5px; color: var(--navy); line-height: 1.6; }
.copycard { background: var(--navy); color: #DCE6F5; border-radius: var(--r); padding: 20px; box-shadow: var(--sh-md); }
.copycard .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.copycard h4 { color: #A9C0FF; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.copycard .cb { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 12.5px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .12); transition: background .15s; }
.copycard .cb:hover { background: rgba(255, 255, 255, .18); }
.copycard .txt { font-size: 14.5px; line-height: 1.6; outline: none; border-radius: 6px; }
.copycard .txt:focus { box-shadow: 0 0 0 2px rgba(169, 192, 255, .4); }
.copycard .ft { font-size: 12px; color: #8FA3C2; margin-top: 12px; }
.toc { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: #fff; }
.toc h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.toc div { display: flex; align-items: center; gap: 12px; font-size: 14px; padding: 6px 0; color: var(--muted); line-height: 1.4; }
.toc div.on { color: var(--navy); font-weight: 600; }
.toc div.d { color: #334155; }
.toc .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.toc .d .dot { background: var(--blue); }
.toc .on .dot { background: var(--navy); box-shadow: 0 0 0 3px rgba(11, 31, 58, .12); }

/* ---------- Modal (loan type) ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 60; background: rgba(11, 31, 58, .4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .2s var(--ease); }
.modal-bg.open { opacity: 1; }
.modal { width: 100%; max-width: 560px; background: #fff; border-radius: 16px; box-shadow: 0 32px 80px -16px rgba(11, 31, 58, .45); padding: 32px; transform: translateY(8px) scale(.96); opacity: 0; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s cubic-bezier(.2, .8, .2, 1); }
.modal-bg.open .modal { transform: none; opacity: 1; }
.modal-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.modal-hd .step-k { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.modal-hd h2 { font-size: 24px; letter-spacing: -0.03em; }
.modal-hd p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.modal-x { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: background .15s, color .15s; flex: none; }
.modal-x:hover { background: var(--bg); color: var(--navy); }
.fl { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: #EEF1F5; border-radius: 12px; }
.seg button { height: 40px; padding: 0 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: #475569; transition: background .15s, color .15s, box-shadow .15s; }
.seg button:hover:not(.on):not([disabled]) { color: var(--navy); background: rgba(255, 255, 255, .6); }
.seg button.on { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 1px 2px rgba(11, 31, 58, .08), 0 2px 6px rgba(11, 31, 58, .06); }
.seg button[disabled] { opacity: .4; cursor: not-allowed; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.popt { height: 48px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 500; color: var(--navy); display: flex; align-items: center; justify-content: center; gap: 6px; transition: border-color .15s, background .15s, box-shadow .15s, color .15s; }
.popt:hover:not([disabled]):not(.on) { border-color: #9DB5F5; }
.popt.on { border-color: var(--blue); background: var(--blue-25); color: var(--blue-600); font-weight: 600; box-shadow: 0 0 0 3px rgba(30, 94, 255, .12); }
.popt[disabled] { opacity: .4; cursor: not-allowed; background: var(--bg); }
.mnote { min-height: 20px; font-size: 13px; color: var(--muted); margin-top: 12px; }
.modal-ft { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.mgap { height: 24px; }

/* ---------- Generator ---------- */
.gen { display: grid; grid-template-columns: 488px minmax(0, 1fr); gap: 48px; align-items: start; }
.gen h1 { font-size: 36px; letter-spacing: -0.035em; margin-bottom: 8px; }
.gen .lead { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab { height: 36px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--navy); transition: border-color .15s, background .15s, color .15s; box-shadow: var(--sh-xs); }
.tab:hover:not(.on) { border-color: #C3CEDE; }
.tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field > span i { font-style: normal; font-weight: 500; color: var(--subtle); }
.in { width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; font-size: 14.5px; color: var(--text); background: #fff; box-shadow: var(--sh-xs); transition: border-color .15s, box-shadow .15s; outline: 0; }
textarea.in { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.in:hover { border-color: #BCC6D4; }
.in:focus { border-color: var(--blue); box-shadow: var(--ring); }
.in::placeholder { color: var(--subtle); }
.seg.inline { display: inline-grid; grid-auto-columns: 88px; margin-bottom: 16px; }
.gen-note { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 16px; }
.gen-note svg { color: var(--subtle); margin-top: 2px; }
.pv-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; min-height: 40px; }
.pv-bar .lbl { flex: 1; display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.pv-bar .live { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(30, 94, 255, .18); }
.paper-wrap { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.paper { background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 16px 40px -8px rgba(11, 31, 58, .14); padding: 56px 64px; font-family: Georgia, "Times New Roman", serif; font-size: 15.5px; line-height: 1.65; color: #1B1B1B; min-height: 760px; }
.paper p { margin-bottom: 16px; }
.paper .date { text-align: right; }
.paper .v { background: var(--blue-50); border-radius: 3px; padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.paper .v.ph { background: #FFF4DB; color: #7A5300; }
.paper .sig { margin-top: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px 40px; }
.paper .sig div { border-top: 1px solid #333; padding-top: 6px; font-size: 12.5px; color: #444; }

/* ---------- Pricing ---------- */
.pr-hero { position: relative; padding: 72px 0 48px; }
.pr-hero h1 { font-size: 48px; letter-spacing: -0.04em; margin-bottom: 12px; }
.pr-hero p { font-size: 18px; color: var(--muted); }
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 16px 0 48px; }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; padding: 32px; background: #fff; box-shadow: var(--sh-xs); }
.plan.pro { border: 1.5px solid var(--blue); box-shadow: 0 24px 48px -16px rgba(30, 94, 255, .28); }
.plan .badge { position: absolute; top: -13px; left: 32px; height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; }
.plan h3 { font-size: 18px; margin-bottom: 4px; }
.plan .for { font-size: 14px; color: var(--muted); min-height: 44px; }
.plan .price { font-size: 48px; font-weight: 600; letter-spacing: -0.04em; color: var(--navy); line-height: 1; margin: 16px 0 24px; height: 48px; display: flex; align-items: flex-end; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin: 0 0 6px 6px; }
.plan .price.sm { font-size: 34px; }
.plan ul { list-style: none; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: #334155; }
.plan li svg { color: var(--blue); margin-top: 2px; }
.pr-foot { color: var(--muted); font-size: 14px; padding-bottom: 96px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: #fff; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 32px; padding-bottom: 32px; font-size: 13px; color: var(--muted); }
.foot-l { display: flex; align-items: center; gap: 16px; }
.foot .logo { font-size: 15px; gap: 8px; }
.foot .logo-mark { width: 22px; height: 22px; border-radius: 6px; }
.foot .logo-mark svg { width: 12px; height: 12px; }
.foot .tagline { color: var(--muted); padding-left: 16px; border-left: 1px solid var(--line); }

/* ---------- Example illustrations (inside steps) ---------- */
.ex { margin: 20px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 36px 16px 14px; position: relative; }
.ex-tag { position: absolute; top: 10px; left: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; }
.ex figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.ex-body { overflow-x: auto; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; font-size: 12.5px; color: #334155; box-shadow: var(--sh-xs); min-width: 420px; }
.doc.letter p { margin: 8px 0; }
.doc-head { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); margin-bottom: 10px; }
.doc-title { font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.doc .muted { color: var(--muted); }
.doc .right { text-align: right; font-size: 12px; position: relative; }
.scores { display: flex; gap: 6px; }
.scores span { border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; font-weight: 600; color: var(--navy); height: fit-content; }
.doc-sec { margin-top: 10px; padding: 8px 10px; border-radius: 6px; position: relative; }
.doc-sec.dim { opacity: .5; }
.sec-h { font-weight: 700; color: var(--navy); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
table.t td { padding: 5px 6px; border-bottom: 1px solid #F1F5F9; }
table.t.kv td:nth-child(even) { color: var(--navy); font-weight: 600; }
.trade { margin-bottom: 6px; }
.hist { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.ex .pgrid { display: inline-flex; gap: 3px; padding: 3px; border-radius: 6px; }
.pm { font-size: 10px; font-weight: 600; width: 24px; text-align: center; padding: 2px 0; border-radius: 3px; background: #F1F5F9; color: var(--muted); }
.pm.late { background: var(--navy); color: #fff; }
.hl, .hl-row td, .hl-cell, .hl-inline { background: var(--blue-50); }
.hl { outline: 2px solid var(--blue); }
.hl-row td { border-top: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.hl-row td:first-child { border-left: 2px solid var(--blue); }
.hl-row td:last-child { border-right: 2px solid var(--blue); }
.hl-cell { outline: 2px solid var(--blue); border-radius: 4px; padding: 2px 6px; }
.hl-inline { outline: 2px solid var(--blue); }
.pin { display: inline-block; background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; vertical-align: middle; text-transform: none; letter-spacing: .01em; }
.circ { position: relative; }
.circ::after { content: ""; position: absolute; inset: -7px -10px; border: 2.5px solid var(--blue); border-radius: 50%; pointer-events: none; }
.script { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 17px; color: var(--navy); }
.doc .sig { padding: 6px 8px; }
.browser { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; min-width: 440px; font-size: 13px; box-shadow: var(--sh-xs); }
.b-bar { display: flex; align-items: center; gap: 6px; background: #F1F5F9; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.b-bar > span { width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1; }
.b-url { margin-left: 10px; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; color: var(--muted); font-size: 12px; }
.b-top { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--navy); color: #fff; font-weight: 600; }
.b-user { font-weight: 400; opacity: .7; font-size: 12px; }
.b-main { display: grid; grid-template-columns: 190px 1fr; min-height: 200px; }
.b-side { border-right: 1px solid var(--line); padding: 12px 8px; display: grid; gap: 4px; align-content: start; }
.p-nav { padding: 7px 10px; border-radius: 6px; color: #334155; }
.p-nav.on { background: #F1F5F9; font-weight: 600; }
.p-nav.circ { background: var(--blue-50); color: var(--navy); font-weight: 600; }
.p-nav .pin { margin: 4px 0 0; display: table; }
.b-content { padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.p-h { font-weight: 700; color: var(--navy); font-size: 15px; }
.p-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 8px; justify-items: start; }
.p-line { height: 8px; width: 80%; background: #EEF2F7; border-radius: 4px; }
.p-line.short { width: 45%; }
.p-btn { background: var(--blue); color: #fff; border-radius: 6px; padding: 7px 12px; font-weight: 600; margin: 6px 10px; }
.p-btn .pin { background: var(--navy); }
.p-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; color: var(--navy); }
.p-row.circ { background: var(--blue-50); font-weight: 600; margin: 4px 0; }
.p-row.circ::after { border-radius: 30px; }
.p-row .pin { margin-left: auto; }
.chev { color: var(--muted); font-size: 18px; line-height: 1; }
svg.tl { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-family: Inter, -apple-system, sans-serif; display: block; }
.calc { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 14px; }
.calc label { display: grid; gap: 6px; font-weight: 600; color: var(--navy); font-size: 13.5px; max-width: 240px; }
.calc input { height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); outline: 0; }
.calc input:focus { border-color: var(--blue); box-shadow: var(--ring); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-out > div { background: var(--blue-50); border-radius: 10px; padding: 12px 14px; }
.calc-out span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.calc-out b { color: var(--navy); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.calc-out p { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 480px; gap: 48px; }
  .lhero h1 { font-size: 56px; }
  .wt { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .gen { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 64px; padding-bottom: 88px; }
  .preview { max-width: 560px; }
  .lhero::before { inset: 50% 0 0 0; }
}
@media (max-width: 860px) {
  .lhero h1 { font-size: 44px; }
  .s-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .s-head h2 { font-size: 30px; }
  .how, .covered { grid-template-columns: minmax(0, 1fr); }
  .how > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .pv-copy { position: relative; left: 0; bottom: 0; width: auto; margin-top: 12px; }
  .pv-where { display: none; }
  .sources { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .search-box kbd { display: none; }
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-in { grid-template-columns: 1fr auto; height: 64px; }
  .nav-r .login { display: none; }
  .lib { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pr-grid { grid-template-columns: minmax(0, 1fr); }
  .search-box .btn { display: none; }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .br { grid-template-columns: minmax(0, 1fr); }
  .wt-title, .gen h1, .lib-head h1 { font-size: 28px; }
  .tl-step { gap: 12px; }
  .tl-step.cur .scardw { padding: 20px; }
  .scardw { padding: 16px 18px; }
  .paper { padding: 32px 24px; min-height: 0; }
  .paper-wrap { padding: 12px; }
  .frow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .wt-nav { padding-left: 0; }
  .finish { margin-left: 0; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .modal { padding: 24px; }
  .pr-hero h1 { font-size: 36px; }
}

/* ---------- Print: only the letter ---------- */
@media print {
  body * { visibility: hidden; }
  .paper, .paper * { visibility: visible; }
  .paper { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; padding: 0.6in; min-height: 0; }
  .paper .v, .paper .v.ph { background: none; color: inherit; padding: 0; }
}

/* ================= Motion ================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate(-50%, 0) scale(1); opacity: .9; } to { transform: translate(-44%, 24px) scale(1.12); opacity: 1; } }
@keyframes gridPan { from { background-position: 0 0, 0 0; } to { background-position: 32px 32px, 32px 32px; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes popIn { from { transform: scale(.6); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes copied { 0% { transform: scale(.96); } 100% { transform: none; } }

.lhero::before { animation: gridPan 30s linear infinite; }
.lhero .kicker, .lhero h1, .lhero .sub, .lhero .search-wrap, .lhero .popular { animation: fadeUp .4s cubic-bezier(.2, .8, .2, 1) both; }
.lhero h1 { animation-delay: .05s; }
.lhero .sub { animation-delay: .1s; }
.lhero .search-wrap { animation-delay: .15s; }
.lhero .popular { animation-delay: .2s; }
.preview { animation: fadeUp .4s .18s cubic-bezier(.2, .8, .2, 1) both; }

/* buttons: lift, press, shine */
.btn { transition: background .15s, border-color .15s, box-shadow .2s cubic-bezier(.2, .8, .2, 1), transform .2s cubic-bezier(.2, .8, .2, 1), color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn-primary:hover { box-shadow: 0 6px 16px -4px rgba(30, 94, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-navy:hover { box-shadow: 0 6px 16px -4px rgba(11, 31, 58, .4); }
.btn-outline:hover { box-shadow: 0 4px 12px -4px rgba(11, 31, 58, .14); }
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .32), transparent); transform: translateX(-160%) skewX(-12deg); pointer-events: none; z-index: -1; }
.btn-primary:hover::after { transform: translateX(360%) skewX(-12deg); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.btn.copied, .cb.copied { animation: copied .25s cubic-bezier(.2, .8, .2, 1); }
.copycard .cb.copied { background: #fff; color: var(--navy); border-color: #fff; }
.copycard .cb:active { transform: scale(.96); }
.chip:active, .tab:active, .popt:active, .bopt:active, .cat-btn:active { transform: scale(.98); }
.tab, .popt, .cat-btn { transition: border-color .15s, background .15s, color .15s, box-shadow .15s, transform .15s cubic-bezier(.2, .8, .2, 1); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(12px); }
.rv.in { opacity: 1; transform: none; transition: opacity .4s cubic-bezier(.2, .8, .2, 1), transform .4s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.rv.in:hover { transition-delay: 0s; }
.scard.rv.in { transition: opacity .4s cubic-bezier(.2, .8, .2, 1) var(--d, 0s), transform .2s cubic-bezier(.2, .8, .2, 1), border-color .2s, box-shadow .2s; }


/* segmented sliding indicator */
.seg { position: relative; }
.seg .seg-ind { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(11, 31, 58, .08), 0 2px 6px rgba(11, 31, 58, .06); transition: transform .28s cubic-bezier(.2, .8, .2, 1), width .28s cubic-bezier(.2, .8, .2, 1); pointer-events: none; z-index: 0; }
.seg button { position: relative; z-index: 1; }
.seg.has-ind button.on { background: transparent; box-shadow: none; }
.popt.on svg { animation: popIn .25s cubic-bezier(.2, .8, .2, 1); }

/* walkthrough */
.num.done.just { animation: popIn .3s cubic-bezier(.2, .8, .2, 1); }
.num.done.just svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .35s .08s cubic-bezier(.2, .8, .2, 1) forwards; }
.tl-step.cur.enter .scardw { animation: slideIn .32s cubic-bezier(.2, .8, .2, 1); }
.rail .ln { transition: background .3s; }
.toc div { transition: color .2s; }
.toc .dot { transition: background .2s, box-shadow .2s; }
.finish { animation: slideIn .32s cubic-bezier(.2, .8, .2, 1); }
.modal .mnote { transition: opacity .2s; }

/* LOX preview flash */
.paper .v { position: relative; }
.paper .v.flash::after { content: ""; position: absolute; inset: -2px -3px; border-radius: 4px; background: rgba(30, 94, 255, .28); animation: flash .6s cubic-bezier(.2, .8, .2, 1) forwards; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .btn:hover, .scard:hover, .chip:hover, .bopt:hover { transform: none; }
}
