/* Sukoon Finance — design system
   Layout concept: a calm, guided path. One decision per section, generous
   whitespace, left-aligned headings, and the crescent-star from the logo
   used sparingly as a wayfinding mark. Every page uses these same tokens,
   so fonts, sizes and buttons can never drift between pages. */

:root {
  /* Color: brand teal + gold from the logo, on a warm off-white */
  --teal: #135c5c;          /* brand teal (Brand Kit): headlines, icons, buttons */
  --teal-deep: #0c3f3f;     /* deeper teal: footer, dark bands */
  --teal-soft: #e4efec;     /* tinted panels */
  --gold: #ac7900;          /* brand gold (Brand Kit): emphasis only, never body text */
  --gold-ink: #8a6100;      /* gold for small emphasis text (passes contrast) */
  --pop: #f5b83d;           /* the "pop": bright saffron, used sparingly on dark teal */
  --gold-soft: #f7efd9;     /* highlight panels */
  --page: #ffffed;          /* brand cream (Brand Kit): main background */
  --surface: #ffffff;       /* cards, forms */
  --sand: #f7f1e5;          /* brand beige (Brand Kit): reading sections */
  --ink: #1d2e2e;           /* body text */
  --muted: #4a605e;         /* secondary text */
  --line: #ddd8c3;          /* hairlines, borders */
  --success: #1d6b3a;
  --warn-bg: #fff4d6;

  /* Type: Montserrat only, per the Brand Kit ("If it doesn't look like
     Montserrat, don't use it"). Bold/ExtraBold for headlines,
     Regular/Medium for body. No serif, script or decorative faces. */
  --font-display: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-voice: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  /* Type scale (1.25 ratio) */
  --t-xs: 0.8125rem;  /* 13px  legal, captions */
  --t-sm: 0.9375rem;  /* 15px  labels, small print */
  --t-md: 1rem;       /* 16px  body (Montserrat runs wide) */
  --t-lg: 1.25rem;    /* 20px  lead text */
  --t-xl: 1.5rem;     /* 24px  h3 */
  --t-2xl: 2rem;      /* 32px  h2 */
  --t-3xl: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); /* h1 */

  --radius: 10px;
  --radius-lg: 18px;
  --wrap: 1180px;
  --measure: 66ch;
  --shadow: 0 1px 2px rgba(11, 59, 58, .06), 0 8px 24px rgba(11, 59, 58, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--t-3xl); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--t-2xl); font-weight: 700; }
h3 { font-size: var(--t-xl); font-weight: 600; }
h4 { font-size: var(--t-lg); font-weight: 600; }
p { margin: 0; }
p + p { margin-top: 1em; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--teal-deep); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap, .tool .inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--sand { background: var(--sand); }
.section--teal { background: var(--teal-deep); color: #e8f1ef; }
.section--teal h2, .section--teal h3 { color: #fff; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }

.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.section-head.center { align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: var(--t-sm); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink);
}
.section--teal .eyebrow { color: #e2c27a; }
.eyebrow::before {
  content: ""; width: 12px; height: 12px; flex: none;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.lead { font-size: var(--t-lg); color: var(--muted); line-height: 1.55; }
.section--teal .lead { color: #c9dcd8; }
.small { font-size: var(--t-sm); color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; }
.split > * { min-width: 0; }

/* ---------- buttons: exactly two kinds, used the same way everywhere ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.section--teal .btn-primary, .on-dark .btn-primary { background: var(--pop); color: var(--teal-deep); }
.section--teal .btn-primary:hover, .on-dark .btn-primary:hover { background: #ffd27a; color: var(--teal-deep); }
.btn-secondary { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal); color: #fff; }
.section--teal .btn-secondary, .on-dark .btn-secondary { color: #fff; border-color: rgba(255,255,255,.7); }
.section--teal .btn-secondary:hover, .on-dark .btn-secondary:hover { background: #fff; color: var(--teal-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 1rem; }

.text-link {
  font-family: var(--font-display); font-weight: 500; color: var(--teal);
  text-decoration: none; display: inline-flex; gap: 6px; align-items: center;
}
.text-link:hover { text-decoration: underline; }

/* ---------- header ---------- */
.topbar { background: var(--teal-deep); color: #d5e5e2; font-size: var(--t-sm); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-trust { display: inline-flex; align-items: center; gap: 8px; }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 253, 243, .96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { width: 150px; height: auto; }
.main-nav { flex: 1; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; justify-content: center; }
.main-nav a, .nav-toggle-sub {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 400;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .nav-toggle-sub:hover { color: var(--teal); background: var(--teal-soft); }
.main-nav a[aria-current="page"], .has-sub.is-current > .nav-toggle-sub { color: var(--teal); font-weight: 500; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.has-sub { position: relative; }
.nav-toggle-sub::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub-menu {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 300px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 10px; list-style: none; margin: 0;
}
.sub-menu a { padding: 10px 12px; }
.sub-menu a span { display: block; font-family: var(--font-body); font-size: var(--t-sm); color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.header-phone { font-family: var(--font-display); font-weight: 500; color: var(--teal-deep); text-decoration: none; white-space: nowrap; }
.menu-button { display: none; }

@media (max-width: 1080px) {
  .header-phone { display: none; }
}
@media (max-width: 1023px) {
  .topbar-trust { display: none; }
  .menu-button {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); font: 500 1rem var(--font-display); color: var(--teal-deep); cursor: pointer;
  }
  .header-actions .btn { display: none; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--page); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 80px); overflow-y: auto; }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); gap: 0; }
  .main-nav a, .nav-toggle-sub { padding: 14px 8px; font-size: 1.125rem; width: 100%; text-align: left; border-bottom: 1px solid var(--line); border-radius: 0; }
  .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .sub-menu a { border-bottom: 0; padding: 10px 8px; }
  .nav-mobile-cta { display: block !important; padding-top: 16px; }
  .nav-mobile-cta .btn { width: 100%; }
}
.nav-mobile-cta { display: none; }

/* mobile bottom action bar */
.action-bar { display: none; }
@media (max-width: 720px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11,59,58,.08);
  }
  .action-bar .btn { min-height: 46px; padding: 10px 12px; font-size: 1rem; }
  body { padding-bottom: 76px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1.05fr .95fr; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; font-weight: 800; color: var(--gold); }
.hero .lead { margin-bottom: 28px; max-width: 34em; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; left: -20px; bottom: 24px; max-width: 290px;
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); font-size: var(--t-sm); line-height: 1.4;
}
.hero-badge strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--teal-deep); font-size: 1rem; }
@media (max-width: 900px) { .hero-badge { left: 12px; bottom: 12px; } }
.seal {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal); color: #fff;
}
.seal svg { width: 22px; height: 22px; }

.trust-row { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: var(--t-sm); color: var(--muted); }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.tick { width: 18px; height: 18px; flex: none; color: var(--teal); }

.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 16px; max-width: 40em; }
.breadcrumb { font-size: var(--t-sm); color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }

/* ---------- state checker ---------- */
.state-check {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-top: 28px; max-width: 560px;
}
.state-check label { font-family: var(--font-display); font-weight: 500; color: var(--teal-deep); }
.state-check select { flex: 1 1 180px; }
.state-result { flex-basis: 100%; font-size: var(--t-sm); min-height: 1.4em; }
.state-result.yes { color: var(--success); }
.state-result.no { color: #8a3b12; }

/* ---------- forms ---------- */
select, input[type="text"], input[type="email"], input[type="tel"], textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid #c9c4ad; border-radius: 8px; padding: 11px 12px; min-height: 46px; width: 100%;
}
select:focus, input:focus, textarea:focus { border-color: var(--teal); outline: 3px solid rgba(1, 93, 91, .18); outline-offset: 0; }
label { font-weight: 600; font-size: var(--t-sm); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.hint { font-size: var(--t-sm); color: var(--muted); font-weight: 400; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
.form-error { color: #9b2c10; font-size: var(--t-sm); }

/* ---------- path chooser (life stages) ---------- */
.paths { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.path {
  display: flex; flex-direction: column; gap: 8px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.path:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.path .path-q { font-family: var(--font-display); font-weight: 500; font-size: var(--t-lg); color: var(--teal-deep); line-height: 1.25; }
.path .path-a { font-size: var(--t-sm); color: var(--muted); }
.path .path-go { margin-top: auto; padding-top: 8px; font-family: var(--font-display); font-weight: 500; color: var(--teal); }

/* ---------- voice / transformation ---------- */
.voice { display: grid; gap: 20px; grid-template-columns: 1fr auto 1fr; align-items: center; }
@media (max-width: 760px) { .voice { grid-template-columns: 1fr; text-align: center; } .voice .voice-arrow { transform: rotate(90deg); justify-self: center; } }
.voice blockquote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.375rem, 1rem + 1.5vw, 2rem); line-height: 1.3; letter-spacing: -0.01em; }
.voice .before { color: #a9c3bf; }
.voice .after { color: #fff; }
.voice .after::first-letter { color: var(--pop); }
.voice-label { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--pop); margin-bottom: 10px; }
.voice-arrow { color: var(--pop); width: 40px; height: 40px; }

/* ---------- steps (a real sequence, so numbered) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 32px; position: relative; }
.steps li::before {
  content: counter(step); width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal-soft); color: var(--teal);
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; border: 1.5px solid var(--teal);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px; width: 2px; background: var(--line); }
.steps h3 { font-size: var(--t-lg); font-weight: 600; margin: 12px 0 6px; }
.steps .when { display: inline-block; font-size: var(--t-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold-soft); padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
.steps-h { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 28px; }
.steps-h li { grid-template-columns: 1fr; padding-bottom: 0; }
.steps-h li::after { display: none; }
.steps-h h3 { margin-top: 4px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: var(--t-xl); }
.card .text-link { margin-top: auto; padding-top: 6px; }
.card--teal { background: var(--teal-soft); border-color: #c9ddd9; }
.icon-dot { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.icon-dot svg { width: 22px; height: 22px; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.check-list li::before {
  content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.section--teal .check-list li::before { background-color: #e2c27a; }

/* ---------- certification ---------- */
.cert { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 340px) 1fr; align-items: start; }
@media (max-width: 820px) { .cert { grid-template-columns: 1fr; } }
.cert-doc { background: #fff; padding: 10px; border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(-1.2deg); max-width: 340px; }
.cert-doc img { border-radius: 4px; }
.cert-doc figcaption { font-size: var(--t-xs); color: var(--muted); padding: 10px 4px 2px; transform: rotate(1.2deg); }

/* ---------- testimonials ---------- */
.quotes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.quote .q-title { font-family: var(--font-display); font-weight: 600; font-size: var(--t-lg); color: var(--teal-deep); }
.quote p { color: var(--ink); }
.quote footer { margin-top: auto; font-size: var(--t-sm); color: var(--muted); }
.quote footer strong { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; color: var(--teal-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .faq-body { padding: 0 20px 20px; max-width: var(--measure); }
.faq .faq-body ul { margin: 10px 0; padding-left: 20px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: var(--t-sm); }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--font-display); font-weight: 600; color: var(--teal-deep); background: var(--teal-soft); font-size: .9375rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-family: var(--font-display); font-weight: 500; color: var(--teal-deep); }

/* ---------- glossary ---------- */
.glossary { display: grid; gap: 0; margin: 0; }
.glossary div { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-family: var(--font-display); font-weight: 600; color: var(--teal-deep); }
.glossary dt small { display: block; font-weight: 400; color: var(--gold-ink); font-size: 1.05rem; }
.glossary dd { margin: 0; }
@media (max-width: 600px) { .glossary div { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- licensed states ---------- */
.states-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 20px; }
.states-tools .field { flex: 1 1 260px; max-width: 420px; }
.state-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.state-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.state-list .st { font-family: var(--font-display); font-weight: 600; color: var(--teal-deep); display: block; }
.state-list .lic { font-size: var(--t-sm); color: var(--muted); }

/* ---------- multi-step form ---------- */
.stepper { display: flex; gap: 6px; margin-bottom: 24px; }
.stepper span { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.stepper span.done { background: var(--teal); }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: block; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; font-weight: 400; font-size: 1rem;
}
.choice span strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; color: var(--teal-deep); }
.choice input:checked + span { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 500; color: var(--teal-deep); margin-bottom: 6px; padding: 0; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- notes for the owner (visible only in the review build) ---------- */
.todo {
  border: 2px dashed #c79a2c; background: var(--warn-bg); border-radius: var(--radius);
  padding: 14px 16px; font-size: var(--t-sm); color: #5c4300;
}
.todo strong { font-family: var(--font-display); }

.callout { background: var(--gold-soft); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.callout h2, .callout h3 { margin-bottom: 10px; }

.prose { max-width: var(--measure); }
.prose h2 { margin: 48px 0 14px; font-size: 1.75rem; }
.prose h3 { margin: 32px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }

/* ---------- final CTA band ---------- */
.cta-band { background: var(--teal); color: #e8f1ef; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); display: grid; gap: 24px; grid-template-columns: 1fr auto; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe2de; margin-top: 10px; max-width: 36em; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-deep); color: #c9dcd8; margin-top: 0; font-size: var(--t-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); padding-block: 56px 40px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-top h2 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 14px; letter-spacing: .02em; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand img { width: 150px; margin-bottom: 16px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); padding-block: 24px 32px; display: grid; gap: 10px; font-size: var(--t-xs); line-height: 1.6; color: #a9c3bf; }
.footer-legal .legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ehl { display: inline-flex; gap: 8px; align-items: center; }
.ehl svg { width: 20px; height: 20px; }

/* =====================================================================
   Islamic art × fintech layer
   --pat-gold / --pat-faint are generated 8-point-star tiles (see pattern.js),
   appended by the build.
   ===================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h3 { font-size: var(--t-xl); font-weight: 500; }
.selectable { user-select: all; }
.label-like { font-weight: 600; font-size: var(--t-sm); }
.ar, [lang="ar"] { font-family: "Noto Kufi Arabic", "Geeza Pro", system-ui, sans-serif; font-weight: 400; color: var(--gold-ink); margin-left: 6px; font-size: 1.1em; }
.split--top { align-items: start; }

/* arch-shaped icon tile (mihrab silhouette) */
.arch-icon {
  width: 48px; height: 56px; flex: none; display: grid; place-items: end center; padding-bottom: 11px;
  border-radius: 24px 24px 8px 8px; background: var(--teal-soft); color: var(--teal);
  border: 1px solid #cfe1dd;
}
.arch-icon svg { width: 24px; height: 24px; }
.section--teal .arch-icon { background: rgba(255,255,255,.08); color: #f1d595; border-color: rgba(241,213,149,.3); }

/* hero */
.hero--home { position: relative; overflow: hidden; }
.hero--home::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 85% 30%, rgba(243, 198, 107, .22), transparent 70%), var(--pat-faint);
  background-size: auto, 88px 88px;
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 80%); mask-image: linear-gradient(90deg, transparent 25%, #000 80%);
}
.hero-visual { position: relative; max-width: 470px; justify-self: center; width: 100%; padding: 28px 0 40px; }
.hero-arch { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(11, 59, 58, .22)); }
.fin-card {
  position: absolute; background: rgba(255, 255, 255, .97); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 2px 4px rgba(11,59,58,.06), 0 16px 36px rgba(11,59,58,.16);
  padding: 14px 16px; font-size: .875rem; line-height: 1.35;
}
.fin-label { font-family: var(--font-display); font-weight: 500; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.fin-tag { font-size: .625rem; font-weight: 700; letter-spacing: .08em; padding: 2px 8px; border-radius: 99px; background: var(--pop); color: var(--teal-deep); }
.fin-card--glance { right: -18px; top: 22%; width: 248px; }
.fin-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fin-rows li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.fin-rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.fin-rows span { color: var(--muted); }
.fin-rows b { font-family: var(--font-display); font-weight: 500; color: var(--teal-deep); display: inline-flex; gap: 6px; align-items: center; text-align: right; }
.fin-rows b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2aa37a; flex: none; box-shadow: 0 0 0 3px rgba(42,163,122,.15); }
.fin-card--track { left: -24px; bottom: 6%; width: 230px; }
.fin-track { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; counter-reset: t; }
.fin-track li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: center; color: var(--muted); }
.fin-track li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.fin-track li.done { color: var(--ink); }
.fin-track li.done::before { background: var(--teal); border-color: var(--teal); box-shadow: inset 0 0 0 2px #fff; }
.fin-track li.now { color: var(--teal-deep); font-weight: 600; }
.fin-track li.now::before { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 3px, #fff 3.5px); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(173, 122, 0, .18); } }
@media (max-width: 1100px) { .fin-card--glance { right: 0; } .fin-card--track { left: 0; } }
@media (max-width: 480px) { .fin-card { position: relative; inset: auto; width: auto; margin-top: 12px; } .hero-visual { padding-bottom: 0; } }

/* proof strip */
.proof-strip { border-block: 1px solid var(--line); background: var(--surface); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid > div { padding: 20px 18px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.proof-grid > div:first-child { border-left: 0; padding-left: 0; }
.proof-grid b { font-family: var(--font-display); font-weight: 600; color: var(--teal-deep); font-size: 1.0625rem; }
.proof-grid span { font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 820px) { .proof-grid { grid-template-columns: 1fr 1fr; } .proof-grid > div:nth-child(3) { border-left: 0; padding-left: 0; } .proof-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* teal sections carry the pattern, very quietly */
.section--pattern { position: relative; overflow: hidden; isolation: isolate; }
.section--pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .13;
  background: var(--pat-gold); background-size: 84px 84px;
}
.section--pattern::after {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 120%; aspect-ratio: 2 / 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(243, 198, 107, .22), transparent);
}
.voice-note { text-align: center; margin-top: 36px; font-family: var(--font-display); font-weight: 500; color: #d9e8e4; }

/* murabaha 3-step flow (home) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.flow li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow); }
.flow li:nth-child(2) { margin-left: clamp(0px, 4vw, 40px); }
.flow li:nth-child(3) { margin-left: clamp(0px, 8vw, 80px); border-color: var(--teal); }
.flow-n { width: 52px; height: 52px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: #fff; background: var(--teal); border-radius: 26px 26px 8px 8px; }
.flow b { display: block; font-family: var(--font-display); font-weight: 600; color: var(--teal-deep); font-size: 1.125rem; }
.flow span { color: var(--muted); }

/* murabaha diagram (how it works) */
.murabaha-diagram { display: grid; gap: 0; justify-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; }
.murabaha-diagram::before { content: ""; position: absolute; inset: 0; background: var(--pat-faint); background-size: 72px 72px; opacity: .6; }
.md-node { position: relative; width: min(100%, 320px); text-align: center; padding: 16px; border-radius: 40px 40px 12px 12px; background: var(--page); border: 1.5px solid var(--line); }
.md-node--sukoon { background: var(--teal); border-color: var(--teal); color: #fff; }
.md-node--sukoon .md-k, .md-node--sukoon .md-v { color: #fff; }
.md-node--you { border-color: var(--gold); background: var(--gold-soft); }
.md-k { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--teal-deep); }
.md-v { font-size: var(--t-sm); color: var(--muted); }
.md-link { position: relative; height: 64px; display: grid; place-items: center; }
.md-link::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 50%; border-left: 2px dashed var(--gold); }
.md-link span { position: relative; background: var(--surface); padding: 2px 10px; font-size: var(--t-sm); color: var(--gold-ink); font-weight: 600; border-radius: 99px; border: 1px solid var(--line); }

.steps--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); column-gap: 40px; }
.steps--wide li::after { display: none; }

/* facts + Q&A lists */
.facts { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: var(--t-sm); color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-family: var(--font-display); color: var(--teal-deep); }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.qa { margin: 0; display: grid; gap: 16px; }
.qa dt { font-family: var(--font-display); font-weight: 600; color: var(--teal-deep); }
.qa dd { margin: 4px 0 0; }

.jump { display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-family: var(--font-display); }
.jump a:hover { border-color: var(--teal); }

.beliefs { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); background: rgba(255,255,255,.14); border-radius: var(--radius-lg); overflow: hidden; }
.beliefs > div { background: var(--teal-deep); padding: 28px; }
.beliefs h3 { font-size: 1.25rem; margin-bottom: 8px; }
.beliefs p { color: #c9dcd8; }

.contact-ways { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-bottom: 20px; }
.contact-way { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); }
.contact-way:hover { border-color: var(--teal); color: var(--ink); }
.contact-way svg { width: 24px; height: 24px; color: var(--teal); }
.contact-way b { font-family: var(--font-display); font-weight: 600; color: var(--teal-deep); font-size: 1.125rem; }
.contact-way span { color: var(--muted); font-size: var(--t-sm); overflow-wrap: anywhere; }

.mini-programs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.mini-program { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.mini-program:hover { border-color: var(--teal); color: var(--ink); }
.mini-program b { display: block; font-family: var(--font-display); font-weight: 600; color: var(--teal-deep); }
.mini-program span span { font-size: var(--t-sm); color: var(--muted); }
.program-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.faq--narrow { max-width: 860px; }

.start-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 900px) { .start-grid { grid-template-columns: 1fr; } }
.start-aside { position: sticky; top: 110px; }
.page-hero, .cta-band { position: relative; overflow: hidden; isolation: isolate; }
.page-hero::after {
  content: ""; position: absolute; right: -40px; top: -20px; width: 360px; height: 360px; z-index: -1;
  background: var(--pat-faint); background-size: 72px 72px; border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); mask-image: radial-gradient(closest-side, #000 40%, transparent);
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat-gold); background-size: 84px 84px; opacity: .12; }
.site-footer { position: relative; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat-gold); background-size: 84px 84px; opacity: .05; }

/* ---- refinements after first visual review ---- */
@media (min-width: 1100px) { .paths { grid-template-columns: repeat(5, 1fr); } }
.quote blockquote { margin: 0; }
.state-result:empty { display: none; }
.fin-card--glance { top: 44%; width: 262px; }
.fin-rows span, .fin-rows b { white-space: nowrap; }
.fin-card--track { bottom: 0; }
@media (max-width: 900px) { .hero-visual { max-width: 380px; } }

/* ---- Brand Kit alignment ---- */
.eyebrow { font-weight: 600; font-size: var(--t-xs); letter-spacing: .12em; }
.main-nav a, .nav-toggle-sub { font-size: .9375rem; font-weight: 500; }
.main-nav a[aria-current="page"], .has-sub.is-current > .nav-toggle-sub { font-weight: 600; }
.btn { font-weight: 600; font-size: 1rem; }
.lead { font-size: 1.125rem; }
.path .path-q { font-weight: 700; font-size: 1.0625rem; }
.flow b, .md-k, .proof-grid b, .quote .q-title, .contact-way b, .mini-program b, .facts dd, .qa dt, .faq summary, .glossary dt { font-weight: 600; }
.faq summary { font-size: 1rem; }
.steps .when { background: transparent; border: 1px solid var(--gold); color: var(--gold-ink); }
.section--teal .eyebrow { color: var(--pop); }
.hero-highlight { background: linear-gradient(transparent 62%, rgba(245, 184, 61, .45) 62%); padding: 0 .1em; }
.compliance { font-size: var(--t-xs); color: var(--muted); max-width: 70ch; }
.cta-band .compliance { color: #a9c3bf; }
.main-nav a, .nav-toggle-sub { white-space: nowrap; padding-inline: 10px; }
.main-nav > ul { gap: 0; }
.header-phone { display: none; } /* the phone number is always in the top bar */
@media (min-width: 1024px) and (max-width: 1120px) { .main-nav a, .nav-toggle-sub { padding-inline: 7px; font-size: .875rem; } .brand img { width: 128px; } }
.flow .flow-n { color: #fff; }

/* hero summary card: sits inside the bottom of the arch, centred */
.fin-card--glance { top: auto; right: auto; left: 50%; bottom: 64px; transform: translateX(-50%); width: min(84%, 330px); }
@media (max-width: 480px) { .fin-card.fin-card--glance { position: absolute; left: 50%; bottom: 20px; margin: 0; width: 88%; } .fin-card--glance .fin-rows li { font-size: .8125rem; } }

/* One text colour for all reading text; intro paragraphs differ by size only.
   Softer grey (--muted) is reserved for small print, captions and hints. */
.lead { color: var(--ink); }
.section--teal .lead { color: #e8f1ef; }
.stack > p + p, .stack > .lead + p { margin-top: 0; }

/* ---------- advisors ---------- */
.portrait { position: relative; overflow: hidden; flex: none; background: var(--teal-deep); border-radius: 999px 999px 18px 18px; display: grid; place-items: center; isolation: isolate; }
.portrait::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat-gold); background-size: 56px 56px; opacity: .22; }
.portrait::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; z-index: -1; background: radial-gradient(70% 90% at 50% 100%, rgba(245, 184, 61, .45), transparent 70%); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait--lg { width: min(100%, 260px); aspect-ratio: 4 / 5; box-shadow: 0 24px 40px rgba(12, 63, 63, .2); outline: 2px solid var(--gold); outline-offset: 6px; }
.portrait--md { width: 100%; aspect-ratio: 4 / 4.2; }
.monogram { font-family: var(--font-display); font-weight: 800; color: #fff; letter-spacing: .02em; font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); }
.portrait--md .monogram { font-size: 2.75rem; }
.advisor-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-bottom: 24px; }
.advisor-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.advisor-card-link { display: block; padding: 16px 16px 0; }
.advisor-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.advisor-card h3 { font-size: 1.25rem; font-weight: 700; }
.advisor-card h3 a { color: var(--teal-deep); text-decoration: none; }
.advisor-card h3 a:hover { text-decoration: underline; }
.advisor-role { font-weight: 500; color: var(--ink); }
.advisor-meta { font-size: var(--t-sm); color: var(--muted); margin-bottom: 12px; }
.advisor-filters { display: flex; gap: 16px; margin-bottom: 24px; max-width: 320px; }
.advisor-hero-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 720px) { .advisor-hero-grid { grid-template-columns: 1fr; } .advisor-hero .portrait--lg { width: 200px; } }
.advisor-verify { font-size: var(--t-sm); color: var(--muted); }
.advisor-verify a { font-weight: 600; }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; overflow-wrap: anywhere; }
.contact-list svg { color: var(--teal); margin-top: 4px; }
.advisor-contact { position: sticky; top: 110px; }
.advisor-chosen { background: var(--teal-soft); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; }
@media (min-width: 1024px) and (max-width: 1240px) { .main-nav a, .nav-toggle-sub { padding-inline: 6px; font-size: .875rem; } }
.advisor-hero-grid { grid-template-columns: 240px 1fr; }
.advisor-hero .portrait--lg { width: 240px; }
@media (max-width: 720px) { .advisor-hero-grid { grid-template-columns: 1fr; } .advisor-hero .portrait--lg { width: 180px; } }
.advisor-card-link { text-decoration: none; }
.advisor-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.advisor-card .btn-row { flex-wrap: nowrap; gap: 10px; }
.advisor-card .btn-sm { padding: 8px 16px; }
@media (max-width: 360px) { .advisor-card .btn-row { flex-wrap: wrap; } }

/* Text size rule: the larger intro text is used only at the top of a page
   (page heroes). Inside sections every paragraph is the same size. */
body { font-size: 1.0625rem; }                 /* 17px body */
.section .lead { font-size: 1.0625rem; line-height: 1.7; }
.hero .lead, .page-hero .lead { font-size: 1.1875rem; }

/* =====================================================================
   BRAND B · Fresh & Vibrant (chosen Nov 2026)
   One strong colour: teal. Gold is the accent (buttons + one highlight).
   Bricolage Grotesque for headlines, Hanken Grotesk for reading.
   No arches, stars or geometric patterns as decoration.
   This layer overrides the earlier Brand Kit styles above.
   ===================================================================== */
:root {
  --teal: #00857F;          /* Bright Teal: the one strong colour (blocks, links, icons) */
  --teal-deep: #003D3A;     /* Deep Teal: headlines, footer, text on gold */
  --teal-soft: #E3F4F0;     /* Mist: reading sections, chips, tints */
  --lagoon: #12B5A8;        /* illustrations and charts only, never text */
  --gold: #FFC24B;          /* Sunrise Gold: primary buttons, one highlight per heading */
  --gold-ink: #8C6516;      /* gold when it has to be read as text */
  --pop: #FFC24B;
  --gold-soft: #FFF3D6;
  --page: #FFFFFF;
  --surface: #FFFFFF;
  --sand: #E3F4F0;
  --ink: #1C1C1C;
  --muted: #4A5553;
  --line: #D6E9E4;
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-voice: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --t-3xl: clamp(2.6rem, 1.6rem + 4.2vw, 5.25rem);
  --t-2xl: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(0, 61, 58, .06), 0 14px 32px rgba(0, 61, 58, .10);
}
body { background: var(--page); }
h1, h2, h3, h4 { color: var(--teal-deep); }
h1 { font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; }
h2 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h3 { font-weight: 700; letter-spacing: -0.015em; }
:focus-visible { outline: 3px solid var(--teal-deep); }
.section--teal :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .topbar :focus-visible { outline-color: var(--gold); }

/* patterns, arches and the 8-point star are retired */
.hero--home::before, .section--pattern::before, .section--pattern::after, .page-hero::after,
.cta-band::before, .site-footer::before, .murabaha-diagram::before, .portrait::before { display: none; }
.eyebrow::before { display: none; }

/* eyebrow becomes a mint chip */
.eyebrow {
  align-self: flex-start; width: fit-content; padding: 6px 14px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-deep);
  font-family: var(--font-body); font-weight: 700; font-size: .875rem; letter-spacing: .02em; text-transform: none;
}
.section--sand .eyebrow, .page-hero .eyebrow { background: #fff; }
.section--teal .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.section-head.center .eyebrow { align-self: center; }

/* the gold highlighter: one word per headline */
.hero h1 em, .hero-highlight {
  font-style: normal; color: inherit; padding: 0 .08em;
  background: linear-gradient(transparent 58%, var(--gold) 58%, var(--gold) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* buttons: gold primary, deep-teal secondary */
.btn { font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; min-height: 52px; padding: 14px 26px; }
.btn-primary { background: var(--gold); color: var(--teal-deep); }
.btn-primary:hover { background: #FFD166; color: var(--teal-deep); }
.btn-secondary { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }
.btn-secondary:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.section--teal .btn-secondary, .on-dark .btn-secondary, .cta-band .btn-secondary { background: #fff; color: var(--teal-deep); border-color: #fff; }
.section--teal .btn-secondary:hover, .on-dark .btn-secondary:hover, .cta-band .btn-secondary:hover { background: var(--teal-soft); color: var(--teal-deep); }
.btn-sm { min-height: 44px; padding: 9px 18px; font-size: 1rem; }
.text-link { font-family: var(--font-body); font-weight: 700; }

/* header */
.topbar { background: var(--teal-deep); color: #D8F3EE; }
.site-header { background: rgba(255, 255, 255, .96); border-bottom-color: var(--line); }
.main-nav a, .nav-toggle-sub { font-family: var(--font-body); font-weight: 600; color: var(--teal-deep); }
.main-nav a[aria-current="page"], .has-sub.is-current > .nav-toggle-sub { box-shadow: inset 0 -3px 0 var(--gold); }
.menu-button { font-family: var(--font-body); font-weight: 700; }

/* home hero: a confident teal block with a giant logo crop */
.hero--home { padding-block: clamp(32px, 5vw, 72px) clamp(40px, 6vw, 88px); }
.hero--home .eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { color: var(--ink); }
.hero-visual { max-width: 560px; padding: 0; justify-self: stretch; }
.hero-panel {
  position: relative; overflow: hidden; border-radius: 32px; background: var(--teal);
  aspect-ratio: 4 / 4.6; width: 100%;
}
.hero-panel-logo { position: absolute; width: 190%; max-width: none; left: -8%; top: 10%; opacity: .16; }
[dir="rtl"] .hero-panel-logo { left: auto; right: -8%; }
[dir="rtl"] .hero-panel-dot { right: auto; left: 28px; }
.hero-panel-dot { position: absolute; right: 28px; top: 28px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); }
.fin-card { border-color: transparent; border-radius: 20px; box-shadow: 0 2px 4px rgba(0,61,58,.06), 0 22px 44px rgba(0,61,58,.22); }
.fin-label { font-family: var(--font-body); font-weight: 700; color: var(--teal-deep); text-transform: none; letter-spacing: 0; font-size: .9375rem; }
.fin-rows b { font-family: var(--font-body); font-weight: 700; }
.fin-card--glance { bottom: 36px; }
@media (max-width: 900px) { .hero-visual { max-width: 460px; justify-self: center; } }
@media (max-width: 480px) { .hero-panel { aspect-ratio: 4 / 3.6; } }

/* proof strip */
.proof-strip { background: var(--teal-soft); border-block: 0; }
.proof-grid > div { border-left-color: #C3E2DB; }
.proof-grid b { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }

/* sections */
.section--sand { background: var(--teal-soft); }
.section--teal { background: var(--teal); color: #fff; }
.section--teal h2, .section--teal h3 { color: #fff; }
.section--teal .lead, .section--teal p { color: #fff; }
.section--teal .check-list li::before { background-color: var(--teal-deep); }
.voice blockquote { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); line-height: 1.1; }
.voice .before { color: rgba(255,255,255,.72); }
.voice .after { color: #fff; }
.voice .after::first-letter { color: inherit; }
.voice-label { font-family: var(--font-body); color: var(--gold); font-weight: 700; letter-spacing: .04em; }
.voice-arrow { color: var(--gold); }
.voice-note { color: #fff; font-family: var(--font-body); }
.beliefs { background: rgba(255,255,255,.22); }
.beliefs > div { background: var(--teal); }
.beliefs p { color: #fff; }

/* icon tiles: rounded squares, no arches */
.arch-icon { width: 52px; height: 52px; padding: 0; place-items: center; border-radius: 16px; background: var(--teal-soft); border: 0; color: var(--teal); }
.section--sand .arch-icon { background: #fff; }
.section--teal .arch-icon { background: rgba(255,255,255,.16); color: #fff; }
.path { border-radius: var(--radius-lg); border-color: var(--line); }
.path:hover { border-color: var(--teal); }
.path .path-q { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.25rem; }
.path .path-go { font-family: var(--font-body); font-weight: 700; }

/* murabaha flow + diagram */
.flow li { border-color: transparent; box-shadow: var(--shadow); }
.flow li:nth-child(3) { border-color: var(--teal); }
.flow-n { border-radius: 16px; background: var(--teal); font-family: var(--font-display); font-weight: 800; }
.flow b { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.015em; }
.md-node { border-radius: 20px; background: #fff; }
.md-node--sukoon { background: var(--teal); }
.md-node--you { background: var(--gold-soft); border-color: var(--gold); }
.md-k { font-family: var(--font-display); font-weight: 800; }
.md-link::before { border-left-color: var(--teal); }
.murabaha-diagram { background: var(--teal-soft); border: 0; }
.md-link span { background: #fff; color: var(--teal-deep); }

/* steps */
.steps li::before { background: var(--teal); color: #fff; border: 0; font-family: var(--font-display); font-weight: 800; }
.steps .when { background: #fff; border: 0; color: var(--teal-deep); font-family: var(--font-body); letter-spacing: .02em; text-transform: none; font-size: .8125rem; }
.section:not(.section--sand) .steps .when { background: var(--teal-soft); }

/* cards, quotes, faq, forms */
.card { border-radius: var(--radius-lg); }
.card--teal { background: var(--teal-soft); border-color: transparent; }
.icon-dot { border-radius: 16px; }
.quote { border: 0; box-shadow: var(--shadow); }
.quote .q-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.375rem; line-height: 1.15; }
.faq details { border-radius: 16px; }
.faq summary { font-family: var(--font-body); font-weight: 700; color: var(--teal-deep); }
.faq summary::after { border-color: var(--teal); }
select, input[type="text"], input[type="email"], input[type="tel"], textarea { border-color: #B9D6CF; border-radius: 12px; }
select:focus, input:focus, textarea:focus { border-color: var(--teal); outline-color: rgba(0, 133, 127, .2); }
.choice span { border-radius: 16px; }
.choice span strong, legend { font-family: var(--font-display); font-weight: 700; }
.choice input:focus-visible + span { outline-color: var(--teal-deep); }
.state-check { border-color: var(--line); border-radius: 16px; }
.state-check label { font-family: var(--font-body); font-weight: 700; }
thead th { font-family: var(--font-body); font-weight: 700; }
.callout { background: var(--teal-soft); }
.jump a { font-family: var(--font-body); font-weight: 600; }
.jump a:hover { border-color: var(--teal); background: var(--teal-soft); }
.cert-doc { border-radius: 16px; }

/* page heroes: a mint band */
.page-hero { background: var(--teal-soft); border-bottom: 0; }

/* CTA band: the big teal block, gold button */
.cta-band { background: var(--teal); border-radius: 32px; }
.cta-band p { color: #fff; }
.cta-band .compliance { color: #E3F4F0; }

/* footer */
.site-footer { background: var(--teal-deep); color: #D8F3EE; }
.footer-legal { color: #B9D6CF; }
.footer-top h2 { font-family: var(--font-body); font-weight: 700; }

/* advisors: rounded portraits instead of arches */
.portrait { border-radius: 28px; background: var(--teal); }
.portrait::after { background: radial-gradient(70% 90% at 50% 100%, rgba(255, 194, 75, .35), transparent 70%); }
.portrait--lg { outline: 0; box-shadow: var(--shadow); }
.monogram { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
.advisor-card { border: 0; box-shadow: var(--shadow); }
.advisor-card h3 { font-family: var(--font-display); font-weight: 800; }

/* =====================================================================
   Languages
   ===================================================================== */
/* language menu (top bar) */
.topbar-links { display: inline-flex; align-items: center; gap: 0; flex-wrap: wrap; }
.lang-switch { position: relative; margin-inline-start: 16px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 10px;
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  font: 500 .875rem var(--font-body); cursor: pointer;
}
.lang-toggle:hover { background: rgba(255,255,255,.18); }
.lang-toggle::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-inline-start: 2px; }
.lang-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 80; min-width: 210px;
  list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
}
.topbar .lang-list a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 1rem; }
.topbar .lang-list a:hover { background: var(--teal-soft); text-decoration: none; }
.topbar .lang-list a[aria-current] { color: var(--teal); font-weight: 600; background: var(--teal-soft); }
.lang-list a span { font-size: .8125rem; color: var(--muted); font-family: var(--font-body); }
@media (max-width: 1023px) { .topbar-email { display: none; } .topbar .wrap { align-items: center; } }

/* "EN" marker on links that lead to an English-only page */
.en-tag { display: inline-block; margin-inline-start: 6px; padding: 0 5px; border: 1px solid currentColor; border-radius: 4px; font: 600 .625rem/1.5 var(--font-body); letter-spacing: .04em; text-decoration: none; opacity: .7; vertical-align: middle; }

/* script fonts: the Latin brand font stays first for Latin letters and numbers; the
   script font (set per page in --font-script) covers Arabic, Urdu, Farsi and Bengali */
html[lang="ar"], html[lang="ur"], html[lang="fa"], html[lang="bn"], [lang="ar"], [lang="ur"], [lang="fa"], [lang="bn"] {
  --font-display: "Bricolage Grotesque", var(--font-script), system-ui, sans-serif;
  --font-body: "Hanken Grotesk", var(--font-script), system-ui, sans-serif;
  --font-voice: "Bricolage Grotesque", var(--font-script), system-ui, sans-serif;
}
/* joined scripts must never be letter-spaced */
:is([lang="ar"], [lang="ur"], [lang="fa"], [lang="bn"]) :is(h1, h2, h3, h4, .eyebrow, .voice-label, .fin-label, .btn, p, span, a, li, label, legend) { letter-spacing: 0; }
:is([lang="ar"], [lang="ur"], [lang="fa"], [lang="bn"]) .eyebrow, :is([lang="ar"], [lang="ur"], [lang="fa"], [lang="bn"]) .fin-label, :is([lang="ar"], [lang="ur"], [lang="fa"], [lang="bn"]) .voice-label { text-transform: none; }
[lang="ar"] body, html[lang="ar"] body, html[lang="fa"] body { line-height: 1.9; }
html[lang="bn"] body { line-height: 1.85; }
html[lang="ar"] h1, html[lang="fa"] h1 { line-height: 1.35; }
html[lang="bn"] h1, html[lang="bn"] h2 { line-height: 1.35; }
/* Urdu Nastaliq is tall: give it more room */
html[lang="ur"] body { line-height: 2.25; }
html[lang="ur"] :is(h1, h2, h3, h4) { line-height: 1.75; font-weight: 700; }
html[lang="ur"] .hero h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
html[lang="ur"] .btn { line-height: 1.9; padding-block: 8px; }

/* right-to-left (Arabic, Urdu, Farsi): mirror direction-dependent details */
[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .sub-menu { left: auto; right: 0; }
[dir="rtl"] .steps li:not(:last-child)::after { left: auto; right: 27px; }
[dir="rtl"] .flow li:nth-child(2) { margin-left: 0; margin-right: clamp(0px, 4vw, 40px); }
[dir="rtl"] .flow li:nth-child(3) { margin-left: 0; margin-right: clamp(0px, 8vw, 80px); }
[dir="rtl"] .proof-grid > div { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .proof-grid > div:first-child { border-right: 0; padding-right: 0; padding-left: 18px; }
@media (max-width: 820px) { [dir="rtl"] .proof-grid > div:nth-child(3) { border-right: 0; padding-right: 0; } }
[dir="rtl"] .page-hero::after { right: auto; left: -40px; }
[dir="rtl"] .hero--home::before { -webkit-mask-image: linear-gradient(270deg, transparent 25%, #000 80%); mask-image: linear-gradient(270deg, transparent 25%, #000 80%); }
[dir="rtl"] .arrow, [dir="rtl"] .voice-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .voice-arrow { transform: scaleX(-1); }
@media (max-width: 760px) { [dir="rtl"] .voice .voice-arrow { transform: rotate(90deg); } }
[dir="rtl"] .faq summary { padding: 18px 20px 18px 56px; }
[dir="rtl"] .faq summary::after { right: auto; left: 22px; }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }
[dir="rtl"] .nav-toggle-sub::after { margin-left: 0; margin-right: 8px; }
@media (max-width: 1023px) { [dir="rtl"] .main-nav a, [dir="rtl"] .nav-toggle-sub { text-align: right; } [dir="rtl"] .sub-menu { padding: 0 12px 8px 0; } }
[dir="rtl"] .menu-button { margin-left: 0; margin-right: auto; }

/* keep the desktop menu bar compact: "EN" markers show in dropdowns, the phone menu and the footer */
@media (min-width: 1024px) { .main-nav > ul > li > a .en-tag { display: none; } }
html[lang="ur"] .hero .eyebrow, html[lang="ur"] .page-hero .eyebrow, html[lang="ur"] .section-head .eyebrow { margin-bottom: 14px; }
html[lang="ur"] h1 { padding-top: 6px; }

/* If a language's menu is too long for the screen, the page script adds
   .nav-compact and the header switches to the Menu button (same as tablets). */
html.nav-compact .topbar-trust { display: none; }
html.nav-compact .menu-button { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 500 1rem var(--font-display); color: var(--teal-deep); cursor: pointer; }
html.nav-compact .header-actions .btn { display: none; }
html.nav-compact .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--page); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 80px); overflow-y: auto; }
html.nav-compact .main-nav.is-open { display: block; }
html.nav-compact .main-nav > ul { flex-direction: column; max-width: var(--wrap); margin-inline: auto; padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); gap: 0; }
html.nav-compact .main-nav a, html.nav-compact .nav-toggle-sub { padding: 14px 8px; font-size: 1.125rem; width: 100%; text-align: start; border-bottom: 1px solid var(--line); border-radius: 0; }
html.nav-compact .main-nav > ul > li > a .en-tag { display: inline-block; }
html.nav-compact .sub-menu { position: static; box-shadow: none; border: 0; padding-block: 0 8px; padding-inline: 12px 0; min-width: 0; }
html.nav-compact .sub-menu a { border-bottom: 0; padding: 10px 8px; }
html.nav-compact .nav-mobile-cta { display: block !important; padding-top: 16px; }
html.nav-compact .nav-mobile-cta .btn { width: 100%; }
@media (min-width: 1024px) { html.nav-compact .header-actions .btn { display: inline-flex; } html.nav-compact .menu-button { margin-inline-start: 0; } html.nav-compact .header-actions { margin-inline-start: auto; } }
/* summary card: long translated values wrap inside the card */
.fin-rows span, .fin-rows b { white-space: normal; }
.fin-rows li { align-items: baseline; }
.fin-rows b { text-align: end; flex: 0 1 auto; }
.fin-rows span { flex: 1 1 auto; }
/* step numbers in the script's own digits where the text uses them */
html[lang="fa"] .steps li::before { content: counter(step, persian); }
html[lang="bn"] .steps li::before { content: counter(step, bengali); }

/* Toll-free number in the top bar */
.topbar-tollfree { font-weight: 700; color: #FFC24B !important; letter-spacing: .02em; }
@media (max-width: 1023px) { .topbar-local { display: none; } }

/* Nine menu tabs (with Calculator and For agents): slightly tighter tab padding so they fit on laptops */
.main-nav a, .nav-toggle-sub { padding-inline: 7px; }
.header-row { gap: 16px; }

/* Long languages: tighter menu before falling back to the Menu button (set by site.js) */
.cta-short { display: none; }
html.nav-tight .cta-long { display: none; }
html.nav-tight .cta-short { display: inline; }
html.nav-tight .header-row { gap: 12px; }
html.nav-tight .main-nav a, html.nav-tight .nav-toggle-sub { font-size: .85rem; padding-inline: 4px; }
