@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

@font-face {
  font-family: 'ftsarabia-custom';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ftsarabia-custom.woff2') format('woff2');
}

:root {
  --ink: #0B0B0C;
  --text: #0B0B0C;
  --text-muted: #68686D;
  --paper: #FFFFFF;
  --paper-2: #F3F3F1;
  --accent: #0B0B0C;
  --accent-2: #3A3A3E;
  --accent-ink: #0B0B0C;
  --accent-on: #FFFFFF;
  --success: #1E9A5C;
  --warning: #D97706;
  --error: #DC2626;
  --success-bg: #E8F6EE;
  --warning-bg: #FDF1E1;
  --error-bg: #FDEBEB;
  --border: #E4E4E1;
  --card: #FFFFFF;
  --nav-bg: rgba(255,255,255,0.72);
  --shadow: 0 1px 2px rgba(11,11,12,0.04), 0 12px 32px -16px rgba(11,11,12,0.10);
  --shadow-lg: 0 24px 64px -20px rgba(11,11,12,0.22);
  --logo-main: var(--ink);
  --logo-gray: var(--text-muted);
  --btn-radius: 10px;
  --card-radius: 16px;
}
:root[data-theme="dark"] {
  --ink: #F2F1EE; --text: #F2F1EE; --text-muted: #9A9A9E;
  --paper: #0B0C10; --paper-2: #17171A;
  --accent: #F5F5F3; --accent-2: #C7C7C9; --accent-ink: #F5F5F3;
  --accent-on: #0B0B0C;
  --success: #4ADE94; --warning: #F2A65A; --error: #F27C72;
  --success-bg: #10241A; --warning-bg: #2A1E10; --error-bg: #2A1414;
  --border: #26262A; --card: #17171A; --nav-bg: rgba(11,12,16,0.72);
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px -16px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 64px -20px rgba(0,0,0,0.6);
}
:root[data-theme="light"] {
  --ink: #0B0B0C; --text: #0B0B0C; --text-muted: #68686D;
  --paper: #FFFFFF; --paper-2: #F3F3F1;
  --accent: #0B0B0C; --accent-2: #3A3A3E; --accent-ink: #0B0B0C;
  --accent-on: #FFFFFF;
  --success: #1E9A5C; --warning: #D97706; --error: #DC2626;
  --success-bg: #E8F6EE; --warning-bg: #FDF1E1; --error-bg: #FDEBEB;
  --border: #E4E4E1; --card: #FFFFFF; --nav-bg: rgba(255,255,255,0.72);
  --shadow: 0 1px 2px rgba(11,11,12,0.04), 0 12px 32px -16px rgba(11,11,12,0.10);
  --shadow-lg: 0 24px 64px -20px rgba(11,11,12,0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body, 'Tajawal'), ui-sans-serif, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6; /* theme uses 1.55; +0.05 kept for Arabic diacritic/ascender clearance, per design-brief §3 */
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
section { padding: 88px 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; }
.eyebrow {
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 7px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink:0; }

/* ---- Brand name (FTSArabia) ---- */
.brand-name { font-family: 'ftsarabia-custom', ui-sans-serif, sans-serif; unicode-bidi: isolate; text-transform: none; }

/* ---- Nav ---- */
nav {
  position: sticky; top: 0; z-index: 30;
  background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; padding: 0 28px; }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; flex-shrink: 0; }
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo svg { display: block; height: 34px; width: auto; color: var(--ink); }
.brand-logo path { fill: currentColor; }
footer .brand-logo-full svg { height: 28px; }
.brand-logo-icon { display: none; }
.brand-logo-icon svg { height: 32px; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; flex-wrap: nowrap; }
.nav-links a:not(.btn) { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color 140ms ease; white-space: nowrap; }
.nav-links a:not(.btn):hover, .nav-links a:focus-visible { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-sep { width: 1px; height: 16px; background: var(--border); flex-shrink: 0; }
.btn-ghost.btn-sm { padding: 10px 18px; font-size: 14px; }
.nav-links a.nav-academy {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-ink); padding: 7px 14px; border-radius: 999px;
}
.nav-links a.nav-academy:hover, .nav-links a.nav-academy.active {
  background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text);
}
.nav-login { flex-shrink: 0; }

/* Nav "services" dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 5px;
  color: var(--text-muted); font-weight: 600; transition: color 140ms ease;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.nav-dropdown > summary::after {
  content: ""; width: 6px; height: 6px; align-self: center;
  border-inline-end: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 160ms ease;
}
.nav-dropdown:hover > summary, .nav-dropdown > summary:focus-visible,
.nav-dropdown.active > summary, .nav-dropdown[open] > summary { color: var(--text); }
.nav-dropdown[open] > summary::after { transform: rotate(225deg); }
.nav-dropdown-menu { display: none; flex-direction: column; gap: 2px; }
.nav-toggle { display: none; }
.nav-toggle-btn {
  display: none; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--card); align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.nav-toggle-btn span, .nav-toggle-btn span::before, .nav-toggle-btn span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform 160ms ease, opacity 160ms ease;
}
.nav-toggle-btn span::before { position: absolute; top: -6px; }
.nav-toggle-btn span::after { position: absolute; top: 6px; }

@media (min-width: 801px) {
  .nav-dropdown-menu {
    position: absolute; top: calc(100% + 14px); inset-inline-start: -8px; z-index: 40;
    min-width: 232px; margin: 0; padding: 8px;
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow-lg);
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
  .nav-dropdown-menu a { padding: 9px 12px; border-radius: 8px; white-space: nowrap; }
  .nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible { background: var(--paper-2); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: var(--btn-radius);
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-accent { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-on); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-accent:hover { box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---- Hero (homepage) ---- */
.hero { position: relative; padding: 96px 0 64px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -180px; inset-inline-end: -120px; width: 680px; height: 680px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 62% 38%, #000 0%, transparent 68%);
          mask-image: radial-gradient(circle at 62% 38%, #000 0%, transparent 68%);
}
.hero-glow-symbols {
  position: absolute; inset: 0;
  background-color: var(--ink);
  opacity: 0.38;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='330' height='250'%3E%3Ctext x='4' y='16' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EJOD%3C/text%3E%3Ctext x='64' y='16' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3ESAR%3C/text%3E%3Ctext x='124' y='16' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EAED%3C/text%3E%3Ctext x='184' y='16' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EQAR%3C/text%3E%3Ctext x='244' y='16' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EKWD%3C/text%3E%3Ctext x='29' y='68' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EBHD%3C/text%3E%3Ctext x='89' y='68' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EOMR%3C/text%3E%3Ctext x='149' y='68' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EIQD%3C/text%3E%3Ctext x='209' y='68' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EEGP%3C/text%3E%3Ctext x='269' y='68' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3ELBP%3C/text%3E%3Ctext x='4' y='120' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3ESYP%3C/text%3E%3Ctext x='64' y='120' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EYER%3C/text%3E%3Ctext x='124' y='120' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3ESDG%3C/text%3E%3Ctext x='184' y='120' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3ELYD%3C/text%3E%3Ctext x='244' y='120' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3ETND%3C/text%3E%3Ctext x='29' y='172' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EDZD%3C/text%3E%3Ctext x='89' y='172' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EMAD%3C/text%3E%3Ctext x='149' y='172' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EMRU%3C/text%3E%3Ctext x='209' y='172' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3ESOS%3C/text%3E%3Ctext x='269' y='172' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EDJF%3C/text%3E%3Ctext x='4' y='224' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EKMF%3C/text%3E%3Ctext x='64' y='226' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='13' fill='%23000'%3E%25%3C/text%3E%3Ctext x='124' y='226' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='11' fill='%23000'%3E%2b%3C/text%3E%3Ctext x='184' y='226' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='13' fill='%23000'%3E%EF%B7%BC%3C/text%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='330' height='250'%3E%3Ctext x='4' y='16' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EJOD%3C/text%3E%3Ctext x='64' y='16' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3ESAR%3C/text%3E%3Ctext x='124' y='16' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EAED%3C/text%3E%3Ctext x='184' y='16' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EQAR%3C/text%3E%3Ctext x='244' y='16' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EKWD%3C/text%3E%3Ctext x='29' y='68' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EBHD%3C/text%3E%3Ctext x='89' y='68' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EOMR%3C/text%3E%3Ctext x='149' y='68' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EIQD%3C/text%3E%3Ctext x='209' y='68' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EEGP%3C/text%3E%3Ctext x='269' y='68' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3ELBP%3C/text%3E%3Ctext x='4' y='120' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3ESYP%3C/text%3E%3Ctext x='64' y='120' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EYER%3C/text%3E%3Ctext x='124' y='120' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3ESDG%3C/text%3E%3Ctext x='184' y='120' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3ELYD%3C/text%3E%3Ctext x='244' y='120' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3ETND%3C/text%3E%3Ctext x='29' y='172' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EDZD%3C/text%3E%3Ctext x='89' y='172' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EMAD%3C/text%3E%3Ctext x='149' y='172' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EMRU%3C/text%3E%3Ctext x='209' y='172' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3ESOS%3C/text%3E%3Ctext x='269' y='172' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EDJF%3C/text%3E%3Ctext x='4' y='224' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='9' fill='%23000'%3EKMF%3C/text%3E%3Ctext x='64' y='226' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='13' fill='%23000'%3E%25%3C/text%3E%3Ctext x='124' y='226' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='11' fill='%23000'%3E%2b%3C/text%3E%3Ctext x='184' y='226' font-family='ui-monospace,Menlo,monospace' font-weight='700' font-size='13' fill='%23000'%3E%EF%B7%BC%3C/text%3E%3C/svg%3E");
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
  -webkit-mask-size: 330px 250px; mask-size: 330px 250px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); }
.hero .lede { color: var(--text-muted); font-size: 18.5px; max-width: 46ch; margin-top: 18px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; animation: rise 700ms cubic-bezier(.2,.8,.2,1) both; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 28px; margin-top: 40px; font-size: 13px; color: var(--text-muted); font-weight: 600; flex-wrap: wrap; }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row b { color: var(--text); font-variant-numeric: tabular-nums; font-size: 15px; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatCard { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Coverage card (homepage hero visual) */
.coverage-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--card-radius);
  padding: 30px; display: flex; flex-direction: column; gap: 20px;
  box-shadow: var(--shadow-lg);
  animation: floatCard 800ms 120ms cubic-bezier(.2,.8,.2,1) both;
}
.coverage-card .label { font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.coverage-card ul { display: flex; flex-direction: column; gap: 0; list-style: none; }
.coverage-card li {
  display: flex; align-items: center; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 600;
}
.coverage-card li:last-child { border-bottom: none; }
.coverage-card .check {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent) 14%, transparent));
  color: var(--accent-2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.coverage-card .foot-note { font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 16px; }

/* ---- Page hero (inner pages) ---- */
.page-hero { padding: 56px 0 8px; }
.breadcrumb { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { text-decoration: none; color: var(--text-muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--text); }
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); max-width: 22ch; }
.page-hero .lede { color: var(--text-muted); font-size: 17px; max-width: 68ch; margin-top: 16px; }

/* ---- Sections ---- */
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; max-width: 62ch; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); }
.section-head p { color: var(--text-muted); font-size: 16.5px; }
.alt { background: var(--paper-2); }
.section-eyebrow-row { display:flex; flex-direction:column; gap:6px; margin: 0 0 24px; }
.section-eyebrow-row h3 { font-size: 20px; font-weight: 800; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.cards.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--card-radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--text-muted); }
.card .glyph {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 4px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent) 10%, transparent));
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.card .tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--accent-2);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 3px 10px; border-radius: 999px; margin-top: 2px;
}

/* Text link */
.link-arrow { color: var(--accent-2); font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Teaser row (about/how-we-work preview on homepage) */
.teaser-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.teaser { background: var(--card); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 28px; display:flex; flex-direction:column; gap:14px; }
.teaser p { color: var(--text-muted); font-size: 15px; }

/* Pointer / plain text section */
.pointer-text { font-size: 16px; color: var(--text-muted); max-width: 72ch; }
.pointer-text a { color: var(--accent-2); font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-2) 40%, transparent); text-underline-offset: 3px; }
.pointer-text a:hover { color: var(--text); text-decoration-color: currentColor; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--ink) 80%, var(--accent-2)));
  color: var(--paper);
  border-radius: 24px;
  padding: 56px 48px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); color: var(--paper); }
.cta-band p { color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: 16px; max-width: 60ch; }
.cta-band .btn-accent { margin-top: 10px; }

/* Steps (how we work) */
.steps { display: flex; flex-direction: column; gap: 0; max-width: 820px; }
.step { display: flex; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--paper-2); border: 1px solid var(--border); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; font-size: 15.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-item summary::after {
  content: "+"; font-size: 20px; font-weight: 400; color: var(--accent-2); flex-shrink: 0;
  transition: transform 160ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--text-muted); font-size: 15px; }
.faq-item .faq-a a { color: var(--accent-2); font-weight: 700; text-decoration: none; }
.faq-item .faq-a a:hover { text-decoration: underline; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 8px 26px; }
.contact-info .row { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-info .row:last-child { border-bottom: none; }
.contact-info .row span { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; }
.contact-info .row b { font-size: 15.5px; font-weight: 700; }
.contact-info .row b.placeholder { color: var(--text-muted); font-weight: 600; font-style: normal; }
.contact-info .row a { color: inherit; text-decoration: none; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 700; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--paper); color: var(--text);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 120px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.form-success {
  display: none; background: var(--success-bg); color: var(--success); border-radius: 12px;
  padding: 16px 20px; font-weight: 700; font-size: 14.5px; margin-top: 18px;
}
.form-success.show { display: block; }

/* Legal / long-form article */
.legal { max-width: 76ch; }
.legal h2 { font-size: 20px; margin-top: 40px; margin-bottom: 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text-muted); font-size: 15.5px; margin-bottom: 6px; }
.legal ul { margin: 10px 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal li { color: var(--text-muted); font-size: 15.5px; }
.legal .updated { color: var(--text-muted); font-size: 13.5px; margin-bottom: 30px; }
.legal .callout {
  background: var(--paper-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; font-size: 14px; color: var(--text-muted); margin-bottom: 30px;
}

/* ---- Spacing utilities (section padding overrides) ---- */
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pt-24 { padding-top: 24px; }
.pt-56 { padding-top: 56px; }
.pb-56 { padding-bottom: 56px; }
.mb-0 { margin-bottom: 0; }

/* Page hero: hide the lede line entirely when a page has none, so it
   doesn't leave a blank gap under the h1 */
.lede:empty { display: none; }

/* Legal-page lead paragraph (larger, full-contrast intro above the article) */
.legal .lead { max-width: 76ch; font-size: 16.5px; color: var(--text); }

/* Teaser emphasis paragraph (vision/mission statements) */
.teaser .emphasis { color: var(--text); font-size: 16px; font-weight: 600; }

/* Emphasis inside muted pointer text */
.pointer-text strong { color: var(--text); }

/* Footer contact line (email under the brand blurb) */
.footer-contact { margin-top: 4px; }
.footer-contact a { color: var(--text-muted); font-weight: 600; text-decoration: none; }

/* Full-width buttons (e.g. form submit) */
.btn-block { width: 100%; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border); padding: 64px 0 28px; font-size: 14px; color: var(--text-muted); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 44px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); max-width: 34ch; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); font-weight: 800; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 14px; }
.footer-col a:hover { color: var(--text); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--border); }
.sd-credit { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); text-decoration: none; font-size: 12.5px; font-weight: 600; transition: color 140ms ease; }
.sd-credit:hover { color: var(--text); }
.sd-credit-logo { width: 16px; height: 16px; flex-shrink: 0; }
footer .logo { color: var(--text); font-size: 15px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .cards { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .brand-logo-full { display: none; }
  .brand-logo-icon { display: inline-flex; }
  .nav-toggle-btn { display: flex; }
  .nav-links {
    display: none; position: absolute; inset-inline: 0; top: 68px; background: var(--paper);
    border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start;
    padding: 18px 32px 28px; gap: 4px; box-shadow: var(--shadow);
  }
  .nav-links a:not(.btn) { padding: 10px 0; width: 100%; }
  .nav-sep { display: none; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a.nav-academy { width: auto; padding: 7px 14px; margin-top: 6px; }
  .nav-login { padding: 8px 14px; font-size: 13px; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > summary { padding: 10px 0; }
  .nav-dropdown[open] .nav-dropdown-menu { display: flex; }
  .nav-dropdown-menu { padding-inline-start: 16px; margin-bottom: 4px; }
  .nav-dropdown-menu a { padding: 8px 0 !important; }
  .form-row-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 26px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
