/* I Am Your AIB — book site, aibeva design v3.2 (2026-10-22). Dark navy base, one violet accent. System fonts only. */
:root {
  color-scheme: dark;
  --bg: #070c1a;
  --surface: #0f1830;
  --tint: #111d3a;
  --rule: #1f2c4d;
  --ink: #f3f6fc;
  --soft: #a9b5cc;
  --faint: #75829e;
  --blue: #4d8bff;
  --blue-hover: #2f6bff;
  --accent: #a78bfa;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --wrap: 1180px;
  --font: "Segoe UI Variable Text", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.min0 { min-width: 0; }

/* Headlines: sentence case, large and tight */
.hl {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
  overflow-wrap: break-word;
}
.acc { color: var(--accent); }
.hl .blk { display: block; }
h1.hl { font-size: clamp(2.8rem, 7.4vw, 6rem); letter-spacing: -0.04em; line-height: 0.98; margin-bottom: 0.35em; }
h2.hl { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 0.5em; max-width: 20ch; }
.kicker { font-size: 0.95rem; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--soft); max-width: 36rem; }
.muted { color: var(--soft); }
.small { font-size: 0.88rem; color: var(--faint); }
.strong { color: var(--ink); font-weight: 650; }
.byline { color: var(--soft); margin: 14px 0 28px; }
.mt-l { margin-top: 40px; }
.mb-l { margin-bottom: 40px; }

/* Buttons: pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-solid { background: var(--blue); color: #fff; box-shadow: 0 10px 28px rgba(77, 139, 255, 0.35); }
.btn-solid:hover { background: var(--blue-hover); color: #fff; }
.btn-line { border: 1.5px solid #34466f; color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.brow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 480px) { .brow .btn { width: 100%; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 12, 26, 0.82); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--ink); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; border: 1px solid rgba(167, 139, 250, 0.55); display: flex; align-items: center; justify-content: center; }
.nav-links { display: none; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav-links a { color: var(--soft); text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-cta { display: none; padding: 8px 18px; border-radius: 999px; font-size: 0.92rem; font-weight: 600; text-decoration: none; white-space: nowrap; background: var(--blue); color: #fff; }
.nav-cta:hover { background: var(--blue-hover); }
.menu-btn { background: none; border: 0; color: var(--soft); padding: 8px; cursor: pointer; }
.mobile-nav { display: none; margin: 0 12px 12px; padding: 12px; border: 1px solid var(--rule); border-radius: 18px; background: var(--surface); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--soft); text-decoration: none; }
.mobile-nav a:hover { background: var(--tint); color: var(--ink); }
.mobile-nav .nav-cta { display: block; text-align: center; margin-top: 10px; padding: 12px; color: #fff; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
@media (min-width: 1024px) { .nav-links { display: flex; } .menu-btn { display: none; } .mobile-nav.open { display: none; } }

/* Announcement strip */
.band { background: var(--surface); border-bottom: 1px solid var(--rule); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-top: 18px; padding-bottom: 18px; }
.band p { color: var(--soft); max-width: 52rem; }
.band strong { color: var(--ink); font-weight: 650; }
.band-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.band-link { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.band-link:hover { color: var(--ink); }

/* Sections */
.sec { padding: clamp(72px, 10vw, 128px) 0 0; }
.sec-last { padding-bottom: clamp(72px, 10vw, 128px); }
.grid2 { display: grid; gap: 40px; }
@media (min-width: 1024px) { .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; } .grid2.top { align-items: start; } }
.cards { display: grid; gap: 16px; }
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--rule); background: var(--surface); border-radius: 20px; padding: 24px; min-width: 0; }
.card h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); margin-bottom: 8px; }
.card p { color: var(--soft); }
.card p + .btn { margin-top: 20px; }
.card .num { font-weight: 600; color: var(--accent); font-size: 0.85rem; margin-bottom: 8px; }
.card-acc { border-color: var(--accent); background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); }
.quote { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--ink); font-style: italic; border-left: 3px solid var(--accent); padding-left: 20px; max-width: 46rem; }
.quote .src { display: block; font-style: normal; font-size: 0.88rem; color: var(--faint); margin-top: 8px; }
.figure-img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 22px; border: 1px solid var(--rule); margin: 8px 0 40px; }
.globe { width: 100%; max-width: 420px; margin: 32px auto 0; -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at center, #000 72%, transparent 100%); }
.cover { width: 240px; margin: 0 auto; border-radius: 14px; border: 1px solid var(--rule); box-shadow: 0 30px 70px -20px rgba(167, 139, 250, 0.45); }

/* Hero (image backdrop) */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; opacity: 0.32; }
.hero-bg.left { object-position: 30% center; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(55% 70% at 85% 30%, rgba(167, 139, 250, 0.20), transparent 70%), linear-gradient(90deg, var(--bg) 0%, rgba(7, 12, 26, 0.86) 55%, rgba(7, 12, 26, 0.35) 100%); }
.hero .wrap { position: relative; padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(56px, 8vw, 112px); }
.hero .quote { margin: 0 0 32px; }
.hero-end .hero-bg { opacity: 0.45; }
.hero-end .hero-shade { background: radial-gradient(55% 70% at 85% 30%, rgba(167, 139, 250, 0.18), transparent 70%), linear-gradient(90deg, rgba(7, 12, 26, 0.92) 0%, rgba(7, 12, 26, 0.72) 50%, rgba(7, 12, 26, 0.45) 100%); }
.narrow { max-width: 42rem; }
.hero-end { margin-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* Facts */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.facts > div { border-top: 3px solid var(--accent); padding-top: 18px; }
.facts dt { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; overflow-wrap: anywhere; }
.facts dd { margin: 8px 0 0; font-size: 0.92rem; color: var(--soft); }
.link-u { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(167, 139, 250, 0.6); }
.link-u:hover { color: var(--accent); border-color: var(--accent); }
.stack > * + * { margin-top: 16px; }
.disclosure { margin-top: 28px; padding: 16px 20px; border-left: 3px solid var(--accent); background: rgba(255, 255, 255, 0.05); border-radius: 0 12px 12px 0; color: var(--soft); font-size: 0.9rem; max-width: 52em; }

/* Legal pages */
.legal-page { max-width: 820px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) 16px clamp(72px, 9vw, 112px); }
@media (min-width: 640px) { .legal-page { padding-left: 28px; padding-right: 28px; } }
.legal-page h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); margin-bottom: 14px; }
.legal-date { font-size: 0.9rem; color: var(--faint); margin-bottom: 40px; }
.legal { color: var(--soft); font-size: 1.02rem; }
.legal h2 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.015em; color: var(--ink); font-size: 1.4rem; line-height: 1.25; margin: 2.4rem 0 0.7rem; }
.legal p + p { margin-top: 0.75rem; }
.legal li + li { margin-top: 0.75rem; }
.legal ul { margin-top: 0.75rem; }
.legal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); overflow-wrap: anywhere; }
.legal a:hover { color: var(--accent); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--rule); padding: 56px 0 40px; font-size: 0.92rem; color: var(--soft); }
.foot-grid { display: grid; gap: 32px; margin-bottom: 40px; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1.3fr 1fr; } }
.foot-name { font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; color: var(--ink); margin-bottom: 10px; }
.foot-h { font-size: 0.95rem; font-weight: 650; color: var(--ink); margin-bottom: 12px; }
.foot-list li + li { margin-top: 8px; }
.foot-list a, .foot-list button { color: var(--soft); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.foot-list a:hover, .foot-list button:hover { color: var(--accent); }
.foot-list .d { color: var(--faint); }
.foot-bottom { border-top: 1px solid var(--rule); padding-top: 20px; font-size: 0.84rem; color: var(--faint); }
.foot-bottom p + p { margin-top: 6px; }

/* Cookie banner (site.js) */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; }
.cookie[hidden] { display: none; }
.cookie-box { max-width: 46rem; margin: 0 auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 18px 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.cookie p { color: var(--soft); font-size: 0.92rem; line-height: 1.6; }
.cookie-row { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.cookie-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie button { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--blue); font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.cookie .acc { background: var(--blue); color: #fff; }
.cookie .rej { background: transparent; color: #8fb6ff; }
.cookie a { color: #8fb6ff; font-size: 0.9rem; text-align: center; }
@media (min-width: 640px) {
  .cookie-row { flex-direction: row; align-items: center; }
  .cookie-btns { width: 320px; }
  .cookie a { margin-left: 8px; }
}

/* HOPEA support band keeps its own green */
.hopea { background: #0f2e22; border-top: 1px solid #1f5a42; padding: 28px 0; }
.hopea-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.hopea p { margin: 0; color: #e8f3ee; font-size: 1.02rem; line-height: 1.6; flex: 1; }
.hopea .hopea-name { color: #7fdcae; font-weight: 700; text-decoration: none; }
.hopea-btn { flex: none; background: #3ea67e; color: #0a1a14; font-weight: 700; padding: 13px 24px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.hopea-btn:hover { background: #4fbf93; }
@media (max-width: 760px) { .hopea-in { flex-direction: column; align-items: flex-start; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
