/* =========================================================================
   Mr. Auto Finance - brand layer (loads after styles.css)
   Logo B "On your side": deep teal (was oxblood until 2026-10-22), terracotta, apricot, ivory; Plus Jakarta Sans only.
   Rules: brand/guide/brand-guide.html. Components here are prefixed maf-.
   Refine pass 2026-10-16 (docs/DESIGN-REVIEW-2026-10-16.md): solid short header, phone menu,
   brand period + curve carried through the page, list / path / band / mosaic / apricot sections.
   ========================================================================= */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/PlusJakartaSans-var.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --maf-ox: #17545A; /* brand primary: deep teal since 2026-10-22 (was oxblood #5A1621); token name kept */
  --maf-ox-900: #0E3A3F;
  --maf-tc: #D3623A;
  --maf-tc-text: #A94A28;
  --maf-ap: #F2A27C;
  --maf-iv: #F6F0E6;
  --maf-paper: #FBF8F3;
  --maf-white: #FFFFFF;
  --maf-ink: #161616;
  --maf-body: #3B3430;
  --maf-muted: #6E655E;
  --maf-line: #E6DED2;
  --maf-radius: 20px;
  --maf-ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 64px;
  /* One size for the three big statements (hero, band, "What a car makes possible"): 72px on desktop */
  --maf-statement: clamp(2.35rem, 1.1rem + 3.9vw, 4.5rem);
  --maf-ko: 'Plus Jakarta Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Noto Sans CJK KR', system-ui, sans-serif;
  --maf-zh: 'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', 'Hiragino Sans GB', system-ui, sans-serif;
}
@media (min-width: 768px) { :root { --header-h: 76px; } }

/* ---- Base ------------------------------------------------------------ */
body.maf, body.apply-shell { background: var(--maf-paper); color: var(--maf-ink); word-spacing: 0.02em; }
/* Korean and Chinese use the visitor's system CJK font (no font host, no extra download); Latin stays in Plus Jakarta Sans. */
body.lang-ko { font-family: var(--maf-ko); word-break: keep-all; }
body.lang-zh { font-family: var(--maf-zh); line-break: strict; }
body.lang-fa { font-family: 'Vazirmatn', 'Plus Jakarta Sans', Tahoma, sans-serif; }
body.lang-fa h1, body.lang-fa h2, body.lang-fa h3, body.lang-fa .btn { font-family: 'Vazirmatn', sans-serif; letter-spacing: 0; }
body.lang-ko h1, body.lang-ko h2, body.lang-ko h3, body.lang-ko .btn { font-family: var(--maf-ko); letter-spacing: 0; word-break: keep-all; }
body.lang-zh h1, body.lang-zh h2, body.lang-zh h3, body.lang-zh .btn { font-family: var(--maf-zh); letter-spacing: 0; }
.maf-nowrap { white-space: nowrap; }
.maf-hy { margin-inline: -0.04em; }
.maf h1, .maf h2, .maf h3, .maf summary, .maf figcaption, .maf-eyebrow, .maf-prow__name { text-wrap: balance; }
.maf-prow__line, .maf-band__points span { text-wrap: pretty; }
.maf p, .maf li, .maf-lead { text-wrap: pretty; }
.maf-skip { position: absolute; top: 0; inset-inline-start: 0; z-index: 100; background: var(--maf-ox); color: #fff; padding: 10px 14px; border-end-end-radius: 8px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.maf-skip:focus { width: auto; height: auto; clip-path: none; }
[dir="rtl"] .maf-nw { unicode-bidi: isolate; } /* names and brands keep their order inside right-to-left text */
.maf-nw--keep, [dir="rtl"] .maf-nw { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--maf-tc); outline-offset: 3px; }
.maf a, .maf button, .maf summary { -webkit-tap-highlight-color: rgba(23, 84, 90, 0.1); }
html.maf-menu-open { overflow: hidden; }

/* ---- Buttons: deep teal with ivory text --------------------------------- */
.btn--primary { background: var(--maf-ox); color: var(--maf-iv); box-shadow: none; }
.btn--primary:hover { background: var(--maf-ox-900); color: #fff; box-shadow: 0 14px 30px -14px rgba(14, 58, 63, 0.6); }
.maf .btn--primary:active { background: var(--maf-ox-900); color: #fff; box-shadow: none; }
.btn .maf-arrow { margin-inline-start: 6px; transition: transform .25s var(--maf-ease); }
.btn:hover .maf-arrow { transform: translateX(3px); }
[dir="rtl"] .maf-arrow, [dir="rtl"] .btn:hover .maf-arrow { transform: scaleX(-1); }

/* ---- Header (solid, short) -------------------------------------------- */
.maf-header { background: var(--maf-paper); border-bottom: 1px solid var(--maf-line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.maf-header .site-header__brand { display: inline-flex; align-items: center; min-height: 44px; }
.maf-header .site-header__logo { height: 34px; width: auto; }
@media (min-width: 768px) { .maf-header .site-header__logo { height: 40px; } }
@media (min-width: 1024px) { .maf-header .site-header__logo { height: 44px; } }
.maf-header .site-header__nav { align-items: center; }
.maf-header .site-header__nav a, .maf-header .has-dropdown__btn { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; line-height: 1; color: var(--maf-ink); font-size: 0.9375rem; font-weight: 600; }
.maf-header .has-dropdown__panel { column-gap: 28px; min-width: 0; width: 640px; grid-template-columns: repeat(2, minmax(0, 1fr)); border-color: var(--maf-line); }
.maf-header .has-dropdown__panel a { white-space: normal; align-items: flex-start; }
.maf-header .has-dropdown__panel::before { border-color: var(--maf-line); }
.maf-header .has-dropdown__panel a:hover, .maf-header .has-dropdown__panel a:active { background: var(--maf-iv); }
.maf-header .has-dropdown__btn[aria-expanded="true"] { background: var(--maf-iv); color: var(--maf-ox); }
.maf-header .has-dropdown__panel .dd-text small { font-size: 0.8125rem; line-height: 1.45; }
.maf-header .lang-switch__menu a { display: flex; align-items: center; min-height: 44px; padding-inline: 14px; }
.maf-header .site-header__nav a:hover, .maf-header .has-dropdown__btn:hover { color: var(--maf-ox); }
.maf-header .has-dropdown__btn .caret { margin-inline-start: 4px; }
.maf-header .lang-switch__btn { min-height: 44px; }
.maf-header .lang-switch__menu a[aria-current="true"] { color: var(--maf-ox); font-weight: 700; }
.maf-header__cta { padding: 12px 20px; min-height: 44px; }
.maf-header__cta:hover { box-shadow: none; }
@media (max-width: 559px) { .maf-header__cta { display: none; } }
@media (max-width: 1023px) { .maf-header .lang-switch { display: none; } }

.maf-menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--maf-line); border-radius: 999px; background: var(--maf-white); color: var(--maf-ox); font: 700 0.95rem/1 inherit; cursor: pointer; }
.maf-menu-btn__bars { position: relative; width: 18px; height: 10px; display: inline-block; }
.maf-menu-btn__bars span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--maf-ease), top .25s var(--maf-ease); }
.maf-menu-btn__bars span:first-child { top: 0; }
.maf-menu-btn__bars span:last-child { top: 8px; }
.maf-menu-btn[aria-expanded="true"] .maf-menu-btn__bars span:first-child { top: 4px; transform: rotate(45deg); }
.maf-menu-btn[aria-expanded="true"] .maf-menu-btn__bars span:last-child { top: 4px; transform: rotate(-45deg); }
.maf-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--maf-paper); border-bottom: 1px solid var(--maf-line); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; box-shadow: 0 24px 40px -28px rgba(14, 58, 63, 0.35); }
.maf-menu__inner { display: grid; gap: 18px; padding-block: 12px 28px; }
.maf-menu__nav a { display: block; padding: 12px 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.015em; color: var(--maf-ox); border-bottom: 1px solid var(--maf-line); }
.maf-menu__label { margin: 6px 0 -8px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--maf-tc-text); }
.maf-menu__programs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.maf-menu__programs li + li { border-top: 1px solid var(--maf-line); }
.maf-menu__programs a { display: flex; align-items: center; min-height: 48px; font-weight: 600; color: var(--maf-body); }
.maf-menu__nav a:active, .maf-menu__programs a:active { background: var(--maf-iv); }
.maf-menu__langs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.maf-menu__langs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--maf-line); border-radius: 999px; color: var(--maf-body); font-weight: 600; }
.maf-menu__langs a:active { background: var(--maf-iv); }
.maf-menu__langs a[aria-current="true"] { background: var(--maf-ox); border-color: var(--maf-ox); color: var(--maf-iv); }
.maf-menu__actions { display: grid; gap: 10px; }
.maf-menu__actions .btn { justify-content: center; }
@media (min-width: 1024px) { .maf-menu-btn, .maf-menu { display: none !important; } }

/* ---- Footer ----------------------------------------------------------- */
.maf-footer { background: var(--maf-ox-900); }
.maf-footer .maf-footer__logo { filter: none; height: 44px; width: auto; }
.maf-footer .footer-col__h { color: #fff; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 16px; }
.maf-footer .footer-col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-block: 5px; }
.maf-footer .footer-col ul { gap: 0; }
.maf-footer .footer-contact__item a { display: inline-flex; align-items: center; min-height: 44px; }
.maf-footer .footer-contact__item svg { color: var(--maf-ap); }
.maf-footer .footer-legal span { color: rgba(255, 255, 255, 0.7); }
.maf-footer .footer-bottom { color: rgba(255, 255, 255, 0.72); font-size: 0.8125rem; }

/* ---- Type helpers ----------------------------------------------------- */
.maf-eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--maf-tc-text); margin: 0 0 14px; }
.maf-h2 { font-size: clamp(1.85rem, 1.25rem + 2.1vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--maf-ox); margin: 0 0 16px; max-width: 20ch; }
.maf-h2--wide { max-width: 24ch; }
.maf-h2--center { margin-inline: auto; text-align: center; }
.maf-lead { font-size: 1.125rem; line-height: 1.65; color: var(--maf-body); max-width: 56ch; margin: 0 0 28px; }
.maf-note { font-size: 0.9rem; color: var(--maf-muted); margin-top: 18px; }
.lang-ko .maf-eyebrow, .lang-zh .maf-eyebrow { letter-spacing: 0.04em; font-size: 0.9rem; }
[dir="rtl"] .maf-eyebrow { letter-spacing: 0; font-size: 1rem; text-transform: none; }
.lang-ko .maf-h2, .lang-zh .maf-h2, .lang-fa .maf-h2 { letter-spacing: 0; line-height: 1.25; max-width: 15em; }
.lang-ko .maf-hero__h1, .lang-zh .maf-hero__h1 { max-width: 11em; }
.lang-ko .maf-faq .maf-h2, .lang-zh .maf-faq .maf-h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.lang-ko .maf-band__h, .lang-zh .maf-band__h, .lang-fa .maf-band__h { max-width: 10em; }
.lang-ko .maf-cta2__h, .lang-zh .maf-cta2__h, .lang-fa .maf-cta2__h { max-width: 12em; }
.lang-ko .maf-curve, .lang-zh .maf-curve, .lang-fa .maf-curve { padding-bottom: 0.16em; }
.lang-ko .maf-curve__line, .lang-zh .maf-curve__line { bottom: -0.2em; }
.lang-fa .maf-curve__line { bottom: -0.28em; }
.maf-section { padding-block: clamp(64px, 8vw, 112px); }
.maf-p { margin-inline-start: -0.06em; }
.maf-dot { color: var(--maf-tc); }
.maf-mark { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--maf-tc); }

/* The supporting curve from the logo, under a short phrase */
.maf-curve { position: relative; display: inline-block; white-space: nowrap; padding-bottom: 0.06em; }
.maf-curve__line { position: absolute; left: 0.02em; right: 0; bottom: -0.14em; width: 100%; height: 0.3em; overflow: visible; }
.maf-curve__line path { fill: none; stroke: var(--maf-tc); stroke-width: 5px; stroke-linecap: round; }
/* Phrases with descenders (g j p q y): the line sits lower so it clears the letters */
.maf-curve--desc { padding-bottom: 0.2em; }
.maf-curve--desc .maf-curve__line { bottom: -0.3em; }
[dir="rtl"] .maf-curve__line { transform: scaleX(-1); }
@media (max-width: 480px) { .maf-curve__line path { stroke-width: 4px; } }

/* ---- Hero -------------------------------------------------------------- */
.maf-hero { padding-block: clamp(20px, 4vw, 64px) clamp(56px, 7vw, 96px); }
.maf-hero__inner { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.maf-hero--home .maf-hero__media { order: -1; }
@media (min-width: 960px) {
  .maf-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .maf-hero--home .maf-hero__media { order: 0; }
}
.maf-hero__h1 { font-size: var(--maf-statement); font-weight: 800; letter-spacing: -0.028em; line-height: 1.05; color: var(--maf-ox); margin: 0 0 30px; max-width: 16ch; }
.lang-ko .maf-hero__h1, .lang-zh .maf-hero__h1, .lang-fa .maf-hero__h1 { letter-spacing: 0; line-height: 1.24; font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem); }
.maf-hero__sub { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem); line-height: 1.65; color: var(--maf-body); max-width: 50ch; margin: 0 0 30px; }
.maf-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 26px; }
.maf-hero__act { margin-bottom: 26px; }
.maf-hero__act .maf-hero__ctas { margin-bottom: 0; }
/* English-only form note, directly under the button on the translated pages */
.maf-hero__note { margin: 12px 0 0; max-width: 44ch; font-size: 0.9375rem; line-height: 1.5; color: var(--maf-body); }
.maf-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--maf-ox); text-decoration: underline; text-decoration-color: var(--maf-ap); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.maf-link:hover { text-decoration-color: var(--maf-tc); }
.maf-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
@media (min-width: 600px) { .maf-trust { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 28px; } }
.maf-trust li { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 600; color: var(--maf-body); }
.maf-hero__media { position: relative; }
.maf-hero__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 62% 45%; border-radius: var(--maf-radius); display: block; }
@media (min-width: 960px) { .maf-hero__img { aspect-ratio: 1 / 1.05; } }
/* Phones: the first screen carries the headline, the button and the reasons to press it (eyebrow repeats the
   headline, so it is hidden; the photo follows the trust points). Checked at 390x844 and 375x667. */
@media (max-width: 599px) {
  .maf-hero { padding-block: 16px 44px; }
  .maf-hero__inner { gap: 28px; }
  .maf-hero--home .maf-eyebrow { display: none; }
  .maf-hero--home .maf-hero__media { order: 0; }
  .maf-hero__h1 { margin-bottom: 16px; }
  .maf-hero__sub { font-size: 1rem; line-height: 1.55; margin-bottom: 20px; }
  .maf-hero__act { margin-bottom: 16px; }
  .maf-hero__ctas .maf-link { display: none; }
  .maf-hero__ctas .btn--xl { width: 100%; padding-block: 19px; }
  .maf-hero__note { margin-top: 10px; font-size: 0.9rem; }
  .maf-trust { gap: 6px 16px; }
  .maf-trust li { font-size: 0.875rem; gap: 8px; }
}

/* ---- Contact buttons (only when a phone number exists) ----------------- */
.maf-contact { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--maf-line); border-radius: 999px; background: var(--maf-white); color: var(--maf-ox); font-weight: 700; }
.maf-contact:hover { border-color: var(--maf-ox); }
.maf-contact--big { padding: 14px 22px; font-size: 1.05rem; }

/* ---- Program glyphs (custom marks from the logo's curve and period) ------ */
.maf-glyph { display: block; overflow: visible; }
.maf-glyph .g-line { fill: none; stroke: var(--maf-ox); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.maf-glyph .g-line--thin { stroke-width: 1.8; opacity: .55; }
.maf-glyph .g-line--dots { stroke-dasharray: 0.1 6; stroke-width: 3; }
.maf-glyph .g-fill { fill: var(--maf-white); }
.maf-glyph .g-dot { fill: var(--maf-tc); }

/* ---- Program list (editorial rows, not cards) -------------------------- */
.maf-programs-sec { background: var(--maf-white); border-block: 1px solid var(--maf-line); }
.maf-split { display: grid; gap: 28px; }
@media (min-width: 960px) {
  .maf-split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); gap: 72px; align-items: start; }
  .maf-split__head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.maf-stack__head { display: grid; gap: 0 72px; margin-bottom: 30px; }
.maf-stack__head .maf-lead { margin-bottom: 0; }
@media (min-width: 960px) { .maf-stack__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; margin-bottom: 40px; } .maf-stack__head .maf-h2 { margin-bottom: 0; } }
.maf-stack__head .maf-eyebrow { grid-column: 1 / -1; }
.maf-plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--maf-line); }
.maf-prow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "glyph name go" "line line line"; gap: 8px 14px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--maf-line); color: var(--maf-ink); transition: background .2s ease; }
@media (min-width: 700px) {
  .maf-prow { grid-template-columns: 64px minmax(0, 17rem) minmax(0, 1fr) auto; grid-template-areas: "glyph name line go"; gap: 28px; padding: 26px 14px; }
}
/* Tablet: a narrower name column and glyph so the description keeps a readable measure */
@media (min-width: 700px) and (max-width: 959px) {
  .maf-prow { grid-template-columns: 48px minmax(0, 11rem) minmax(0, 1fr) auto; gap: 18px; padding-inline: 8px; }
  .maf-prow__glyph { width: 48px; height: 48px; }
}
.maf-prow__glyph { grid-area: glyph; width: 40px; height: 40px; }
.maf-prow__glyph .maf-glyph { width: 100%; height: 100%; }
@media (min-width: 700px) { .maf-prow__glyph { width: 60px; height: 60px; } }
.maf-prow__name { grid-area: name; font-size: clamp(1.15rem, 0.95rem + 0.85vw, 1.7rem); font-weight: 800; letter-spacing: -0.018em; line-height: 1.18; color: var(--maf-ox); }
.maf-prow__line { grid-area: line; color: var(--maf-body); line-height: 1.5; font-size: 1.05rem; }
.maf-prow__go { grid-area: go; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--maf-line); color: var(--maf-ox); transition: transform .25s var(--maf-ease), background .25s ease, color .25s ease, border-color .25s ease; }
.maf-prow:hover, .maf-prow:focus-visible, .maf-prow:active { background: var(--maf-iv); }
@media (prefers-reduced-motion: no-preference) {
  .maf-prow:hover .maf-glyph .g-line[pathLength] { animation: maf-redraw .7s var(--maf-ease); }
  .maf-prow:hover .maf-glyph .g-dot { animation: maf-pop .45s .35s var(--maf-ease) both; transform-box: fill-box; transform-origin: center; }
}
/* Dash only while animating; the finished line never depends on dash maths (some GPUs draw it short). */
@keyframes maf-redraw { 0% { stroke-dasharray: 1; stroke-dashoffset: 1; } 99% { stroke-dasharray: 1; stroke-dashoffset: 0; } 100% { stroke-dasharray: none; stroke-dashoffset: 0; } }
@keyframes maf-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.maf-prow:hover .maf-prow__go, .maf-prow:focus-visible .maf-prow__go { background: var(--maf-ox); border-color: var(--maf-ox); color: var(--maf-iv); transform: translateX(4px); }
[dir="rtl"] .maf-prow__go svg { transform: scaleX(-1); }
[dir="rtl"] .maf-prow:hover .maf-prow__go { transform: translateX(-4px); }

/* ---- Steps on the brand curve ------------------------------------------ */
.maf-how { background: var(--maf-iv); }
.maf-path { position: relative; margin-top: 36px; }
.maf-path__deco { display: none; }
.maf-path__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; position: relative; }
/* Phones: the large numerals mark the steps, the thin rail joins them (no second marker system) */
.maf-path__steps::before { content: ''; position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px; width: 2px; background: rgba(211, 98, 58, 0.35); }
.maf-path__step { position: relative; padding-inline-start: 26px; }
.maf-path__num { display: block; font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4.6rem); font-weight: 200; letter-spacing: -0.03em; line-height: .9; color: var(--maf-tc); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.maf-path__step h3 { font-size: clamp(1.25rem, 1.1rem + .4vw, 1.45rem); text-wrap: balance; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; color: var(--maf-ox); margin: 0 0 8px; }
.maf-path__step p { margin: 0; color: var(--maf-body); line-height: 1.6; max-width: 36ch; }
@media (min-width: 768px) {
  .maf-path { padding-top: 172px; margin-top: 4px; }
  .maf-path__deco { display: block; position: absolute; inset: 0 0 auto 0; height: 150px; }
  [dir="rtl"] .maf-path__deco { transform: scaleX(-1); }
  .maf-path__curve { position: absolute; inset: 0; width: 100%; height: 150px; overflow: visible; }
  .maf-path__curve path { fill: none; stroke: var(--maf-tc); stroke-width: 3px; stroke-linecap: round; }
  .maf-path__dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 4px; background: var(--maf-ox); box-shadow: 0 0 0 7px var(--maf-iv); }
  .maf-path__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .maf-path__steps::before { display: none; }
  .maf-path__step { padding-inline-start: 0; }
  .maf-path__step h3 { min-height: 2.5em; }
}
/* Headings and paragraphs line up across the three steps without a blank line under short headings */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 768px) {
    .maf-path__steps { grid-template-rows: auto auto auto; column-gap: 40px; row-gap: 0; }
    .maf-path__step { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
    .maf-path__step h3 { min-height: 0; }
  }
}
/* One inline button after the three steps (home page) */
.maf-after { margin: 40px 0 0; }
@media (min-width: 768px) { .maf-after { margin-top: 56px; } }

/* ---- "On your side" band (deep teal) -------------------------------------- */
.maf-band { background: var(--maf-ox); color: var(--maf-iv); padding-block: clamp(72px, 9vw, 128px); }
.maf-band__inner { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .maf-band__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 72px; } }
.maf-band__h { font-size: var(--maf-statement); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; color: var(--maf-iv); margin: 0 0 24px; max-width: 12ch; }
.lang-ko .maf-band__h, .lang-zh .maf-band__h, .lang-fa .maf-band__h { letter-spacing: 0; line-height: 1.2; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); }
.maf-band .maf-dot { color: var(--maf-ap); }
.maf-band__lead { font-size: 1.2rem; line-height: 1.6; color: rgba(246, 240, 230, 0.88); max-width: 46ch; margin: 0 0 34px; }
.maf-band__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 32px; }
@media (min-width: 600px) { .maf-band__points { grid-template-columns: 1fr 1fr; } }
.maf-band__points li { display: flex; gap: 14px; align-items: baseline; }
.maf-band__points .maf-mark { background: var(--maf-ap); }
.maf-band__points strong { display: block; color: var(--maf-iv); font-size: 1.06rem; margin-bottom: 3px; }
.maf-band__points span { color: rgba(246, 240, 230, 0.8); line-height: 1.55; }
.maf-band__media { margin: 0; }
.maf-band__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; border-radius: var(--maf-radius); display: block; }
@media (min-width: 960px) { .maf-band__media img { aspect-ratio: 4 / 5; } }

/* ---- Photo mosaic -------------------------------------------------------- */
.maf-life { background: var(--maf-paper); }
.maf-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.maf-mosaic__item { position: relative; margin: 0; overflow: hidden; border-radius: 16px; }
.maf-mosaic__item img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.maf-mosaic__item--tall { grid-column: 1 / -1; }
.maf-mosaic__item--tall img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
@media (min-width: 960px) {
  .maf-mosaic { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 18px; }
  .maf-mosaic__item--tall { grid-column: 1; grid-row: 1 / span 2; }
  .maf-mosaic__item--tall img { aspect-ratio: auto; height: 100%; }
  .maf-mosaic__item img { aspect-ratio: 16 / 10; }
}
@media (max-width: 599px) { .maf-mosaic__item { overflow: visible; border-radius: 0; } .maf-mosaic__item img { border-radius: 14px; height: auto; } .maf-mosaic__item figcaption { position: static !important; background: none !important; padding: 8px 2px 0 !important; max-width: none !important; } }
.maf-mosaic__item figcaption { position: absolute; inset-inline-start: 12px; bottom: 12px; max-width: calc(100% - 24px); background: var(--maf-paper); color: var(--maf-ox); font-size: 0.95rem; font-weight: 700; line-height: 1.3; padding: 8px 12px; border-radius: 10px; }

/* ---- Specialist (rendered only when a real person is set) --------------- */
.maf-specialist { background: var(--maf-white); border-block: 1px solid var(--maf-line); }
/* Finance team by name (type only). */
.maf-team { background: var(--maf-white); border-block: 1px solid var(--maf-line); }
.maf-team__inner { display: grid; gap: 18px; }
.maf-team__names { margin-bottom: 0; }
.maf-team__body { margin: 0; max-width: 46ch; }
@media (min-width: 900px) { .maf-team__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: end; } }
.maf-specialist__inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .maf-specialist__inner { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; } }
.maf-specialist__photo { width: 100%; max-width: 300px; aspect-ratio: 1 / 1.15; object-fit: cover; border-radius: 150px 150px 20px 20px; display: block; }
.maf-specialist__role { margin: -6px 0 14px; font-weight: 700; color: var(--maf-tc-text); }
.maf-specialist__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Questions ------------------------------------------------------------ */
.maf-faq { background: var(--maf-white); border-top: 1px solid var(--maf-line); }
.maf-faq__inner { display: grid; gap: 28px; }
@media (min-width: 960px) { .maf-faq__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; } }
.maf-faq__list { display: grid; gap: 0; border-bottom: 1px solid var(--maf-line); }
.maf-faq__item { border: 0; border-top: 1px solid var(--maf-line); border-radius: 0; background: transparent; padding: 0; }
.maf-faq__item[open] { border-top-color: var(--maf-tc); box-shadow: inset 0 1px 0 var(--maf-tc); }
.maf-faq__item summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-weight: 700; font-size: 1.08rem; line-height: 1.4; color: var(--maf-ox); min-height: 44px; }
[dir="rtl"] .maf-faq__item summary { padding: 22px 0 22px 44px; }
.maf-faq__item summary::-webkit-details-marker { display: none; }
.maf-faq__item summary:hover, .maf-faq__item summary:active { color: var(--maf-ox-900); }
.maf-faq__item summary::after { content: ''; position: absolute; inset-inline-end: 6px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--maf-tc); border-bottom: 2.5px solid var(--maf-tc); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--maf-ease); }
.maf-faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.maf-faq__item p { margin: 0 0 24px; padding-inline-end: 28px; color: var(--maf-body); line-height: 1.65; max-width: 62ch; }

/* ---- Final call to action (apricot) ------------------------------------ */
.maf-cta2 { background: var(--maf-ap); padding-block: clamp(64px, 8vw, 112px); }
.maf-cta2__inner { display: grid; gap: 28px; align-items: end; }
@media (min-width: 960px) { .maf-cta2__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; } }
.maf-cta2__h { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; color: var(--maf-ox-900); margin: 0 0 28px; max-width: 16ch; }
.lang-ko .maf-cta2__h, .lang-zh .maf-cta2__h, .lang-fa .maf-cta2__h { letter-spacing: 0; line-height: 1.25; }
.maf-cta2 .maf-curve__line path { stroke: var(--maf-ox); }
.maf-cta2 .maf-dot { color: var(--maf-ox); }
.maf-cta2__sub { margin: 0; max-width: 44ch; font-size: 1.15rem; line-height: 1.55; color: #0E3A3F; }
.maf-cta2__act { display: grid; gap: 14px; justify-items: start; }
.maf-cta2__btn { justify-self: start; }
.maf-cta-note { margin: 0; max-width: 30ch; font-size: 0.9375rem; line-height: 1.5; color: #0E3A3F; }

/* ---- Older components still used by the program pages ------------------- */
.maf-side { background: var(--maf-iv); }
.maf-side__inner { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .maf-side__inner { grid-template-columns: 1fr 1.05fr; } }
.maf-side__img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--maf-radius); display: block; }
.maf-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.maf-points li { display: flex; gap: 14px; align-items: baseline; }
.maf-points strong { display: block; font-size: 1.08rem; color: var(--maf-ox); margin-bottom: 2px; }
.maf-points span { color: var(--maf-body); line-height: 1.55; }

/* ---- Phone sticky button: appears once the hero button is out of view ---- */
.mobile-sticky { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(251, 248, 243, 0.97); border-top: 1px solid var(--maf-line); transform: translateY(110%); transition: transform .3s var(--maf-ease); }
.mobile-sticky.is-visible { transform: none; }
/* The bar hides itself over the footer, so the space styles.css reserves for it is not needed (it showed as a pale strip under the footer) */
html.maf-js body.maf { padding-bottom: 0; }
html:not(.maf-js) .mobile-sticky { transform: none; }

/* ---- Motion (all of it respects reduced motion) ------------------------- */
@keyframes maf-draw { to { stroke-dashoffset: 0; } }
@keyframes maf-wipe { from { clip-path: inset(-80% 101% -80% -6%); } to { clip-path: inset(-80% -6% -80% -6%); } }
@keyframes maf-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .maf-js .maf-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--maf-ease), transform .7s var(--maf-ease); }
  .maf-js .maf-reveal.is-in { opacity: 1; transform: none; }
  /* Stretched curves (preserveAspectRatio=none) are revealed with a left-to-right wipe of the whole SVG;
     dashing the path breaks under non-uniform scaling and left the line short. */
  .maf-js .maf-hero .maf-curve__line { clip-path: inset(-80% 101% -80% -6%); animation: maf-wipe 1s .35s var(--maf-ease) forwards; }
  .maf-js .maf-reveal .maf-curve__line, .maf-js .maf-reveal .maf-path__curve, .maf-js .maf-reveal .maf-moments__curve { clip-path: inset(-80% 101% -80% -6%); }
  .maf-js .maf-reveal.is-in .maf-curve__line, .maf-js .maf-reveal.is-in .maf-path__curve, .maf-js .maf-reveal.is-in .maf-moments__curve { animation: maf-wipe 1.2s .2s var(--maf-ease) forwards; }
  .maf-faq__item[open] p { animation: maf-fade .35s var(--maf-ease); }
  .maf-prow, .maf-contact { transition: background .2s ease, border-color .2s ease; }
}

/* ---- Apply flow touches (selected tiles use deep teal for contrast) ------ */
.income-tile.is-selected { background: var(--maf-ox); border-color: var(--maf-ox); color: var(--maf-iv); }
.apply-header img { height: 38px; width: auto; }

/* ---- Legal pages (privacy) ---------------------------------------------- */
.maf-legal { background: var(--maf-paper); }
.maf-legal__inner { max-width: 760px; }
.maf-legal h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; color: var(--maf-ox); margin: 0 0 14px; }
.maf-legal__updated { display: inline-block; margin: 0 0 32px; padding: 6px 12px; border-radius: 999px; background: var(--maf-iv); color: var(--maf-muted); font-size: 0.9rem; font-weight: 600; }
.maf-legal h2 { font-size: 1.35rem; font-weight: 800; color: var(--maf-ox); margin: 40px 0 12px; letter-spacing: -0.01em; }
.maf-legal p, .maf-legal li { font-size: 1.05rem; line-height: 1.7; color: var(--maf-body); max-width: 64ch; }
.maf-legal ul { padding-inline-start: 1.2em; display: grid; gap: 6px; }
.maf-legal a { color: var(--maf-ox); text-decoration: underline; text-decoration-color: var(--maf-ap); text-underline-offset: 4px; }

/* ---- "What a car makes possible": type-only moment ---------------------- */
.maf-moments { background: var(--maf-paper); overflow: hidden; }
.maf-moments__label { margin: 0 0 clamp(18px, 3vw, 34px); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--maf-tc-text); }
[dir="rtl"] .maf-moments__label, .lang-ko .maf-moments__label, .lang-zh .maf-moments__label { letter-spacing: 0.02em; font-size: 0.95rem; text-transform: none; }
.maf-moments__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(6px, 1.2vw, 14px); }
.maf-moments__line { font-size: var(--maf-statement); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; color: var(--maf-ox); text-wrap: balance; }
.maf-moments__line--2 { color: var(--maf-tc-text); }
/* Tablet: sized so each thought stays on one line; indents and no-wrap only where the size guarantees the fit */
@media (max-width: 899px) { .maf-moments__line { font-size: clamp(1.9rem, 0.6rem + 4.4vw, 3.2rem); } }
@media (min-width: 900px) {
  .maf-moments__line--2 { margin-inline-start: 6%; }
  .maf-moments__line--3 { margin-inline-start: 12%; }
  .lang-en .maf-moments__line { white-space: nowrap; }
}
/* Phones: three thoughts, clearly three: a terracotta square above each, a real gap between them, one colour */
@media (max-width: 599px) {
  .maf-moments__label { margin-bottom: 26px; }
  .maf-moments__list { gap: 26px; }
  .maf-moments__line { font-size: clamp(1.9rem, 1.1rem + 3vw, 2.3rem); }
  .maf-moments__line::before { content: ''; display: block; width: 9px; height: 9px; margin-bottom: 0.4em; border-radius: 2px; background: var(--maf-tc); }
  .maf-moments__line--2 { color: var(--maf-ox); }
}
.lang-ko .maf-moments__line, .lang-zh .maf-moments__line, .lang-fa .maf-moments__line { letter-spacing: 0; line-height: 1.2; font-size: clamp(1.9rem, 1rem + 3.6vw, 4.2rem); }
@media (max-width: 599px) { .lang-ko .maf-moments__line, .lang-zh .maf-moments__line, .lang-fa .maf-moments__line { font-size: clamp(1.7rem, 1rem + 2.6vw, 2.1rem); } }
.maf-moments__curve { display: block; width: 100%; height: clamp(26px, 4vw, 54px); margin-top: clamp(14px, 2vw, 26px); overflow: visible; }
.maf-moments__curve path { fill: none; stroke: var(--maf-tc); stroke-width: 3px; stroke-linecap: round; }
[dir="rtl"] .maf-moments__curve { transform: scaleX(-1); }

/* ---- Press and tap feedback (D12): colour only, plus a small scale that reduced-motion visitors do not get ---- */
.maf-link:active { text-decoration-color: var(--maf-tc); color: var(--maf-ox-900); }
.maf-contact:active, .maf-menu-btn:active, .maf-header .lang-switch__btn:active, .maf-header .lang-switch__menu a:active { background: var(--maf-iv); border-color: var(--maf-ox); }
.maf-header .site-header__nav a:active, .maf-header .has-dropdown__btn:active { color: var(--maf-ox); background: var(--maf-iv); }
.maf-footer .footer-col a:active, .maf-footer .footer-contact__item a:active { color: #fff; }
.maf-prow:active .maf-prow__go { background: var(--maf-ox); border-color: var(--maf-ox); color: var(--maf-iv); }
@media (prefers-reduced-motion: no-preference) {
  .maf .btn--primary:active { transform: scale(0.98); }
  .maf-menu__nav a, .maf-menu__programs a, .maf-faq__item summary { transition: background .15s ease, color .15s ease; }
}

/* Very small phones (320 to 359 px) */
@media (max-width: 359px) { :root { --maf-statement: 2rem; } .maf-cta2__h { font-size: 1.85rem; } .lang-ko .maf-hero__h1, .lang-zh .maf-hero__h1, .lang-fa .maf-hero__h1 { font-size: 1.9rem; } }

/* Phone under the logo and in the team block (Roger, 2026-11-02) */
.maf-brandwrap { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.maf-header__phone { font-size: .78rem; font-weight: 700; line-height: 1.2; color: var(--maf-ox); white-space: nowrap; letter-spacing: .01em; }
.maf-header__phone:hover { text-decoration: underline; }
@media (min-width: 768px) { .maf-header__phone { font-size: .85rem; } }
.maf-team__phone { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 1.25rem; font-weight: 700; color: var(--maf-ox); }
.maf-team__phone a { color: inherit; }
.maf-team__phone a:hover { text-decoration: underline; }
.maf-contact-pair { display: inline-flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { [dir="rtl"] .maf-curve { white-space: normal; } }
