@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Saifu site. Visual language after Miro: white canvas, canary yellow, pastel sticky-note tints,
   black pill buttons, hairlines. Saifu indigo stays as the identity colour. Font: Figtree. */
:root {
  color-scheme: light;
  --ground: #ffffff;
  --surface: #ffffff;
  --soft: #f7f8fa;
  --ink: #1c1c1e;
  --ink-deep: #050038;
  --muted: #555a6a;
  --line: #e0e2e8;
  --line-soft: #eef0f3;
  --line-strong: #c7cad5;
  --track: rgb(28 28 30 / 0.1);
  --accent: #5b4bdb;
  --accent-deep: #4638b8;
  --accent-soft: #f5f3ff;
  --accent-ink: #ffffff;
  --blue: #4262ff;
  --yellow: #ffd02f;
  --yellow-deep: #fcb900;
  --btn: #1c1c1e;
  --btn-ink: #ffffff;
  --btn-hover: #2c2c34;
  --warn-soft: #fff4c4;
  --warn: #5e4d0c;
  --dot: #d6d9e2;
  --foot: #1c1c1e;
  --t-yellow: #ffe173;
  --t-rose: #ffd8f4;
  --t-teal: #c3faf5;
  --t-coral: #ffc6c6;
  --t-orange: #ffe6cd;
  --t-lav: #e9e5ff;
  --t-mint: #d3f5df;
  --sn-yellow: #ffd02f;
  --shadow-1: 0 1px 2px rgb(5 0 56 / 0.04);
  --shadow-2: 0 4px 12px rgb(5 0 56 / 0.06);
  --shadow-3: 0 12px 32px -4px rgb(5 0 56 / 0.08);
  --shadow-4: 0 16px 48px -8px rgb(5 0 56 / 0.12);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --c1: #5b4bdb;
  --c2: #0e9384;
  --c3: #d97706;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0c0b1a;
  --surface: #16152b;
  --soft: #110f24;
  --ink: #f3f3f8;
  --ink-deep: #ffffff;
  --muted: #a9acbb;
  --line: #2b2a48;
  --line-soft: #211f3b;
  --line-strong: #3f3e63;
  --track: rgb(255 255 255 / 0.14);
  --accent: #9a8cff;
  --accent-deep: #b9afff;
  --accent-soft: #1e1b45;
  --accent-ink: #14122a;
  --blue: #8da0ff;
  --btn: #ffffff;
  --btn-ink: #1c1c1e;
  --btn-hover: #e4e4ee;
  --warn-soft: #33290f;
  --warn: #e8c46d;
  --dot: #2a2946;
  --foot: #1c1c1e;
  --t-yellow: #3d3411;
  --t-rose: #43213a;
  --t-teal: #0f3a37;
  --t-coral: #4a2323;
  --t-orange: #44301a;
  --t-lav: #26225a;
  --t-mint: #123a2c;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-2: 0 4px 12px rgb(0 0 0 / 0.35);
  --shadow-3: 0 14px 40px -6px rgb(0 0 0 / 0.55);
  --shadow-4: 0 20px 56px -8px rgb(0 0 0 / 0.65);
  --c1: #8b7bf5;
  --c2: #20a898;
  --c3: #c2801c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.5 'Figtree', 'Noto Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, .brand { font-family: 'Figtree', 'Noto Sans', system-ui, sans-serif; font-weight: 500; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
h2 { font-size: 28px; line-height: 1.25; margin: 40px 0 12px; font-weight: 500; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 6px; font-weight: 500; }
p { margin: 0 0 12px; }
.num { font-weight: 600; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.accent { color: var(--accent); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.block { padding-top: 56px; padding-bottom: 56px; }
.lede { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 640px; }
.badge { display: inline-block; background: var(--yellow); color: #1c1c1e; font-size: 13px; font-weight: 600; line-height: 1.4; border-radius: 999px; padding: 4px 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- header and footer ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.top.scrolled { box-shadow: var(--shadow-2); border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.mark { display: block; width: 30px; height: 30px; border-radius: 9px; transition: transform 0.25s var(--ease); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
nav { display: flex; gap: 24px; align-items: center; }
nav a { white-space: nowrap; flex: none; }
nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; position: relative; padding: 4px 0; }
nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); }
.n-search { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); cursor: pointer; flex: none; transition: border-color 0.15s, transform 0.15s; }
.n-search:hover { border-color: var(--ink); transform: scale(1.05); }
.n-sale { display: inline-flex; align-items: center; gap: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 0 rgb(229 72 77 / 0.6); animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgb(229 72 77 / 0); } 100% { box-shadow: 0 0 0 0 rgb(229 72 77 / 0); } }

.foot { background: var(--foot); color: #fff; margin-top: 56px; padding: 64px 0 32px; }
:root[data-theme="dark"] .foot { background: #07061a; border-top: 1px solid var(--line); }
.foot .brand { color: #fff; }
.foot .muted { color: #a5a8b5; }
.foot .muted a { color: #c9c4ff; text-decoration: underline; }
.foot-in { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2.6fr); gap: 48px; align-items: start; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-in p { max-width: 380px; font-size: 15px; line-height: 1.55; margin-top: 12px; }
.foot-links { display: flex; flex-direction: column; gap: 2px; font-size: 15.5px; min-width: 0; }
.foot-links strong { font-weight: 600; font-size: 17px; margin-bottom: 10px; color: #fff; }
.foot-links a { color: #b9bccb; text-decoration: none; padding: 5px 0; line-height: 1.35; overflow-wrap: anywhere; transition: color 0.15s; }
.foot-links a:hover { color: #fff; }
.fine { font-size: 14px; line-height: 1.6; color: #a5a8b5; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.12); }
.foot .badges { margin: 20px 0 0; }
.foot .store { background: #fff; color: #1c1c1e; border-color: #fff; }
.foot .store.soon { background: transparent; color: #a5a8b5; border-color: #4a4a58; }

/* ---------- buttons, store badges, bank marks ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.3; text-decoration: none; white-space: nowrap; border: 1px solid var(--btn); transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.button:hover { background: var(--btn-hover); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.button:active { transform: translateY(0); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.ghost:hover { border-color: var(--ink); background: transparent; }
.button.on-dark { background: #fff; color: #1c1c1e; border-color: #fff; }
.button.on-dark:hover { background: var(--yellow); border-color: var(--yellow); }
.badges { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 16px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); font-weight: 600; line-height: 1.15; font-size: 14px; text-decoration: none; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
a.store:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow-2); }
.store > span { display: flex; flex-direction: column; }
.store small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.store.soon { background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); cursor: default; }
.bm { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bm, var(--accent)); color: #fff; font: 700 11px/1 'Figtree', system-ui, sans-serif; border: 1.5px solid #fff; flex: none; }
.bm.long { font-size: 7px; letter-spacing: -0.02em; }
.bm.logo { background: #fff; border-color: #fff; }
.bm img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.bm.logo { overflow: hidden; }
.chip { display: grid; place-items: center; }
.plastic-bank { display: inline-flex; align-items: center; gap: 8px; }
.plastic .bm { width: 26px; height: 26px; font-size: 13px; opacity: 1; }

/* ---------- inner pages: directory, card, waiver, prose ---------- */
.filters { display: flex; gap: 12px; margin: 24px 0 8px; }
input, select { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 14px; min-height: 48px; }
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
#q { flex: 1; min-width: 0; border-radius: 999px; padding-inline: 20px; background: var(--soft); }
#seg { border-radius: 999px; padding-inline: 18px; }
.list { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; text-decoration: none; color: var(--ink); transition: transform 0.2s var(--ease), box-shadow 0.2s ease, border-color 0.2s ease; }
.row:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.row[hidden] { display: none; }
.chip { flex: 0 0 auto; width: 44px; height: 28px; border-radius: 6px; }
.row-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.row-main strong { font-weight: 600; }
.row-main .muted { font-size: 14px; }
.row-fee { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; }

.crumbs { font-size: 14px; color: var(--muted); }
.card-head { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; margin: 16px 0 28px; }
.card-head h1 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 8px; letter-spacing: -0.02em; }
.plastic { aspect-ratio: 1.586; border-radius: 20px; padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-4); background-image: linear-gradient(135deg, rgb(255 255 255 / 0.16), transparent 60%) !important; transition: transform 0.4s var(--ease); }
.plastic:hover { transform: rotate(-2deg) translateY(-4px); }
.plastic span { font-size: 13px; opacity: 0.9; font-weight: 600; }
.plastic strong { font-size: 22px; line-height: 1.1; font-weight: 600; }
.plastic em { font-style: normal; font-size: 12px; opacity: 0.85; align-self: flex-end; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 8px; }
.facts div { background: var(--t-yellow); color: var(--ink); border-radius: 20px; padding: 16px 18px; }
.facts div:nth-child(4n+2) { background: var(--t-teal); }
.facts div:nth-child(4n+3) { background: var(--t-rose); }
.facts div:nth-child(4n+4) { background: var(--t-lav); }
.facts dt { font-size: 13px; color: var(--muted); font-weight: 500; }
:root:not([data-theme="dark"]) .facts dt { color: #4a4f5e; }
.facts dd { margin: 4px 0 0; font-size: 24px; }
.card-page h2, .prose h2 { font-size: 22px; margin-top: 36px; }
.rules { padding-left: 20px; }
.rules li { margin-bottom: 4px; }
.note { background: var(--warn-soft); color: var(--warn); border-radius: 16px; padding: 14px 18px; margin-top: 24px; }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 12px; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 24px 0; }
.calc label { display: grid; gap: 6px; font-weight: 500; }
.calc input, .calc select { width: 100%; max-width: 100%; }
.result { background: var(--t-lav); border-radius: 28px; padding: 28px; margin-bottom: 16px; color: var(--ink); }
.bar { height: 12px; border-radius: 99px; background: var(--track); overflow: hidden; margin-bottom: 16px; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.big { font-size: 32px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.02em; }
.result .muted { color: var(--muted); }
:root:not([data-theme="dark"]) .result .muted { color: #4a4f5e; }
.prose li { margin-bottom: 8px; }
.prose a, .card-page a:not(.button) { text-decoration-thickness: 1.5px; }

/* ---------- shared bits for the landing page ---------- */
.t-yellow { background: var(--t-yellow); }
.t-rose { background: var(--t-rose); }
.t-teal { background: var(--t-teal); }
.t-coral { background: var(--t-coral); }
.t-orange { background: var(--t-orange); }
.t-lav { background: var(--t-lav); }
.t-mint { background: var(--t-mint); }

/* Sticky notes. In dark mode they stay light, like real paper on a dark board. */
.sn { position: relative; display: flex; flex-direction: column; gap: 2px; width: 150px; min-height: 112px; padding: 14px 14px 12px; border-radius: 6px 6px 6px 22px; color: #1c1c1e; box-shadow: 0 1px 2px rgb(5 0 56 / 0.08), 0 10px 20px -8px rgb(5 0 56 / 0.28); transform: rotate(var(--r, 0deg)); animation: bob var(--t, 8s) ease-in-out var(--o, 0s) infinite; transition: scale 0.2s var(--ease), box-shadow 0.2s ease, opacity 0.3s ease; }
.sn:hover { scale: 1.05; box-shadow: 0 1px 2px rgb(5 0 56 / 0.08), 0 18px 30px -10px rgb(5 0 56 / 0.35); }
:root[data-theme="dark"] .sn.t-yellow { background: #ffd02f; }
:root[data-theme="dark"] .sn.t-rose { background: #ffd8f4; }
:root[data-theme="dark"] .sn.t-teal { background: #c3faf5; }
:root[data-theme="dark"] .sn.t-coral { background: #ffc6c6; }
:root[data-theme="dark"] .sn.t-orange { background: #ffe6cd; }
:root[data-theme="dark"] .sn.t-lav { background: #e0daff; }
.sn small { font-size: 12px; font-weight: 500; color: #4a4f5e; line-height: 1.3; }
.sn strong { font-size: 17px; line-height: 1.2; font-weight: 600; }
.sn .bm { margin-bottom: 10px; border-color: rgb(255 255 255 / 0.9); }
.sn .mini { display: block; height: 8px; border-radius: 99px; background: rgb(28 28 30 / 0.12); margin-top: 10px; overflow: hidden; }
.sn .mini i { display: block; height: 100%; width: var(--w); background: #5b4bdb; border-radius: 99px; transform-origin: left; animation: grow 1.4s var(--ease) 0.8s both; }
.sn .pips { display: flex; gap: 6px; margin-top: 10px; }
.sn .pips i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #5b4bdb; }
.sn .pips i.on { background: #5b4bdb; }
.sn.ghost { position: absolute; left: 0; top: 0; margin: 0; z-index: 7; animation: none; pointer-events: none; box-shadow: 0 2px 4px rgb(5 0 56 / 0.1), 0 24px 40px -10px rgb(5 0 56 / 0.4); transition: none; }
.sn.away { opacity: 0.3; }
@keyframes bob { 50% { transform: translateY(-9px) rotate(calc(var(--r, 0deg) + 1.5deg)); } }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: 36px; overflow: hidden; }
.hero-top { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -0.03em; margin: 16px 0 16px; max-width: 14.5em; font-weight: 500; animation: rise 0.8s var(--ease) 0.05s both; }
.hero .h1b { display: block; color: var(--accent); }
.mk { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.mk::before { content: ''; position: absolute; left: -0.08em; right: -0.08em; bottom: 0.04em; height: 0.34em; background: var(--yellow); border-radius: 0.1em; z-index: -1; transform-origin: left center; transform: rotate(-0.8deg); animation: swipe 0.9s var(--ease) 0.9s both; }
:root[data-theme="dark"] .mk::before { opacity: 0.85; }
.hero .badge { animation: rise 0.6s var(--ease) both; }
.hero .lede { font-size: 17px; max-width: 46em; margin: 0 auto; animation: rise 0.8s var(--ease) 0.2s both; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; margin: 22px 0 0; animation: rise 0.8s var(--ease) 0.3s both; }
.hero-cta .button { padding-block: 14px; font-size: 15px; }
.facts-line { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px 28px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--muted); animation: rise 0.8s var(--ease) 0.4s both; }
.facts-line li { display: flex; align-items: center; gap: 8px; }
.facts-line li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes swipe { from { transform: rotate(-0.8deg) scaleX(0); } }

/* The board: a whiteboard with sticky notes, two cursors and the answer card. */
.board { position: relative; container-type: inline-size; margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px) minmax(0, 1fr); gap: 24px; align-items: center; padding: 28px 40px 36px; border-radius: 32px; border: 1px solid var(--line-soft); background-color: var(--soft); background-image: radial-gradient(var(--dot) 1.3px, transparent 1.5px); background-size: 24px 24px; box-shadow: var(--shadow-3); animation: rise 1s var(--ease) 0.35s both; }
.notes { display: flex; flex-wrap: wrap; gap: 20px 22px; align-content: center; transition: translate 0.5s var(--ease); translate: calc(var(--mx, 0) * -12px) calc(var(--my, 0) * -9px); }
.notes.left { justify-content: flex-end; }
.notes.left .sn:nth-child(2n) { margin-top: 26px; }
.notes.right { justify-content: flex-start; translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 10px); }
.notes.right .sn:nth-child(2) { margin-left: 28px; }

.ask { position: relative; z-index: 3; width: 100%; padding: 22px; border-radius: 28px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-4); }
.ask-label { margin: 0 0 12px; font-size: 24px; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.ask-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 2px solid var(--blue); border-radius: 8px; padding: 10px 16px; font-size: 18px; font-weight: 500; min-height: 48px; background: var(--surface); }
.ask-typed.typing::after { content: ''; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; background: var(--blue); vertical-align: -0.15em; animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ask-amt { color: var(--muted); font-size: 16px; }
.ask-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 14px; }
.chipb { font: inherit; font-size: 14px; font-weight: 500; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; }
.chipb:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.chipb[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.ask.ready .ask-out:not(.in) .pick, .ask.ready .ask-out:not(.in) .others li { opacity: 0; }
.ask-out .pick, .ask-out .others li { transition: opacity 0.35s ease, transform 0.5s var(--ease); }
.ask.ready .ask-out:not(.in) .pick { transform: translateY(14px) scale(0.97); }
.ask.ready .ask-out:not(.in) .others li { transform: translateY(8px); }
.ask-out.in .others li { transition-delay: calc(0.12s * var(--i, 1) + 0.1s); }
.pick { background: linear-gradient(135deg, #6a5af0, #4638b8); color: #fff; border-radius: 20px; padding: 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; box-shadow: 0 14px 30px -12px rgb(74 59 196 / 0.7); }
.chipc { width: 48px; height: 32px; border-radius: 7px; display: inline-grid; place-items: center; color: #fff; font: 600 14px 'Figtree', sans-serif; }
.pick small { display: block; font-size: 13px; opacity: 0.85; }
.pick strong { font-size: 21px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.pick .amt { font-size: 28px; text-align: right; }
.pick .amt small { display: inline; font-size: 12px; font-family: 'Figtree', sans-serif; opacity: 0.85; }
.pick p { grid-column: 1 / -1; margin: 10px 0 0; font-size: 14px; line-height: 1.45; opacity: 0.95; }
.others { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.others li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 12px; background: var(--soft); font-weight: 500; font-size: 15px; }
.ask-note { margin: 10px 4px 0; font-size: 12.5px; color: var(--muted); }

/* Cursors. "You" drifts by CSS alone; "Saifu" is moved by hero.js when it drags a card into the answer. */
.cur { position: absolute; left: 0; top: 0; z-index: 8; display: flex; align-items: flex-start; pointer-events: none; will-change: transform; }
.cur svg { display: block; filter: drop-shadow(0 2px 3px rgb(5 0 56 / 0.25)); }
.cur span { margin: 14px 0 0 -2px; padding: 2px 9px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.5; background: var(--cc); }
.cur.you { --cc: #4262ff; color: var(--cc); transform: translate(78cqw, 62cqw); animation: roam 16s ease-in-out infinite; }
.cur.sai { --cc: #5b4bdb; color: var(--cc); transform: translate(18cqw, 42cqw); }
:root[data-theme="dark"] .cur.you { --cc: #8da0ff; }
:root[data-theme="dark"] .cur.sai { --cc: #9a8cff; }
:root[data-theme="dark"] .cur span { color: #14122a; }
@keyframes roam {
  0% { transform: translate(80cqw, 20cqw); }
  25% { transform: translate(86cqw, 36cqw); }
  50% { transform: translate(70cqw, 40cqw); }
  75% { transform: translate(60cqw, 14cqw); }
  100% { transform: translate(80cqw, 20cqw); }
}

/* ---------- bank marquee ---------- */
.marquee { padding: 48px 0 8px; }
.mq-label { text-align: center; font-size: 14px; font-weight: 500; color: var(--muted); margin: 0 0 20px; }
.mq-view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.mq-view:hover .mq-track { animation-play-state: paused; }
.mq-set { display: flex; list-style: none; margin: 0; padding: 0; }
.mq { display: flex; align-items: center; gap: 10px; padding: 10px 28px; font-size: 16px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color 0.2s ease; }
.mq:hover { color: var(--ink); }
.mq.lg { padding-block: 8px; }
.mq .bank-logo { display: block; height: 26px; width: auto; max-width: 140px; object-fit: contain; filter: saturate(0.9); opacity: 0.9; transition: opacity 0.2s ease, filter 0.2s ease; }
.mq .bank-logo:hover { opacity: 1; filter: none; }
.mq-note { text-align: center; font-size: 12px; color: var(--muted); max-width: 64ch; margin: 14px auto 0; padding-inline: 16px; }
.mq .bm { width: 28px; height: 28px; font-size: 13px; border-color: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.mq .bm.long { font-size: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.lose-head h2, .feat-head h2, .shots-head h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 500; margin: 0 0 16px; }
.promise h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 16px; }

/* ---------- meters ---------- */
.lose { padding-block: 96px 24px; }
.lose-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.lose-head .lede { margin-inline: auto; }
.meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.meter { display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: 28px; color: var(--ink); transition: translate 0.25s var(--ease), rotate 0.25s var(--ease), box-shadow 0.25s ease; }
.meter:hover { translate: 0 -5px; rotate: -0.4deg; box-shadow: var(--shadow-3); }
.meter:nth-child(even):hover { rotate: 0.4deg; }
.meter h3 { font-size: 22px; margin: 0 0 6px; }
.meter p { margin: 0; font-size: 15px; max-width: 34em; }
:root:not([data-theme="dark"]) .meter p { color: #3b3f4e; }
:root[data-theme="dark"] .meter p { color: var(--muted); }
.track { height: 12px; border-radius: 99px; background: var(--track); overflow: hidden; }
:root:not([data-theme="dark"]) .track { background: rgb(255 255 255 / 0.65); }
.fill { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--accent); transform-origin: left center; transition: transform 1.2s var(--ease) var(--d, 0s); }
.fill.warn { background: var(--ink-deep); }
:root[data-theme="dark"] .fill.warn { background: #ffb86b; }
.motion .meter:not(.in) .fill { transform: scaleX(0); }
.value { font-size: 32px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; margin-top: auto; }
.dots { display: flex; gap: 12px; height: 12px; align-items: center; }
.dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); transition: background-color 0.4s ease calc(var(--k, 0) * 0.15s + var(--d, 0s)), transform 0.4s var(--ease) calc(var(--k, 0) * 0.15s + var(--d, 0s)); }
.dots i.on { background: var(--accent); }
.motion .meter:not(.in) .dots i.on { background: transparent; transform: scale(0.7); }
.fineprint { margin: 16px 4px 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- features ---------- */
.feat { padding-block: 96px 64px; }
.feat-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.feat-head .lede { margin-inline: auto; }
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; padding: 32px; border-radius: 28px; color: var(--ink); transition: translate 0.25s var(--ease), rotate 0.25s var(--ease), box-shadow 0.25s ease; overflow: hidden; }
.tile.s3 { grid-column: span 3; }
.tile.s2 { grid-column: span 2; }
.tile.s6 { grid-column: span 6; }
.tile:hover { translate: 0 -5px; rotate: -0.5deg; box-shadow: var(--shadow-3); }
.tile:nth-child(even):hover { rotate: 0.5deg; }
.tile h3 { font-size: 22px; margin: 18px 0 8px; }
.tile p { margin: 0; font-size: 15.5px; max-width: 36em; }
:root:not([data-theme="dark"]) .tile p { color: #3b3f4e; }
:root[data-theme="dark"] .tile p { color: var(--muted); }
.tile a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; font-weight: 500; }
.shape { display: block; width: 40px; height: 40px; background: var(--accent); transition: transform 0.5s var(--ease); }
.tile:hover .shape { transform: rotate(90deg) scale(1.08); }
.sh1 { border-radius: 50%; }
.sh2 { border-radius: 10px; }
.sh3 { clip-path: polygon(50% 4%, 96% 92%, 4% 92%); }
.sh4 { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.sh5 { width: 56px; height: 28px; border-radius: 999px; margin-top: 6px; margin-bottom: 6px; }
.sh6 { border-radius: 40px 40px 0 0; height: 24px; margin-top: 16px; }
.sh7 { clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 82% 100%, 50% 76%, 18% 100%, 30% 60%, 0 38%, 38% 36%); }

/* ---------- screens ---------- */
.band { background: var(--soft); background-image: radial-gradient(var(--dot) 1.3px, transparent 1.5px); background-size: 24px 24px; padding-block: 88px 24px; margin-top: 48px; }
.shots-head { text-align: center; }
.shots-head h2 { margin-bottom: 0; }
.shots { display: flex; gap: 24px; justify-content: center; overflow-x: auto; padding-block: 48px 72px; align-items: flex-start; }
.shots figure { margin: 0; flex: 0 0 auto; text-align: center; }
.shots figure:nth-child(even) { margin-top: 40px; }
.shots img { display: block; width: 230px; height: auto; border-radius: 28px; border: 1px solid var(--line-soft); box-shadow: var(--shadow-3); transition: transform 0.35s var(--ease), box-shadow 0.35s ease; }
.shots figure:hover img { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-4); }
.shots figure:nth-child(even):hover img { transform: translateY(-8px) rotate(1deg); }
.shots figcaption { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--t-yellow); color: #1c1c1e; }
.shots figure:nth-child(2) figcaption { background: var(--t-teal); }
.shots figure:nth-child(3) figcaption { background: var(--t-rose); }
.shots figure:nth-child(4) figcaption { background: var(--t-lav); }
:root[data-theme="dark"] .shots figcaption { color: var(--ink); }

/* ---------- promise ---------- */
.promise { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; padding-block: 88px 24px; }
.pcard { padding: 40px; border-radius: 28px; }
.pcard p { max-width: 36em; font-size: 16px; }
.pcard.dark { background: #1c1c1e; color: #fff; }
.pcard.dark p { color: #c9cbd6; }
.pcard.dark a { color: var(--yellow); }
:root[data-theme="dark"] .pcard.dark { background: var(--surface); border: 1px solid var(--line); }
.pcard.lav { background: var(--accent-soft); border: 2px solid var(--accent); }
.pcard.lav p { color: var(--muted); }
:root:not([data-theme="dark"]) .pcard.lav p { color: #3b3f4e; }
.pcard.lav a { color: var(--accent); font-weight: 500; }

/* ---------- closing banner ---------- */
.cta { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; background: #1c1c1e; color: #fff; border-radius: 32px; padding: 64px; overflow: hidden; }
:root[data-theme="dark"] .cta { background: var(--surface); border: 1px solid var(--line); }
.cta h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; letter-spacing: -0.02em; }
.cta p { margin: 0 0 28px; color: #c9cbd6; max-width: 36em; }
.cta-in { position: relative; z-index: 1; }
.cta-notes { position: relative; flex: none; width: 250px; height: 200px; }
.cta-notes .sn { position: absolute; width: 112px; min-height: 112px; }
.cta-notes .sn:nth-child(1) { left: 0; top: 10px; }
.cta-notes .sn:nth-child(2) { left: 86px; top: 70px; }
.cta-notes .sn:nth-child(3) { left: 138px; top: -16px; }
.get { text-align: center; padding-top: 24px; }
.get h2 { margin-top: 0; font-size: 36px; }
.get .badges { justify-content: center; }

/* ---------- motion hooks: only active when motion.js has run and motion is allowed ---------- */
.motion .rv:not(.in) { opacity: 0; transform: translateY(28px); }
.motion .rv { transition: opacity 0.7s ease calc(var(--i, 0) * 90ms), transform 0.8s var(--ease) calc(var(--i, 0) * 90ms), translate 0.25s var(--ease), rotate 0.25s var(--ease), box-shadow 0.25s ease; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .board { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); padding-inline: 28px; }
  .notes.right { display: none; }
}
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .board { grid-template-columns: minmax(0, 1fr); padding: 28px 16px 36px; margin-top: 40px; border-radius: 24px; gap: 20px; }
  .notes.left { justify-content: center; gap: 12px; }
  .notes.left .sn { width: calc(50% - 10px); min-height: 88px; padding: 10px 12px; }
  .notes.left .sn:nth-child(2n) { margin-top: 0; }
  .notes.left .sn .bm { margin-bottom: 4px; }
  .ask { padding: 20px; }
  .ask-label { font-size: 22px; }
  .meters { grid-template-columns: minmax(0, 1fr); }
  .meter, .tile, .pcard { padding: 24px; }
  .lose { padding-top: 64px; }
  .feat { padding-block: 64px 32px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tile.s3, .tile.s2, .tile.s6 { grid-column: auto; }
  .shots { justify-content: flex-start; padding-inline: 24px; }
  .shots img { width: 190px; }
  .promise { grid-template-columns: minmax(0, 1fr); padding-top: 64px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 36px 24px; }
  .cta-notes { display: none; }
  .card-head { grid-template-columns: 1fr; gap: 24px; }
  .card-head .plastic { max-width: 320px; }
  nav { gap: 14px; }
  .top nav .n-calc, .top nav .n-lounges, .top nav .n-earn, .top nav .n-ipo { display: none; }
  .filters { flex-direction: column; }
  .foot { padding-top: 48px; }
  .mq-label { padding-inline: 24px; }
}
@media (max-width: 480px) {
  .top nav .n-compare { display: none; }
  .wrap { padding-inline: 16px; }
  .hero h1 { font-size: 36px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .button, .hero-cta .store { width: 100%; justify-content: center; }
  .shots img { width: 170px; }
  .pick strong { font-size: 18px; }
  .pick .amt { font-size: 24px; }
  .value { font-size: 28px; }
  .cur.you { display: none; }
  .mk { white-space: normal; }
}

/* ---------- reduced motion: everything is already at its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  .sn, .sn .mini i, .cur, .mq-track, .hero h1, .hero .badge, .hero .lede, .hero-cta, .facts-line, .board, .mk::before, .ask-typed.typing::after { animation: none !important; }
  .mq-view { -webkit-mask-image: none; mask-image: none; }
  .mq-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .mq-set { flex-wrap: wrap; justify-content: center; }
  .mq-copy { display: none; }
  .meter, .tile, .row, .button, .store, .shape, .shots img, .plastic, .mark, nav a::after, .notes, .ask-out .pick, .ask-out .others li, .fill, .dots i, .chipb, .top, .sn { transition: none !important; }
  .meter:hover, .tile:hover, .row:hover, .plastic:hover, .shots figure:hover img, .button:hover, a.store:hover { transform: none; translate: none; rotate: none; }
  .cur.you { transform: translate(80cqw, 20cqw); }
}

.hero-foot { margin: 24px 0 0; justify-content: center; animation: none; }

/* ---------- video ---------- */
.video-sec { padding-block: 24px 56px; text-align: center; }
.video-sec h2 { font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.02em; font-weight: 500; margin: 0 0 24px; }
.vid { margin: 0 auto; max-width: 960px; }
.vid video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 20px; background: #1c1c1e; box-shadow: var(--shadow-3, 0 12px 40px rgba(20,20,40,.18)); }
.vid figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* Compare */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cmp-pick select { min-width: 0; width: 100%; }
.cmp-wrap { overflow-x: auto; margin: 20px 0 12px; border: 1px solid var(--line-soft); border-radius: 20px; background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--line-soft); }
.cmp thead th { border-top: 0; font-weight: 600; }
.cmp thead th a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.cmp thead th a:hover { color: var(--accent); }
.cmp thead th .chip { width: 30px; height: 20px; border-radius: 5px; flex: none; }
.cmp thead th .muted { display: block; font-size: 13px; font-weight: 400; margin-top: 2px; }
.cmp.val { min-width: 0; }
.cmp.val th, .cmp.val td { padding: 12px; }
.cmp tbody th { font-weight: 500; color: var(--muted); width: 22%; font-size: 14px; }
.links { padding-left: 18px; columns: 2 260px; }
.links li { margin: 6px 0; break-inside: avoid; }

/* Blog */
.post h2 { margin-top: 32px; }
.post blockquote { margin: 16px 0; padding: 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.post-row .row-main { gap: 4px; }
.post-row .row-main strong { font-size: 18px; }
.cmp thead th.lead { background: linear-gradient(180deg, var(--t-lav), transparent); }
.cmp .wins { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--t-yellow); color: var(--ink); }
.cmp thead th.lead .wins { background: var(--accent); color: #fff; }
.cmp td.best { background: var(--t-mint); color: var(--ink); font-weight: 600; animation: winpop 0.5s var(--ease) both; }
.cmp td.best .badge { display: inline-block; margin: 0 8px 4px 0; padding: 2px 8px; border-radius: 999px; background: #12a594; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; vertical-align: 1px; }
.cmp .apply-row td { vertical-align: middle; }
.cmp .apply-row .button { padding: 10px 20px; }
.cmp .apply-row .small { display: block; margin-top: 6px; }
@keyframes winpop { from { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .cmp td.best { animation: none; } }

/* Calculators */
.h3 { font-size: 18px; margin: 0 0 12px; font-weight: 600; }
.tool-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.tool-head h1 { margin-bottom: 8px; }
.tool-ico { flex: none; width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.tool-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
.tool-in { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-3); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 14px; }
.field .in { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--soft); padding: 0 14px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field .in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field .in input { flex: 1; min-width: 0; min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; font: inherit; font-size: 18px; font-weight: 600; padding: 10px 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.field .in input:focus { outline: none; }
.field .pre, .field .suf { color: var(--muted); font-size: 15px; }
.field .pre { margin-right: 6px; }
.field .suf { margin-left: 6px; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--track) var(--p, 50%)); margin: 4px 0; cursor: pointer; }
.field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); box-shadow: var(--shadow-2); transition: transform 0.15s var(--ease); }
.field input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.field input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--soft); border: 1px solid var(--line-soft); border-radius: 14px; padding: 4px; gap: 4px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 9px 8px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background-color 0.2s ease, color 0.2s ease; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.tool-out { display: grid; gap: 20px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat { border-radius: 22px; padding: 18px 20px; display: grid; gap: 4px; color: var(--ink); transition: transform 0.25s var(--ease); }
.stat:hover { transform: translateY(-3px) rotate(-0.5deg); }
.stat .k { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat strong { font-size: clamp(20px, 2.4vw, 32px); overflow-wrap: anywhere; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 13px; color: var(--muted); min-height: 1.2em; }
.stat.win { outline: 3px solid #12a594; outline-offset: -3px; }
.chart-panel, .sched, .panel-box { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 24px; padding: 22px; }
.sched summary { cursor: pointer; font-weight: 600; }
.chart { position: relative; }
.chart-box { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 12px; font-family: inherit; }
.chart rect.c1, .chart .dot.c1 { fill: var(--c1); }
.chart rect.c2, .chart .dot.c2 { fill: var(--c2); }
.chart rect.c3, .chart .dot.c3 { fill: var(--c3); }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln.c1 { stroke: var(--c1); }
.chart .ln.c2 { stroke: var(--c2); }
.chart .ln.c3 { stroke: var(--c3); }
.chart .cross { stroke: var(--line-strong); stroke-dasharray: 3 3; }
.chart .hit { fill: transparent; }
.chart .bar { transform-box: fill-box; transform-origin: bottom; animation: grow 0.6s var(--ease) both; animation-delay: var(--d, 0ms); transition: opacity 0.15s ease; }
.chart .bar.dim { opacity: 0.35; }
@keyframes grow { from { transform: scaleY(0); } }
.chart .ln { stroke-dasharray: 2000; animation: draw 1.1s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }
.chart-tip[hidden] { display: none; }
.chart-tip { position: absolute; top: 0; pointer-events: none; background: var(--ink); color: var(--ground); border-radius: 12px; padding: 10px 12px; font-size: 13px; display: grid; gap: 4px; min-width: 170px; box-shadow: var(--shadow-3); z-index: 2; }
.chart-tip span { display: flex; align-items: center; gap: 8px; }
.chart-tip b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.chart-tip .sum { border-top: 1px solid rgb(255 255 255 / 0.2); padding-top: 4px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 4px; flex: none; }
.sw.ln { height: 3px; border-radius: 2px; width: 16px; }
.sw.c1 { background: var(--c1); }
.sw.c2 { background: var(--c2); }
.sw.c3 { background: var(--c3); }
.tool-text { margin-top: 40px; }
.faqs details { border-top: 1px solid var(--line-soft); padding: 14px 0; }
.faqs details:last-child { border-bottom: 1px solid var(--line-soft); }
.faqs summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faqs summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; transition: transform 0.2s var(--ease); }
.faqs details[open] summary::after { transform: rotate(45deg); }
.faqs p { margin: 10px 0 0; color: var(--muted); }
.sources { font-size: 14px; }
.tools-bento .tile { padding: 0; }
.tile-link { display: block; height: 100%; padding: 32px; color: var(--ink); text-decoration: none; }
.tile-link .go { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); transition: transform 0.2s var(--ease); }
.tile:hover .go { transform: translateX(4px); }
@media (max-width: 900px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-in { position: static; }
  .tool-head { flex-direction: column; gap: 14px; }
  .tool-ico { width: 60px; height: 60px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-ico, .chart .bar, .chart .ln { animation: none; }
}
.in-head { display: flex; align-items: center; gap: 8px; margin: 8px 0 -6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { min-height: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.urow { display: grid; grid-template-columns: 60px 1fr 1fr; gap: 10px; align-items: end; }
.ulab { font-weight: 600; font-size: 14px; padding-bottom: 12px; }
.mini { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.mini .in { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--soft); padding: 0 10px; }
.mini .in:focus-within { border-color: var(--accent); }
.mini input { width: 100%; min-width: 0; min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 9px 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini input:focus { outline: none; box-shadow: none; }
.tool-in .hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.field select { width: 100%; border-radius: 14px; border: 1.5px solid var(--line); background: var(--soft); font-weight: 500; }
.field.off { opacity: 0.4; pointer-events: none; }
.meters { display: grid; gap: 16px; }
.umeter { display: grid; gap: 6px; }
.umeter-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.umeter-track { position: relative; height: 12px; border-radius: 999px; background: var(--track); overflow: visible; }
.umeter-track i { display: block; height: 100%; border-radius: 999px; transition: width 0.6s var(--ease); }
.umeter-track em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 2px; }
.good { background: #12a594; }
.warn { background: #d97706; }
.bad { background: #e5484d; }
.umeter.total { padding-top: 14px; border-top: 1px dashed var(--line); }
.stat[data-level="good"] { box-shadow: inset 0 0 0 3px #12a594; }
.stat[data-level="warn"] { box-shadow: inset 0 0 0 3px #d97706; }
.stat[data-level="bad"] { box-shadow: inset 0 0 0 3px #e5484d; }
.gauge-panel { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; align-items: center; background: linear-gradient(135deg, var(--t-yellow), var(--t-rose)); border-radius: 24px; padding: 22px; }
.gauge svg { width: 100%; height: auto; display: block; }
.g-track, .g-fill { fill: none; stroke-width: 16; stroke-linecap: round; }
.g-track { stroke: rgb(28 28 30 / 0.12); }
.g-fill { stroke: #e5484d; stroke-dasharray: 0 100; transition: stroke-dasharray 0.7s var(--ease), stroke 0.3s ease; }
.gauge[data-level="warn"] .g-fill { stroke: #d97706; }
.gauge[data-level="good"] .g-fill { stroke: #12a594; }
.g-num { font-size: 40px; font-weight: 700; fill: var(--ink); font-family: inherit; }
.gauge .tick { fill: var(--ink); opacity: 0.65; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gauge-text { display: grid; gap: 4px; color: var(--ink); }
.gauge-text .k { font-size: 13px; font-weight: 600; opacity: 0.7; }
.gauge-text strong { font-size: 28px; }
.gauge-text .band { display: inline-block; width: fit-content; padding: 3px 12px; border-radius: 999px; background: var(--ink); color: var(--ground); font-weight: 600; font-size: 13px; }
.gauge-text p { margin: 6px 0 0; color: var(--ink); opacity: 0.8; }
.tips ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
@media (max-width: 600px) { .gauge-panel { grid-template-columns: minmax(0, 1fr); } .urow { grid-template-columns: 1fr 1fr; } .ulab { grid-column: 1 / -1; padding: 0; } }
@media (prefers-reduced-motion: reduce) { .g-fill, .umeter-track i { transition: none; } }

/* Learn */
.topic-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none; width: fit-content; }
.topic-chip.big { font-size: 15px; padding: 10px 18px; transition: transform 0.2s var(--ease), box-shadow 0.2s ease; }
.topic-chip.big:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: var(--shadow-3); }
.post .topic-chip { margin-bottom: 14px; }
.post .lede { margin-top: 0; }
.byline { margin-bottom: 24px; }
.post h2 { padding-top: 8px; }
.post strong { color: var(--ink); }
.tool-cta { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 20px; color: var(--ink); text-decoration: none; margin: 8px 0 28px; transition: transform 0.2s var(--ease), box-shadow 0.2s ease; }
.tool-cta:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.tool-cta .shape { flex: none; }
.tool-cta span { display: grid; gap: 2px; }
.tool-cta span span { color: var(--muted); font-size: 14px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 18px 0 24px; }
.post-card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--accent); }
.post-card strong { font-size: 20px; font-weight: 600; line-height: 1.3; }
.learn-hero { position: relative; overflow: hidden; padding: 72px 0 56px; background: linear-gradient(160deg, var(--accent-soft), var(--ground) 70%); }
.learn-hero .wrap { position: relative; z-index: 1; }
.learn-hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 14em; }
.hl { background: linear-gradient(transparent 60%, var(--yellow) 60%); padding: 0 4px; }
.topic-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.lh-blob { position: absolute; border-radius: 40px; opacity: 0.9; animation: float 9s ease-in-out infinite; }
.lh-blob.b1 { width: 180px; height: 180px; background: var(--t-yellow); right: 6%; top: 40px; transform: rotate(12deg); }
.lh-blob.b2 { width: 120px; height: 120px; background: var(--t-teal); right: 20%; bottom: 20px; border-radius: 50%; animation-delay: -3s; }
.lh-blob.b3 { width: 90px; height: 90px; background: var(--t-rose); right: 2%; bottom: 60px; animation-delay: -6s; }
@keyframes float { 50% { translate: 0 -14px; rotate: 6deg; } }
.tool-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 16px 0 32px; }
.tool-card { display: grid; gap: 14px; padding: 20px; border-radius: 22px; color: var(--ink); text-decoration: none; font-size: 16px; transition: transform 0.25s var(--ease); }
.tool-card:hover { transform: translateY(-4px) rotate(-1deg); }
.tool-card .shape { width: 32px; height: 32px; }
.topic-sec h2 a { color: var(--ink); text-decoration: none; }
.topic-sec h2 a:hover { color: var(--accent); }
.write-band { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin: 40px 0 16px; padding: 32px; border-radius: 28px; background: linear-gradient(120deg, var(--t-lav), var(--t-teal)); color: var(--ink); }
.write-band h2 { margin: 0 0 6px; }
.write-band p { margin: 0; }
.rss { margin-top: 20px; }
@media (max-width: 900px) { .lh-blob { opacity: 0.4; } .learn-hero { padding: 48px 0 40px; } }
@media (prefers-reduced-motion: reduce) { .lh-blob { animation: none; } }

/* Write page */
.write-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 24px; align-items: start; margin-top: 24px; }
.write-main { display: grid; gap: 16px; min-width: 0; }
.write-side { display: grid; gap: 16px; position: sticky; top: 88px; }
.write-side .panel-box { display: grid; gap: 14px; }
.wfield { display: grid; gap: 6px; }
.wfield label { font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.wfield input, .wfield select, .write-main textarea { width: 100%; border-radius: 14px; border: 1.5px solid var(--line); background: var(--soft); }
.write-main #w-title { font-size: 22px; font-weight: 600; }
.write-main textarea { font-size: 16px; line-height: 1.6; font-family: inherit; padding: 16px; color: var(--ink); resize: vertical; min-height: 420px; }
.write-main textarea:focus, .wfield input:focus, .wfield select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.count { font-weight: 500; color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 6px; align-items: center; }
.tabs button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.tabs .count { margin-left: auto; }
.w-preview { min-height: 420px; padding: 16px 20px; border: 1.5px dashed var(--line); border-radius: 14px; max-width: none; }
.send { width: 100%; }
.send:disabled { opacity: 0.5; cursor: not-allowed; }
.w-errors { color: #b3261e; margin: 0; padding-left: 18px; font-size: 14px; }
.w-tips ul { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 6px; }
.w-done { display: grid; justify-items: start; gap: 12px; margin-top: 24px; padding: 32px; border-radius: 28px; background: linear-gradient(120deg, var(--t-mint), var(--t-teal)); color: var(--ink); }
.w-done h2 { margin: 0; }
@media (max-width: 900px) { .write-grid { grid-template-columns: minmax(0, 1fr); } .write-side { position: static; } }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 32px 0 8px; }
.share > span { font-weight: 600; margin-right: 6px; }
.share-btn { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; transition: transform 0.2s var(--ease), border-color 0.2s ease; }
.share-btn:hover { transform: translateY(-2px); border-color: var(--accent); }
button.share-btn { background: none; font-family: inherit; cursor: pointer; }
.share-copy { border-color: var(--accent); color: var(--accent); }
.share-copy.is-done { background: var(--accent); color: var(--surface); }
.write-band.alt { background: linear-gradient(120deg, var(--t-yellow), var(--t-orange)); }
.card-tools { margin-top: 8px; }
.card-tools .tool-card { text-decoration: none; }

/* Icons (Lucide, ISC) */
.ico { display: block; width: 24px; height: 24px; flex: none; }
.tile-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgb(255 255 255 / 0.7); color: var(--accent); box-shadow: var(--shadow-1); transition: transform 0.5s var(--ease); }
.tile-ico .ico { width: 26px; height: 26px; }
.tile:hover .tile-ico { transform: rotate(-8deg) scale(1.08); }
:root[data-theme="dark"] .tile-ico { background: rgb(255 255 255 / 0.08); }
.tool-ico { color: var(--accent); }
.tool-ico .ico { width: 38px; height: 38px; }
.tool-card .ico { width: 28px; height: 28px; color: var(--accent); transition: transform 0.3s var(--ease); }
.tool-card:hover .ico { transform: scale(1.12) rotate(-6deg); }
.cta-ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgb(255 255 255 / 0.7); color: var(--accent); }
:root[data-theme="dark"] .cta-ico { background: rgb(255 255 255 / 0.08); }
@media (max-width: 900px) { .tool-ico .ico { width: 30px; height: 30px; } }
.legal-box { background: var(--accent-soft); border: 1px solid var(--line-soft); border-left: 4px solid var(--accent); border-radius: 16px; padding: 16px 20px; margin: 20px 0; }
.legal-box p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 28px; padding-bottom: 8px; font-size: 15px; }
.legal-links a { color: inherit; opacity: 0.85; }
.legal-links a:hover { opacity: 1; }
.notice { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 13.5px; line-height: 1.5; }
.notice p { margin: 8px 0 0; color: var(--muted); }
.store-badge { display: inline-flex; align-items: center; height: 45px; transition: transform 0.15s ease; }
button.store-badge { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 9px; }
button.store-badge:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.badges { position: relative; }
.soon-pop { position: absolute; left: clamp(110px, var(--x, 50%), calc(100% - 110px)); bottom: calc(100% + 12px); transform: translate(-50%, 6px) scale(0.96); opacity: 0; display: flex; flex-direction: column; gap: 2px; width: max-content; max-width: min(260px, 90vw); padding: 10px 14px; border-radius: 14px; background: #1c1c1e; color: #fff; font-size: 13px; line-height: 1.35; box-shadow: 0 12px 30px rgb(5 0 56 / 0.25); pointer-events: none; transition: opacity 0.2s ease, transform 0.25s var(--ease); z-index: 5; }
.soon-pop b { font-size: 14px; }
.soon-pop span { color: #c9cbd6; }
.soon-pop::after { content: ''; position: absolute; left: 50%; top: 100%; width: 12px; height: 12px; background: #1c1c1e; transform: translate(-50%, -6px) rotate(45deg); border-radius: 2px; }
.soon-pop.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.foot .soon-pop { background: #fff; color: #1c1c1e; }
.foot .soon-pop span { color: #555a6a; }
.foot .soon-pop::after { background: #fff; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 45px; width: auto; display: block; }
.store-badge img.gp { height: 65px; margin: -10px -10px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 28px 0 8px; }
.pager button { font: inherit; font-size: 14px; font-weight: 600; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease; }
.pager button:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.pager button:disabled { opacity: 0.4; cursor: default; }
.pager button.pg-cur { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); opacity: 1; }
.pager .gap { color: var(--muted); padding: 0 4px; }
.cmp tbody th { color: var(--ink); font-weight: 600; }
.cmp td { color: var(--ink); }
.cmp td.na { color: var(--muted); font-style: italic; }
.cmp td.best { font-weight: 700; }
/* Until the listings are live: dark placeholders the size and shape of the store badges, without the
   Apple or Google marks, which their guidelines allow only on badges that link to a live listing. */
.store.soon { background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 9px; height: 45px; padding: 0 14px 0 10px; gap: 8px; cursor: default; opacity: 0.92; }
.store.soon small { color: #d0d0d0; font-size: 10.5px; letter-spacing: 0.01em; }
.store.soon svg { color: #fff; }
.store.soon:hover { transform: none; box-shadow: none; }

/* EPF and salary tools: a one-line split under the stats */
.sw.c0 { background: var(--line-strong); }
.split { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 14px; color: var(--muted); }
.split .k { font-weight: 600; color: var(--ink); width: 100%; font-size: 13px; }
.split span { display: inline-flex; align-items: center; gap: 6px; }
.split b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tool-group { margin-top: 36px; }
.tool-group h2 { margin: 0 0 4px; }
.tool-group > p { margin: 0 0 14px; }

/* Trending now, on Learn and the home page */
.trending { border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; background: linear-gradient(135deg, var(--t-orange), var(--surface) 60%); margin-bottom: 28px; }
.trending h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.tr-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface); color: #d9480f; }
.tr-ico .ico { width: 20px; height: 20px; }
.trending ol { margin: 0; padding: 0; list-style: none; counter-reset: tr; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.trending li { counter-increment: tr; min-width: 0; }
.trending ol a { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; padding: 10px 0; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line-soft); }
.trending ol a::before { content: counter(tr); grid-row: span 2; font-weight: 700; font-size: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.trending ol a:hover strong { color: var(--accent); }
.trending ol a .muted { grid-column: 2; }
@media (max-width: 700px) { .trending ol { grid-template-columns: minmax(0, 1fr); } }

.fine a { color: #d6d3ff; }

/* Languages: the bar above a translated page, and the footer row */
.langbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 14px; font-size: 14px; color: var(--muted); }
.langbar .ico { width: 18px; height: 18px; }
.langbar a { color: var(--accent); text-decoration: none; }
.langbar a:hover { text-decoration: underline; }
.langbar [aria-current] { color: var(--ink); font-weight: 600; }
.lang-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; padding-bottom: 8px; color: #a5a8b5; }
.lang-links a { color: #d6d3ff; text-decoration: none; }
.lang-links a[aria-current] { color: #fff; font-weight: 600; }
:lang(hi), :lang(mr), :lang(bn), :lang(te), :lang(ta) { line-height: 1.7; }
:lang(hi) :is(h1, h2, h3), :lang(mr) :is(h1, h2, h3), :lang(bn) :is(h1, h2, h3), :lang(te) :is(h1, h2, h3), :lang(ta) :is(h1, h2, h3) { line-height: 1.3; }
:lang(hi) body, :lang(mr) body { font-family: 'Figtree', 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', system-ui, sans-serif; }
:lang(bn) body { font-family: 'Figtree', 'Noto Sans Bengali', 'Nirmala UI', 'Vrinda', system-ui, sans-serif; }
:lang(te) body { font-family: 'Figtree', 'Noto Sans Telugu', 'Nirmala UI', 'Gautami', system-ui, sans-serif; }
:lang(ta) body { font-family: 'Figtree', 'Noto Sans Tamil', 'Nirmala UI', 'Latha', system-ui, sans-serif; }
@media (max-width: 480px) {
  .top nav { min-width: 0; gap: 12px; }
  :lang(ta) nav a, :lang(te) nav a, :lang(bn) nav a, :lang(mr) nav a { font-size: 14px; }
}
/* On phones, translated pages show Calculators in the header instead of the English card list */
@media (max-width: 900px) {
  html:not([lang="en-IN"]) .top nav .n-cards { display: none; }
  html:not([lang="en-IN"]) .top nav .n-calc { display: inline; }
}

/* Rates and calendars */
.data-page .tool-ico { margin-bottom: 12px; }
.state-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.state-grid a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); text-decoration: none; background: var(--surface); }
.state-grid a:hover { border-color: var(--accent); color: var(--accent); }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 10px; margin: 20px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.data caption { text-align: left; font-weight: 600; padding: 8px 0; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--soft); }
table.data td.win { font-weight: 700; color: var(--accent); }
table.fd td, table.ss td { white-space: nowrap; }
.blk { display: block; }
.nowrap { white-space: nowrap; }
.na { color: var(--muted); }
.hol-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.hol-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.hol-list li.sat { background: var(--soft); color: var(--muted); }
.hol-date { font-weight: 600; font-variant-numeric: tabular-nums; }
.chg-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.chg { border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px; padding: 12px 16px; background: var(--surface); }
.chg.worse { border-left-color: #e5484d; }
.chg.better { border-left-color: #12a594; }
.chg p { margin: 6px 0 0; }
.chg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chg-date { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.pill.worse { background: #fde8e8; color: #9b1c1f; }
.pill.better { background: #dcf5ef; color: #0b6b5d; }
:root[data-theme="dark"] .pill.worse { background: #4a2323; color: #ffc6c6; }
:root[data-theme="dark"] .pill.better { background: #0f3a37; color: #9ff0e2; }
.rate-now { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 20px 0; }
@media (max-width: 800px) { .rate-now { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hol-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.wa-follow { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 12px; padding: 6px 14px; border-radius: 999px; background: #1f7a4d; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.wa-follow:hover { background: #17603c; }
.report { padding-block: 24px 0; }
.inshort { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--accent-soft); padding: 14px 18px; margin: 18px 0; }
.inshort strong { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 6px; }
.inshort ul { margin: 0; padding-left: 20px; }
.inshort li { margin: 4px 0; }

/* Card finder */
.finder { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; margin: 24px 0; }
.finder .field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.finder select { width: 100%; min-width: 0; }
.finder-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.finder-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; }
.finder-card .rank { font-weight: 700; color: var(--muted); min-width: 1.2em; }
.finder-card .row-main a { color: var(--ink); text-decoration: none; }
.finder-card .finder-val { display: flex; flex-direction: column; text-align: right; margin-left: auto; }
@media (max-width: 560px) { .finder-card .finder-val { text-align: left; margin-left: 0; flex-basis: 100%; } }

/* Sale banner: part of the sticky header. A Saifu avatar "types", then says one line per live sale. */
.sale-banner { border-top: 1px solid var(--line-soft); background: linear-gradient(90deg, var(--t-yellow), color-mix(in srgb, var(--t-yellow) 55%, var(--t-lav))); color: var(--ink); font-size: 14px; }
.sb-in { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-block: 6px; }
.sb-avatar { position: relative; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #5B4BDB; }
.sb-avatar::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #5B4BDB; opacity: 0; animation: sbPulse 2.4s ease-out infinite; }
.sb-name { flex: none; font-weight: 700; font-size: 13px; }
.sb-say { flex: 1; min-width: 0; display: flex; align-items: center; }
.sb-msg { display: none; color: var(--ink); text-decoration: none; font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sb-msg:not(.is-on) { display: none; }
.sb-msg:hover { text-decoration: underline; }
.sb-msg.is-on { animation: sbIn 0.45s var(--ease) both; }
.sb-dots { display: none; gap: 4px; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.sb-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: 0.35; animation: sbDot 1s ease-in-out infinite; }
.sb-dots i:nth-child(2) { animation-delay: 0.15s; }
.sb-dots i:nth-child(3) { animation-delay: 0.3s; }
.sb-say.typing .sb-dots { display: inline-flex; }
.sb-say.typing .sb-msg { display: none; }
.sb-close { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.sb-close:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
@keyframes sbPulse { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes sbDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.35; } 30% { transform: translateY(-4px); opacity: 0.9; } }
@keyframes sbIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .sb-name { display: none; } .sale-banner { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .sb-avatar::after, .sb-dots i, .sb-msg.is-on { animation: none; } }
/* Sticky panels sit below the taller header while the banner shows. */
body:has(.sale-banner:not([hidden])) .tool-in, body:has(.sale-banner:not([hidden])) .write-side { top: 140px; }

/* ---------- site search ---------- */
.search-dlg { padding: 0; border: 0; background: transparent; width: min(640px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - 120px)); margin: 72px auto auto; overflow: visible; }
.search-dlg::backdrop { background: rgb(5 0 56 / 0.35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.search-dlg[open] .sr-box { animation: srIn 0.18s var(--ease); }
@keyframes srIn { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.sr-box { display: flex; flex-direction: column; max-height: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgb(5 0 56 / 0.25); overflow: hidden; }
.sr-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.search-dlg .sr-bar input { flex: 1; min-width: 0; width: auto; height: auto; margin: 0; padding: 4px 0; border: 0; border-radius: 0; outline: 0; box-shadow: none; background: transparent; font: inherit; font-size: 17px; color: var(--ink); }
.sr-bar input::-webkit-search-cancel-button { display: none; }
.sr-close { font: inherit; font-size: 12px; color: var(--muted); background: var(--line-soft); border: 0; border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.sr-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; }
.sr-head { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 6px 10px; }
.sr-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.sr-item.is-sel, .sr-item:hover { background: var(--accent-soft); }
.sr-text { display: flex; flex-direction: column; min-width: 0; }
.sr-text strong { font-weight: 600; font-size: 15px; }
.sr-text small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-kind { flex: none; width: 76px; text-align: center; font-size: 11px; font-weight: 600; padding: 3px 0; border-radius: 999px; background: var(--line-soft); color: var(--muted); margin-top: 1px; }
.sr-kind.k-c { background: #ece9ff; color: #3f31a8; }
.sr-kind.k-s { background: #ffe8e8; color: #a3202a; }
.sr-kind.k-v { background: #e3f4ef; color: #1d6b55; }
.sr-kind.k-t { background: #fff3cc; color: #7a5a00; }
.sr-empty { padding: 18px 12px; color: var(--muted); }
@media (max-width: 480px) {
  .search-dlg { margin-top: 12px; max-height: calc(100dvh - 24px); }
  .sr-kind { width: 64px; font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) { .search-dlg[open] .sr-box, .live-dot { animation: none; } }

/* ---------- sales hub ---------- */
.sale-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 28px 0 20px; }
.sh-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s ease, border-color 0.2s ease; }
.sh-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--st); }
.sh-card strong { font-size: 18px; line-height: 1.25; }
.sh-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sh-store { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--st); color: #fff; font-weight: 700; font-size: 20px; }
.sh-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); }
.sh-chip.live { background: #ffe8e8; color: #a3202a; }
.sh-chip.ended { background: var(--line-soft); color: var(--muted); }
.sh-offers { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.sh-best { font-size: 14px; background: var(--line-soft); border-radius: 10px; padding: 8px 10px; }
.sh-go { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--accent); }

.fine-more { display: block; margin-top: 10px; }

/* ---------- this card in this week's sales ---------- */
.sale-note { margin: 8px 0 28px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, #fff7d6, #ffeef0); border: 1px solid #f6d9a8; }
.sale-note-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 700; }
.sale-note ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sale-note li { font-size: 15px; line-height: 1.5; }
.sn-store { font-weight: 600; }

/* ---------- my cards ---------- */
.mine-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font: inherit; font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.mine-btn svg { opacity: 0.35; }
.mine-btn:hover { border-color: var(--ink); }
.mine-btn[aria-pressed="true"] { background: #e3f4ef; border-color: #1d6b55; color: #14513f; }
.mine-btn[aria-pressed="true"] svg { opacity: 1; }
.mine-btn[hidden] + .mine-hint { display: none; }
.mine-hint { margin: 6px 0 0; }
.mine-box { margin: 0 0 16px; padding: 16px 18px; border-radius: 16px; background: var(--accent-soft); border: 1px solid #dcd6ff; }
.mine-box h3 { margin: 0 0 6px; font-size: 16px; }
.mine-box p { margin: 4px 0; }
.mine-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.mine-pick input { flex: 1 1 220px; min-width: 0; }
.mine-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; }
.mine-chip button { border: 0; background: var(--line-soft); border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 14px; line-height: 1; color: var(--muted); }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 0; }
.button.wa { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.button.wa:hover { background: #17603c; border-color: #17603c; }
.mine-tag { color: #1d6b55; font-weight: 600; }

/* ---------- start here (home) ---------- */
.start { padding-block: 8px 40px; }
.start-h { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); text-align: center; margin: 0 0 16px; }
.start-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.start-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 22px; color: var(--ink); text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s ease; }
.start-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.start-card .shape { width: 30px; height: 30px; margin-bottom: 6px; }
.start-card strong { font-size: 17px; line-height: 1.25; display: inline-flex; align-items: center; gap: 8px; }
.start-card span { font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 900px) { .start-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .start-card { padding: 16px; } .start-card strong { font-size: 15.5px; } }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }

/* ---------- card offers ---------- */
.offer-filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 8px 0 20px; }
.offer-filters .field { min-width: 200px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { font: inherit; font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn.is-on { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.offer-grid { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.offer { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.offer-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.offer-top .pill { margin-left: auto; }
.offer-bank { font-size: 13px; color: var(--muted); font-weight: 500; }
.offer-m { font-size: 17px; }
.offer-t { margin: 0; font-weight: 500; }
.offer .muted.small { margin: 2px 0 0; }
.offer-foot { display: flex; justify-content: space-between; align-items: center; margin: auto 0 0; padding-top: 8px; font-size: 14px; }
@media (max-width: 900px) { .start-row .start-card:last-child:nth-child(odd) { grid-column: span 2; } }
@media (min-width: 901px) { .start-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }

[hidden] { display: none !important; }

/* ---------- free services, points value, wallet roast ---------- */
.svc-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 24px 0; padding: 18px 20px; border-radius: 16px; background: var(--accent-soft); border: 1px solid #dcd6ff; }
.svc-box > div:first-child { flex: 1 1 320px; min-width: 0; }
.svc-box p { margin: 4px 0 0; }
.svc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; flex: 0 1 auto; }
.svc-cta .muted.small { flex-basis: 100%; }
.pts-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin: 8px 0 12px; }
.pts-head h2 { margin: 2px 0 0; }
.pts-cash { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 14px; background: var(--t-mint); color: #123a2c; }
.pts-cash strong { font-size: 26px; }
.pts-verdict { font-size: 17px; }
.pts-tbl td, .pts-tbl th { white-space: nowrap; }
.roast-hero { margin: 8px 0 16px; padding: 22px; border-radius: 20px; background: linear-gradient(135deg, #fff1e6, #ffe3e8); border: 1px solid #f6c9b5; }
.roast-hero.ok { background: var(--t-mint); border-color: #b5e6c8; }
.roast-hero > strong { display: block; font-size: clamp(34px, 7vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 4px 0; }
.roast-hero > span:not(.muted) { font-size: 18px; font-weight: 600; }
.roast-hero p { margin: 10px 0 0; }
.roast-hero .button { margin-right: 10px; }
.roast-lines { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; }
#roast-cards { margin: 20px 0; }
.score-box { display: block; }
.score-head { margin-bottom: 12px; }
.score-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.score-opt { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.score-opt .pill { align-self: flex-start; }
.score-opt p { margin: 0; }
.score-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px !important; }
.score-links .button { padding: 8px 14px; font-size: 14px; }

/* ---------- changes to your cards ---------- */
.my-changes { background: #fff4e5; border-bottom: 1px solid #f3d9b1; }
.mc-in { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-block: 12px; }
.mc-body { min-width: 0; }
.mc-body ul { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.mc-body .pill { margin-right: 4px; }
.mc-close { flex: none; font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid #e3b36b; background: #fff; color: #6b4200; cursor: pointer; }

.score-pop { position: fixed; left: 16px; bottom: 16px; z-index: 40; max-width: 340px; padding: 16px 18px; border-radius: 16px; background: var(--card, #fff); color: var(--ink); border: 1px solid var(--line-soft); box-shadow: 0 10px 30px rgba(0, 0, 0, .16); display: flex; flex-direction: column; gap: 8px; }
.score-pop[hidden] { display: none; }
.score-pop p { margin: 0; font-size: 14px; }
.score-pop .button { align-self: flex-start; }
.sp-x { position: absolute; top: 6px; right: 10px; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
@media (max-width: 560px) { .score-pop { left: 12px; right: 12px; max-width: none; } }

.mascot { position: fixed; right: 12px; bottom: 12px; z-index: 35; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mascot[hidden] { display: none; }
.mascot-btn { position: relative; width: 92px; height: 92px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.m-body, .m-dir, .m-rea { position: absolute; inset: 0; display: block; transform-origin: 50% 78%; }
.m-dir, .m-rea { background-size: 300% 300%; background-repeat: no-repeat; background-position: 50% 50%; }
.m-rea { opacity: 0; }
.mascot-say { margin: 0; max-width: 220px; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--card, #fff); color: var(--ink); border: 1px solid var(--line-soft); box-shadow: 0 6px 18px rgba(0,0,0,.14); font-size: 13px; }
.mascot-say[hidden] { display: none; }
.mascot-x { position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-soft); background: var(--card, #fff); color: var(--ink); font-size: 14px; line-height: 1; cursor: pointer; padding: 0; opacity: .7; }
@media (max-width: 560px) { .mascot-btn { width: 72px; height: 72px; } .mascot { bottom: 8px; } body:has(.score-pop:not([hidden])) .mascot { bottom: 150px; } }
.edu-note { padding: 12px 14px; border-radius: 12px; background: var(--t-lav); font-size: 13px; line-height: 1.5; }
.school-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 18px 0; }
.school-card { padding: 18px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--card, #fff); margin: 0 0 16px; }
.school-card h2 { margin: 0 0 4px; }
.q { font-weight: 700; margin: 12px 0 8px; }
.q-opts { display: grid; gap: 8px; }
.q-opts button { text-align: left; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.q-opts button:disabled { cursor: default; }
.q-opts .ok { background: var(--t-mint); border-color: transparent; }
.q-opts .no { background: var(--t-yellow); border-color: transparent; }
.flip { width: 100%; min-height: 150px; margin: 10px 0; padding: 16px; border-radius: 16px; border: 1px dashed var(--line-soft); background: var(--t-lav); color: var(--ink); font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.flip strong { font-size: 20px; }
.flip p, .flip em { margin: 0; font-size: 14px; }
.flip-nav { display: flex; align-items: center; gap: 12px; }
.sip-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; }
.sip-out div { display: flex; flex-direction: column; }
.sip-out strong { font-size: 18px; }
.sip-bar { height: 10px; border-radius: 6px; background: var(--t-mint); margin-top: 12px; overflow: hidden; }
.sip-bar i { display: block; height: 100%; background: var(--ink); }
.gl-tools { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 14px; }
.gl-tools input { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 12px; font: inherit; background: var(--card, #fff); color: var(--ink); }
.gl-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-tabs button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-soft); background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.gl-tabs .on { background: var(--ink); color: var(--card, #fff); }
.gl { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.gl[hidden] { display: none; }
.gl h3 { margin: 0 0 4px; font-size: 17px; }
.gl p { margin: 0 0 4px; }

.ticker { background: var(--ink); color: #fff; font-size: 13px; overflow: hidden; }
.ticker[hidden] { display: none; }
.tk-view { overflow: hidden; white-space: nowrap; }
.tk-track { display: inline-flex; animation: tk-move 60s linear infinite; }
.ticker:hover .tk-track, .ticker:focus-within .tk-track { animation-play-state: paused; }
.tk-run { display: inline-flex; gap: 28px; padding: 8px 14px; }
.tk-i.up { color: #7ee2a8; }
.tk-i.dn { color: #ff9b9b; }
.tk-note { margin: 0; padding: 0 14px 6px; font-size: 11px; opacity: .7; }
@keyframes tk-move { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk-view { overflow-x: auto; } .tk-track { animation: none; } }

.table-wrap { overflow-x: auto; margin: 10px 0; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain th, table.plain td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.plain th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
table.plain td:nth-child(n+3), table.plain th:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) { table.plain.hide2 th:nth-child(2), table.plain.hide2 td:nth-child(2) { display: none; } table.plain td:nth-child(n+3), table.plain th:nth-child(n+3) { text-align: right; } }
.mascot-cta { font-weight: 600; text-decoration: underline; white-space: nowrap; }
@media (max-width: 1000px) { .foot-in { grid-template-columns: minmax(0, 1fr); gap: 32px; } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Money School: hero with the robot, a tab strip, one panel at a time */
.school { max-width: 1040px; }
.school-hero { position: relative; display: grid; grid-template-columns: 1fr 240px; gap: 24px; align-items: center; padding: 8px 0 18px; }
.school-hero h1 { margin: 0 0 8px; }
.school-hero .lede { margin: 0 0 14px; max-width: 56ch; }
.sh-say { display: inline-block; position: relative; margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--t-lav); color: var(--ink); font-size: 15px; max-width: 46ch; }
.sh-say::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.sh-bot { width: 240px; height: 240px; justify-self: center; border-radius: 50%; background: var(--t-lav); display: grid; place-items: center; animation: shFloat 4s ease-in-out infinite; }
.sh-bot span { width: 100%; height: 100%; display: block; background-size: 300% 300%; background-repeat: no-repeat; background-position: 50% 50%; transform: scale(1.15); }
@keyframes shFloat { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .sh-bot { animation: none; } }
.school-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 18px; }
.school-tabs a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--card, #fff); color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s, transform .15s; }
.school-tabs a b { font-size: 16px; }
.school-tabs a span { font-size: 13px; color: var(--muted); }
.school-tabs a:hover { border-color: var(--accent); transform: translateY(-1px); }
.school-tabs a.on { background: var(--ink); border-color: var(--ink); }
.school-tabs a.on b { color: var(--card, #fff); }
.school-tabs a.on span { color: var(--card, #fff); opacity: .75; }
.school-panel { padding: 22px; border: 1px solid var(--line-soft); border-radius: 20px; background: var(--card, #fff); margin: 0 0 18px; }
.school-panel[hidden] { display: none; }
.school-panel h2 { margin: 0 0 4px; }
.school-js .school-panel { min-height: 320px; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.gl-grid .gl { padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 14px; border-bottom: 1px solid var(--line-soft); }
.gl-grid .gl h3 { font-size: 16px; }
.gl-grid .gl p { font-size: 14px; }
.sip { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; margin-top: 16px; align-items: start; }
.sip-ctl { display: grid; gap: 22px; }
.sip-row.field { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: baseline; }
.sip-row label { font-weight: 500; font-size: 15px; }
.sip-row output { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.sip-row input[type=range] { grid-column: 1 / -1; margin: 0; }
.sip-res { padding: 20px; border-radius: 18px; background: var(--t-lav); display: flex; flex-direction: column; gap: 10px; }
.sip-big { font-size: clamp(30px, 5vw, 40px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.sip-res .sip-bar { margin: 6px 0; height: 12px; background: var(--t-mint); }
.sip-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.sip-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.sip-legend i { width: 12px; height: 12px; border-radius: 4px; }
.sip-legend .d1 { background: var(--ink); }
.sip-legend .d2 { background: var(--t-mint); outline: 1px solid var(--line-soft); }
.sip-legend b { font-variant-numeric: tabular-nums; }
body:has(.school-hero) .mascot { display: none; }
@media (max-width: 860px) { .school-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sip { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .school-hero { grid-template-columns: 1fr; } .sh-bot { order: -1; width: 150px; height: 150px; } .sh-say::after { display: none; } .school-panel { padding: 16px; } }
.gl-more-wrap { text-align: center; margin: 16px 0 0; }
.gl-more-wrap[hidden], #gl-more[hidden] { display: none; }
.foot-cols { align-items: start; }
.foot-links { justify-content: flex-start; align-self: start; }
.foot-links a { white-space: normal; max-width: 100%; }
@media (max-width: 560px) { .foot-cols { gap: 24px 16px; } .foot-links { font-size: 15px; } }

.pp-total { font-weight: 600; margin: 14px 0; }
.pp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0 10px; }
.pp-head strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.pp-card { padding: 14px 16px; border-radius: 14px; background: var(--t-lav); margin-bottom: 12px; }
.pp-card ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px 16px; font-size: 14.5px; }
.pp-card .up { color: #17794b; } .pp-card .dn { color: #b3261e; }
.pp-chart { width: 100%; height: 90px; color: var(--accent); margin-bottom: 12px; }
.pp-bench { padding-left: 18px; line-height: 1.7; }
#pp-start:disabled { opacity: .5; cursor: not-allowed; }
.gm-btns { display: flex; gap: 12px; margin: 14px 0; }
.gm-res { font-weight: 600; }

.lab-ctl { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-start; margin: 14px 0; }
.lab-ctl fieldset { border: 1px solid var(--line, rgba(128,128,128,.3)); border-radius: 12px; padding: 8px 14px 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.lab-ctl legend { font-size: 13px; padding: 0 6px; }
.lab-ctl label { font-size: 15px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.lab-chart { width: 100%; height: auto; border-radius: 14px; display: block; }
.lc-bg { fill: var(--t-lav); } .lc-grid { stroke: currentColor; stroke-opacity: .12; }
.lc-wu { stroke: #17794b; fill: none; } .lc-wd { stroke: #b3261e; fill: none; } .lc-wu.f { fill: #17794b; } .lc-wd.f { fill: #b3261e; }
.lc-sma { fill: none; stroke: #e08a00; stroke-width: 1.8; } .lc-ema { fill: none; stroke: #8a3ffc; stroke-width: 1.8; }
.lc-bb { fill: none; stroke: #0072b2; stroke-width: 1.3; stroke-dasharray: 4 3; }
.lc-ten { fill: none; stroke: #0072b2; stroke-width: 1.5; } .lc-kij { fill: none; stroke: #c1371a; stroke-width: 1.5; }
.lc-sa, .lc-sb { fill: none; stroke: currentColor; stroke-opacity: .35; stroke-width: 1; }
.lc-cu { fill: #17794b; fill-opacity: .18; } .lc-cd { fill: #b3261e; fill-opacity: .18; }
.lc-t { fill: currentColor; font-size: 11px; opacity: .75; }
.lc-band { fill: currentColor; fill-opacity: .07; } .lc-rsi { fill: none; stroke: #8a3ffc; stroke-width: 1.8; }
.lc-m1 { fill: none; stroke: #0072b2; stroke-width: 1.6; } .lc-m2 { fill: none; stroke: #e08a00; stroke-width: 1.6; }
.lc-hu { fill: #17794b; fill-opacity: .6; } .lc-hd { fill: #b3261e; fill-opacity: .6; }
.lc-cut { stroke: currentColor; stroke-opacity: .5; stroke-dasharray: 3 3; }
.lab-tally { margin: 14px 0; } .lab-tally ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 14.5px; }
.lab-tally .up { color: #17794b; } .lab-tally .dn { color: #b3261e; } .lab-sum { font-weight: 600; margin: 0; }
.lab-game { margin-top: 22px; padding-top: 6px; border-top: 1px solid rgba(128,128,128,.25); }
@media (max-width: 860px) { .lab-ctl fieldset { width: 100%; } }
.lab-scroll { overflow-x: auto; border-radius: 14px; } @media (max-width: 700px) { .lab-chart { min-width: 600px; } }

.path-tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 14px 0; }
.path-track { text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 14px 16px; border-radius: 14px; border: 2px solid transparent; background: var(--t-lav); display: grid; gap: 4px; }
.path-track.on { border-color: var(--accent); } .path-track span { font-size: 14px; opacity: .8; } .path-track em { font-style: normal; font-size: 13px; font-weight: 600; }
.path-step { border: 1px solid rgba(128,128,128,.3); border-radius: 14px; padding: 4px 16px; margin-bottom: 10px; }
.path-step summary { cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 10px 0; font-size: 17px; }
.path-n { width: 28px; height: 28px; border-radius: 50%; background: var(--t-lav); display: inline-grid; place-items: center; font-size: 14px; font-weight: 700; flex: none; }
.path-step.done .path-n { background: #17794b; color: #fff; }
.path-q { display: grid; gap: 8px; margin: 8px 0 14px; padding: 12px; border-radius: 12px; background: var(--t-lav); } .path-q .button { text-align: left; justify-content: flex-start; }
.path-qt { font-weight: 600; margin: 0; } .path-fb { margin: 0; font-size: 14.5px; } .path-fb.ok { color: #17794b; } .path-fb.no { color: #b3261e; }
.path-cost { margin-top: 26px; padding-top: 6px; border-top: 1px solid rgba(128,128,128,.25); }
.fc-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(128,128,128,.2); } .fc-row.key strong { font-size: 20px; }
.path-q { min-width: 0; box-sizing: border-box; }
.path-q .button { white-space: normal; max-width: 100%; box-sizing: border-box; height: auto; min-height: 44px; text-align: left; line-height: 1.35; padding-block: 10px; }
.path-q p { overflow-wrap: anywhere; }
.lab-find { flex-wrap: wrap; }

.sm { display: inline-grid; place-items: center; width: var(--sz, 28px); height: var(--sz, 28px); border-radius: 22%; background: var(--sc, #5B4BDB); color: #fff; font-weight: 700; font-size: calc(var(--sz, 28px) * .5); flex: none; vertical-align: middle; }
.sm.logo { background: #fff; border: 1px solid rgba(128,128,128,.28); padding: 3px; box-sizing: border-box; } .sm img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.offer-m { display: flex; align-items: center; gap: 8px; }
.sale-logo { margin: 0 0 10px; }
.sm { border-radius: 50%; } .sm.logo { background: var(--lb, #fff); padding: calc(var(--sz, 28px) * .16); box-sizing: border-box; overflow: hidden; } .sm.logo img { width: 100%; height: 100%; object-fit: contain; }
#lab-rq:empty { display: none; } #lab-rq { margin-top: 0; }
@media (max-width: 480px) { html:not([lang="en-IN"]):lang(te) .top nav .n-calc, html:not([lang="en-IN"]):lang(ta) .top nav .n-calc { display: none; } }

/* Searchable card picker on the compare page, and a calmer look for plain selects */
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8aa3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.cb { position: relative; min-width: 0; }
.cb-btn { width: 100%; min-height: 48px; text-align: left; font: inherit; font-size: 16px; color: var(--muted); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 10px 40px 10px 14px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8aa3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.cb-btn.on { color: var(--ink); font-weight: 600; }
.cb-btn:hover { border-color: var(--accent); }
.cb-btn:focus-visible, .cb-btn[aria-expanded="true"] { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cb-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow-4); overflow: hidden; }
.cb-top { display: flex; gap: 8px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line-soft); }
.cb-q { flex: 1; min-width: 0; min-height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--soft); padding: 8px 12px; }
.cb-x { flex: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 8px; cursor: pointer; }
.cb-list { list-style: none; margin: 0; padding: 6px; max-height: 320px; overflow-y: auto; }
.cb-g { padding: 10px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.cb-o { padding: 10px; border-radius: 10px; cursor: pointer; color: var(--ink); font-size: 15px; }
.cb-o:hover, .cb-o.act { background: var(--accent-soft); }
.cb-o.sel { font-weight: 700; }
.cb-o.sel::after { content: "  \2713"; color: var(--accent); }
.cb-none { padding: 14px 10px; color: var(--muted); font-size: 15px; }
.field select, .wfield select, .calc select, .finder select, .filters select, select.cb-native { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8aa3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

.cb.dd .cb-btn { white-space: normal; line-height: 1.35; }
.field .cb-panel { z-index: 60; }

/* Typed boxes beside sliders, and years plus months */
.in-row { display: flex; flex-wrap: wrap; gap: 10px; }
.in-row .in { flex: 1 1 140px; min-width: 0; }
.twin { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 8px; }
.twin .in { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; min-height: 44px; }
.twin .in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.twin .in input { border: 0; background: transparent; box-shadow: none; padding: 0; min-height: 42px; width: 96px; min-width: 0; }
.twin .pre, .twin .suf { color: var(--muted); font-size: 15px; }

.confetti { position: absolute; z-index: 5; pointer-events: none; border-radius: 2px; font-size: 18px; line-height: 1; }
.sale-apply { margin: 20px 0; padding: 14px 16px; border-radius: 14px; background: var(--t-lav); color: var(--ink); }
.sale-apply h2 { margin: 0 0 6px; font-size: 18px; }
.sale-apply p { margin: 0 0 6px; }

.check-box { margin: 16px 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-soft); }
.check-box h3 { margin: 0 0 4px; }
.check-box input { width: 100%; max-width: 420px; margin: 6px 0; }
