/*
 *  site.css
 *  demo-bank
 *
 *  Copyright 2010-2026 Saxon Herschel Nicholls
 *
 *  Demo Bank's site. Layout: one centred column, wide bands for the hero and the platform grid.
 *  Components use only the role tokens of brand/tokens.css (loaded first); no colour or typeface is chosen here.
 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }

/* The demonstration ribbon: on every page, never dismissible. */
.demo-ribbon {
  background: var(--notice-bg);
  color: var(--notice-ink);
  font-size: 0.9rem;
  padding-block: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--notice-ink) 25%, transparent);
}

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-tag {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
  color: var(--accent-2-text); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px;
}
.site-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta { color: var(--accent-ink); background: var(--accent); padding: 8px 16px; border-radius: 999px; }

/* Hero */
.hero {
  background: var(--hero-bg) url("/brand/pattern.svg") repeat;
  background-size: 96px 96px;
  color: var(--hero-ink);
  padding-block: 72px 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hero-accent); font-weight: 600; margin: 0 0 16px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
.hero .lede { color: var(--hero-soft); font-size: 1.15rem; max-width: 56ch; margin: 20px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.button-primary { background: var(--hero-accent); color: var(--bank-oasis-deep, #08332e); }
.button-ghost { color: var(--hero-ink); border-color: color-mix(in srgb, var(--hero-ink) 40%, transparent); }

/* The illustrative statement card in the hero. */
.ledger-card {
  background: color-mix(in srgb, var(--hero-ink) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--hero-ink) 16%, transparent);
  border-radius: var(--radius); padding: 22px; font-variant-numeric: tabular-nums;
}
.ledger-card h2 { font-size: 0.95rem; color: var(--hero-soft); font-weight: 600; margin-bottom: 14px; }
.ledger-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-bottom: 1px solid color-mix(in srgb, var(--hero-ink) 12%, transparent); }
.ledger-row:last-of-type { border-bottom: 0; }
.ledger-row .amt { font-family: var(--font-mono); }
.ledger-row .pos { color: var(--hero-accent); }
.ledger-note { margin: 14px 0 0; font-size: 0.8rem; color: var(--hero-soft); }

/* Sections */
.section { padding-block: 72px; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.015em; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin: 0; }
.card .tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.checks strong { color: var(--ink); }

.doors { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.door { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 500; }
.soon { color: var(--accent-2-text); font-weight: 600; }

/* Legal and support pages */
.prose { max-width: 760px; padding-block: 56px 72px; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.prose h2 { font-size: 1.25rem; margin: 36px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose .meta { color: var(--ink-soft); font-size: 0.9rem; }
.callout { background: var(--notice-bg); color: var(--notice-ink); border-radius: var(--radius); padding: 16px 18px; margin: 24px 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 40px 28px; margin-top: 24px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { color: var(--ink-soft); max-width: 52ch; margin: 8px 0 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal { margin-top: 28px; font-size: 0.85rem; color: var(--ink-soft); }
.footer-legal p { max-width: 90ch; }

@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-block: 48px 56px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .site-nav a { transition: background-color 0.15s ease, color 0.15s ease; }
}

/* Arabic lines beside English: right to left, never letter-spaced */
[lang="ar"] { font-family: var(--font-body); letter-spacing: 0; }
.ar-line { display: block; direction: rtl; font-size: 0.95em; opacity: 0.92; margin-top: 4px; }
.hero .ar-title { display: block; direction: rtl; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--hero-accent); margin-top: 14px; }
.gold-rule { width: 64px; height: 3px; background: var(--accent-2); border: 0; margin: 0 0 18px; }
