@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --ink: #0b1f33;
  --ink-2: #17324d;
  /* Body and supporting copy: 5.4:1 on white (WCAG AA) */
  --muted: #566779;
  --blue: #2463eb;
  --blue-dark: #174bb6;
  --blue-soft: #eaf1ff;
  /* Teal for text on light surfaces: 5.2:1 on white */
  --teal: #0d7c5f;
  /* Light teal for accents on the dark sections */
  --teal-on-dark: #72e1c3;
  --teal-soft: #e8f8f3;
  --amber: #f2a72d;
  /* Deep gold: review stars clear 3:1 on white, plain amber did not */
  --gold: #bd8110;
  /* Red for text and solid buttons: 5.2:1 both ways */
  --red: #c9304a;
  --red-soft: #fff0f2;
  --paper: #ffffff;
  --surface: #f4f7fb;
  --surface-2: #eef3f8;
  --line: #dbe4ed;
  --line-dark: #c9d5e0;
  --shadow-sm: 0 4px 14px rgba(11, 31, 51, .07);
  --shadow-lg: 0 24px 70px rgba(11, 31, 51, .13);
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1200px;
  /* Type scale: nothing below --fs-micro (12px) carries real content */
  --fs-micro: 12px;
  --fs-label: 13px;
  --fs-sm: 14px;
  --fs-base: 15px;
  --fs-body: 16px;
  --fs-lead: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
site-header, site-footer { display: block; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Poppins", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: "Antonio", "Arial Narrow", sans-serif; text-transform: capitalize; }

body.modal-open { overflow: hidden; }

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, svg { display: block; }
button { color: inherit; font-family: "Antonio", "Arial Narrow", sans-serif; text-transform: capitalize; letter-spacing: .015em; }
.button, .header-cta, .view-all-guides { font-family: "Antonio", "Arial Narrow", sans-serif; text-transform: capitalize; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid rgba(36, 99, 235, .35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(219, 228, 237, .9);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: "Antonio", "Arial Narrow", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.45px;
  white-space: nowrap;
}
.brand > span:last-child { display: inline-flex; align-items: center; line-height: 1; }
.brand strong { margin-left: .22em; color: var(--blue); }
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #3887ff);
  box-shadow: 0 8px 18px rgba(36, 99, 235, .24);
}
.brand-mark svg { width: 31px; height: 31px; }
.brand-mark circle { fill: rgba(255,255,255,.13); stroke: currentColor; stroke-width: 2; }
.brand-mark path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  padding: 10px 12px;
  color: #1f2c3d;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  font-family: "Antonio", "Arial Narrow", sans-serif;
}
.main-nav a.is-active { box-shadow: inset 0 -2px 0 var(--blue); }
.main-nav a:hover,
.main-nav a.is-active { color: var(--blue); background: var(--blue-soft); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
.header-cta:hover { background: var(--blue); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 19px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: .2s ease; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(11,31,51,.98), rgba(13,47,75,.96)),
    radial-gradient(circle at 80% 20%, #2463eb, transparent 50%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to right, black, transparent 85%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .7; }
.hero-orb-one { width: 310px; height: 310px; right: -90px; top: -150px; border: 70px solid rgba(36,99,235,.18); }
.hero-orb-two { width: 180px; height: 180px; left: 42%; bottom: -120px; background: rgba(15,159,122,.12); }

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  min-height: 390px;
  margin: 0 auto;
  padding: 68px 0 94px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .72fr);
  gap: 80px;
  align-items: center;
}

.eyebrow, .section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--blue);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: capitalize;
}
.section-intro.centered .eyebrow,
.section-intro.centered .section-kicker,
.inner-hero .section-kicker,
.guide-hero .section-kicker { justify-content: center; }
.eyebrow { color: #9dc1ff; }
.eyebrow span { flex: 0 0 auto; width: 25px; height: 2px; background: var(--teal-on-dark); }
.section-kicker.light { color: var(--teal-on-dark); }

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(42px, 5vw, 67px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.hero h1 span { color: #87afff; }
.hero-lead {
  max-width: 680px;
  margin: 23px 0 27px;
  color: #d3e0ec;
  font-size: var(--fs-lead);
  line-height: 1.72;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; color: #e4eef8; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); border-radius: 99px; font-size: var(--fs-label); font-weight: 600; line-height: 1.2; }
.hero-badges svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: #7ce3c4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero-mini-card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: rgba(255,255,255,.09);
  box-shadow: 0 30px 60px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}
.hero-mini-card::after { content: ""; position: absolute; width: 55px; height: 55px; right: -18px; bottom: -22px; border: 6px solid rgba(242,167,45,.45); border-radius: 50%; }
.mini-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #b3c4d4; font-size: var(--fs-micro); font-weight: 700; letter-spacing: .1em; line-height: 1.2; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: #8ceada; letter-spacing: .04em; }
.live-dot::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; background: #8ceada; border-radius: 50%; box-shadow: 0 0 0 5px rgba(117,228,198,.14); }
.mini-total { margin: 20px 0; font-size: 38px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.mini-bars { height: 54px; display: flex; gap: 7px; align-items: end; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.14); }
.mini-bars span { width: 25%; height: var(--bar); background: linear-gradient(180deg, #4c85ff, rgba(76,133,255,.28)); border-radius: 6px 6px 2px 2px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.mini-stats span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mini-stats small { color: #a7bacc; font-size: var(--fs-micro); line-height: 1.3; }
.mini-stats strong { font-size: 18px; line-height: 1.2; }

.calculator-wrap {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: -46px auto 0;
  scroll-margin-top: 92px;
}
.noscript { margin-bottom: 18px; padding: 16px; background: var(--red-soft); border: 1px solid #ffbdc7; border-radius: 12px; color: #a92439; font-weight: 700; }
.calculator-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.calculator-toolbar { min-height: 120px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.calculator-toolbar h2 { margin: 0 0 7px; font-size: 28px; line-height: 1.15; letter-spacing: -.035em; }
.calculator-toolbar p:not(.section-kicker) { margin: 0; color: var(--muted); font-size: var(--fs-base); line-height: 1.6; }
.toolbar-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 14px; color: var(--blue); border: 0; border-radius: 10px; background: transparent; font-size: var(--fs-sm); font-weight: 700; line-height: 1.1; white-space: nowrap; cursor: pointer; }
.text-button:hover { background: var(--blue-soft); }
.text-button.danger { color: var(--red); }
.text-button.danger:hover { background: var(--red-soft); }
.text-button svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.settings-row { padding: 20px 32px; display: grid; grid-template-columns: minmax(240px, 280px) minmax(250px, 300px) 1fr; gap: 24px; align-items: end; background: var(--surface); border-bottom: 1px solid var(--line); }
.field { min-width: 0; }
.field label, .field-label { display: block; margin-bottom: 8px; color: #33485d; font-size: var(--fs-label); font-weight: 700; line-height: 1.3; }
.select-wrap { position: relative; }
.native-currency-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.currency-select-button { width: 100%; min-height: 48px; padding: 0 42px 0 14px; display: flex; align-items: center; gap: 10px; color: var(--ink); border: 1px solid var(--line-dark); border-radius: 11px; background: #fff; font-size: var(--fs-base); font-weight: 600; line-height: 1.2; text-align: left; cursor: pointer; }
.currency-select-button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.currency-select-button:focus-visible { outline: 3px solid rgba(35,114,221,.22); border-color: var(--blue); }
.currency-select-button > svg { position: absolute; width: 18px; height: 18px; top: 50%; right: 14px; margin-top: -9px; fill: none; stroke: #5b6f83; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.select-wrap.is-open .currency-select-button > svg { transform: rotate(180deg); }
.currency-flag, .currency-option img { flex: 0 0 auto; width: 26px; height: 19px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(11,31,51,.14); }
.currency-options { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; display: none; max-height: 330px; padding: 6px; overflow-y: auto; border: 1px solid var(--line-dark); border-radius: 12px; background: #fff; box-shadow: 0 14px 30px rgba(11,31,51,.16); }
.select-wrap.is-open .currency-options { display: block; }
.currency-option { width: 100%; min-height: 42px; padding: 9px 10px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 8px; color: var(--ink); background: #fff; font-size: var(--fs-base); font-weight: 500; line-height: 1.25; text-align: left; cursor: pointer; }
.currency-option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.currency-option:hover, .currency-option:focus-visible { outline: none; background: var(--blue-soft); }
.currency-option[aria-selected="true"] { color: #fff; background: var(--blue); font-weight: 700; }
.currency-option[aria-selected="true"] img { box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.segmented { display: flex; padding: 4px; border: 1px solid var(--line-dark); border-radius: 12px; background: #fff; }
.segmented button { flex: 1; min-width: 0; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #5b6f83; font-size: var(--fs-sm); font-weight: 700; line-height: 1.1; white-space: nowrap; cursor: pointer; }
.segmented button.is-active { color: #fff; background: var(--ink); box-shadow: 0 3px 10px rgba(11,31,51,.15); }
.privacy-note { justify-self: end; align-self: end; display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 10px 16px; border: 1px solid #b6e3d3; border-radius: 12px; background: var(--teal-soft); }
.privacy-note svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--teal); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.privacy-note span { display: flex; flex-direction: column; gap: 2px; color: #35604f; font-size: var(--fs-micro); line-height: 1.35; }
.privacy-note strong { color: #0c6349; font-size: var(--fs-label); line-height: 1.3; }

.calculator-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(500px, .78fr); align-items: start; }
.denominations-panel { min-width: 0; padding: 28px 32px 34px; }
.denomination-tabs { display: inline-flex; gap: 4px; margin-bottom: 23px; padding: 4px; background: var(--surface); border-radius: 12px; }
.denomination-tabs button { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 9px; background: transparent; color: #5b6f83; font-size: var(--fs-sm); font-weight: 700; line-height: 1.1; white-space: nowrap; cursor: pointer; }
.denomination-tabs button.is-active { color: var(--blue); background: #fff; box-shadow: var(--shadow-sm); }
.denomination-note { margin: -8px 0 20px; padding: 13px 15px; color: #5d5238; border-left: 3px solid #e0a021; border-radius: 0 10px 10px 0; background: #fff9e9; font-size: var(--fs-label); line-height: 1.6; }
.denomination-note strong { color: #7d5a13; }

.denomination-group + .denomination-group { margin-top: 30px; }
.group-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.group-heading span { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; color: var(--blue); background: var(--blue-soft); border-radius: 9px; line-height: 0; }
.group-heading span svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.group-heading h3 { margin: 0; font-size: 17px; line-height: 1.2; }
.group-heading small { margin-left: auto; color: #5f7387; font-size: var(--fs-micro); line-height: 1.2; white-space: nowrap; }
.denomination-items { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.denomination-row { min-height: 72px; padding: 12px 16px; display: grid; grid-template-columns: minmax(150px, 1fr) 158px minmax(96px, .7fr); gap: 16px; align-items: center; background: #fff; transition: background .15s ease; }
.denomination-row + .denomination-row { border-top: 1px solid var(--line); }
.denomination-row.has-value { background: #f7fbff; }
.denomination-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.denomination-name > span:last-child { min-width: 0; }
.money-shape { flex: 0 0 auto; display: grid; place-items: center; padding: 0 3px; overflow: hidden; color: var(--blue); background: var(--blue-soft); font-size: var(--fs-micro); font-weight: 800; line-height: 1; white-space: nowrap; }
.money-shape.bill { width: 50px; height: 31px; border: 1px solid #bcd0ff; border-radius: 7px; }
.money-shape.coin { width: 36px; height: 36px; border: 2px solid #7fd0b8; border-radius: 50%; color: #0a6e53; background: var(--teal-soft); }
.denomination-name strong { display: block; font-size: var(--fs-body); line-height: 1.3; }
.denomination-name small { display: block; margin-top: 3px; color: #5f7387; font-size: var(--fs-micro); line-height: 1.3; text-transform: capitalize; }
.stepper { height: 44px; display: grid; grid-template-columns: 42px 1fr 42px; border: 1px solid var(--line-dark); border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button { display: grid; place-items: center; padding: 0; border: 0; background: var(--surface); color: #3d5266; cursor: pointer; }
.stepper button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.stepper button:hover { color: var(--blue); background: var(--blue-soft); }
.stepper input { width: 100%; min-width: 0; padding: 0 4px; border: 0; border-inline: 1px solid var(--line); color: var(--ink); text-align: center; font-size: var(--fs-body); font-weight: 700; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { appearance: none; }
.stepper input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--blue); }
.row-subtotal { min-width: 0; text-align: right; }
.row-subtotal small { display: block; margin-bottom: 3px; color: var(--teal); font-size: var(--fs-micro); font-weight: 700; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; }
.row-subtotal strong { display: block; font-size: var(--fs-body); line-height: 1.3; }
.denomination-row.has-value .row-subtotal strong { color: var(--blue); }

.other-cash { margin-top: 22px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px dashed #b8c8d8; border-radius: 14px; background: #fbfcfe; }
.other-cash-copy { display: flex; align-items: center; gap: 12px; }
.other-icon { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; color: var(--blue); background: var(--blue-soft); border-radius: 10px; line-height: 0; }
.other-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.other-cash-copy strong { display: block; font-size: var(--fs-base); line-height: 1.3; }
.other-cash-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: var(--fs-label); line-height: 1.4; }
.money-input { height: 46px; display: flex; align-items: center; border: 1px solid var(--line-dark); border-radius: 10px; background: #fff; overflow: hidden; }
.money-input span { flex: 0 0 auto; padding-left: 13px; color: #4d6072; font-size: var(--fs-base); font-weight: 700; line-height: 1; }
.money-input input { width: 118px; height: 100%; padding: 0 12px 0 7px; border: 0; outline: 0; color: var(--ink); text-align: right; font-size: var(--fs-base); font-weight: 700; }
.money-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,99,235,.1); }

.summary-panel { position: sticky; top: 94px; min-height: 100%; padding: 30px; background: var(--ink); color: #fff; }
.summary-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.summary-top p { margin: 0; color: var(--teal-on-dark); font-size: var(--fs-label); font-weight: 700; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; }
.summary-top span { flex: 0 0 auto; padding: 6px 10px; color: #b6cfff; border: 1px solid rgba(142,183,255,.32); border-radius: 8px; background: rgba(36,99,235,.2); font-size: var(--fs-micro); font-weight: 800; letter-spacing: .05em; line-height: 1.2; }
.grand-total { margin-top: 14px; font-size: clamp(36px, 3.5vw, 48px); font-weight: 850; line-height: 1.06; letter-spacing: -.04em; white-space: nowrap; overflow-wrap: normal; }
.total-spelled { min-height: 20px; margin: 8px 0 22px; color: #a3b6c8; font-size: var(--fs-label); line-height: 1.5; }
.count-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px 0 22px; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.count-stats > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.stat-icon { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; line-height: 0; }
.stat-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bill-icon { color: #a6c6ff; background: rgba(36,99,235,.26); }
.coin-icon { color: #86ead0; background: rgba(20,176,135,.22); }
.item-icon { color: #ffd894; background: rgba(242,167,45,.22); }
.count-stats span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.count-stats small { color: #9db1c5; font-size: var(--fs-micro); line-height: 1.3; text-transform: capitalize; }
.count-stats strong { font-size: 20px; line-height: 1.15; letter-spacing: -.02em; }
.breakdown { padding: 22px 0 18px; }
.breakdown-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.breakdown-heading h3 { margin: 0; font-size: 17px; line-height: 1.2; text-transform: capitalize; }
.breakdown-heading span { flex: 0 0 auto; color: var(--teal-on-dark); font-size: var(--fs-label); font-weight: 700; line-height: 1.2; }
.breakdown-list { min-height: 84px; max-height: 200px; padding-right: 6px; overflow: auto; scrollbar-width: thin; scrollbar-color: #40566c transparent; }
.empty-breakdown { min-height: 84px; display: flex; align-items: center; gap: 12px; color: #93a9be; }
.empty-breakdown span { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.06); line-height: 0; }
.empty-breakdown span svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.empty-breakdown p { width: 100%; max-width: none; margin: 0; font-size: var(--fs-label); line-height: 1.55; }
.breakdown-line { min-height: 38px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); font-size: var(--fs-label); }
.breakdown-line span { min-width: 0; overflow: hidden; color: #aebfd0; text-overflow: ellipsis; white-space: nowrap; }
.breakdown-line strong { font-size: var(--fs-label); white-space: nowrap; }
.drawer-check { margin-top: 6px; padding: 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.05); }
.drawer-check label, .count-label-field label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: #cfdae5; font-size: var(--fs-label); font-weight: 700; line-height: 1.3; }
.drawer-check label span, .count-label-field label span { flex: 0 0 auto; color: var(--teal-on-dark); font-size: var(--fs-micro); font-weight: 700; }
.target-input { width: 100%; height: 44px; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.target-input input { width: 100%; color: #fff; background: transparent; }
.target-input span { color: #a3b6c8; }
.target-input:focus-within { border-color: #6e9dff; box-shadow: 0 0 0 3px rgba(110,157,255,.18); }
.difference-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; color: #9db1c5; font-size: var(--fs-label); }
.difference-row strong { color: #eaf1f8; font-size: var(--fs-body); }
.difference-row.is-over strong { color: #7fe6c8; }
.difference-row.is-short strong { color: #ff9caa; }
.difference-row.is-balanced strong { color: #ffd894; }
.count-label-field { margin-top: 16px; }
.count-label-field input { width: 100%; height: 44px; padding: 0 13px; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; outline: 0; background: rgba(255,255,255,.05); font-size: var(--fs-base); }
.count-label-field input:focus { border-color: #6e9dff; box-shadow: 0 0 0 3px rgba(110,157,255,.18); }
.count-label-field input::placeholder, .target-input input::placeholder { color: #92a6ba; }
.signoff-fields { margin-top: 16px; padding: 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.05); }
.signoff-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; color: #cfdae5; font-size: var(--fs-label); font-weight: 700; line-height: 1.3; }
.signoff-heading span { flex: 0 0 auto; color: var(--teal-on-dark); font-size: var(--fs-micro); font-weight: 700; }
.signoff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.signoff-grid > div:last-child { grid-column: 1 / -1; }
.signoff-grid label { display: block; margin-bottom: 6px; color: #9db1c5; font-size: var(--fs-micro); font-weight: 600; line-height: 1.3; }
.signoff-grid input { width: 100%; height: 42px; padding: 0 12px; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; outline: 0; background: rgba(255,255,255,.05); font-size: var(--fs-sm); color-scheme: dark; }
.signoff-grid input::placeholder { color: #92a6ba; }
.signoff-grid input:focus { border-color: #6e9dff; box-shadow: 0 0 0 3px rgba(110,157,255,.18); }
.signoff-hint { margin: 11px 0 0; color: #9db1c5; font-size: var(--fs-micro); line-height: 1.5; }
.primary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.button { min-height: 48px; padding: 11px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; font-size: var(--fs-base); font-weight: 700; line-height: 1.1; text-align: center; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button svg { flex: 0 0 auto; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 7px 18px rgba(36,99,235,.25); }
.button-primary:hover { background: #3673f3; }
.button-secondary { color: #e3edf7; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.button-secondary:hover { background: rgba(255,255,255,.13); }
.button-danger { color: #fff; background: var(--red); }
.button-danger:hover { background: #b02840; }
.secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.secondary-actions button { min-height: 42px; padding: 8px 10px; display: flex; justify-content: center; align-items: center; gap: 8px; color: #a8bbcd; border: 0; border-radius: 9px; background: transparent; font-size: var(--fs-label); font-weight: 700; line-height: 1.1; cursor: pointer; }
.secondary-actions button:hover { color: #fff; background: rgba(255,255,255,.07); }
.secondary-actions button.is-copied { color: var(--teal-on-dark); background: rgba(20,176,135,.16); }
.secondary-actions button.is-copied svg { stroke: var(--teal-on-dark); transform: scale(1.08); }
.secondary-actions svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease, transform .2s ease; }

.section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 95px 0; }
.section-intro { max-width: 610px; margin-bottom: 38px; }
.section-intro.centered { margin-inline: auto; text-align: center; }
.section h2, .section-intro h2, .feature-copy h2, .faq-intro h2 { margin: 0; font-size: clamp(30px, 3.4vw, 43px); letter-spacing: -.045em; line-height: 1.1; }
.section-intro > p:last-child,
.feature-copy > p:not(.section-kicker),
.faq-intro > p:not(.section-kicker) { margin: 14px 0 0; color: var(--muted); font-size: var(--fs-body); line-height: 1.75; }
.saved-section { padding-top: 64px; padding-bottom: 65px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.section-heading-row > div { min-width: 0; }
.section-heading-row h2 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; }
.section-heading-row p:not(.section-kicker) { margin: 0; color: var(--muted); font-size: var(--fs-base); line-height: 1.6; }
.saved-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.saved-empty { grid-column: 1 / -1; padding: 28px; color: var(--muted); border: 1px dashed var(--line-dark); border-radius: 16px; text-align: center; font-size: var(--fs-base); line-height: 1.6; }
.saved-card { position: relative; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.saved-card > span { display: block; max-width: 100%; overflow: hidden; color: var(--blue); font-size: var(--fs-micro); font-weight: 800; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; }
.saved-card h3 { margin: 10px 0 5px; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.saved-card p { margin: 0 0 16px; color: var(--muted); font-size: var(--fs-micro); line-height: 1.5; }
.saved-card-actions { display: flex; align-items: stretch; gap: 8px; }
.saved-card-actions button { flex: 1; min-width: 0; min-height: 40px; padding: 8px 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--blue); border: 1px solid #cbd9f9; border-radius: 9px; background: var(--blue-soft); font-size: var(--fs-label); font-weight: 700; line-height: 1.1; cursor: pointer; }
.saved-card-actions button:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.saved-card-actions button:last-child { flex: 0 0 40px; padding: 0; color: var(--red); border-color: #f6cdd5; background: var(--red-soft); }
.saved-card-actions button:last-child:hover { color: #fff; background: var(--red); border-color: var(--red); }
.saved-card-actions button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.trust-strip { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.trust-strip > div { min-width: 0; min-height: 112px; padding: 24px 22px; display: flex; align-items: center; gap: 14px; }
.trust-strip > div + div { border-left: 1px solid var(--line); }
.trust-strip > div > span { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; color: var(--blue); background: var(--blue-soft); border-radius: 10px; font-size: var(--fs-label); font-weight: 800; line-height: 1; }
.trust-strip p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }
.trust-strip strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: var(--fs-body); line-height: 1.3; }

.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: steps; }
.steps-grid article { position: relative; min-width: 0; min-height: 235px; padding: 28px; border: 1px solid var(--line); border-radius: 19px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; overflow: hidden; }
.steps-grid article:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-number { position: absolute; top: 20px; right: 22px; color: #7d90a5; font-size: 30px; font-weight: 850; line-height: 1; transition: color .25s ease, transform .25s ease; }
.steps-grid article:hover .step-number { color: var(--blue); transform: translateY(-2px); }
.step-icon { width: 50px; height: 50px; margin-bottom: 28px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 14px; line-height: 0; }
.step-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.steps-grid article:nth-child(2) .step-icon { color: #0a7a5d; background: var(--teal-soft); }
.steps-grid article:nth-child(3) .step-icon { color: #96620b; background: #fff5de; }
.steps-grid article:nth-child(4) .step-icon { color: #6a3cb8; background: #f2ebff; }
.steps-grid h3 { margin: 0 0 10px; padding-right: 46px; font-size: 19px; line-height: 1.25; }
.steps-grid p { margin: 0; color: var(--muted); font-size: var(--fs-base); line-height: 1.7; }
.steps-grid-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-grid-six article { min-height: 215px; }
.steps-grid-six article:nth-child(5) .step-icon { color: #0a7a5d; background: var(--teal-soft); }
.steps-grid-six article:nth-child(6) .step-icon { color: #96620b; background: #fff5de; }

.feature-section { color: #fff; background: var(--ink); overflow: hidden; }
.feature-inner { display: grid; grid-template-columns: 1fr .9fr; gap: 90px; align-items: center; }
.feature-copy > p:not(.section-kicker) { color: #b8c9d8; }
.feature-list { margin: 31px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 25px; list-style: none; }
.feature-list li { display: flex; gap: 12px; }
.feature-list li > span { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; color: var(--teal-on-dark); border: 1px solid rgba(117,228,198,.3); background: rgba(20,176,135,.16); border-radius: 8px; font-size: var(--fs-micro); font-weight: 700; line-height: 1; }
.feature-list strong { font-size: var(--fs-base); line-height: 1.35; }
.feature-list p { margin: 5px 0 0; color: #a4b8ca; font-size: var(--fs-label); line-height: 1.6; }
.feature-visual { position: relative; min-height: 390px; }
.feature-visual::before { content: ""; position: absolute; width: 320px; height: 320px; top: 30px; right: 30px; border-radius: 50%; background: radial-gradient(circle, rgba(36,99,235,.3), transparent 68%); }
.visual-card { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 19px; background: #18334f; box-shadow: 0 24px 55px rgba(0,0,0,.28); }
.visual-card-back { width: 180px; top: 44px; right: 20px; padding: 20px; transform: rotate(7deg); }
.visual-card-back span { color: #82a7cf; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.visual-card-back strong { display: block; margin-top: 11px; font-size: 31px; }
.visual-card-back small { color: #8097ac; font-size: 9px; }
.visual-card-main { width: 300px; top: 105px; left: 15px; padding: 25px; }
.visual-head { display: flex; align-items: center; justify-content: space-between; color: #75e4c6; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.visual-head b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(15,159,122,.2); }
.visual-card-main > p { margin: 25px 0 5px; color: #8fa5ba; font-size: 10px; }
.visual-card-main > strong { display: block; margin-bottom: 23px; font-size: 34px; letter-spacing: -.04em; }
.visual-line { padding: 11px 0; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.09); color: #91a5b9; font-size: 10px; }
.visual-line b { color: #e8f0f6; }
.visual-line.positive b { color: #71dfc1; }
.coin-shape { position: absolute; display: grid; place-items: center; color: #ffd88a; border: 3px solid #e4a736; border-radius: 50%; background: #f4bd4e; box-shadow: inset 0 0 0 4px #ffd77e, 0 8px 18px rgba(0,0,0,.25); font-weight: 850; }
.coin-a { width: 51px; height: 51px; left: -8px; top: 65px; transform: rotate(-14deg); }
.coin-b { width: 38px; height: 38px; right: 26px; bottom: 56px; transform: rotate(14deg); }
.coin-c { width: 30px; height: 30px; left: 72px; bottom: 25px; font-size: 11px; }
.feature-heading { max-width: 670px; margin-bottom: 38px; }
.feature-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card-grid article { position: relative; min-width: 0; min-height: 165px; padding: 26px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: rgba(255,255,255,.05); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.feature-card-grid article:hover { transform: translateY(-4px); border-color: rgba(117,228,198,.4); background: rgba(255,255,255,.085); }
.feature-card-grid article > span { display: inline-block; color: var(--teal-on-dark); font-size: var(--fs-body); font-weight: 800; line-height: 1; letter-spacing: .1em; transition: color .25s ease, transform .25s ease; }
.feature-card-grid article:hover > span { color: #9dc1ff; transform: translateY(-2px); }
.feature-card-grid h3 { margin: 18px 0 9px; font-size: 19px; line-height: 1.25; }
.feature-card-grid p { margin: 0; color: #a4b8ca; font-size: var(--fs-base); line-height: 1.65; }

.reviews-section { overflow: hidden; }
.carousel-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 34px; }
.carousel-heading h2 { margin: 0; font-size: clamp(30px,3.4vw,43px); letter-spacing: -.045em; }
.carousel-controls { flex: 0 0 auto; display: flex; gap: 8px; }
.carousel-controls button { width: 46px; height: 46px; padding: 0; display: inline-grid; place-items: center; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); line-height: 0; cursor: pointer; transition: .2s ease; }
.carousel-controls button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-controls button:hover { color: #fff; border-color: var(--blue); background: var(--blue); transform: translateY(-2px); }
.reviews-viewport { overflow: hidden; }
.reviews-track { display: flex; gap: 16px; transition: transform .55s cubic-bezier(.22,.75,.25,1); will-change: transform; }
.review-card { flex: 0 0 calc((100% - 32px) / 3); min-width: 0; min-height: 300px; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); }
.review-top { display: flex; align-items: center; gap: 13px; }
.review-top > span { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: linear-gradient(135deg,var(--blue),#0d7c5f); font-size: var(--fs-label); font-weight: 800; line-height: 1; letter-spacing: .02em; }
.review-top > div { min-width: 0; }
.review-top strong, .review-top small { display: block; }
.review-top strong { font-size: 17px; line-height: 1.25; }
.review-top small { margin-top: 3px; color: #5a6d80; font-size: var(--fs-label); line-height: 1.4; }
/* 19px/700 puts the star row in WCAG's "large text" bucket, so the deep gold
   clears 3:1 on white. Plain amber did not. */
.review-stars { margin: 22px 0 12px; color: var(--gold); font-size: 19px; font-weight: 700; line-height: 1; letter-spacing: 3px; }
.review-card > p { flex: 1; margin: 0; color: #384c60; font-size: var(--fs-body); line-height: 1.75; }
.review-use { display: block; margin-top: 20px; padding-top: 16px; color: var(--blue); border-top: 1px solid var(--line); font-size: var(--fs-label); font-weight: 700; line-height: 1.4; }

.compatibility-section { color: #fff; background: linear-gradient(135deg,#0c2136,#123d5d); }
.compatibility-section .section-intro > p:last-child { color: #b0c2d2; }
.compatibility-list { display: grid; gap: 12px; }
.compatibility-list article { position: relative; min-height: 105px; padding: 20px 24px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 20px; align-items: center; border-left: 3px solid var(--compat); border-radius: 0 15px 15px 0; background: rgba(255,255,255,.06); transition: transform .2s ease, background .2s ease; }
.compatibility-list article:hover { transform: translateX(7px); background: rgba(255,255,255,.1); }
.compatibility-list article > div:nth-child(2) { min-width: 0; }
.compatibility-list h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; }
.compatibility-list p { margin: 0; color: #aec0d0; font-size: var(--fs-base); line-height: 1.65; }
.compatibility-list article > span { flex: 0 0 auto; padding: 8px 14px; color: color-mix(in srgb,var(--compat) 42%,#ffffff); border: 1px solid color-mix(in srgb,var(--compat) 55%,transparent); border-radius: 20px; background: color-mix(in srgb,var(--compat) 18%,transparent); font-size: var(--fs-micro); font-weight: 800; line-height: 1.2; white-space: nowrap; text-transform: uppercase; letter-spacing: .07em; }
.compat-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--compat); border-radius: 14px; background: #fff; overflow: hidden; }
.compat-icon img { width: 36px; height: 36px; object-fit: contain; }
.compat-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.firefox-icon svg, .edge-icon svg { fill: currentColor; stroke: none; }
.safari-icon svg circle { fill: #eaf8ff; stroke: currentColor; }.safari-icon svg path { fill: #ff4d61; stroke: #fff; }
.chrome-icon { position: relative; border-radius: 50%; background: conic-gradient(#e94235 0 33%,#fabb05 0 66%,#34a853 0); }
.chrome-icon::after { content:""; width: 20px; height: 20px; border: 5px solid #fff; border-radius: 50%; background:#4285f4; }

.troubleshooting-section { padding-bottom: 35px; }
.troubleshooting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.troubleshooting-grid article { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); transition: .2s ease; }
.troubleshooting-grid article:hover { border-color: #b9cdf8; background: #fff; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.troubleshooting-grid strong { display: block; font-size: 19px; line-height: 1.3; font-family: "Antonio", "Arial Narrow", sans-serif; }
.troubleshooting-grid p { margin: 9px 0 0; color: var(--muted); font-size: var(--fs-base); line-height: 1.7; }
.home-about { padding-top: 35px; }
.home-about-card { padding: 44px 48px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 35px; align-items: center; border: 1px solid #cadcfb; border-radius: 23px; background: linear-gradient(135deg,#f4f8ff,#fff); }
.about-emblem { width: 96px; height: 96px; display: grid; place-items: center; color: var(--blue); border-radius: 25px; background: #fff; box-shadow: var(--shadow-sm); }
.about-emblem svg { width: 60px; height: 60px; fill: rgba(36,99,235,.08); stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.home-about h2 { font-size: 32px; line-height: 1.15; }
.home-about p:not(.section-kicker) { margin: 14px 0 22px; color: var(--muted); font-size: var(--fs-body); line-height: 1.75; }
.home-about a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); text-decoration: none; font-size: var(--fs-base); font-weight: 700; }
.home-about a:hover { text-decoration: underline; text-underline-offset: 4px; }

.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.case-grid article { min-width: 0; padding: 28px 26px; background: var(--surface); border-radius: 17px; }
.case-icon { width: 48px; height: 48px; margin-bottom: 22px; display: grid; place-items: center; color: var(--blue); background: #fff; border-radius: 13px; box-shadow: var(--shadow-sm); line-height: 0; }
.case-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.case-grid article:nth-child(2) .case-icon { color: #0a7a5d; }
.case-grid article:nth-child(3) .case-icon { color: #96620b; }
.case-grid article:nth-child(4) .case-icon { color: #6a3cb8; }
.case-grid h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.25; }
.case-grid p { margin: 0; color: var(--muted); font-size: var(--fs-base); line-height: 1.7; }

.accuracy-section { padding-top: 10px; }
.accuracy-card { padding: 42px 40px; display: grid; grid-template-columns: 88px minmax(0, 1fr) 280px; gap: 34px; align-items: center; border: 1px solid #cadcfb; border-radius: 23px; background: linear-gradient(135deg, #f4f8ff, #f9fbff); }
.accuracy-mark { width: 78px; height: 78px; display: grid; place-items: center; color: var(--blue); border-radius: 21px; background: #fff; box-shadow: var(--shadow-sm); }
.accuracy-mark svg { width: 46px; height: 46px; fill: rgba(36,99,235,.08); stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.accuracy-card h2 { font-size: 30px; line-height: 1.15; }
.accuracy-card > div:nth-child(2) > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: var(--fs-body); line-height: 1.7; }
.formula-box { padding: 22px 24px; border-left: 3px solid var(--blue); background: #fff; border-radius: 0 14px 14px 0; box-shadow: var(--shadow-sm); }
.formula-box span, .formula-box small { display: block; color: #5c6f81; font-size: var(--fs-micro); line-height: 1.4; }
.formula-box span { margin-bottom: 10px; color: var(--blue); font-weight: 800; letter-spacing: .12em; }
/* Poppins deliberately: Antonio has no glyph for the × multiplication sign. */
.formula-box strong { display: block; margin-bottom: 6px; font-size: 19px; font-weight: 700; line-height: 1.3; }

.faq-section { color: #fff; background: #102943; }
.faq-inner { display: grid; grid-template-columns: .65fr 1fr; gap: 90px; align-items: start; }
.faq-intro { position: sticky; top: 115px; }
.faq-intro > p:not(.section-kicker) { color: #adc0d1; }
.faq-intro a { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: #b6c7d6; text-decoration: none; font-size: var(--fs-base); }
.faq-intro a span { color: var(--teal-on-dark); font-weight: 700; }
.faq-intro a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.faq-list { border-top: 1px solid rgba(255,255,255,.14); }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.14); }
.faq-item button { width: 100%; min-height: 68px; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #eef4fa; border: 0; background: transparent; text-align: left; font-size: 17px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.faq-item button > span { min-width: 0; }
.faq-item button:hover { color: #9dc1ff; }
.faq-item svg { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.faq-item button[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.faq-answer > p { min-height: 0; overflow: hidden; margin: 0; color: #adc0d1; font-size: var(--fs-body); line-height: 1.75; }
.faq-item button[aria-expanded="true"] + .faq-answer { grid-template-rows: 1fr; }
.faq-item button[aria-expanded="true"] + .faq-answer > p { padding-bottom: 22px; }

.cta-section { padding-block: 70px; }
.cta-card { position: relative; padding: 46px 50px; display: flex; align-items: center; justify-content: space-between; gap: 35px; color: #fff; border-radius: 24px; background: linear-gradient(115deg, #1851bd, #2463eb 55%, #247bd1); box-shadow: 0 22px 55px rgba(36,99,235,.22); overflow: hidden; }
.cta-card::after { content: "$"; position: absolute; right: 27%; top: -54px; color: rgba(255,255,255,.07); font-size: 190px; font-weight: 900; transform: rotate(12deg); }
.cta-card > div { position: relative; z-index: 1; min-width: 0; }
.cta-card .section-kicker.light { color: #cfe1ff; }
.cta-card h2 { font-size: 34px; line-height: 1.15; }
.cta-card p:last-child { margin: 10px 0 0; color: #e7f0ff; font-size: var(--fs-body); line-height: 1.6; }
.cta-card > a { position: relative; z-index: 1; flex: 0 0 auto; padding: 16px 24px; display: inline-flex; align-items: center; gap: 10px; color: var(--blue); background: #fff; border-radius: 12px; text-decoration: none; font-size: var(--fs-base); font-weight: 800; line-height: 1.1; white-space: nowrap; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.cta-card > a:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(6,25,60,.28); }
.cta-card > a span { margin: 0; }

.site-footer { color: #adbecd; background: #081827; }
.footer-main { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 62px 0 50px; display: grid; grid-template-columns: minmax(270px, 1fr) repeat(4, max-content); justify-content: space-between; gap: 38px; }
.brand-light { color: #fff; }
.brand-light strong { color: #9dc1ff; }
.footer-brand p { max-width: 320px; margin: 20px 0 0; font-size: var(--fs-body); line-height: 1.7; }
.footer-main h3 { margin: 4px 0 18px; color: #fff; font-size: 19px; line-height: 1.2; white-space: nowrap; }
.footer-main > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 12px; }
.footer-main > div:not(.footer-brand) a { position: relative; padding-left: 20px; color: #b8c8d6; text-decoration: none; font-size: var(--fs-base); line-height: 1.4; white-space: nowrap; transition: color .2s ease, transform .2s ease; }
.footer-main > div:not(.footer-brand) a::before { content: "→"; position: absolute; left: 0; color: #7ce3c4; transition: transform .2s ease; }
.footer-main > div:not(.footer-brand) a:hover { transform: translateX(4px); }.footer-main > div:not(.footer-brand) a:hover::before { transform: translateX(2px); }
.footer-main a:hover { color: #fff; }
.footer-bottom { width: min(var(--max), calc(100% - 40px)); min-height: 66px; margin: 0 auto; padding: 16px 0; display: flex; align-items: center; justify-content: center; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-base); text-align: center; }
.footer-bottom p { margin: 0; font-size: var(--fs-base); }
.footer-focus-keyword { color: #9dc1ff; font-weight: 700; text-decoration: none; transition: color .2s ease; }
.footer-focus-keyword:hover { color: var(--teal-on-dark); }
.footer-bottom p + p { display: none; }

.scroll-top { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; color: #fff; border: 0; border-radius: 12px; background: var(--blue); box-shadow: 0 10px 28px rgba(36,99,235,.3); opacity: 0; transform: translateY(12px); pointer-events: none; cursor: pointer; transition: .2s ease; }
.scroll-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.scroll-top:hover { background: var(--blue-dark); }
.scroll-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.toast { position: fixed; z-index: 300; left: 50%; bottom: 26px; max-width: calc(100% - 40px); padding: 13px 20px; color: #fff; border-radius: 11px; background: #122b44; box-shadow: var(--shadow-lg); font-size: var(--fs-base); font-weight: 600; opacity: 0; transform: translate(-50%, 18px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,17,29,.7); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(430px, 100%); padding: 32px; border-radius: 20px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.3); text-align: center; }
.modal-icon { width: 52px; height: 52px; margin: 0 auto 18px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border-radius: 50%; line-height: 0; }
.modal-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.modal-card h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.2; }
.modal-card p { margin: 0 0 24px; color: var(--muted); font-size: var(--fs-body); line-height: 1.65; }
.modal-card > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-card .button-secondary { color: var(--ink); border-color: var(--line-dark); background: var(--surface); }
.modal-card .button-secondary:hover { background: var(--surface-2); }

.print-report { display: none; }

/* Guide */
.guide-hero { padding: 92px 20px; color: #fff; background: radial-gradient(circle at 75% 20%,rgba(36,99,235,.32),transparent 33%),linear-gradient(135deg,#081d31,#123e61); text-align: center; }
.guide-hero h1 { max-width: 850px; margin: 0 auto; font-size: clamp(42px,6vw,68px); letter-spacing: -.055em; }
.guide-hero > p:last-child { max-width: 660px; margin: 18px auto 0; color: #c2d2df; font-size: var(--fs-lead); line-height: 1.75; }
.guide-filter { margin-bottom: 25px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.guide-filter strong { font-size: 22px; line-height: 1.2; font-family: "Antonio", "Arial Narrow", sans-serif; }
.guide-filter span { color: var(--muted); font-size: var(--fs-base); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.guide-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.guide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.guide-card-image { height: 205px; display: block; overflow: hidden; background: #0d2943; }
.guide-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s ease; }.guide-card:hover .guide-card-image img { transform: scale(1.045); }
.guide-card > div { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; }
.guide-card > div > span { color: var(--teal); font-size: var(--fs-label); font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: .07em; }
.guide-card h2 { margin: 12px 0 10px; font-size: 24px; line-height: 1.3; letter-spacing: 0; }
.guide-card h2 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a:hover { color: var(--blue); }
.guide-card p { margin: 0 0 18px; color: #4e6376; font-size: var(--fs-base); line-height: 1.65; }
.guide-card small { margin-top: auto; color: #5c6f81; font-size: var(--fs-label); }
.guide-heading { align-items: center; }
.view-all-guides { flex: 0 0 auto; padding: 14px 20px; display: inline-flex; align-items: center; gap: 9px; color: #fff; border-radius: 11px; background: var(--blue); text-decoration: none; font-size: var(--fs-base); font-weight: 700; line-height: 1.1; white-space: nowrap; }
.view-all-guides:hover { background: var(--blue-dark); }
.guide-outro { max-width: 780px; margin: 34px auto 0; color: var(--muted); font-size: var(--fs-body); line-height: 1.8; text-align: center; }
.guide-outro a { color: var(--blue); font-weight: 600; }
.home-guides { padding-top: 70px; }.home-guides .guide-card-image { height: 180px; }

.article-hero { padding: 76px 20px 88px; color: #fff; background: radial-gradient(circle at 80% 15%,rgba(15,159,122,.25),transparent 30%),linear-gradient(135deg,#081d31,#123e61); }
.article-hero-inner { width: min(950px,100%); margin: 0 auto; }
.breadcrumbs { margin-bottom: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #a3b8c9; font-size: var(--fs-label); }
.breadcrumbs a { color: #cddbe6; text-decoration: none; }.breadcrumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.article-category { display: inline-block; color: var(--teal-on-dark); font-size: var(--fs-label); font-weight: 800; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; }
.article-hero h1 { max-width: 900px; margin: 14px 0; font-size: clamp(40px,6vw,66px); letter-spacing: -.055em; line-height: 1.05; }
.article-hero-inner > p { max-width: 760px; color: #c2d2df; font-size: var(--fs-lead); line-height: 1.72; }
.article-meta { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: #a3b8c9; font-size: var(--fs-label); }
.article-shell { width: min(var(--max),calc(100% - 40px)); margin: 0 auto; padding: 70px 0 100px; display: grid; grid-template-columns: 310px minmax(0,780px); gap: 45px; align-items: start; }
.article-sidebar { position: sticky; top: 100px; }
.article-sidebar > div { padding: 22px; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.article-sidebar strong { margin-bottom: 12px; font-size: var(--fs-body); font-family: "Antonio", "Arial Narrow", sans-serif; }
.article-sidebar a { padding: 9px 11px; color: #55697c; border-radius: 8px; text-decoration: none; font-size: var(--fs-sm); line-height: 1.45; }
.article-sidebar a:hover { color: var(--blue); background: #fff; }
.guide-article { min-width: 0; color: #33485c; }
.article-feature,.article-media img { width: 100%; display: block; border-radius: 20px; box-shadow: var(--shadow-lg); }.article-feature { aspect-ratio: 16/9; object-fit: cover; }
.article-lead { margin: 32px 0; color: #22394e; font-size: 19px; line-height: 1.8; }
.guide-article p,.guide-article li { font-size: 17px; line-height: 1.82; }
.guide-article p { margin: 14px 0; }
.guide-article h2 { margin: 52px 0 15px; color: var(--ink); font-size: 30px; letter-spacing: -.035em; line-height: 1.2; scroll-margin-top: 100px; }
.guide-article h3 { margin: 28px 0 10px; color: #173a5a; font-size: 21px; line-height: 1.3; }
.guide-article ul,.guide-article ol { padding-left: 24px; }.guide-article li + li { margin-top: 8px; }
.guide-article a { color: var(--blue); font-weight: 600; }
.article-callout { margin: 30px 0; padding: 22px 24px; border-left: 4px solid var(--teal); border-radius: 0 13px 13px 0; background: var(--teal-soft); }
.article-callout strong { color: #075f49; font-size: var(--fs-lead); font-family: "Antonio", "Arial Narrow", sans-serif; }
.article-callout p { margin: 6px 0 0; font-size: var(--fs-body); line-height: 1.7; }
.article-media { margin: 48px 0; }.article-media img { aspect-ratio: 16/9; object-fit: cover; }
.article-media figcaption { margin-top: 12px; color: #5c6f81; font-size: var(--fs-sm); line-height: 1.5; text-align: center; }
.guide-article table { width: 100%; margin: 26px 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; font-size: var(--fs-base); }
.guide-article th { padding: 14px; color: #fff; background: #173a5a; text-align: left; font-size: var(--fs-base); }
.guide-article td { padding: 14px; border-top: 1px solid var(--line); font-size: var(--fs-base); line-height: 1.6; }
.guide-article tbody tr:nth-child(even) { background: var(--surface); }
.related-guides { margin-top: 60px; padding-top: 35px; border-top: 1px solid var(--line); }
.related-guides > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-guides a { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; color: var(--ink); border: 1px solid var(--line); border-radius: 13px; text-decoration: none; font-size: var(--fs-base); line-height: 1.45; }
.related-guides a:hover { border-color: #aec5fa; box-shadow: var(--shadow-sm); }
.related-guides a strong { font-size: var(--fs-body); font-weight: 600; }
.related-guides a span { color: var(--blue); font-size: var(--fs-label); font-weight: 700; }

/* Inner pages */
.inner-hero { padding: 70px 20px; color: #fff; background: linear-gradient(125deg, var(--ink), #123d63); text-align: center; }
.inner-hero .section-kicker { color: var(--teal-on-dark); }
.inner-hero h1 { max-width: 800px; margin: 0 auto; font-size: clamp(38px, 6vw, 60px); letter-spacing: -.05em; line-height: 1.08; }
.inner-hero p:last-child { max-width: 660px; margin: 18px auto 0; color: #c2d2df; font-size: var(--fs-lead); line-height: 1.72; }
.content-page { max-width: 820px; }
.content-card { padding: 46px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.content-card h2 { margin-top: 38px; font-size: 28px; line-height: 1.2; }
.content-card h2:first-child { margin-top: 0; }
.content-card h3 { margin-top: 28px; font-size: 20px; line-height: 1.3; }
.content-card p, .content-card li { color: #43596e; font-size: var(--fs-body); line-height: 1.85; }
.content-card a { color: var(--blue); font-weight: 600; }
.content-card ul { padding-left: 22px; }
.content-card li + li { margin-top: 8px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 26px 0; }
.contact-box { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.contact-box span { width: 48px; height: 48px; display: grid; place-items: center; color: var(--blue); background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); line-height: 0; }
.contact-box span svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-box h3 { margin: 18px 0 8px; font-size: 20px; line-height: 1.3; }
.contact-box p { margin: 0; }
.contact-box a { overflow-wrap: anywhere; }
.content-card p.updated-note { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: #5c6f81; font-size: var(--fs-sm); }
.error-page { min-height: 72vh; display: grid; place-items: center; padding: 40px 20px; text-align: center; }
.error-page strong { display: block; color: var(--blue); font-size: 100px; line-height: 1; letter-spacing: -.08em; }
.error-page h1 { margin: 14px 0 8px; font-size: 34px; line-height: 1.2; }
.error-page p { max-width: 520px; color: var(--muted); font-size: var(--fs-body); line-height: 1.7; }
.error-page a { display: inline-block; margin-top: 18px; padding: 14px 22px; color: #fff; background: var(--blue); border-radius: 11px; text-decoration: none; font-size: var(--fs-base); font-weight: 700; }
.error-page a:hover { background: var(--blue-dark); }

@media (max-width: 1180px) {
  .header-inner { gap: 16px; }
  .main-nav { gap: 2px; }
  .main-nav a { padding-inline: 9px; font-size: 15px; }
  .header-cta { padding-inline: 14px; font-size: 14px; }
}

@media (max-width: 1050px) {
  .main-nav { gap: 0; }
  .main-nav a { padding-inline: 8px; font-size: 15px; }
  .header-cta { display: none; }
  .hero-inner { gap: 45px; }
  .settings-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-note { display: none; }
  .calculator-grid { grid-template-columns: minmax(0, 1fr) minmax(430px, .95fr); }
  .denominations-panel { padding-inline: 23px; }
  .denomination-row { grid-template-columns: minmax(130px, 1fr) 148px minmax(84px, .6fr); gap: 12px; }
  .summary-panel { padding: 26px 22px; }
  .count-stats { gap: 10px; }
  .saved-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-inner { gap: 45px; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .accuracy-card { grid-template-columns: 75px minmax(0, 1fr); }
  .formula-box { grid-column: 2; }
  .article-shell { grid-template-columns: 270px minmax(0,1fr); gap: 32px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .footer-main > div:not(.footer-brand) a { white-space: normal; }
  .footer-main h3 { white-space: normal; }
}

/* Between 820px and 940px the summary panel still claims its 430px minimum, so
   the denomination column drops to roughly phone width. The subtotal moves onto
   its own line rather than being squeezed out of the row. */
@media (max-width: 940px) and (min-width: 821px) {
  .denomination-row { min-height: 88px; grid-template-columns: minmax(0, 1fr) 148px; gap: 10px 12px; }
  .row-subtotal { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line); text-align: left; }
  .row-subtotal small { margin: 0; }
  .other-cash { align-items: stretch; flex-direction: column; gap: 14px; }
  .other-cash .money-input, .other-cash .money-input input { width: 100%; }
}

@media (max-width: 820px) {
  .header-inner { width: min(100% - 28px, var(--max)); min-height: 68px; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { position: absolute; left: 14px; right: 14px; top: 61px; padding: 10px; display: none; flex-direction: column; align-items: stretch; gap: 3px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-lg); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 14px; font-size: 17px; }
  .hero-inner { min-height: 0; padding: 59px 0 92px; grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .hero-mini-card { max-width: 430px; }
  .calculator-grid { grid-template-columns: minmax(0, 1fr); }
  .summary-panel { position: relative; top: auto; }
  .denomination-row { grid-template-columns: minmax(145px, 1fr) 158px minmax(96px, .6fr); gap: 16px; }
  .saved-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-strip > div:nth-child(4) { border-top: 1px solid var(--line); }
  .steps-grid, .steps-grid-six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-card { flex-basis: calc((100% - 16px) / 2); }
  .feature-inner { grid-template-columns: minmax(0, 1fr); }
  .feature-visual { max-width: 500px; width: 100%; margin: -30px auto 0; }
  .faq-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .faq-intro { position: static; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .footer-brand { grid-column: auto; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-shell { grid-template-columns: minmax(0, 1fr); }
  .article-sidebar { position: static; }
  .article-sidebar > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
  .article-sidebar strong { grid-column: 1/-1; }
}

@media (max-width: 600px) {
  .header-inner, .hero-inner, .calculator-wrap, .section, .trust-strip, .footer-main, .footer-bottom { width: min(100% - 24px, var(--max)); }
  .brand { font-size: 27px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-mark svg { width: 28px; height: 28px; }
  .hero h1 { font-size: 42px; }
  .hero-lead { font-size: var(--fs-body); }
  .hero-mini-card { padding: 20px; }
  .calculator-wrap { margin-top: -40px; }
  .calculator-card { border-radius: 19px; }
  .calculator-toolbar { padding: 24px 18px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
  .text-button { flex: 1; }
  .settings-row { padding: 18px; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .denominations-panel { padding: 22px 14px 26px; }
  .denomination-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .denomination-tabs button { padding-inline: 6px; font-size: var(--fs-label); }
  .denomination-row { min-height: 88px; padding: 12px 10px; grid-template-columns: minmax(0, 1fr) 138px; gap: 10px; }
  .row-subtotal { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line); text-align: left; }
  .row-subtotal small { margin: 0; }
  .stepper { grid-template-columns: 40px 1fr 40px; }
  .money-shape.bill { width: 44px; }
  .other-cash { align-items: stretch; flex-direction: column; }
  .other-cash .money-input { width: 100%; }
  .other-cash .money-input input { width: 100%; }
  .summary-panel { padding: 26px 20px; }
  .count-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .count-stats > div { flex-direction: column; align-items: flex-start; gap: 8px; }
  .saved-section { padding-block: 50px; }
  .section-heading-row { align-items: stretch; flex-direction: column; gap: 16px; }
  .section-heading-row .text-button, .section-heading-row .view-all-guides { align-self: flex-start; }
  .saved-grid { grid-template-columns: minmax(0, 1fr); }
  .trust-strip { grid-template-columns: minmax(0, 1fr); }
  .trust-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding-block: 66px; }
  .steps-grid, .steps-grid-six, .case-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card-grid, .troubleshooting-grid { grid-template-columns: minmax(0, 1fr); }
  .review-card { flex-basis: 100%; }
  .carousel-heading { align-items: center; }
  .carousel-heading h2 { font-size: 29px; }
  .compatibility-list article { padding: 18px; grid-template-columns: 48px minmax(0, 1fr); gap: 14px 16px; }
  .compatibility-list article > span { grid-column: 2; justify-self: start; }
  .compat-icon { width: 46px; height: 46px; }
  .home-about-card { padding: 30px 24px; grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .steps-grid article { min-height: 0; }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
  .feature-visual { min-height: 355px; transform: scale(.9); transform-origin: center; }
  .visual-card-main { left: 0; }
  .accuracy-card { padding: 28px 24px; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .accuracy-mark { width: 64px; height: 64px; }
  .formula-box { grid-column: auto; }
  .cta-card { padding: 34px 26px; align-items: stretch; flex-direction: column; gap: 26px; }
  .cta-card h2 { font-size: 28px; }
  .cta-card > a { justify-content: center; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-bottom { padding: 18px 0; align-items: center; flex-direction: column; justify-content: center; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .content-card { padding: 28px 22px; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-heading { align-items: stretch; }
  .guide-card-image,.home-guides .guide-card-image { height: 205px; }
  .guide-filter { align-items: flex-start; flex-direction: column; gap: 6px; }
  .article-hero { padding: 55px 20px 65px; }
  .article-hero h1 { font-size: 39px; }
  .article-shell { width: min(100% - 24px,var(--max)); padding-top: 45px; }
  .guide-article p,.guide-article li { font-size: var(--fs-body); }
  .guide-article h2 { font-size: 26px; }
  .article-lead { font-size: var(--fs-lead); }
  .article-sidebar > div { grid-template-columns: minmax(0, 1fr); }
  .related-guides > div { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* Readability floor.
   The previous pass forced every p/a/li/button/small to 16px with !important,
   which flattened the hierarchy (labels ended up larger than the values they
   described) and overflowed the fixed-width controls. Sizes now live on the
   components themselves; these zero-specificity defaults only catch elements
   no component rule claims, so nothing meaningful renders below 12px. */
@media screen {
  :where(p, li, blockquote, figcaption, td, th) { font-size: var(--fs-body); }
  :where(small) { font-size: var(--fs-label); }
  :where(label, button, input, select, textarea) { font-size: var(--fs-base); }
}
.focus-keyword { color: var(--teal); text-decoration-color: rgba(13,124,95,.45); text-underline-offset: 3px; }
.hero-lead .focus-keyword { color: #87AFFF !important; text-decoration: none; }

/* Icons inside clickable controls must never become the event target, so the
   delegated `closest()` lookups keep resolving to the button itself. */
.stepper button svg,
.saved-card-actions button svg,
.carousel-controls button svg,
.currency-option img,
.currency-option span,
.menu-toggle span { pointer-events: none; }

@media print {
  @page { size: A4 portrait; margin: 0; }
  *, *::before, *::after { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: #fff !important; color: #14283c !important; }
  body > *:not(.print-report) { display: none !important; }
  .print-report { display: block !important; box-sizing: border-box; min-height: 297mm; padding: 12mm 14mm; color: #14283c; font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 1.45; }
  .print-report header { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #cbdcff; border-bottom: 4px solid #2463eb; border-radius: 12px 12px 0 0; background: linear-gradient(110deg, #eef4ff, #effbf7); }
  .print-logo { display: flex; align-items: center; gap: 9px; color: #0b1f33; }
  .print-logo span { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; border-radius: 11px; background: linear-gradient(135deg, #2463eb, #0f9f7a); font-size: 18pt; font-weight: bold; }
  .print-logo strong, .print-logo small { display: block; }.print-logo strong { color: #102943; font-size: 14pt; }.print-logo small { margin-top: 3px; color: #526a80; font-size: 8.5pt; font-weight: normal; }
  .print-report header > div:last-child { text-align: right; }
  .print-report-tag { display: inline-block; margin-bottom: 5px; padding: 3px 7px; color: #087357; border-radius: 5px; background: #dff7ef; font-size: 8pt; font-weight: bold; letter-spacing: .12em; }
  .print-report header h2 { margin: 0; color: #12395d; font-size: 18pt; }
  .print-report header p { margin: 4px 0 0; color: #526a80; font-size: 9pt; }
  .print-summary-grid { margin: 17px 0; display: grid; grid-template-columns: 1.25fr .75fr .75fr 1.15fr; border: 1px solid #dbe4ed; border-radius: 9px; overflow: hidden; }
  .print-summary-grid > div { min-height: 51px; padding: 12px 13px; border-right: 1px solid #cfdae5; background: #eef4ff; }
  .print-summary-grid > div:nth-child(2) { background: #eaf9f4; }
  .print-summary-grid > div:nth-child(3) { background: #fff7e7; }
  .print-summary-grid > div:last-child { border-right: 0; color: #fff; background: linear-gradient(135deg, #102943, #1851bd); }
  .print-summary-grid span { display: block; margin-bottom: 6px; color: #4e6478; font-size: 8.5pt; font-weight: bold; text-transform: uppercase; }
  .print-summary-grid .print-total span { color: #d7e5ff; }
  .print-summary-grid strong { color: #102943; font-size: 11pt; }
  .print-summary-grid .print-total strong { color: #fff; font-size: 16pt; }
  .print-difference { margin: -8px 0 18px; padding: 11px 13px; color: #075f49; border: 1px solid #b7e8da; border-left: 4px solid #0f9f7a; border-radius: 0 8px 8px 0; background: #e8f8f3; font-size: 10pt; font-weight: bold; }
  .print-report h2 { margin: 18px 0 8px; color: #12395d; font-size: 13pt; }
  .print-report table { width: 100%; border-collapse: collapse; border: 1px solid #cfdbe7; font-size: 9.5pt; }
  .print-report th { padding: 9px 10px; color: #fff; background: #1851bd; text-align: left; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .05em; }
  .print-report th:nth-child(n+3), .print-report td:nth-child(n+3) { text-align: right; }
  .print-report td { padding: 8px 10px; color: #243e55; border-bottom: 1px solid #d7e1ea; }
  .print-report tbody tr:nth-child(odd) { background: #f8fbff; }
  .print-report tbody tr:nth-child(even) { background: #edf8f5; }
  .print-notes { margin-top: 18px; padding: 11px 13px; border: 1px solid #c8d9fb; border-left: 4px solid #2463eb; border-radius: 0 8px 8px 0; background: #eef4ff; page-break-inside: avoid; }
  .print-notes strong { display: block; color: #174b9c; font-size: 9.5pt; }.print-notes p { margin: 4px 0 0; color: #405a70; font-size: 8.5pt; line-height: 1.5; }
  .print-signoff { margin-top: 25px; display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; page-break-inside: avoid; }
  .print-signoff-item em { display: flex; align-items: flex-end; min-height: 31px; padding: 0 2px 3px; border-bottom: 1.5px solid #637a90; color: #14283c; font-size: 11pt; font-style: normal; }
  .print-signoff-item span { display: block; margin-top: 6px; color: #4e6478; font-size: 8pt; font-weight: bold; text-transform: uppercase; letter-spacing: .06em; }
  .print-report footer { margin-top: 18px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 20px; color: #4f6579; border-top: 2px solid #0f9f7a; background: #f2faf7; font-size: 8.5pt; }
  .print-report footer p { margin: 0; }
  .print-report footer strong { color: #2463eb; }
}
