/* ─── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --bg:           #f5f5f0;
  --surface:      #ffffff;
  --surface-2:    #f9f9f6;
  --border:       #e0dfd8;
  --border-2:     #c8c7be;
  --text-primary: #1a1a18;
  --text-secondary:#4a4a46;
  --text-muted:   #7a7a74;
  --accent:       #1a4f2e;
  --accent-light: #e8f2ec;
  --accent-mid:   #2d7a47;
  --accent-hover: #153d24;
  --red:          #c0392b;
  --amber:        #c47a00;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow:       0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --max-width:    960px;
  --content-width: 760px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  max-width: 100%;
}
body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}
a { color: var(--accent-mid); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
table, pre, code, textarea, input { max-width: 100%; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Page body (support pages) ─────────────────────────────────────────── */
.page-body {
  max-width: var(--content-width, 760px);
  margin: 32px auto;
  padding: 0 24px;
}
.page-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
}
.page-body h2:first-child { margin-top: 0; }
.page-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin: 18px 0 8px;
}
.page-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
}
.page-body ul, .page-body ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.page-body li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
  line-height: 1.6;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--accent);
  color: #fff;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-logo:hover { color: rgba(255,255,255,0.85); text-decoration: none; }
.logo-maple { font-size: 1.3rem; line-height: 1; }
.logo-text { font-size: 0.95rem; font-weight: 700; }
.logo-text span { font-weight: 300; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover { color: #fff; text-decoration: none; }

/* ─── Hamburger / Mobile Nav ────────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger span + span { margin-top: 6px; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 58px;
  right: 0;
  width: 260px;
  max-width: 80vw;
  height: calc(100vh - 58px);
  background: var(--accent);
  z-index: 105;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-nav.active {
  display: block;
  transform: translateX(0);
}
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  transition: color 0.15s;
}
.mobile-nav a:hover { color: #fff; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: var(--accent);
  color: #fff;
  padding: 32px 20px 28px;
  border-bottom: 3px solid var(--accent-mid);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.hero p {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  max-width: 620px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.95);
}

/* Hero for inner pages */
.page-hero {
  background: var(--accent);
  color: #fff;
  padding: 28px 0 24px;
  border-bottom: 3px solid var(--accent-mid);
}
.page-hero h1 {
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.page-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
}

/* ─── Main content area ──────────────────────────────────────────────────── */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 56px;
}
.content-col {
  max-width: 760px;
  margin: 0 auto;
}

/* ─── Calculator card ────────────────────────────────────────────────────── */
.calc-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}
.calc-header {
  background: var(--accent-light);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.calc-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}
.calc-icon { font-size: 1.2rem; }
.calc-body {
  padding: 24px;
}

/* ─── Form ───────────────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 20px;
}
.field-full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.field .hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix {
  position: absolute;
  left: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'IBM Plex Mono', monospace;
  pointer-events: none;
  user-select: none;
}
.input-wrap input[type="number"],
.input-wrap input[type="text"] {
  width: 100%;
  padding: 11px 12px 11px 26px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  -moz-appearance: textfield;
}
.input-wrap input[type="number"]::-webkit-outer-spin-button,
.input-wrap input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.input-wrap input:focus {
  outline: none;
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(45,122,71,0.12);
}
select {
  width: 100%;
  padding: 11px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select:focus {
  outline: none;
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(45,122,71,0.12);
}

/* Calculate button */
.btn-calculate {
  width: 100%;
  padding: 15px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-calculate:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow);
}
.btn-calculate:active { transform: translateY(1px); }

/* ─── Trust strip (inside calc-card) ────────────────────────────────────── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin: 0 24px 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.ts-item { display: flex; align-items: center; gap: 4px; }
.ts-item span { color: var(--accent-mid); font-weight: 700; }
.ts-item strong { font-weight: 600; color: var(--text-primary); }
.ts-sep { color: var(--border-2); font-size: 0.75rem; }

/* ─── Results ────────────────────────────────────────────────────────────── */
#results {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  overflow: hidden;
}
.results-inner { padding: 24px; }
.results-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.result-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.result-row:last-child { border-bottom: none; }
.result-row small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
  display: block;
  margin-top: 2px;
}
.result-row.result-bold {
  background: var(--accent-light);
  font-weight: 600;
}
.result-row.result-highlight {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.result-row.result-highlight .rr-value { color: #fff; }
.result-row.result-highlight small { color: rgba(255,255,255,0.7); }
.rr-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Rate blocks */
.rate-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.rate-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.rate-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.rate-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.rate-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── CPP Callout ─────────────────────────────────────────────────────────── */
.cpp-callout {
  background: #fff8e1;
  border: 1px solid #f0d98a;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 4px;
}
.cpp-callout strong {
  color: var(--amber);
  font-weight: 700;
}

/* ─── Reminders ──────────────────────────────────────────────────────────── */
.reminder-block {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}
.reminder-amber {
  background: #fff8e1;
  border: 1px solid #f0d98a;
  border-left: 4px solid var(--amber);
}
.reminder-amber strong { color: var(--amber); }
.reminder-info {
  background: var(--accent-light);
  border: 1px solid #b8d8c4;
  border-left: 4px solid var(--accent-mid);
}
.reminder-info strong { color: var(--accent-mid); }

/* Error message */
.error-msg {
  padding: 14px 16px;
  background: #fff5f5;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius);
  color: var(--red);
  font-size: 0.875rem;
}

/* ─── Disclaimer (near results) ─────────────────────────────────────────── */
.disclaimer-near-results {
  background: #fffbf0;
  border: 1px solid #f0d98a;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ─── Ad Units ──────────────────────────────────────────────────────────── */
.ad-unit { margin: 20px 0; min-height: 0; }
.ad-inactive { display: none; }

/* ─── Info / methodology sections ────────────────────────────────────────── */
.info-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.info-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.info-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin: 16px 0 6px;
}
.info-section p, .info-section li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.info-section ul, .info-section ol {
  margin: 8px 0 8px 20px;
}
.info-section li { margin-bottom: 4px; }

.info-box {
  background: var(--accent-light);
  border: 1px solid #b8d8c4;
  border-left: 4px solid var(--accent-mid);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 14px 0;
}

.formula {
  background: var(--surface-2);
  border-left: 3px solid var(--accent-mid);
  padding: 10px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 10px 0;
  overflow-x: auto;
}

/* ─── Page content (about, faq, etc.) ───────────────────────────────────── */
.page-content {
  padding: 32px 20px 56px;
}
.page-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 8px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin: 18px 0 6px;
}
.page-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.page-content ul, .page-content ol {
  margin: 8px 0 12px 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.page-content li { margin-bottom: 4px; }
.page-content a { color: var(--accent-mid); }
.page-content a:hover { color: var(--accent-hover); }

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: none;
  padding: 14px 16px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--accent-light); }
.faq-q[aria-expanded="true"] { background: var(--accent-light); color: var(--accent); }
.faq-icon { font-size: 0.75rem; color: var(--text-muted); transition: transform 0.2s; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(90deg); }
.faq-a {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.2s;
}
.faq-a.open {
  padding: 12px 16px 16px;
  max-height: 800px;
}
.faq-a p, .faq-a ul { font-size: 0.88rem; color: var(--text-secondary); }
.faq-a ul { margin-left: 18px; margin-top: 6px; }

/* ─── Contact form ───────────────────────────────────────────────────────── */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form .field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(45,122,71,0.12);
}
.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}
.calc-btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, box-shadow 0.15s;
}
.calc-btn:hover { background: var(--accent-hover); box-shadow: var(--shadow); }
.calc-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--accent);
  color: rgba(255,255,255,0.7);
  padding: 28px 20px;
  margin-top: 20px;
  font-size: 0.82rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.footer-brand .logo {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
  display: block;
}
.footer-brand p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  margin-bottom: 6px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.more-tools-link {
  display: inline-block;
  margin-top: 8px;
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.85rem;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: #fff; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1280px) {
  .footer-grid { gap: 24px; }
}

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 20px; }
}

@media (max-width: 1024px) {
  .hamburger { display: flex; flex-direction: column; justify-content: center; gap: 0; }
  .site-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 834px) {
  .hero h1 { font-size: clamp(1.2rem, 3.5vw, 1.8rem); }
  .hero p { font-size: 0.9rem; }
  .info-section { padding: 20px; }
}

@media (max-width: 820px) {
  .form-grid { gap: 12px 16px; }
}

@media (max-width: 768px) {
  .main-content { padding: 20px 16px 48px; }
  .calc-body { padding: 16px; }
  .calc-header { padding: 14px 16px; }
  .trust-strip { margin: 0 16px 16px; padding: 8px 12px; font-size: 0.75rem; }
  .ts-sep { display: none; }
  .hero { padding: 24px 16px 20px; }
  .page-content { padding: 24px 16px 48px; }
  .page-hero { padding: 22px 0 18px; }
  .page-hero h1 { font-size: 1.2rem; }
  .results-inner { padding: 16px; }
}

@media (max-width: 479px) {
  /* Mobile: single column, full width */
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: 1; }
  .rate-blocks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand { grid-column: unset; }
  .header-inner { padding: 0 14px; }
  .site-logo .logo-text { font-size: 0.85rem; }
  .result-row { flex-direction: row; }
  .rr-value { font-size: 0.88rem; }
  .info-section { padding: 16px; }
  .result-row small { font-size: 0.72rem; }

  /* Input fields ≥ 16px, height ≥ 44px for iOS */
  .input-wrap input[type="number"],
  .input-wrap input[type="text"] {
    font-size: 16px;
    min-height: 44px;
    padding: 10px 12px 10px 26px;
  }
  select {
    font-size: 16px;
    min-height: 44px;
  }
  .btn-calculate {
    font-size: 16px;
    min-height: 48px;
  }
  .field label { font-size: 0.875rem; }

  /* CPP callout: full width, 16px padding, 14px min font */
  .cpp-callout {
    padding: 16px;
    font-size: 0.85rem;
  }
  /* Disclaimer: 13px min */
  .disclaimer-near-results { font-size: 13px; }
  /* Footer: single column, 13px min */
  .site-footer { font-size: 13px; }
  /* IBM Plex Mono: 14px minimum on mobile */
  .rr-value { font-size: 14px; }
  .rate-value { font-size: 1.2rem; }
}

@media (max-width: 375px) {
  .site-logo .logo-text { font-size: 0.8rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero h1 { font-size: 1.15rem; }
}

@media (max-width: 360px) {
  .header-inner { padding: 0 10px; }
  .hero { padding: 18px 12px 16px; }
  .calc-body { padding: 12px; }
  .calc-header { padding: 12px; }
  .trust-strip { margin: 0 12px 12px; }
}

@media (max-width: 320px) {
  html { font-size: 14px; }
  .site-logo .logo-text { font-size: 0.75rem; }
  .mobile-nav { width: 100%; max-width: 100vw; }
}
