/* ==========================================================================
   Justin Tew · credit card guide
   All colours live in :root. Edit the palette here only.
   ========================================================================== */
:root {
  /* Core palette */
  --ink: #101f36;
  --ink-raised: #1b2d4a;
  --ink-soft: #46526a;
  --paper: #f6f6f3;
  --paper-deep: #eceef2;
  --accent: #b5562f;
  --accent-on-ink: #e3926a;
  --line: rgba(16, 31, 54, .14);
  --line-accent: rgba(181, 86, 47, .45);
  --backdrop: rgba(16, 31, 54, .45);

  /* Derived values (kept as variables so nothing is hard-coded below) */
  --paper-card: #fbfbf9;                      /* tile surface, a touch lighter than paper */
  --paper-78: rgba(246, 246, 243, .78);       /* soft text on dark */
  --paper-85: rgba(246, 246, 243, .85);
  --line-on-ink: rgba(227, 146, 106, .38);    /* rules on dark surfaces */
  --focus-ring: rgba(181, 86, 47, .26);
  --shadow-panel: rgba(16, 31, 54, .2);
  --shadow-tab: rgba(16, 31, 54, .24);
  --art-ink: rgba(16, 31, 54, 1);             /* line art colour; opacity set per use */
  --art-on-ink: rgba(246, 246, 243, 1);

  /* Bank colours for the gradient card blocks (edit here) */
  --bank-uob: #0b3a7a;
  --bank-dbs: #c8202f;
  --bank-ocbc: #d4472b;
  --bank-citi: #1f5aa6;
  --bank-hsbc: #8e1b1b;
  --bank-maybank: #c79a0a;
  --bank-amex: #2c6f8f;
  --bank-trust: #1a1a1a;
  --bank-dcs: #6a3d8f;
  --bank-default: #46526a;

  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 16px;
  --radius-lg: 20px;

  /* Motion */
  --ease-enter: cubic-bezier(.43, .195, .02, 1);
  --ease-exit: cubic-bezier(.5, 0, 0, 1);
  --dur-in: .3s;
  --dur-hover: .15s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55; font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; position: relative; }

h1, h2, h3 { font-weight: 300; letter-spacing: -.01em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 9vw, 72px); }
h2 { font-size: clamp(30px, 6vw, 44px); }
h3 { font-size: 21px; font-weight: 400; line-height: 1.25; }

.eyebrow, .mono-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px; font-weight: 500;
}
.mono-label { letter-spacing: .1em; }
.small { font-size: 14px; color: var(--ink-soft); margin: 0; }
.lede { font-size: 19px; max-width: 34ch; color: var(--ink-soft); margin: 18px 0 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Line art (original): low-opacity, never wider than its section ---------- */
.art { position: absolute; pointer-events: none; color: var(--art-ink); opacity: .14; }
.art--arcs { right: 0; top: 10px; width: 220px; height: 220px; }
.art--strip { left: 0; right: 0; bottom: 0; width: 100%; height: 70px; color: var(--art-on-ink); opacity: .16; }

/* ---------- Masthead (dark bar, white logo) ---------- */
.masthead { background: var(--ink); border-bottom: 1px solid var(--line-accent); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; padding-top: 12px; padding-bottom: 12px; }
.masthead__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.brand { text-decoration: none; min-width: 0; }
.brand .eyebrow { margin: 0; color: var(--paper); font-size: 18px; letter-spacing: .16em; line-height: 1.1; white-space: nowrap; }
.masthead__home {
  appearance: none; background: none; border: 0; padding: 4px 0; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-on-ink); border-bottom: 1px solid var(--line-on-ink);
}
.logo { width: 120px; height: auto; aspect-ratio: 317 / 48; flex: none; }

/* ---------- Views ---------- */
.view { padding: 48px 0 72px; }
.landing { position: relative; overflow: hidden; min-height: 70vh; padding-top: 56px; }
.welcome { position: relative; overflow: hidden; min-height: 100dvh; padding: 56px 0 72px; display: flex; }
.welcome__cover { display: grid; align-content: center; justify-items: start; min-height: calc(100dvh - 128px); max-width: 760px; }
.welcome__mark { font-family: var(--mono); font-size: 18px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; line-height: 1.1; }
.welcome h1 { font-size: clamp(32px, 7.2vw, 68px); letter-spacing: -.02em; line-height: 1.05; }
.welcome__title-rest { display: block; }
.welcome__logo { width: 150px; height: auto; aspect-ratio: 317 / 48; margin: 28px 0 44px; }
.welcome__form { margin: 0; max-width: 28rem; width: 100%; display: grid; gap: 24px; }
.welcome__form .field > span { font-size: 16px; color: var(--ink); }
.welcome__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hello { font-size: clamp(32px, 7vw, 56px); font-weight: 300; letter-spacing: -.01em; line-height: 1.1; margin: 0 0 14px; }
.hello--list { font-size: clamp(22px, 4vw, 32px); margin: 0 0 8px; }

/* ---------- Choice tiles ---------- */
.choices { display: grid; gap: 16px; margin-top: 40px; position: relative; }
.choice {
  appearance: none; border: 1px solid var(--line-accent); border-radius: var(--radius-lg);
  background: var(--paper); color: var(--ink); text-align: left; cursor: pointer;
  padding: 28px 24px 30px; display: grid; gap: 8px; font: inherit;
}
.choice:hover, .choice:focus-visible { border-color: var(--accent); outline: none; }
.choice:focus-visible { box-shadow: 0 0 0 3px var(--focus-ring); }
.choice__num { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.choice__title { font-size: 34px; font-weight: 300; line-height: 1.1; }
.choice__sub { font-size: 15px; color: var(--ink-soft); }
.choice--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice--ink .choice__num { color: var(--accent-on-ink); }
.choice--ink .choice__sub { color: var(--paper-78); }
.choice--ink:hover, .choice--ink:focus-visible { background: var(--ink-raised); border-color: var(--accent-on-ink); }

/* ---------- List head, link button, segmented selector ---------- */
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.link-btn {
  appearance: none; background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border-bottom: 1px solid var(--line-accent);
}
.stage-bar { margin: 32px 0 8px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); border-radius: 999px; padding: 3px; max-width: 480px; }
.segmented button {
  appearance: none; border: 0; background: transparent; color: var(--ink); cursor: pointer; min-width: 0;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: -.01em;
  padding: 11px 2px; border-radius: 999px; white-space: nowrap;
}
.segmented button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.stage-rule { font-size: 14px; color: var(--ink-soft); margin: 12px 0 0; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Search and chips ---------- */
.filter { margin: 18px 0 8px; min-width: 0; max-width: 100%; }
.filter__row { display: flex; align-items: flex-end; gap: 12px; min-width: 0; }
.filter__search { flex: 1 1 auto; min-width: 0; display: grid; }
.filter__search input {
  font: inherit; font-size: 16px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 8px 2px; width: 100%;
}
.filter__search input:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.filter__search input::placeholder { color: var(--ink-soft); opacity: 1; }
.filter__clear, .chip {
  appearance: none; flex: none; background: transparent; color: var(--ink);
  border: 1px solid var(--line-accent); border-radius: 999px; cursor: pointer; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; padding: 8px 14px;
}
.filter__chips {
  display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; margin: 14px 0 0; padding: 2px 0 8px;
  min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.chip[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty { margin: 24px 0 8px; }

/* ---------- CTA banner ---------- */
.cta {
  appearance: none; cursor: pointer; font: inherit; text-align: left; width: 100%; min-width: 0; margin: 20px 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 16px 40px 16px 18px;   /* right padding keeps "Open" clear of the phone tabs */
  box-shadow: inset 0 0 0 1px var(--line-on-ink);
}
.cta:hover, .cta:focus-visible { background: var(--ink-raised); outline: none; box-shadow: inset 0 0 0 1px var(--accent-on-ink), 0 0 0 3px var(--focus-ring); }
.cta__text { display: grid; gap: 4px; min-width: 0; }
.cta__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-on-ink); }
.cta__title { font-size: 22px; font-weight: 300; line-height: 1.2; overflow-wrap: anywhere; }
.cta__sub { font-size: 14px; line-height: 1.4; color: var(--paper-78); }
.cta__go { flex: none; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--accent-on-ink); color: var(--accent-on-ink); border-radius: 999px; padding: 9px 14px; line-height: 1.2; }
.cta:hover .cta__go, .cta:focus-visible .cta__go { background: var(--accent-on-ink); color: var(--ink); }

/* ---------- Groups and tiles ---------- */
.group { margin-top: 44px; }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 18px; }
.group__head h2 { font-size: 26px; }
.group__head .mono-label { margin: 0; }
.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }

.tile {
  --tile-h: 560px;
  position: relative; overflow: hidden; height: var(--tile-h); min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); padding: 16px;
  display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto;
  column-gap: 14px; row-gap: 12px;
}
.tile__body { display: contents; }
.tile__top { grid-column: 2; grid-row: 1; display: grid; gap: 6px; align-content: start; min-width: 0; }
.tile__mid { grid-column: 1 / -1; grid-row: 2; min-height: 0; overflow: hidden; display: grid; gap: 12px; align-content: start; }
.tile .best { grid-column: 1 / -1; grid-row: 3; }
.tile__actions { grid-column: 1 / -1; grid-row: 4; }
.tile__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 2px; }
.tile__title h3 { font-size: 18px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.tag { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-accent); border-radius: 999px; padding: 2px 10px; white-space: nowrap; color: var(--accent); justify-self: start; }

.rates { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rates li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; }
.rate { font-family: var(--mono); font-size: 15px; font-weight: 500; white-space: nowrap; }
.rate-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.4; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }

.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { min-width: 0; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-soft); text-transform: uppercase; }
.facts dd { margin: 2px 0 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.best { font-size: 14px; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.best b { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.tile__actions { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.pill-primary {
  text-decoration: none; color: var(--ink); white-space: nowrap; font-size: 15px;
  border: 1px solid var(--ink); border-radius: 999px; padding: 8px 18px;
}
.pill-primary:hover, .pill-primary:focus-visible { background: var(--ink); color: var(--paper); }
.pill-small {
  appearance: none; background: none; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--line-accent); border-radius: 999px; padding: 9px 14px; line-height: 1.2;
}
.pill-small:hover, .pill-small:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }

/* Details layer: opens over the tile, scrolls inside, never changes outer size */
.tile__more {
  position: absolute; inset: 0; z-index: 2; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper-card); padding: 16px 18px 20px; display: grid; gap: 14px; align-content: start;
}
.tile__more-head { position: sticky; top: -16px; margin: -16px -18px 0; padding: 14px 18px 10px; background: var(--paper-card); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; z-index: 1; }
.tile__more-title { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 400; }
.sec { display: grid; gap: 6px; }
.sec__label { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sec p { margin: 0; font-size: 14px; }
.conds { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.conds li { font-size: 14px; color: var(--ink-soft); padding-left: 16px; position: relative; line-height: 1.4; }
.conds li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1px; background: var(--accent); }
.tile__more .facts { border: 0; padding: 0; }

/* ---------- Side tabs ---------- */
.side-tabs {
  position: fixed; right: max(4px, env(safe-area-inset-right)); top: 0; bottom: 0; z-index: 30;
  width: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  pointer-events: none; padding: 8px 0 max(24px, env(safe-area-inset-bottom));
}
.side-tab {
  pointer-events: auto; appearance: none; cursor: pointer; flex: 0 1 auto; min-height: 0;
  width: 26px; max-height: calc((100vh - 24px) / 2); overflow: hidden; padding: 14px 0;
  border: 1px solid var(--accent-on-ink); border-radius: 10px;
  background: var(--ink); color: var(--paper); box-shadow: -2px 2px 10px var(--shadow-tab);
}
.side-tab__text { display: block; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; margin: 0 auto; }
.side-tab:hover, .side-tab:focus-visible { background: var(--ink-raised); outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Panels ---------- */
.is-locked, .is-locked body { overflow: hidden; }
.backdrop { position: fixed; inset: 0; z-index: 40; background: var(--backdrop); }
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: calc(100% - 12px); max-width: 640px;
  background: var(--paper); border-left: 1px solid var(--line-accent); box-shadow: -8px 0 30px var(--shadow-panel);
  display: flex; flex-direction: column;
}
.panel__head { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 16px 12px 18px; border-bottom: 1px solid var(--line-accent); }
.panel__head .eyebrow { margin-bottom: 6px; }
.panel__head > div { min-width: 0; }
.panel__head h2 { font-size: 26px; overflow-wrap: break-word; }
.panel__head h2:focus { outline: none; }
.panel__close {
  flex: none; appearance: none; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 11px 16px; min-height: 40px;
}
.panel__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 40px; }
.panel__intro { max-width: 62ch; }
.panel .form { margin-top: 18px; }
.panel .result { margin-top: 28px; }

/* Year-end steps and table */
.steps-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.steps-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.45; }
.steps-list__num { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 2px; }
.steps-list strong { font-weight: 500; display: block; font-size: 16px; }
.table-block { margin-top: 24px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; padding: 0 8px 6px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.35; }
.table td:last-child { font-family: var(--mono); font-size: 13px; }
.panel__foot { margin-top: 14px; }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span, .field-group legend { font-size: 14px; color: var(--ink-soft); }
.field-group { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.field-group legend { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; padding: 0; }
.optional { color: var(--ink-soft); text-transform: none; letter-spacing: 0; }
.field input {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 2px; width: 100%;
}
.field input:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.btn { appearance: none; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-size: 16px; padding: 15px 26px; cursor: pointer; justify-self: start; }
.btn:hover, .btn:focus-visible { background: var(--ink-raised); outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }

/* ---------- Result ---------- */
.result { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: 28px 22px; min-width: 0; }
.result h2 { color: var(--paper); font-size: clamp(30px, 6vw, 40px); }
.result .eyebrow { color: var(--accent-on-ink); }
.result p { margin: 0; }
.result__lead { color: var(--paper-85); font-size: 15px; margin-top: 10px !important; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line-on-ink); }
.step__num { font-family: var(--mono); font-size: 12px; color: var(--accent-on-ink); padding-top: 4px; }
.step__label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-on-ink); }
.step__head { font-size: 19px; margin: 2px 0 4px !important; line-height: 1.3; }
.step__why { font-size: 14px; color: var(--paper-85); }
.calc { font-family: var(--mono); font-size: 12px; color: var(--paper-85); margin-top: 6px !important; line-height: 1.5; overflow-wrap: anywhere; }
.result__disc { margin-top: 22px !important; font-size: 13px; color: var(--paper-78); }

/* ---------- Footer (dark, white logo) ---------- */
.footer { position: relative; background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-accent); padding: 32px 0 96px; overflow: hidden; }
.footer__logo { width: 120px; height: auto; aspect-ratio: 317 / 48; margin-bottom: 20px; }
.footer .mono-label { color: var(--accent-on-ink); }
.footer .small { max-width: 70ch; color: var(--paper-78); }

/* ---------- Phone tweaks ---------- */
@media (max-width: 374px) { .segmented button { font-size: 12px; letter-spacing: 0; } }
@media (max-width: 719.98px) {
  .stage-bar { padding-right: 32px; }
  .list-head .link-btn { margin-right: 32px; }
  /* Plan panel is a bottom sheet on phones; the year-end panel stays a side panel */
  .panel { top: 16px; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; border-left: 0; border-top: 1px solid var(--line-accent); border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -8px 30px var(--shadow-panel); max-height: calc(100dvh - 16px); padding-bottom: env(safe-area-inset-bottom); }
}
@media (min-width: 720px) {
  .wrap { padding: 0 40px; }
  .choices { grid-template-columns: 1fr 1fr; max-width: 860px; }
  .choice { padding: 40px 32px 44px; min-height: 220px; align-content: end; }
  .choice__title { font-size: 42px; }
  /* Horizontal tiles: image slot left, details right */
  .tile { --tile-h: 332px; padding: 20px; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); column-gap: 24px; }
  .tile__media { grid-row: 1; width: 220px; height: calc(var(--tile-h) - 42px); padding: 14px; border-radius: 12px; }
  .tile__body { display: grid; grid-column: 2; grid-row: 1; min-width: 0; min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto auto; row-gap: 12px; }
  .tile__top { grid-column: auto; grid-row: auto; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
  .tag { grid-column: 2; grid-row: 1; justify-self: end; }
  .tile__title { grid-column: 1; grid-row: 1; }
  .tile__title h3 { font-size: 21px; -webkit-line-clamp: 1; line-clamp: 1; }
  .tile__mid { grid-column: auto; grid-row: auto; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
  .tile .best, .tile__actions { grid-column: auto; grid-row: auto; }
  .tile .facts { align-self: start; padding: 0 0 0 18px; border: 0; border-left: 1px solid var(--line); }
  .best { -webkit-line-clamp: 1; line-clamp: 1; }
    .side-tabs { width: 40px; right: max(8px, env(safe-area-inset-right)); justify-content: center; padding: 8px 0; }
  .side-tab { width: 40px; padding: 18px 0; }
  .side-tab__text { font-size: 13px; }
  .cta { padding: 18px 24px; margin-top: 24px; }
  .cta__title { font-size: 26px; }
  .panel { width: min(640px, 92vw); }
  .panel__head { padding: 22px 24px 16px 28px; }
  .panel__head h2 { font-size: 32px; }
  .panel__body { padding: 20px 28px 48px; }
  .segmented { max-width: 640px; }
  .segmented button { font-family: var(--mono); font-weight: 400; font-size: 14px; letter-spacing: 0; padding: 12px 10px; }
  .art--arcs { width: 340px; height: 340px; top: 0; }
  .logo { width: 150px; }
  .brand .eyebrow { font-size: 22px; letter-spacing: .18em; }
  .masthead__row { min-height: 88px; }
  .masthead__brand { flex-direction: row; align-items: baseline; gap: 20px; }
  .masthead__home { padding: 6px 0; }
  .welcome__mark { font-size: 22px; letter-spacing: .18em; margin-bottom: 22px; }
  .welcome__logo { width: 180px; margin: 32px 0 48px; }
  .footer__logo { width: 150px; }
}
@media (min-width: 720px) and (max-width: 899.98px) { .tile { --tile-h: 376px; } }
@media (min-width: 900px) { .group .grid { gap: 20px; } }
@media (min-width: 1100px) { .panel .result { padding: 36px 32px; } }

/* ---------- Motion ---------- */
html.js-motion .reveal.is-entering { transform-origin: center; animation: zoom-in-centre var(--dur-in) var(--ease-enter) both; }
html.js-motion .tile.is-in,
html.js-motion .choice, html.js-motion .btn, html.js-motion .pill-primary, html.js-motion .pill-small,
html.js-motion .cta, html.js-motion .panel__close, html.js-motion .link-btn, html.js-motion .masthead__home,
html.js-motion .segmented button, html.js-motion .chip, html.js-motion .filter__clear {
  transition: transform var(--dur-hover) var(--ease-enter), border-color var(--dur-hover) ease, background-color var(--dur-hover) ease, color var(--dur-hover) ease, box-shadow var(--dur-hover) ease;
  transform-origin: center;
}
html.js-motion .tile.is-in:hover, html.js-motion .tile.is-in:focus-within { transform: scale(1.025); }
html.js-motion .tile.is-open.is-in:hover, html.js-motion .tile.is-open.is-in:focus-within { transform: none; }
html.js-motion .choice:hover, html.js-motion .choice:focus-visible,
html.js-motion .btn:hover, html.js-motion .btn:focus-visible,
html.js-motion .pill-primary:hover, html.js-motion .pill-primary:focus-visible,
html.js-motion .pill-small:hover, html.js-motion .pill-small:focus-visible,
html.js-motion .cta:hover, html.js-motion .cta:focus-visible,
html.js-motion .panel__close:hover, html.js-motion .panel__close:focus-visible,
html.js-motion .link-btn:hover, html.js-motion .link-btn:focus-visible,
html.js-motion .masthead__home:hover, html.js-motion .masthead__home:focus-visible,
html.js-motion .segmented button:hover, html.js-motion .segmented button:focus-visible { transform: scale(1.025); }

.panel.is-zoom-in { animation: zoom-in-origin var(--dur-in) var(--ease-enter) both; transform-origin: top right; }
.panel.is-zoom-out { animation: zoom-out-origin var(--dur-in) var(--ease-exit) both; transform-origin: top right; }
@media (max-width: 719.98px) {
  .panel.is-zoom-in { animation: sheet-in var(--dur-in) var(--ease-enter) both; transform-origin: bottom center; }
  .panel.is-zoom-out { animation: sheet-out var(--dur-in) var(--ease-exit) both; transform-origin: bottom center; }
}
.tile__more.is-zoom-in { animation: zoom-in-centre var(--dur-in) var(--ease-enter) both; transform-origin: center; }
.tile__more.is-zoom-out { animation: zoom-out-centre var(--dur-in) var(--ease-exit) both; transform-origin: center; }
@keyframes zoom-in-centre { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes zoom-out-centre { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.96); } }
@keyframes zoom-in-origin { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes zoom-out-origin { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.96); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sheet-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  html.js-motion .tile.is-in:hover, html.js-motion .choice:hover { transform: none !important; }
}

/* ---------- Credit card blocks (no photos) ---------- */
.cc {
  --bank: var(--bank-default);
  width: 100%; max-height: 100%; aspect-ratio: 1.586; border-radius: 10px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--bank) 0%, color-mix(in srgb, var(--bank) 55%, #000) 100%);
  color: #fff; padding: 9px 11px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 6px 16px var(--line); font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em;
}
.cc::before { content: ""; position: absolute; right: -18%; top: -34%; width: 85%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 0 0 12px transparent, 0 0 0 13px rgba(255,255,255,.2); pointer-events: none; }
.cc__chip { position: relative; width: 26px; height: 20px; border-radius: 4px; background: linear-gradient(135deg, #e9d18b, #b8963f); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.cc__chip::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.3); }
.cc__bank { position: relative; font-size: 11px; font-weight: 500; line-height: 1.15; }
.cc__net { position: relative; font-size: 9px; opacity: .8; line-height: 1.2; }
.cc[data-bank="UOB"] { --bank: var(--bank-uob); } .cc[data-bank="DBS"] { --bank: var(--bank-dbs); }
.cc[data-bank="OCBC"] { --bank: var(--bank-ocbc); } .cc[data-bank="Citibank"] { --bank: var(--bank-citi); }
.cc[data-bank="HSBC"] { --bank: var(--bank-hsbc); } .cc[data-bank="Maybank"] { --bank: var(--bank-maybank); }
.cc[data-bank="American Express"] { --bank: var(--bank-amex); } .cc[data-bank="Trust Bank"] { --bank: var(--bank-trust); }
.cc[data-bank="DCS Card Centre"] { --bank: var(--bank-dcs); }
.tile__media { background: transparent; padding: 0; }
@media (min-width: 720px) { .tile__media { align-items: start; padding: 0; } .cc { padding: 14px 16px; border-radius: 14px; } .cc__bank { font-size: 13px; } .cc__net { font-size: 11px; } .cc__chip { width: 38px; height: 29px; } }

/* ---------- Tier groups, promo, panels ---------- */
.group__note { margin: -6px 0 16px; font-size: 14px; color: var(--ink-soft); max-width: 70ch; }
.promo { display: block; font-family: var(--mono); font-size: 11px; color: var(--accent); margin-top: 2px; }
.rate small { font-size: 11px; font-weight: 400; color: var(--ink-soft); }
.tile__more .rates { gap: 10px; }
.step__card { font-size: 19px; margin: 2px 0 4px !important; line-height: 1.3; }
.total { margin-top: 24px; padding: 18px 0 0; border-top: 1px solid var(--line-on-ink); }
.total__num { font-size: 30px; font-weight: 300; margin: 4px 0 6px !important; }
.total__sub { font-size: 13px; color: var(--paper-85); margin-top: 6px !important; }
.extras { margin-top: 22px; display: grid; gap: 10px; }
.extras p { font-size: 13px; color: var(--paper-85); padding-left: 14px; border-left: 1px solid var(--line-on-ink); }
.cu-result { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-on-ink); }
.cu-fees { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 18px 0 0; }
.cu-fees div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.cu-fees dt { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.cu-fees dd { margin: 4px 0 0; font-family: var(--mono); font-size: 24px; font-weight: 500; }
.panel__sub { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 28px 0 0; }
.cu-link { display: inline-block; margin-top: 22px; }
.table td.cu-no { color: var(--ink-soft); }
.table-block { overflow-x: auto; }
.table td:first-child { font-family: var(--sans); font-size: 14px; }
@media (max-width: 719.98px) { .segmented button { white-space: normal; font-size: 12px; line-height: 1.2; padding: 9px 4px; letter-spacing: -.02em; } }
