/* Pony Money — Max Money Mart design language, Pony Money palette.
   Structure, typography, radii, shadows and dark mode follow maxmoneymart;
   colours are derived from the Pony Money logo (terracotta + sand). */

:root {
  /* Sampled from the logo vector (Slogan 3/svg-01.svg). #9d5e40 is the pony's
     shading tone and clears 5.1:1 on white, so it can carry body-size text;
     raw #bf7248 is only 3.7:1 and is reserved for large text and fills. */
  --color-primary: #9d5e40;
  --color-primary-dark: #74452f;
  --color-primary-light: #fbeee4;

  --color-accent: #bf7248;      /* pony body */
  --color-accent-light: #f0d2a8; /* muzzle / sand */
  --color-gold: #fbdd7f;         /* mane */

  --color-text: #2b2521;
  --color-text-muted: #6f655d;
  --color-bg: #ffffff;
  --color-bg-alt: #faf6f1;
  --color-border: #e8ded3;
  --color-error: #c02b2b;
  --color-error-bg: #fbeaea;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(74, 43, 22, 0.08);
  --shadow-lg: 0 20px 50px rgba(74, 43, 22, 0.14);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Poppins', var(--font);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #e0956a;
    --color-primary-dark: #bf7248;
    --color-primary-light: #2f211a;
    --color-accent: #f0d2a8;
    --color-gold: #fbdd7f;
    --color-accent-light: #34261a;
    --color-text: #f1ece7;
    --color-text-muted: #ab9f95;
    --color-bg: #16110e;
    --color-bg-alt: #1e1815;
    --color-border: #342a24;
    --color-error: #ff8a8a;
    --color-error-bg: #3a1f1f;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--color-text);
}
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
.section-title { text-align: center; margin-bottom: 40px; }

p { margin: 0 0 12px; color: var(--color-text-muted); }
a { color: var(--color-primary); }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--color-primary); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px 20px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem;
  color: var(--color-text); text-decoration: none; flex-shrink: 0;
}
.logo .accent { color: var(--color-primary); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px;
  overflow: hidden; flex-shrink: 0; background: var(--color-primary-light);
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600;
  color: var(--color-text); text-decoration: none;
}
.main-nav a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.main-nav a[aria-current="page"] { color: var(--color-primary); background: var(--color-primary-light); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none; background: none; cursor: pointer;
  border: 1px solid var(--color-border); border-radius: 10px;
  padding: 8px 10px; color: var(--color-text);
}
.nav-toggle svg { display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px;
  font-family: var(--font); font-weight: 700;
  cursor: pointer; text-decoration: none; text-align: center;
  padding: 13px 26px; font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(157, 94, 64, 0.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(157, 94, 64, 0.38); }
.btn-secondary {
  background: transparent; color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover { background: var(--color-bg-alt); }
.btn-light { background: #fff; color: var(--color-primary-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-large { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--color-primary-dark); background: var(--color-primary-light);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--color-primary); } }
.eyebrow-center { display: block; width: fit-content; margin: 0 auto 16px; text-align: center; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 60%);
  padding: 88px 0 70px;
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; }
.hero-blob-1 { width: 460px; height: 460px; background: var(--color-accent); opacity: 0.16; top: -200px; right: -140px; }
.hero-blob-2 { width: 320px; height: 320px; background: var(--color-accent-light); opacity: 0.3; bottom: -150px; left: -90px; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
}
.hero h1 { margin-bottom: 16px; }
.hero-sub { font-size: 1.12rem; margin-bottom: 22px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 26px; }
.hero-points li { padding-left: 30px; position: relative; margin-bottom: 10px; font-weight: 600; color: var(--color-text); }
.hero-points li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-primary-light); color: var(--color-primary);
  font-size: 0.7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-disclaimer { font-size: 0.8rem; margin-top: 14px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; padding: 30px 10px; }
.hero-main-card {
  width: 100%; max-width: 330px;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px 24px;
}
.hero-main-card-header {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 18px;
}
.hero-main-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--color-primary-light); color: var(--color-primary);
}
.hero-main-amount {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px dashed var(--color-border);
}
.hero-main-amount-label { font-size: 0.85rem; color: var(--color-text-muted); }
.hero-main-amount-value {
  font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800;
  color: var(--color-primary); letter-spacing: -0.02em; line-height: 1.1;
}
.hero-main-card-rows { display: flex; flex-direction: column; gap: 12px; }
.hero-card-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; }
.hero-card-row span { display: inline-flex; align-items: center; gap: 8px; color: var(--color-text-muted); }
.hero-card-row .icon { color: var(--color-primary); }
.hero-card-row strong { font-size: 0.88rem; }

.floating-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: 999px; padding: 10px 16px;
  font-size: 0.8rem; font-weight: 700; box-shadow: var(--shadow);
  z-index: 2; white-space: nowrap;
}
.chip-top { top: 6px; left: -6px; color: var(--color-primary); transform: rotate(-4deg); }
.chip-bottom { bottom: 10px; right: -10px; color: var(--color-accent); transform: rotate(3deg); }

.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---------- trust bar ---------- */
.trust-bar { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); padding: 30px 0; }
.trust-bar-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 14px; color: #fff; }
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.14); flex-shrink: 0;
}
.trust-icon .icon { color: #fff; }
.trust-item strong { display: block; font-size: 1.02rem; }
.trust-item span { color: rgba(255, 255, 255, 0.85); font-size: 0.82rem; }

/* ---------- generic sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.step-card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 30px 26px; text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-card p:last-child { margin-bottom: 0; }
.step-num {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--color-primary-light); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800;
}

.feature-card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card p:last-child { margin-bottom: 0; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--color-primary-light); color: var(--color-primary);
  margin-bottom: 16px;
}

/* ---------- interior page header ---------- */
.page-head {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--color-border);
}
.page-head h1 { margin-bottom: 10px; }
.page-head p { font-size: 1.06rem; max-width: 62ch; margin-bottom: 0; }

.breadcrumb { font-size: 0.85rem; margin-bottom: 14px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; color: var(--color-text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.breadcrumb a { color: var(--color-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- prose ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.45rem; margin-top: 40px; }
.prose h3 { font-size: 1.12rem; margin-top: 28px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.3em; color: var(--color-text-muted); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--color-text); }
.prose a { text-decoration: underline; }
.post-meta { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 0; }

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto; margin-bottom: 26px;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-bg); box-shadow: var(--shadow);
}
table { border-collapse: collapse; width: 100%; min-width: 760px; }
caption {
  caption-side: top; text-align: left;
  font-family: var(--font-heading); font-size: 0.92rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.5;
  color: var(--color-text); background: var(--color-bg-alt);
  padding: 18px 20px;
}
th, td { padding: 13px 16px; text-align: right; font-size: 0.92rem; border-bottom: 1px solid var(--color-border); }
th:first-child, td:first-child { text-align: left; }
thead th {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff; font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.4;
  border-bottom: 0; vertical-align: bottom;
}
tbody tr:nth-child(even) { background: var(--color-bg-alt); }
tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; color: var(--color-text); }

.disclosure {
  background: var(--color-bg-alt); border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 26px; font-size: 0.92rem;
}
.disclosure p { margin-bottom: 12px; }
.disclosure p:last-child { margin-bottom: 0; }

.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { margin-bottom: 10px; }
.doc-list a, .doc-list span {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); background: var(--color-bg);
  font-size: 0.93rem; font-weight: 600; text-decoration: none;
}
.doc-list a:hover { border-color: var(--color-primary); background: var(--color-bg-alt); }
.doc-list span { color: var(--color-text-muted); font-weight: 400; }
.doc-list .icon { color: var(--color-primary); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px;
}
.faq-item[open] { border-color: var(--color-primary); box-shadow: var(--shadow); }
.faq-item summary {
  font-weight: 700; cursor: pointer; list-style: none;
  position: relative; padding-right: 32px; color: var(--color-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 4px; top: 6px;
  width: 9px; height: 9px;
  border-right: 2.5px solid var(--color-primary); border-bottom: 2.5px solid var(--color-primary);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 10px; }
.faq-item p { margin-top: 10px; margin-bottom: 0; font-size: 0.92rem; }
.faq-item ul { margin: 10px 0 0; padding-left: 1.3em; color: var(--color-text-muted); font-size: 0.92rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: start; }
.contact-method { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: var(--color-primary-light); color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-method h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; color: var(--color-text-muted); }
.contact-method a { font-size: 1.08rem; font-weight: 700; text-decoration: none; }
.contact-method a:hover { text-decoration: underline; }

.form-card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 34px;
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--color-text); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit;
  background: var(--color-bg); color: var(--color-text);
}
input:focus, textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.82rem; margin-top: 18px; margin-bottom: 0; line-height: 1.6; }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card time { font-size: 0.8rem; color: var(--color-text-muted); font-weight: 600; }
.post-card h2 { font-size: 1.18rem; margin: 8px 0 10px; }
.post-card h2 a { color: var(--color-text); text-decoration: none; }
.post-card h2 a:hover { color: var(--color-primary); }
.post-card p { font-size: 0.92rem; }
.post-card .read-more { margin-top: auto; font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.post-card .read-more:hover { text-decoration: underline; }

.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--color-border); font-size: 0.9rem; }
.post-nav a { text-decoration: none; font-weight: 600; }
.post-nav a:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  padding: 64px 0; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.86); margin-bottom: 24px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); padding: 56px 0 28px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--color-text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--color-primary); text-decoration: underline; }
.site-footer p { font-size: 0.9rem; }
.footer-legal {
  border-top: 1px solid var(--color-border);
  margin-top: 36px; padding-top: 24px;
  font-size: 0.78rem; line-height: 1.7; color: var(--color-text-muted);
}
.footer-legal p { font-size: 0.78rem; margin-bottom: 10px; }
.footer-legal strong { color: var(--color-text); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid, .grid-3 { grid-template-columns: 1fr; }
  .trust-bar-inner { grid-template-columns: 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .nav-toggle { display: block; order: 3; }
  .main-nav {
    display: none; order: 4; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding-top: 10px; margin-left: 0;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 10px; border-radius: 8px; border-bottom: 1px solid var(--color-border); }
  .header-inner { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 50px; }
  .trust-bar-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-card { padding: 24px; }
  .floating-chip { display: none; }
  /* Login stays visible on mobile now the translate dropdown is gone */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .step-card:hover, .feature-card:hover, .post-card:hover, .btn:hover { transform: none; }
}

@media print {
  .site-header, .cta-band, .site-footer, .hero-actions, .nav-toggle { display: none; }
}

/* Tables inside article prose are narrow data tables, not the wide rate
   schedules, so they must not inherit the 760px min-width. */
.prose table { min-width: 0; font-size: 0.9rem; }
.prose .table-wrap { box-shadow: none; }
.prose thead th { font-size: 0.72rem; }
.prose caption { font-size: 0.85rem; padding: 14px 16px; }

/* Keep the mobile header compact: the translate select adds a row, so shrink
   the logo, tighten padding and let the widget share the action row. */
@media (max-width: 900px) {
  .header-inner { padding: 10px 20px; gap: 10px; row-gap: 8px; }
  .logo { font-size: 1.05rem; gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-mark img { width: 30px; height: 30px; }
  .header-actions { gap: 8px; }
}
@media (max-width: 620px) {
  .header-inner { padding: 8px 16px; }
  .header-actions .btn { padding: 8px 14px; font-size: 0.82rem; }
}

/* Grid sizes each row independently, so a shorter second row would render
   shorter cards. Force one track size across the whole grid, and lay the card
   out as a column so the body text can absorb the slack evenly. */
.grid-3, .grid-2, .steps-grid, .post-grid { grid-auto-rows: 1fr; }

.feature-card, .step-card, .post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.feature-card p, .step-card p { margin-bottom: 0; }
.feature-card h3, .step-card h3 { margin-bottom: 8px; }

/* ---------- header sizing fixes ----------
   1. Nav links were wrapping mid-phrase ("How It Works") when 7 items got
      squeezed, pushing the nav block to 84px and the header to 113px.
   2. Google's gadget wrapper renders ~50px tall even with its text hidden.
   3. The logo mark was 36px, too small against the wordmark. */

.main-nav a { white-space: nowrap; padding: 8px 10px; }
.main-nav { gap: 2px; }

.logo { font-size: 1.45rem; gap: 11px; }
.logo-mark { width: 52px; height: 52px; border-radius: 12px; }
.logo-mark img { width: 52px; height: 52px; }

@media (max-width: 900px) {
  .logo { font-size: 1.2rem; gap: 9px; }
  .logo-mark { width: 44px; height: 44px; }
  .logo-mark img { width: 44px; height: 44px; }
}

/* The larger logo + 7 nav items + translate + 2 buttons exceed the 1120px
   content container. The header gets a wider one; content stays at 1120. */
.site-header .container { max-width: 1280px; }

/* Google pads its gadget wider than the select itself; clamp it back */

/* Collapse to the hamburger while the inline nav would still be cramped */
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; order: 4; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding-top: 10px; margin-left: 0;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 10px; border-radius: 8px; border-bottom: 1px solid var(--color-border); }
  .header-inner { flex-wrap: wrap; }
}

/* ---------- header logo: full stacked lockup ----------
   Uses the real brand asset (pony above the wordmark above the tagline)
   instead of a small mark beside HTML text. Vector, so crisp at any size. */
.logo { padding: 6px 0; }
.logo-full {
  height: 84px;
  width: auto;
  display: block;
}
.site-header .container { max-width: 1560px; }

@media (max-width: 1180px) {
  .logo-full { height: 72px; }
}
@media (max-width: 900px) {
  .logo-full { height: 68px; }
}
@media (max-width: 620px) {
  .logo-full { height: 64px; }
}

/* ---------- header: centre the nav ----------
   .main-nav had margin-left:auto, which shoved it hard right and left a large
   void after the logo. Let it be the flexible middle element instead. */
.header-inner { justify-content: flex-start; gap: 18px; }
.logo { flex: 0 0 auto; }
.main-nav {
  flex: 1 1 auto;
  justify-content: center;
  margin-left: 0;
  gap: 4px;
}
.header-actions { flex: 0 0 auto; margin-left: 0; }

@media (max-width: 1180px) {
  /* stacked menu: nav must not try to centre itself in a column */
  .main-nav { flex: 1 1 100%; justify-content: flex-start; }
}

/* Footer contact rows: small icon sitting in front of each detail */
.footer-contact li { margin-bottom: 10px; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.footer-contact .icon {
  color: var(--color-primary);
  flex-shrink: 0;
}
.footer-contact a:hover .icon { color: inherit; }

/* Nudge the logo in from the left edge so it isn't flush against it */
.logo { margin-left: 24px; }
@media (max-width: 900px) { .logo { margin-left: 8px; } }
@media (max-width: 620px) { .logo { margin-left: 0; } }

/* CTA band: the group was centred but the two buttons differ in width
   (158px vs 113px), which reads as left-heavy. Equalise them. */
.cta-actions .btn { min-width: 170px; }

/* Mobile header was overflowing its row by ~14px at 375px and wrapping to
   three rows (150px tall). Tighten the gap so it stays on one. */
@media (max-width: 620px) {
  .header-inner { gap: 10px; padding: 8px 14px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 8px 12px; font-size: 0.8rem; }
  .nav-toggle { padding: 7px 9px; }
}
