/* MCVisa public web — base + components v0.2. Reads only tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; font-family: var(--font-sans); font-size: var(--fs-base);
  line-height: var(--lh-body); color: var(--text); background: var(--surface);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); line-height: var(--lh-tight); margin: 0 0 var(--s-3); }
h1 { font-size: var(--fs-3xl); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--s-4); }
a { color: var(--brand-green-strong); text-underline-offset: 3px; }
a:hover { color: var(--brand-green); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.en { display: block; color: var(--text-muted); font-size: var(--fs-sm); font-weight: 400; line-height: 1.4; }
h1 .en, h2 .en { font-size: max(0.5em, var(--fs-xs)); margin-top: var(--s-2); letter-spacing: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-4); }
.section { padding: var(--s-8) 0; }
.section--alt { background: var(--surface-alt); }
.section--tint { background: var(--brand-green-tint); }
.eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-gold-text); margin-bottom: var(--s-2); }
.lead { font-size: var(--fs-lg); max-width: 40em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* skip link */
.skip { position: absolute; left: var(--s-4); top: -3rem; background: var(--ink); color: #fff; padding: var(--s-2) var(--s-4); z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { top: var(--s-2); color: #fff; }

/* header / nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--ink); }
.brand img { width: 96px; height: auto; }
.brand-name { font-weight: 700; line-height: 1.2; font-size: var(--fs-sm); }
.brand-name .en { font-size: var(--fs-xs); }
.nav-list { list-style: none; display: flex; gap: var(--s-1); margin: 0; padding: 0; align-items: center; }
.nav-list a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-3); text-decoration: none; color: var(--text); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.nav-list a:hover { background: var(--surface-alt); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--brand-green-strong); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand-green); border-radius: 0; }
.nav-toggle { display: none; }
@media (max-width: 899px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; position: relative; }
  .nav-toggle summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: var(--fs-sm); padding: 0 var(--s-3); white-space: nowrap; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle .nav-list { position: absolute; right: 0; top: calc(100% + var(--s-2)); flex-direction: column; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-2); min-width: 14rem; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-5); border-radius: var(--radius-sm); font-weight: 600; font-size: var(--fs-base); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand-green); color: #fff; }
.btn-primary:hover { background: var(--brand-green-strong); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--brand-green-strong); border-color: var(--brand-green); }
.btn-secondary:hover { background: var(--brand-green-tint); color: var(--brand-green-strong); }
.btn[aria-disabled="true"], .btn:disabled { background: var(--line); color: var(--text-muted); border-color: var(--line); cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* hero */
.hero { padding: var(--s-8) 0 var(--s-7); background: linear-gradient(180deg, var(--brand-green-tint), var(--surface) 70%); }
.hero-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.4fr 1fr; } }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-5); }

/* credential / fact list */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.facts li { display: grid; grid-template-columns: 8.5em 1fr; gap: var(--s-3); font-size: var(--fs-sm); border-bottom: 1px dashed var(--line); padding-bottom: var(--s-2); }
.facts li:last-child { border-bottom: 0; }
.facts dt, .facts .k { color: var(--text-muted); }
.facts .v { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* status marks */
.mark-verified { display: inline-flex; align-items: center; gap: .3em; font-size: var(--fs-xs); color: var(--ok); font-weight: 600; white-space: nowrap; }
.mark-verified::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--ok); }
.verify-tag { display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: .02em; background: var(--verify-bg); color: var(--verify-ink); border: 1px solid #e8cf5c; border-radius: 4px; padding: 0 .35em; margin-left: .35em; vertical-align: middle; white-space: nowrap; }

/* trust band */
.trust { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.trust-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4) var(--s-5); }
.trust-item strong { display: block; color: var(--ink); font-size: var(--fs-lg); }

/* cards */
.grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); display: flex; flex-direction: column; }
.card h3 { margin-bottom: var(--s-2); }
.card p { font-size: var(--fs-sm); }
.card .card-foot { margin-top: auto; font-size: var(--fs-sm); }
.card--feature { border-color: var(--brand-green); box-shadow: inset 4px 0 0 var(--brand-green); }
.ticks { list-style: none; padding: 0; margin: 0 0 var(--s-4); font-size: var(--fs-sm); }
.ticks li { padding-left: 1.4em; position: relative; margin-bottom: var(--s-1); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-green); font-weight: 700; }
.crosses li::before { content: "✕"; color: #a33; }

/* steps (verify page) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.steps > li { counter-increment: step; position: relative; padding: var(--s-5) var(--s-5) var(--s-5) 4.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps > li::before { content: counter(step); position: absolute; left: var(--s-5); top: var(--s-5); width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand-green); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* callout */
.callout { border-left: 4px solid var(--brand-gold); background: var(--brand-gold-tint); padding: var(--s-4) var(--s-5); border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--fs-sm); }
.callout--warn { border-left-color: #b45309; background: #fff7ed; }

/* table */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: var(--s-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--text-muted); font-weight: 600; width: 32%; }

/* form (static mock) */
.form { display: grid; gap: var(--s-4); max-width: 36rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: var(--s-1); font-size: var(--fs-sm); }
.field .hint { display: block; color: var(--text-muted); font-size: var(--fs-xs); margin-top: var(--s-1); }
.field input, .field select, .field textarea { width: 100%; min-height: var(--tap); font: inherit; color: var(--text); padding: var(--s-2) var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.field textarea { min-height: 7rem; }
.check { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-sm); }
.check input { width: 1.5rem; height: 1.5rem; margin-top: .2em; flex: none; }

/* article list */
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.posts li { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4) var(--s-5); background: var(--surface); }
.posts time { color: var(--text-muted); font-size: var(--fs-xs); }

/* footer */
.site-footer { background: var(--surface-dark); color: var(--on-dark); padding: var(--s-7) 0 calc(var(--s-7) + 4rem); font-size: var(--fs-sm); }
@media (min-width: 900px) { .site-footer { padding-bottom: var(--s-6); } }
.site-footer a { color: var(--on-dark); }
.site-footer .muted { color: var(--on-dark-muted); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.footer-grid h2 { color: var(--on-dark); font-size: var(--fs-base); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: var(--s-2); }
.footer-logo { width: 150px; }
.site-footer .verify-tag { color: var(--verify-ink); }

/* mobile sticky action bar */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
.action-bar .btn { padding: 0 var(--s-2); font-size: var(--fs-sm); }
@media (min-width: 900px) { .action-bar { display: none; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .action-bar { display: none; } .section { padding: var(--s-5) 0; } }

/* Public v1 layout additions. */
.page-heading { padding: var(--s-7) 0 var(--s-6); background: var(--brand-green-tint); }
.page-heading p:last-child { margin-bottom: 0; }
.compact-section { padding: var(--s-7) 0; }
.content-column { max-width: 45rem; }
.hero-card h2 { font-size: var(--fs-lg); }
.hero-card .source-note { margin: var(--s-4) 0 0; }
.grid--spaced, .more-link { margin-top: var(--s-5); }
.simple-links { list-style: none; max-width: 40rem; margin: var(--s-4) 0; padding: 0; }
.simple-links li { border-bottom: 1px solid var(--line); }
.simple-links a { display: flex; align-items: center; min-height: var(--tap); padding: var(--s-2) 0; }
.card .status { margin-top: auto; font-size: var(--fs-sm); font-weight: 700; color: var(--verify-ink); background: var(--verify-bg); border-radius: var(--radius-sm); padding: var(--s-2) var(--s-3); }
.card .btn { align-self: flex-start; margin-top: var(--s-3); }
.source-note { font-size: var(--fs-sm); color: var(--text-muted); }
.source-note a { overflow-wrap: anywhere; }
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s-3) 0; }
.faq summary { min-height: var(--tap); cursor: pointer; color: var(--ink); font-weight: 600; }
.faq details p { margin: var(--s-2) 0 var(--s-3); }
.callout p:last-child, .card p:last-child { margin-bottom: 0; }
.footer-note { margin-top: var(--s-6); font-size: var(--fs-xs); }
.action-bar .btn[aria-disabled="true"] { pointer-events: none; }
@media (max-width: 599px) { .section { padding: var(--s-7) 0; } .hero { padding: var(--s-7) 0; } .brand-name { display: none; } .site-footer { padding-bottom: calc(var(--s-7) + 4.5rem); } }
