/* Vay Nhà Mỹ — site styles, v2 "clean white" restyle (1 Dec 2026).
   Palette/typography/buttons modelled on loanfactory.com computed styles (see vaynhamy-site-tools/loanfactory-style-notes.md).
   Text-bearing orange uses LF's darker scale steps (#C24C02 / #A93F00) so white-on-orange meets WCAG AA 4.5:1;
   LF's brand orange #F36F20 is used for accents, borders and decorative marks only. */
:root {
  --orange: #F36F20;        /* LF primary-5: accents, bars, borders */
  --orange-text: #C24C02;   /* LF primary-8: buttons, links (white on it 4.85:1) */
  --orange-dark: #A93F00;   /* LF primary-9: hover, small text on tint (5.54:1) */
  --orange-tint: #FFF0E2;   /* LF primary-0: soft band / notice background */
  --ink: #2E2E2E;           /* LF heading colour */
  --text: #3A3A3A;
  --muted: #656565;         /* LF secondary-8 (5.83:1 on white) */
  --line: #E7E7E7;          /* LF secondary-1 */
  --line-strong: #CDCDCD;   /* LF secondary-2 */
  --card-border: #ADB5BD;   /* LF card border */
  --surface: #F5F5F5;       /* LF secondary-0 */
  --footer: #272727;        /* LF secondary-9 */
  --radius-card: 32px;      /* LF card radius (Mantine xl) */
  --radius-btn: 32px;       /* LF button radius */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
html { scroll-behavior: smooth; }
body { background: #FFFFFF; color: var(--text); font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 99; }

/* language switching: .vi / .en spans; html[data-lang] set by site.js (default vi) */
html[data-lang="en"] .vi { display: none !important; }
html:not([data-lang="en"]) .en { display: none !important; }

.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.draft-banner { background: var(--orange-dark); color: #FFFFFF; text-align: center; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 16px; font-weight: 600; }

/* header: full-width white bar with soft shadow, like LF */
.site-head { background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.06); position: relative; z-index: 10; }
header.nav { width: min(1200px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; position: relative; }
.brand .name { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.05; }
.brand .name .accent, footer.site .name .accent { color: var(--orange); }
.brand .tag { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }
nav.links { display: flex; gap: 20px; align-items: center; font-size: 14px; font-weight: 600; color: #000; }
nav.links a { padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.brand { flex: none; }
.brand .tag, .btn { white-space: nowrap; }
nav.links a:hover { color: var(--orange-text); }
nav.links a[aria-current="page"] { color: var(--orange-text); border-bottom-color: var(--orange); }
.nav-right { display: flex; gap: 12px; align-items: center; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 600; background: #fff; }
.lang button { padding: 6px 11px; background: transparent; border: 0; cursor: pointer; color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--orange-tint); color: var(--orange-dark); }
.menu-btn { display: none; background: #fff; border: 1px solid var(--line-strong); padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; border-radius: 16px; }

/* buttons (LF: Montserrat 600 16px, pill radius 32px, padding 0 22px, 42px tall; we use 44px min for tap targets) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; font-size: 16px; font-weight: 600; line-height: 1.1; border-radius: var(--radius-btn); border: 1px solid transparent; cursor: pointer; text-align: center; transition: background .15s, color .15s, border-color .15s; }
.btn-navy, .btn-gold { background: var(--orange-text); color: #FFFFFF; border-color: var(--orange-text); }
.btn-navy:hover, .btn-gold:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-ghost { background: #fff; color: var(--orange-text); border-color: var(--orange-text); }
.btn-ghost:hover { background: var(--orange-tint); color: var(--orange-dark); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.cta-top { border-radius: 16px; }

/* hero */
.hero { padding: 80px 0 72px; max-width: 860px; }
.hero.page { padding: 56px 0 48px; }
.kicker { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); font-weight: 700; margin-bottom: 16px; }
.hero h1 { font-weight: 700; font-size: 54px; line-height: 1.12; color: var(--ink); letter-spacing: -0.015em; margin-bottom: 22px; }
.hero.page h1 { font-size: 44px; }
.hero .lede { font-size: 18px; line-height: 1.7; color: var(--text); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.55; }
.hero-note a, .prose a, .intro a, .fine a, .lede a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs { font-size: 13px; color: var(--muted); padding-top: 22px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; color: var(--orange-text); }

/* sections */
.section { padding: 8px 0 88px; }
.section h2 { font-size: 36px; line-height: 1.2; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.intro { font-size: 16.5px; line-height: 1.7; color: var(--text); max-width: 760px; margin-bottom: 32px; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path { background: #fff; border: 1px solid var(--orange); border-radius: var(--radius-card); padding: 32px; }
.path .who { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); font-weight: 700; margin-bottom: 8px; }
.path h3 { font-size: 28px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.path p { font-size: 15.5px; line-height: 1.7; color: var(--text); margin-bottom: 18px; }
.path .fine { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 20px; }
.tiles-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tiles-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tiles-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile { background: #fff; border: 1px solid var(--card-border); border-radius: 24px; padding: 22px 20px 24px; min-height: 168px; transition: box-shadow .15s, border-color .15s; }
.tile.lg { padding: 28px 28px 30px; border-radius: var(--radius-card); }
.tile .code, .code { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); font-weight: 700; margin-bottom: 8px; }
.tile h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.tile.lg h3 { font-size: 22px; }
.tile p, .tile li { font-size: 14px; line-height: 1.6; color: var(--text); }
.tile ul { padding-left: 18px; margin-top: 10px; }
.tile .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--orange-text); text-decoration: underline; }
a.tile:hover, a.hub-card:hover { border-color: var(--orange); box-shadow: 0 6px 20px rgba(243,111,32,.12); }
.section-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.55; }
.hub { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.hub-card { background: #fff; border: 1px solid var(--card-border); border-radius: 24px; padding: 24px 20px; min-height: 230px; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.hub-card.core { border: 2px solid var(--orange); }
.hub-card.edu { border-style: dashed; }
.hub-card .code.core { color: var(--orange-text); }
.hub-card h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 8px 0; }
.hub-card p { font-size: 14px; line-height: 1.55; color: var(--text); flex: 1; }
.chip { margin-top: auto; padding-top: 14px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.chip.core { color: var(--orange-dark); font-weight: 700; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--surface); border-radius: 24px; padding: 26px 22px; }
.step::before { counter-increment: s; content: "0" counter(s); font-size: 30px; font-weight: 700; color: var(--orange-text); display: block; margin-bottom: 8px; }
.step h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.step p { font-size: 14px; line-height: 1.6; color: var(--text); }
.notice { background: var(--orange-tint); border-left: 4px solid var(--orange); border-radius: 16px; padding: 18px 20px; font-size: 14px; line-height: 1.65; color: var(--ink); margin: 0 0 24px; max-width: 860px; }
.notice.navy { background: var(--surface); border-left-color: var(--ink); }
.notice strong { color: #000; }
.notice a, .notice a.inline { color: var(--orange-dark); }

/* prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 28px; font-weight: 700; color: var(--ink); margin: 36px 0 12px; }
.prose h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
.prose p, .prose li { font-size: 16px; line-height: 1.75; color: var(--text); margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose li::marker { color: var(--orange); font-weight: 700; }
.article { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius-card); padding: 32px 36px 22px; margin-bottom: 24px; max-width: 860px; }
.article h2 { margin-top: 0; }
.article .meta { font-size: 12px; color: var(--orange-text); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.toc { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.toc a { font-size: 14px; font-weight: 600; border: 1px solid var(--orange-text); padding: 8px 16px; border-radius: 999px; color: var(--orange-text); background: #fff; }
.toc a:hover { background: var(--orange-tint); }

/* events: soft orange band (LF primary-0) instead of LF's solid-orange band, so text passes 4.5:1 */
.event-band { background: var(--orange-tint); color: var(--ink); padding: 72px 0; margin: 8px 0 88px; }
.event-band h2 { color: var(--ink); font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.event-band .intro { color: var(--text); }
.event-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; align-items: stretch; }
.event-card { background: #fff; border: 1px solid var(--orange); border-radius: var(--radius-card); padding: 30px 32px; }
.event-card .when { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-text); font-weight: 700; margin-bottom: 10px; }
.event-card h3 { font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.event-card p { font-size: 15px; line-height: 1.65; color: var(--text); margin-bottom: 20px; }
.event-card.light { border-color: var(--card-border); }
.qr-box { background: #fff; color: var(--ink); border: 1px dashed var(--line-strong); border-radius: var(--radius-card); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; min-height: 220px; }
.qr-fake { width: 112px; height: 112px; background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 6px solid var(--ink); border-radius: 8px; margin-bottom: 12px; position: relative; }
.qr-fake::after { content: "QR"; position: absolute; inset: 28px; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.qr-box .cap { font-size: 12.5px; color: var(--muted); line-height: 1.45; max-width: 200px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.fact { background: var(--surface); border-radius: 20px; padding: 18px 20px; }
.fact .k { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.fact .v { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.tbd { display: inline-block; background: var(--orange-tint); color: var(--orange-dark); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.fact .tbd { background: #fff; }

/* trust */
.trust { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius-card); padding: 32px; }
.photo { width: 220px; height: 280px; background: var(--surface); overflow: hidden; border-radius: 24px; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.trust h2 { margin-bottom: 6px; }
.trust .role { font-size: 15px; color: var(--orange-text); font-weight: 700; margin-bottom: 12px; }
.trust p { font-size: 15.5px; line-height: 1.7; color: var(--text); margin-bottom: 16px; }
.trust a.inline, a.inline { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* lead form (LF inputs: radius 8px, 1px #CED4DA, ~50px) */
.lead { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius-card); padding: 36px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.lead h2 { margin-bottom: 10px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: #C92A2A; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; background: #fff; border: 1px solid #CED4DA; padding: 10px 14px; color: #000; border-radius: 8px; font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); outline: 2px solid var(--orange-tint); }
.field textarea { min-height: 100px; resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #C92A2A; background: #FFF5F5; }
.field .err { display: none; font-size: 13px; color: #C92A2A; margin-top: 5px; }
.field.invalid .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--text); }
.check input { margin-top: 3px; width: 18px !important; min-height: 18px !important; accent-color: var(--orange-text); }
.field label.check { font-size: 13.5px; font-weight: 400; color: var(--text); text-transform: none; letter-spacing: 0; }
.field label.check a { color: var(--orange-text); text-decoration: underline; }
.form-status { display: none; margin-top: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.6; border-radius: 12px; background: var(--surface); color: var(--ink); }
.form-status.show { display: block; }
.form-status.ok { border-left: 4px solid #2B8A3E; }
.form-status.bad { border-left: 4px solid #C92A2A; }
.form-status a { color: var(--orange-text); text-decoration: underline; font-weight: 600; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 12px; }
.form-slot iframe.tally-embed { width: 100%; border: 0; min-height: 420px; display: block; }

/* footer (LF: #272727) */
footer.site { background: var(--footer); color: #CDCDCD; padding: 56px 0 36px; margin-top: 8px; }
footer.site .top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
footer.site .name { color: #FFFFFF; font-size: 22px; font-weight: 700; }
footer.site .muted { font-size: 14px; line-height: 1.7; margin-top: 8px; }
footer.site h4 { color: #FFFFFF; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; font-weight: 700; }
footer.site a { color: #F8A06B; }
footer.site ul { list-style: none; font-size: 14px; line-height: 2; }
footer.site ul a { color: #E7E7E7; }
footer.site ul a:hover { color: #F8A06B; text-decoration: underline; }
.legal-row { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; display: flex; gap: 16px; align-items: flex-start; }
.eho { width: 32px; height: 32px; color: #F8A06B; flex: none; margin-top: 2px; }
.legal { font-size: 12px; line-height: 1.65; color: #CDCDCD; margin-bottom: 8px; }
.legal strong { color: #FFFFFF; }
.legal a { color: #F8A06B; text-decoration: underline; }

/* responsive */
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; align-items: center; }
  nav.links { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 16px; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0; box-shadow: 0 12px 28px rgba(0,0,0,.12); }
  nav.links.open { display: flex; }
  nav.links a { padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
  nav.links a[aria-current="page"] { border-bottom-color: var(--line); border-left: 3px solid var(--orange); }
  .nav-right .btn-sm.cta-top { display: none; }
}
@media (max-width: 1040px) {
  .tiles-5, .hub { grid-template-columns: repeat(3, 1fr); }
  .steps, .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .paths, .lead, .event-grid, .tiles-3, .tiles-2 { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  footer.site .top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 44px 0 44px; }
  .hero h1 { font-size: 34px; }
  .hero.page h1 { font-size: 30px; }
  .hero .lede { font-size: 16px; }
  .section { padding-bottom: 64px; }
  .section h2, .event-band h2 { font-size: 26px; }
  .tiles-5, .hub, .steps, .facts { grid-template-columns: 1fr; }
  .tile, .hub-card { min-height: 0; }
  .fields { grid-template-columns: 1fr; }
  .lead, .trust, .path, .event-card { padding: 24px 20px; border-radius: 24px; }
  .article { padding: 24px 20px 14px; border-radius: 24px; }
  .brand .name { font-size: 22px; }
  .brand .tag { display: none; }
  .hero-actions .btn { width: 100%; }
  .legal-row { flex-direction: column; }
  .photo { width: 180px; height: 240px; }
  .event-band { padding: 48px 0; }
}
/* tap targets >= 44px on touch / small screens */
@media (max-width: 1100px), (pointer: coarse) {
  .menu-btn { min-height: 44px; min-width: 44px; padding: 10px 14px; }
  .lang button { min-height: 44px; min-width: 44px; padding: 0 12px; font-size: 12px; }
  nav.links a { min-height: 48px; display: flex; align-items: center; }
  footer.site ul a, .crumbs a, .toc a { display: inline-flex; align-items: center; min-height: 44px; }
  footer.site ul { line-height: 1.4; }
  .toc a { padding: 0 16px; }
}
