/* StipCoach: 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; }
.callout.ln-note { margin: -16px 0 28px; padding: 14px 16px; }
.callout.ln-note.rare { background: var(--amber-bg); border-color: #F3DFAE; border-left-color: var(--amber); }
.callout.ln-note.rare h4 { color: var(--amber); }
.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; }
}

/* ================= LOX generator v3 ================= */
.selw { position: relative; }
.sel { appearance: none; -webkit-appearance: none; padding-right: 40px; font-weight: 500; color: var(--navy); cursor: pointer; }
.selw svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.fsec { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; margin-bottom: 8px; }
.fsec-h { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mgap-s { height: 16px; }
.rows { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 8px; }
.rows-h, .row { display: grid; grid-template-columns: 100px 96px minmax(0, 1fr) 28px; gap: 6px; align-items: center; }
.rows-h { padding: 2px 4px 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.row + .row { margin-top: 6px; }
.row .in { height: 36px; padding: 0 10px; font-size: 13.5px; border-radius: 8px; }
.row-x { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--subtle); transition: background .15s, color .15s; }
.row-x:hover:not([disabled]) { background: #fff; color: var(--navy); }
.row-x[disabled] { opacity: .35; cursor: default; }
.row-new { animation: slideIn .28s cubic-bezier(.2, .8, .2, 1); }
.addrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--blue-600); transition: background .15s, transform .15s cubic-bezier(.2, .8, .2, 1); }
.addrow:hover { background: var(--blue-50); }
.addrow:active { transform: scale(.98); }
.rchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.rc-l { width: 100%; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.rchip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px 0 8px; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; font-size: 13px; font-weight: 500; color: var(--navy); transition: border-color .15s, background .15s, color .15s, transform .15s cubic-bezier(.2, .8, .2, 1), box-shadow .15s; }
.rchip svg { color: var(--subtle); transition: color .15s; }
.rchip:hover { border-color: #B7CAFF; color: var(--blue-600); transform: translateY(-1px); box-shadow: var(--sh-xs); }
.rchip:hover svg { color: var(--blue); }
.rchip:active { transform: scale(.98); }
.rchip.on { border-color: var(--blue); background: var(--blue-25); color: var(--blue-600); }
.rchip.on svg { color: var(--blue); animation: popIn .25s cubic-bezier(.2, .8, .2, 1); }
.guard { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 2px 0 14px; padding: 8px 10px; border-left: 2px solid var(--line-2); }
.guard svg { color: var(--subtle); margin-top: 2px; flex: none; }
.tgl { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--navy); font-weight: 500; margin: -4px 0 16px; cursor: pointer; }
.tgl input { position: absolute; opacity: 0; pointer-events: none; }
.tgl .sw { position: relative; width: 34px; height: 20px; border-radius: 10px; background: #D6DCE5; transition: background .2s cubic-bezier(.2, .8, .2, 1); flex: none; }
.tgl .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(11, 31, 58, .2); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.tgl input:checked + .sw { background: var(--blue); }
.tgl input:checked + .sw::after { transform: translateX(14px); }
.tgl input:focus-visible + .sw { box-shadow: var(--ring); }
.gen-r { position: sticky; top: 88px; }
.paper .rowlist { display: block; padding-left: 20px; }
@media (max-width: 860px) {
  .gen-r { position: static; }
  .rows-h { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px; }
  .row .in:nth-child(3) { grid-column: 1 / 3; }
}
@media (max-width: 860px) {
  .pv-bar { flex-wrap: wrap; }
  .pv-bar .lbl { flex-basis: 100%; }
}

/* ================= Income docs ================= */
.hero-alt { display: flex; align-items: center; gap: 12px; max-width: 560px; margin-top: 24px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14px; color: var(--muted); box-shadow: var(--sh-xs); transition: border-color .15s, box-shadow .2s cubic-bezier(.2, .8, .2, 1), transform .2s cubic-bezier(.2, .8, .2, 1); animation: fadeUp .4s .25s cubic-bezier(.2, .8, .2, 1) both; }
.hero-alt b { display: block; color: var(--navy); font-weight: 600; font-size: 14.5px; }
.hero-alt .ha-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.hero-alt > svg { margin-left: auto; color: var(--subtle); transition: transform .2s cubic-bezier(.2, .8, .2, 1), color .15s; }
.hero-alt:hover { border-color: #B7CAFF; box-shadow: var(--sh-md); transform: translateY(-1px); }
.hero-alt:hover > svg { color: var(--blue); transform: translateX(3px); }
.inc-feat { background: #FBFCFD; border-top: 1px solid var(--line); }
.if-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.if-grid h2 { font-size: 40px; letter-spacing: -0.035em; line-height: 1.1; margin: 12px 0 16px; }
.if-grid p { color: var(--body); font-size: 16.5px; line-height: 1.6; margin-bottom: 20px; }
.if-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 14.5px; color: var(--navy); }
.if-list li { display: flex; gap: 10px; align-items: center; }
.if-list svg { color: var(--blue); }
.ifp { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 320px; }
.ifp-side { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; align-content: start; gap: 2px; background: #FBFCFD; }
.ifp-side span { font-size: 12.5px; color: #475569; padding: 7px 10px; border-radius: 7px; }
.ifp-side span.on { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(11, 31, 58, .06); }
.ifp-main { padding: 18px 20px 20px; }
.ifp-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ifp-h b { font-size: 15px; color: var(--navy); letter-spacing: -0.015em; }
.ifp-h em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--blue); border-radius: 6px; padding: 4px 8px; }
.ifp-c { font-size: 11.5px; color: var(--muted); margin: 12px 0 6px; }
.ifp-d { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ifp-d b { display: block; font-size: 12.5px; color: var(--navy); font-weight: 500; }
.ifp-d span:not(.ckb) { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ifp-d.on b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--subtle); }
.ifp-uw { display: flex; gap: 6px; align-items: center; margin-top: 12px; font-size: 11.5px; color: var(--blue-600); background: var(--blue-25); border-radius: 7px; padding: 7px 9px; }

.ckb { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); background: #fff; display: grid; place-items: center; flex: none; margin-top: 1px; transition: background .15s, border-color .15s; }
.ckb svg { width: 12px; height: 12px; stroke-width: 3; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.on > .ckb, .ifp-d.on .ckb { background: var(--blue); border-color: var(--blue); }
.on > .ckb svg, .ifp-d.on .ckb svg { opacity: 1; transform: none; }

.inc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.inc-side { position: sticky; top: 88px; display: grid; gap: 20px; }
.inc-g .eyebrow { display: block; margin-bottom: 6px; }
.inc-l { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: #334155; font-weight: 500; transition: background .15s, color .15s; }
.inc-l svg { color: var(--subtle); opacity: 0; transform: translateX(-3px); transition: opacity .15s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.inc-l:hover { background: var(--bg); color: var(--navy); }
.inc-l:hover svg { opacity: 1; transform: none; }
.inc-l.on { background: var(--navy); color: #fff; }
.inc-l.on svg { opacity: 1; transform: none; color: #fff; }
.inc-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-sm); overflow: hidden; animation: slideIn .3s cubic-bezier(.2, .8, .2, 1); }
.inc-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 28px 32px 20px; }
.inc-k { font-size: 12.5px; color: var(--blue-600); font-weight: 600; margin-bottom: 6px; }
.inc-hd h2 { font-size: 26px; letter-spacing: -0.03em; }
.inc-hd p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.inc-bar { display: flex; align-items: center; gap: 14px; padding: 0 32px 20px; border-bottom: 1px solid var(--line); }
.seg.sm button { height: 32px; font-size: 13.5px; padding: 0 12px; }
.seg.sm { padding: 3px; border-radius: 10px; }
.seg.sm .seg-ind { top: 3px; bottom: 3px; border-radius: 7px; }
.inc-sec { padding: 24px 32px; }
.inc-sec + .inc-sec { border-top: 1px solid var(--line); }
.inc-sh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.inc-sh h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: -0.01em; }
.inc-sh h3 svg { color: var(--blue); }
.inc-sh .cnt { font-size: 13px; color: var(--muted); }
.inc-prog { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.inc-prog span { display: block; height: 100%; background: var(--blue); border-radius: 4px; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.ck { display: flex; gap: 14px; align-items: flex-start; padding: 14px 12px; margin: 0 -12px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.ck + .ck { border-top: 1px solid var(--line); }
.ck:hover { background: var(--bg); }
.ck input { position: absolute; opacity: 0; pointer-events: none; }
.ck input:focus-visible + .ckb { box-shadow: var(--ring); }
.ckt { min-width: 0; }
.ckt b { font-weight: 500; color: var(--navy); font-size: 14.5px; transition: color .15s; }
.ck.on .ckt b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--subtle); }
.ckt .wh { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.ckt .wh svg { margin-top: 2px; color: var(--subtle); flex: none; }
.lend { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600; color: #475569; background: #EEF1F5; border-radius: 5px; padding: 1px 6px; vertical-align: 1px; }
.inc-uw { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.inc-uw li { display: flex; gap: 10px; font-size: 14.5px; color: #334155; }
.inc-uw svg { color: var(--blue); margin-top: 4px; flex: none; }
.inc-note { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.inc-note + .inc-note { border-top: 1px dashed var(--line); }
.inc-note .tagp { justify-self: start; font-size: 12px; font-weight: 600; color: var(--navy); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; height: fit-content; }
.inc-note p { font-size: 14px; color: #334155; }
.inc-rel { display: grid; gap: 8px; }
.inc-rel a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--navy); transition: border-color .15s, box-shadow .2s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.inc-rel a svg:first-child { color: var(--subtle); }
.inc-rel a svg:last-child { margin-left: auto; color: var(--subtle); transition: transform .2s cubic-bezier(.2, .8, .2, 1), color .15s; }
.inc-rel a:hover { border-color: #B7CAFF; box-shadow: var(--sh-sm); transform: translateY(-1px); }
.inc-rel a:hover svg:last-child { color: var(--blue); transform: translateX(2px); }
@media (max-width: 1000px) {
  .if-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 860px) {
  .inc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .inc-side { position: static; grid-template-columns: minmax(0, 1fr); }
  .inc-hd { flex-direction: column; padding: 22px 20px 16px; }
  .inc-bar { flex-wrap: wrap; padding: 0 20px 16px; }
  .inc-sec { padding: 20px; }
  .inc-note { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ifp { grid-template-columns: minmax(0, 1fr); }
  .ifp-side { display: none; }
  .if-grid h2 { font-size: 30px; }
}
.sources .r { flex-wrap: wrap; }
@media (max-width: 860px) { .sources .r .btn { flex: 1 1 auto; } }
.seg.sm { grid-auto-columns: max-content; display: inline-grid; } .seg.sm button { padding: 0 14px; } .inc-bar .fl { margin: 0; }

/* ================= How-to guides ================= */
.cki + .cki { border-top: 1px solid var(--line); }
.cki .ck + .ck { border-top: 0; }
.ck-row { display: flex; align-items: flex-start; gap: 12px; }
.ck-row .ck { flex: 1; min-width: 0; }
.howto { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-top: 10px; padding: 0 10px 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; color: var(--navy); transition: border-color .15s, color .15s, background .15s, transform .15s cubic-bezier(.2, .8, .2, 1); }
.howto svg { color: var(--subtle); transition: transform .25s cubic-bezier(.2, .8, .2, 1), color .15s; }
.howto:hover { border-color: #B7CAFF; color: var(--blue-600); }
.howto:active { transform: scale(.98); }
.cki.open .howto { background: var(--blue-25); border-color: #B7CAFF; color: var(--blue-600); }
.cki.open .howto svg { transform: rotate(180deg); color: var(--blue); }
.ck-panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .32s cubic-bezier(.2, .8, .2, 1), opacity .25s cubic-bezier(.2, .8, .2, 1); }
.cki.open .ck-panel { grid-template-rows: 1fr; opacity: 1; }
.ck-pin { overflow: hidden; min-height: 0; }
.cki.open .ck-pin { padding-bottom: 16px; }
.gd { border: 1px solid var(--line); border-radius: 12px; background: #FBFCFD; padding: 20px; margin-left: 32px; }
.gd-page .gd { border: 0; margin: 0; background: #fff; padding: 28px 32px; }
.gd-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.gd-h { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.gd-steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: gs; display: grid; gap: 10px; }
.gd-steps li { counter-increment: gs; position: relative; padding-left: 32px; font-size: 14px; color: #334155; line-height: 1.5; }
.gd-steps li::before { content: counter(gs); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 600; display: grid; place-items: center; }
.gd-fb { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.gd-fb b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--navy); margin-bottom: 4px; }
.gd-fb b svg { color: var(--blue); }
.gd-fb p { font-size: 13.5px; color: #475569; }
.gd-safe { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.gd-safe svg { color: var(--subtle); }
.gd .ex { margin: 0; }
.gd-more { margin-top: 32px; }
.gd-more .eyebrow { display: block; margin-bottom: 10px; }
.gd-more > div { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-more a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13.5px; font-weight: 500; color: var(--navy); transition: border-color .15s, transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; }
.gd-more a svg { color: var(--subtle); }
.gd-more a:hover { border-color: #B7CAFF; transform: translateY(-1px); box-shadow: var(--sh-sm); }
.gd-links a { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 13.5px; font-weight: 500; color: var(--navy); transition: color .15s; }
.gd-links a + a { border-top: 1px solid var(--line); }
.gd-links a svg:first-child { color: var(--subtle); flex: none; }
.gd-links a svg:last-child { margin-left: auto; color: var(--subtle); flex: none; transition: transform .2s cubic-bezier(.2, .8, .2, 1), color .15s; }
.gd-links a:hover { color: var(--blue-600); }
.gd-links a:hover svg:last-child { color: var(--blue); transform: translateX(2px); }
.gd-links { margin-bottom: 16px; }
@media (max-width: 1180px) { .gd-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .ck-row { flex-direction: column; gap: 0; }
  .howto { margin: 0 0 12px 32px; }
  .gd { margin-left: 0; padding: 16px; }
  .gd-page .gd { padding: 20px; }
}

/* glossary tooltip */
.gl { position: relative; text-decoration: underline dotted #8BA6E8; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: help; outline: none; border-radius: 3px; }
.gl:focus-visible { box-shadow: var(--ring); }
.gl::after { content: attr(data-def); display: none; position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 40; width: max-content; max-width: min(280px, 72vw); padding: 8px 10px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 13px; line-height: 1.45; font-weight: 400; letter-spacing: 0; text-transform: none; white-space: normal; box-shadow: 0 8px 24px -6px rgba(11, 31, 58, .4); pointer-events: none; }
.gl:hover::after, .gl:focus::after { display: block; animation: fadeUp .18s cubic-bezier(.2, .8, .2, 1); }


/* any-one-of groups in income checklists */
.or-h { margin: 14px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); }
.or-d { display: flex; align-items: center; gap: 10px; margin: 0 0 0 32px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.or-d::before, .or-d::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or-d::before { flex: 0 0 12px; }
.or-d.and { color: var(--navy); }
.or-d + .cki, .or-h + .cki { border-top: 0 !important; }
.cki.alt { border-left: 2px solid #DCE5FF; padding-left: 10px; }

/* ================= Mobile polish (phones) ================= */
.nav-burger, .nav-login { display: none; }
.gl-tip { position: fixed; z-index: 90; max-width: min(280px, calc(100vw - 24px)); padding: 8px 10px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 13.5px; line-height: 1.45; font-weight: 400; box-shadow: 0 8px 24px -6px rgba(11, 31, 58, .4); pointer-events: none; animation: fadeUp .18s cubic-bezier(.2, .8, .2, 1); }
@media (hover: none) { .gl:hover::after, .gl:focus::after { display: none; } .gl { -webkit-tap-highlight-color: rgba(30, 94, 255, .12); } }
@media (max-width: 860px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .nav-in { gap: 8px; }
  .nav-r { gap: 4px; }
  .nav-r .btn { height: 40px; }
  .logo { min-height: 44px; }
  .nav-burger { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--navy); -webkit-tap-highlight-color: transparent; }
  .nav-burger:active { background: var(--bg); }
  .nav-burger svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .nav-burger path { transform-origin: 12px 12px; transition: transform .22s var(--ease), opacity .15s; }
  .nav.open .nav-burger .b1 { transform: translateY(5px) rotate(45deg); }
  .nav.open .nav-burger .b2 { opacity: 0; }
  .nav.open .nav-burger .b3 { transform: translateY(-5px) rotate(-45deg); }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 2px; position: absolute; top: 100%; left: 0; right: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px -12px rgba(11, 31, 58, .18); max-height: calc(100vh - 64px); overflow-y: auto; animation: fadeUp .18s var(--ease); }
  .nav.open .nav-links a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; font-size: 16px; }
  .nav.open .nav-links a.on { background: var(--blue-50); color: var(--navy); }
  .nav.open .nav-login { display: flex; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 !important; }

  /* tap targets */
  .popular a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; }
  .popular { gap: 2px 2px; }
  .crumb a { display: inline-flex; align-items: center; min-height: 40px; }
  .crumb { margin-bottom: 4px; }
  .opt { min-height: 44px; padding: 0; }
  .cat-btn { height: 44px; }
  .btn { min-height: 44px; }
  .seg button { height: 44px; }
  .modal-x { width: 44px; height: 44px; margin: -6px -6px 0 0; }
  .tab { height: 40px; }
  .rchip { min-height: 40px; height: auto; padding-top: 6px; padding-bottom: 6px; text-align: left; line-height: 1.3; }
  .tgl { min-height: 44px; }
  .row-x { width: 40px; height: 40px; }
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 6px; }
  .row .in { height: 44px; }
  .addrow { height: 44px; padding: 0 12px; }
  .inc-l { min-height: 44px; }
  .howto { height: 40px; }
  .related, .gd-links a, .gd-more a { min-height: 44px; }
  .gd-links a { display: flex; align-items: center; }
  .copycard .cb { height: 40px; padding: 0 14px; }
  .scard, .bopt { -webkit-tap-highlight-color: rgba(30, 94, 255, .1); }
  .inc-bar .seg button { height: 40px; }
  #chg { min-height: 44px; }

  /* inputs: 16px stops iOS zoom on focus */
  .in, .row .in, textarea.in, select.in, .search-box input, #lq, #hq { font-size: 16px; }

  /* long strings never push the page wide */
  h1, h2, h3, p, li, .paper, .ac-t, .gd, .cki { overflow-wrap: anywhere; }
  .ac-t { overflow-wrap: normal; }
  img, svg, video, canvas { max-width: 100%; }
  .modal-bg { align-items: end; padding: 12px; }
  .modal { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
  .modal-hd h2 { font-size: 22px; }
  .modal-ft { position: sticky; bottom: -20px; background: #fff; margin-bottom: -20px; padding-bottom: 20px; }
  .modal-ft .btn { flex: 1; }
  .pgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .lhero h1 { font-size: 38px; }
  .nav-r .btn { padding: 0 14px; }
  .paper { padding: 24px 16px; }
}
@media (max-width: 860px) {
  .search-box input, #lq { min-height: 44px; }
  .modal-ft .btn { white-space: normal; padding-left: 12px; padding-right: 12px; line-height: 1.25; }
  .modal-ft .btn-outline { flex: 0 0 auto; }
}
.search-wrap { z-index: 20; }
@media (max-width: 860px) {
  .calc input { height: 44px; font-size: 16px; max-width: 100%; }
  .calc label { max-width: none; }
  .copycard .txt { font-size: 16px; }
  .fchip button { position: relative; }
  .fchip button::before { content: ""; position: absolute; inset: -12px; }
  .linkbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; }
  .howto { height: 44px; }
}

.logo-mark.fox { background: none; box-shadow: none; overflow: hidden; }
.logo-mark.fox img { width: 100%; height: 100%; display: block; }

.inc-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card, #fff); }
.inc-top .fl { margin: 0; font-weight: 600; }
.inc-top-h { font-size: 13px; color: var(--muted, #64748b); }
@media (max-width: 860px) { .inc-top { margin-bottom: 20px; padding: 14px 16px; gap: 10px; } .inc-top .seg { width: 100%; } .inc-top .seg button { height: 40px; } .inc-top-h { width: 100%; } }

/* ---------- Smart search: paste box, best match ---------- */
.paste { width: 100%; }
.paste-l { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 10px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.paste-l svg { color: var(--blue); }
.paste-l span { font-weight: 400; color: var(--muted); }
.search-box.paste-box { height: auto; min-height: 60px; align-items: center; padding: 8px 8px 8px 18px; }
.paste-box > svg { flex: none; align-self: center; }
.paste-box textarea { flex: 1; min-width: 0; display: block; border: 0; outline: 0; resize: none; background: transparent; font: inherit; font-size: 16px; line-height: 24px; color: var(--navy); padding: 8px 0; height: 40px; max-height: 132px; overflow-y: auto; }
.paste-box textarea::placeholder { color: var(--subtle); }
.paste-box textarea:focus { box-shadow: none; }
.pclear { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--subtle); transition: background .15s, color .15s; }
.pclear:hover { background: var(--bg); color: var(--navy); }
.pclear[hidden], .pbtn[hidden] { display: none !important; }
.paste-act { display: flex; gap: 6px; flex: none; }
.paste-act .btn { height: 44px; padding: 0 16px; border-radius: 9px; }
.lib-head { display: grid; gap: 24px; }
.lib-paste { max-width: 760px; }
.lib-paste .search-box { box-shadow: var(--sh-sm); }

.ktag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-right: 6px; border-radius: 5px; font-size: 11px; font-weight: 600; letter-spacing: .01em; vertical-align: 1px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.ktag.k-stip { background: var(--blue-50); color: var(--blue-600); border-color: transparent; }
.ktag.k-income { background: #E7F6EF; color: #146C43; border-color: transparent; }
.ktag.k-lox { background: var(--amber-bg); color: var(--amber); border-color: transparent; }

.ac-item.ac-best { background: var(--blue-25); border: 1px solid #D5E0FF; margin-bottom: 2px; }
.ac-item.ac-best.active, .ac-item.ac-best:hover { background: var(--blue-50); }
.ac-item.ac-best .ac-t { white-space: normal; }
.ac-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-sub { padding: 8px 10px 2px; font-size: 12px; color: var(--subtle); font-weight: 500; }
.ac-unsure { display: flex; gap: 8px; align-items: flex-start; margin: 6px 4px 2px; padding: 10px 12px; border-radius: 8px; background: var(--amber-bg); color: var(--amber); font-size: 13px; line-height: 1.45; }
.ac-unsure svg { flex: none; margin-top: 2px; }
.why { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.why svg { flex: none; margin-top: 2px; color: var(--blue); }
.why b { color: var(--navy); font-weight: 600; }

.bm { margin-top: 20px; padding: 20px; border: 1px solid #CCD9FF; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--blue-25), #fff 70%); box-shadow: var(--sh-sm); }
.bm-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.bm-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; }
.bm-top .ktag { margin: 0; }
.bm-main { display: flex; gap: 14px; align-items: flex-start; }
.bm-ic { width: 44px; height: 44px; border-radius: 11px; background: #fff; border: 1px solid #CCD9FF; color: var(--blue); display: grid; place-items: center; flex: none; }
.bm-tx { min-width: 0; }
.bm-t { display: block; font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; color: var(--navy); font-weight: 600; }
.bm-t mark, .bm-rt mark { background: none; color: var(--blue); }
.bm-s { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.bm .why { margin-top: 12px; font-size: 13.5px; }
.bm-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.bm-cta .m { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.bm-more { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.bm-more .eyebrow, .bm-low .eyebrow { display: block; margin-bottom: 8px; }
.bm-list { display: grid; gap: 4px; }
.bm-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; transition: background .12s; }
.bm-row:hover { background: var(--bg); }
.bm-row > svg { margin-left: auto; flex: none; color: var(--subtle); }
.bm-rt { min-width: 0; display: grid; gap: 2px; }
.bm-rt b { font-weight: 500; font-size: 14.5px; color: var(--navy); }
.bm-rt > span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-low { background: #fff; border-color: var(--line); }
.bm-unsure { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--amber-bg); color: var(--amber); font-size: 14px; line-height: 1.5; }
.bm-unsure svg { flex: none; margin-top: 2px; }
.bm-unsure:first-child { margin-top: 0; }
.bm-also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.bm-also a { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 10px 2px 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 500; transition: border-color .15s; }
.bm-also a:hover { border-color: #B7CAFF; }
.bm-also .ktag { margin-right: 6px; }

@media (max-width: 860px) {
  .search-box.paste-box { flex-wrap: wrap; padding: 8px 8px 8px 14px; gap: 4px 10px; }
  .paste-box textarea { flex: 1 1 0; }
  .paste-act { flex: 1 0 100%; padding-top: 4px; }
  .search-box.paste-box .paste-act .btn { display: inline-flex; flex: 1 1 0; height: 46px; }
  .paste-l span { flex-basis: 100%; }
  .bm { padding: 16px; }
  .bm-t { font-size: 17px; }
  .bm-cta .btn { flex: 1 1 100%; }
  .ac-foot { display: none; }
}
.lib-search[hidden] { display: none; }
#bm { max-width: 760px; }
#bm:empty { display: none; }
.lib-head #bm .bm { margin-top: -8px; }
.lib-head #bm .bm-also { margin-top: -10px; }
