/* Elite Financial design system. Tokens first; components below. Documented in
   Task Management System/modules/Texas-Elite-Financial/DESIGN_SYSTEM.md */
:root {
  --ink: #0f1e33;          /* navy: headings, primary buttons, dark bands */
  --ink-2: #1b2e4a;        /* navy hover / dark band surface */
  --text: #3e4a5c;         /* body text (9.0:1 on white) */
  --muted: #5d6879;        /* secondary text (5.9:1 on white) */
  --line: #e2e6ec;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-tint: #eef2f7;
  --gold: #d4a24c;         /* accent on dark only */
  --gold-text: #8a5f12;    /* accent text on light (5.3:1) */
  --link: #1f4f8a;
  --focus: #2f6fd0;
  --ok: #1d6b45;
  --note-bg: #fbf6ec;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6.5rem;
  --radius: 10px; --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15,30,51,.06), 0 8px 24px rgba(15,30,51,.06);
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 var(--s4); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 4.6vw + .5rem, 3.9rem); }
h2 { font-size: clamp(1.8rem, 2.4vw + .6rem, 2.6rem); }
h3 { font: 650 1.2rem/1.3 var(--sans); }
p { margin: 0 0 var(--s4); }
.lead { font-size: clamp(1.1rem, .6vw + 1rem, 1.3rem); color: var(--text); max-width: 40em; }
.eyebrow { display: inline-block; font: 650 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: var(--s4); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: var(--s3) var(--s4); z-index: 100; }
.skip:focus { left: var(--s4); top: var(--s4); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Preview ribbon (removed at launch) */
.preview-bar { background: var(--ink); color: #fff; font-size: .85rem; text-align: center; padding: .4rem var(--s4); }
.preview-bar strong { color: var(--gold); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s5); min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font: 600 1.35rem/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand-name span { color: var(--gold-text); }
.site-nav { display: flex; align-items: center; gap: var(--s5); }
.site-nav ul { display: flex; gap: var(--s5); list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; white-space: nowrap; }
.site-nav .nav-account { color: #fff; white-space: nowrap; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--gold-text); }
.site-nav ul a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .5em; }
.nav-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; font: 650 1rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold); color: var(--ink); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.text-link { font-weight: 650; text-decoration: none; color: var(--ink); }
.text-link::after { content: " \2192"; }
.text-link:hover { color: var(--gold-text); }

/* Sections */
.section { padding: var(--s9) 0; }
.section-sm { padding: var(--s8) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #cfd8e5; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--gold); }
.section-head { max-width: 720px; margin-bottom: var(--s7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Hero */
.hero { padding: var(--s8) 0 var(--s9); background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: var(--s8); align-items: center; }
.hero h1 { max-width: 13em; }
.page-hero { padding: var(--s8) 0 var(--s7); background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 16em; }
.breadcrumb { font-size: .9rem; margin-bottom: var(--s4); color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* Cards */
.grid { display: grid; gap: var(--s5); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s6); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card p { flex: 1; }
.card-flat { box-shadow: none; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-tint); display: grid; place-items: center; margin-bottom: var(--s4); color: var(--ink); }
.card .icon svg { width: 22px; height: 22px; }
.badge { display: inline-block; align-self: flex-start; font: 650 .75rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: .4rem .6rem; border-radius: 999px; margin-bottom: var(--s4); }
.badge-now { background: #e6f2ec; color: var(--ok); }
.badge-future { background: var(--note-bg); color: var(--gold-text); }
.panel { background: var(--ink); color: #d5deea; border-radius: var(--radius-lg); padding: var(--s6); box-shadow: var(--shadow); }
.panel h2, .panel h3 { color: #fff; }
.panel .eyebrow { color: var(--gold); }
.panel ul { list-style: none; padding: 0; margin: 0 0 var(--s5); }
.panel li { padding: var(--s3) 0; border-top: 1px solid rgba(255,255,255,.12); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.steps li { counter-increment: step; padding-top: var(--s5); border-top: 2px solid var(--ink); }
.steps li::before { content: "0" counter(step); display: block; font: 600 1.1rem/1 var(--serif); color: var(--gold-text); margin-bottom: var(--s3); }

/* Notices */
.notice { background: var(--note-bg); border-left: 4px solid var(--gold); padding: var(--s4) var(--s5); border-radius: 0 var(--radius) var(--radius) 0; color: #4a3a17; font-size: .97rem; }
.notice strong { color: #3a2c0f; }
.section-dark .notice { background: rgba(255,255,255,.06); color: #d5deea; }
.section-dark .notice strong { color: #fff; }
.tbc { display: inline-block; background: #fff4d6; color: #6b4a07; border: 1px dashed #c79a3a; border-radius: 6px; padding: 0 .4rem; font-size: .9em; }

/* Prose */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.75rem; margin-top: var(--s7); }
.prose h3 { margin-top: var(--s6); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 var(--s4); }
.prose li { margin-bottom: var(--s2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: var(--s3) 0 var(--s3) 2rem; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 1rem; height: .5rem; border-left: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text); transform: rotate(-45deg); }

/* FAQ */
.faq-group { margin-bottom: var(--s7); }
.faq-group h2 { font-size: 1.6rem; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; list-style: none; padding: var(--s5) 2.5rem var(--s5) 0; font-weight: 650; color: var(--ink); position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--sans); color: var(--gold-text); }
details.faq[open] summary::after { content: "\2212"; }
details.faq .answer { padding: 0 0 var(--s5); max-width: 720px; }

/* Forms */
.form { display: grid; gap: var(--s4); }
.field label { display: block; font-weight: 650; color: var(--ink); margin-bottom: var(--s2); }
.field .hint { font-size: .88rem; color: var(--muted); margin-top: var(--s1); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #c9d1dc; border-radius: var(--radius); padding: .75rem .9rem; min-height: 48px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); outline: 3px solid rgba(47,111,208,.2); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.hp { position: absolute; left: -5000px; }
.form-note { font-size: .9rem; color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.contact-list .label { display: block; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; }

/* Article cards */
.article-card { text-decoration: none; color: inherit; }
.article-card:hover h3 { color: var(--gold-text); }
.coming { color: var(--muted); }

/* Footer */
.site-footer { background: #0b1626; color: #aebbd0; padding: var(--s8) 0 var(--s6); font-size: .95rem; }
.site-footer a { color: #dbe3ef; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); padding-bottom: var(--s7); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid h2 { font: 650 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s4); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: var(--s3); }
.site-footer .brand { color: #fff; margin-bottom: var(--s4); }
.site-footer .brand-name span { color: var(--gold); }
.site-footer .tbc { background: transparent; color: #e9c983; border-color: #8a6a2a; }
.footer-legal { padding-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); justify-content: space-between; font-size: .88rem; }
.footer-legal ul { display: flex; gap: var(--s5); list-style: none; margin: 0; padding: 0; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: var(--s6); }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem; font: 650 .95rem/1 var(--sans); color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; }
  .js .site-nav { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: var(--s4) var(--s5) var(--s5); box-shadow: var(--shadow); }
  .js .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .nav-account { margin-top: var(--s4); }
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav { position: static; box-shadow: none; border: 0; padding: 0 0 var(--s4); }
  .no-js .header-inner { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .section { padding: var(--s8) 0; }
  .hero { padding: var(--s7) 0 var(--s8); }
  .grid-2, .row-2, .footer-grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .card, .panel { padding: var(--s5); }
  .brand-name { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .2s ease, box-shadow .2s ease; }
  a.card:hover { transform: translateY(-2px); }
}
@media print { .site-header, .site-footer, .preview-bar { display: none; } }
