/* Blackgem Funding — site styles. No external fonts, no trackers.
   Look: "Warm & friendly" (cream + terracotta), chosen 11/18/2026. Its colors and fonts are set in the
   THEME section at the end of this file, which overrides the base values above. */

:root {
  --ink: #0c0d10;
  --ink-2: #15171c;
  --ink-3: #1f2229;
  --paper: #f7f5f0;
  --white: #ffffff;
  --text: #1a1c21;
  --muted: #565b64;
  --muted-on-dark: #b4b8c0;
  --line: #e4e0d6;
  --line-dark: #2c3038;
  --gem: #12775a;          /* emerald — buttons, links */
  --gem-dark: #0d5c45;
  --gem-light: #5cd3a6;    /* emerald on dark backgrounds */
  --gem-tint: #e6f3ee;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(12, 13, 16, .06), 0 8px 24px rgba(12, 13, 16, .08);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; scroll-padding-bottom: 84px; -webkit-text-size-adjust: 100%; }
/* scroll-padding-bottom keeps keyboard-focused items clear of the host's 'Powered by Netlify' badge (fixed, bottom-right, 64px tall). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}

img, svg { display: block; max-width: 100%; }

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

/* Focus ring: dark green on light areas, light green on dark areas (3:1 or better either way). */
:focus-visible { outline: 3px solid var(--gem-dark); outline-offset: 2px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .section-dark :focus-visible,
.site-footer :focus-visible, .doc-hero :focus-visible { outline-color: var(--gem-light); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gem); margin-bottom: .9rem;
}
.on-dark .eyebrow { color: var(--gem-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 15px 22px; border-radius: 999px; border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gem); color: var(--white); }
.btn-primary:hover { background: var(--gem-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 13, 16, .94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font-family: var(--serif); font-size: 1.28rem; letter-spacing: .16em; font-weight: 600; }
.brand-name span { font-size: .64rem; letter-spacing: .42em; color: var(--muted-on-dark); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #d9dce1; text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--white); }
.nav .btn { padding: 11px 18px; font-size: .92rem; color: var(--white); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-dark); color: var(--white);
  border-radius: 10px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 8px 20px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .nav .btn { margin-top: 14px; border-bottom: 0; padding: 15px 18px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(18, 119, 90, .28), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(18, 119, 90, .14), transparent 60%),
    var(--ink);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px;
  align-items: center; padding: 88px 0 96px;
}
.hero h1 { color: var(--white); max-width: 17ch; }
.hero .lead { font-size: 1.2rem; color: #d3d6dc; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted-on-dark); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--gem-light); flex: none; }

.page-one {
  background: var(--paper); color: var(--text); border-radius: 18px; padding: 30px 30px 26px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45); position: relative;
}
.page-one::before {
  content: ""; position: absolute; inset: 10px -10px -10px 10px; z-index: -1;
  border-radius: 18px; background: rgba(255, 255, 255, .08);
}
.page-one-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--gem-tint); color: var(--gem-dark); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}
.page-one h2 { font-size: 1.45rem; margin-bottom: 16px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist svg { width: 22px; height: 22px; color: var(--gem); margin-top: 2px; }
.page-one-foot { margin: 16px 0 0; font-size: .92rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--ink-2); color: #e7e9ec; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.section-dark .section-head p { color: var(--muted-on-dark); }
@media (max-width: 700px) { .section { padding: 68px 0; } .section-head { margin-bottom: 34px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; counter-increment: step; }
.step::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--white);
  font: 600 1.05rem/1 var(--serif); margin-bottom: 16px;
}
.step p { color: var(--muted); margin: 0; font-size: .98rem; }
.after-note {
  margin-top: 26px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  background: var(--gem-tint); border-radius: var(--radius); padding: 22px 24px;
}
.after-note svg { width: 28px; height: 28px; color: var(--gem-dark); }
.after-note p { margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Terms cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: var(--paper); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--gem-light);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.cost-note { margin: 28px 0 0; color: var(--muted); font-size: .95rem; max-width: 52rem; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Attorneys */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { border: 1px solid var(--line-dark); background: var(--ink-3); border-radius: var(--radius); padding: 30px; }
.panel h3 { margin-bottom: 14px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 9px 0; color: #d6d9de; }
.ticks svg { width: 20px; height: 20px; margin-top: 3px; }
.ticks.yes svg { color: var(--gem-light); }
.ticks.no svg { color: #f08a7e; }
.payoff-box {
  margin-top: 22px; border-radius: var(--radius); padding: 26px 30px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(120deg, rgba(18, 119, 90, .35), rgba(18, 119, 90, .12)); border: 1px solid rgba(92, 211, 166, .3);
}
.payoff-box h3 { margin: 0 0 4px; font-size: 1.2rem; }
.payoff-box p { margin: 0; color: #d6d9de; }
.payoff-box .btn-ghost { white-space: nowrap; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } .panel { padding: 24px; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-wrap .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 0 22px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 10px; } .faq-wrap .section-head { position: static; } }

/* Apply */
.apply-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 12px 0; }
.contact-list .ci {
  width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--gem-light);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-list svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.contact-list a, .contact-list address { font-style: normal; color: var(--text); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--gem); }
.who { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.who h3 { font-size: 1.1rem; }
.who ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.who li { margin: 4px 0; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--white);
  border: 1.5px solid #857f72; border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--gem-dark); outline-offset: 1px; border-color: var(--gem); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.field .error { color: #b3261e; font-size: .88rem; min-height: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer;
  border: 1.5px solid #857f72; border-radius: 999px; padding: 9px 16px;
}
.radio-row input { accent-color: var(--gem); width: 20px; height: 20px; margin: 0; }
.radio-row label:has(input:checked) { border-color: var(--gem); background: var(--gem-tint); }
.no-attorney { display: none; background: #fff6e5; border: 1px solid #f0d49a; border-radius: 10px; padding: 12px 14px; font-size: .95rem; }
.no-attorney.show { display: block; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .93rem; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--gem); }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form-status { display: none; border-radius: 12px; padding: 16px 18px; margin-top: 18px; }
.form-status.show { display: block; }
.form-status.ok { background: var(--gem-tint); color: var(--gem-dark); }
.form-status.err { background: #fdecea; color: #8c1d18; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 960px) { .apply-wrap { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 24px 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: 64px 0 40px; font-size: .93rem; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line-dark); }
.site-footer .footer-heading { color: var(--white); font-family: var(--sans); font-size: .8rem; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #d9dce1; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.footer-brand p { margin-top: 16px; max-width: 30rem; }
.legal { padding-top: 26px; font-size: .84rem; line-height: 1.6; }
.legal p { margin: 0 0 .8em; }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Privacy page ---------- */
.doc-hero { background: var(--ink); color: var(--white); padding: 64px 0 52px; }
.doc-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.doc-hero p { color: var(--muted-on-dark); margin: 0; }
.doc { max-width: 760px; padding: 56px 0 88px; }
.doc h2 { font-size: 1.5rem; margin-top: 1.8em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }

/* Very small screens (and 400% zoom): keep the header on one line. */
@media (max-width: 380px) {
  .header-inner { gap: 10px; }
  .brand { gap: 9px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-name strong { font-size: 1.05rem; letter-spacing: .12em; }
  .brand-name span { letter-spacing: .32em; }
  .site-header .btn { white-space: nowrap; padding: 10px 14px !important; }
}

/* =====================================================================
   THEME: Warm & friendly
   ===================================================================== */

/* Shared overrides for the light design options. Each option file sets the colors and fonts. */

h1, h2, h3 { font-weight: var(--heading-weight, 600); letter-spacing: var(--heading-tracking, -.01em); }
.btn { border-radius: var(--btn-radius, 999px); }
.step, .card, .form-card, .who, .panel, .after-note, .payoff-box, .page-one { border-radius: var(--radius); }

/* Header: light */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header .brand, .site-header .brand:hover { color: var(--text); }
.brand-name strong { font-family: var(--brand-font, var(--serif)); }
.site-header .brand-name span { color: var(--muted); }
.site-footer .brand-name span { color: var(--muted-on-dark); }
.nav a { color: var(--text); }
.nav a:hover { color: var(--gem); }
.nav .btn, .nav .btn:hover { color: #fff; }
.nav-toggle { color: var(--text); border-color: var(--line); }
@media (max-width: 900px) {
  .nav { background: var(--header-bg); border-bottom-color: var(--line); }
  .nav a { border-bottom-color: var(--line); }
}

/* Hero: light */
.hero { background: var(--hero-bg); color: var(--text); }
.hero h1 { color: var(--text); }
.hero .lead { color: var(--muted); }
.hero.on-dark .eyebrow { color: var(--eyebrow, var(--gem)); }
.hero-points { color: var(--muted); }
.hero-points svg { color: var(--gem); }
.hero .btn-ghost { border-color: var(--text); color: var(--text); }
.hero .btn-ghost:hover { background: var(--text); color: #fff; }
.page-one { background: var(--white); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.page-one::before { display: none; }

/* Focus ring is dark green/blue/navy on the now-light header and hero */
.site-header :focus-visible, .hero :focus-visible { outline-color: var(--gem-dark); }

/* Dark band (attorneys) and footer use the option's dark color */
.payoff-box { background: rgba(255, 255, 255, .07); border: 1px solid var(--line-dark); }

/* OPTION B — Warm & friendly: cream, terracotta and soft rounded shapes */
:root {
  --ink: #2e241e;
  --ink-2: #2e241e;
  --ink-3: #3b2f27;
  --line-dark: #4d3e33;
  --muted-on-dark: #d6c7b8;
  --paper: #fbf6ee;
  --white: #fffdf9;
  --text: #2b211b;
  --muted: #65554a;
  --line: #eadccb;
  --gem: #b4462a;
  --gem-dark: #8c341e;
  --gem-light: #f3a98f;
  --gem-tint: #fbe8df;
  --serif: "Avenir Next", Avenir, "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --brand-font: "Avenir Next", Avenir, "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --heading-weight: 700;
  --heading-tracking: -.015em;
  --radius: 24px;
  --btn-radius: 999px;
  --header-bg: #fbf6ee;
  --hero-bg:
    radial-gradient(520px 520px at 92% 18%, #f8d9c9 0%, rgba(248, 217, 201, 0) 70%),
    radial-gradient(420px 420px at 4% 96%, #f3e3c7 0%, rgba(243, 227, 199, 0) 70%),
    #fbf6ee;
  --eyebrow: #8c341e;
  --facet: #b4462a;
  --facet-opacity: .0;
  --card-shadow: 0 20px 50px rgba(80, 50, 30, .12);
}
.brand-name strong { letter-spacing: .06em; }
.step, .card { background: var(--white); border-color: var(--line); }
.section-white { background: #f6eee2; }
.section-white .card { background: var(--white); }
.step::before { background: var(--gem-tint); color: var(--gem-dark); font-family: var(--serif); font-weight: 800; }
.card-icon { background: var(--gem-tint); color: var(--gem-dark); border-radius: 50%; }
.contact-list .ci { background: var(--gem-tint); color: var(--gem-dark); border-radius: 50%; }
.after-note { background: var(--gem-tint); }
.after-note svg { color: var(--gem-dark); }
.page-one-tag { background: var(--gem-tint); color: var(--gem-dark); }
.checklist svg { color: var(--gem); }
.faq summary { font-family: var(--serif); }
.faq summary::after { border-color: var(--gem); }

/* Sub-pages (privacy, accessibility): light title band to match */
.doc-hero { background: #f6eee2; color: var(--text); border-bottom: 1px solid var(--line); }
.doc-hero h1 { color: var(--text); }
.doc-hero p { color: var(--muted); }
.doc-hero :focus-visible { outline-color: var(--gem-dark); }

/* Logo: line gem. Terracotta in the header, light terracotta on the dark footer. */
.brand-mark { color: var(--gem); }
.site-footer .brand-mark { color: var(--gem-light); }

/* Logo in the background of the top section (decorative; hidden from screen readers).
   Text in the top section is darker so it stays above 4.5:1 where the lines pass behind it. */
.hero-logo {
  /* Anchored to the top so the gem's top edge sits above the small line over the headline, not through it */
  position: absolute; left: -140px; top: -36px; width: 760px; height: 760px;
  pointer-events: none;
  color: var(--gem); opacity: .40; stroke-width: 2.5px;
}
.hero .lead, .hero-points { color: var(--text); }
.hero.on-dark .eyebrow { color: #6e2814; }
@media (max-width: 900px) {
  .hero-logo { left: auto; right: -150px; top: -24px; width: 460px; height: 460px; }
}

/* Placeholder hints use the site's muted text color (about 7:1), not the browser's borderline gray */
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }

/* ---------- How it works page ---------- */
.hiw-hero { background: var(--hero-bg); border-bottom: 1px solid var(--line); padding: 72px 0 56px; }
.hiw-hero h1 { max-width: 20ch; }
.hiw-hero .lead { font-size: 1.15rem; color: var(--text); max-width: 42rem; }
.btn-outline { border-color: var(--text); color: var(--text); }
.btn-outline:hover { background: var(--text); color: #fff; }

.glance { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: glance; }
.glance li { counter-increment: glance; }
.glance a { display: block; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--text); text-decoration: none; }
.glance a:hover { border-color: var(--gem); color: var(--text); }
.glance a::before { content: counter(glance); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gem-tint); color: var(--gem-dark); font-weight: 800; margin-bottom: 12px; }
.glance strong { display: block; font-family: var(--serif); font-size: 1.08rem; margin-bottom: 4px; }
.glance span { display: block; color: var(--muted); font-size: .95rem; }
@media (max-width: 1000px) { .glance { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .glance { grid-template-columns: 1fr; } }

.detail { display: grid; grid-template-columns: 56px 1fr; gap: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 20px; }
.detail-num { width: 52px; height: 52px; border-radius: 50%; background: var(--gem); color: #fff; font: 800 1.3rem/52px var(--serif); text-align: center; }
.detail h3 { font-size: 1.45rem; margin-bottom: .4em; }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; }
.detail h4 { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gem-dark); margin: 0 0 8px; }
.mini { list-style: none; margin: 0 0 10px; padding: 0; }
.mini li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 6px 0; }
.mini svg { width: 20px; height: 20px; margin-top: 3px; }
.mini.yes svg { color: var(--gem); }
.mini.no svg { color: var(--gem-dark); }
.small { font-size: .93rem; color: var(--muted); }
@media (max-width: 760px) {
  .detail { grid-template-columns: 1fr; gap: 12px; padding: 24px 20px; }
  .detail-num { width: 44px; height: 44px; line-height: 44px; font-size: 1.1rem; }
  .detail-cols { grid-template-columns: 1fr; gap: 8px; }
}

.two-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-wide .section-head { margin-bottom: 0; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tips li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gem); border-radius: 12px; padding: 16px 18px; color: var(--muted); }
.tips strong { display: block; color: var(--text); margin-bottom: 2px; }
@media (max-width: 900px) { .two-wide { grid-template-columns: 1fr; gap: 24px; } }

.cta-band { background: var(--gem-tint); padding: 64px 0; text-align: center; }
.cta-inner h2 { margin-bottom: .3em; }
.cta-inner p { color: var(--muted); margin: 0; }
.cta-inner .hero-actions { justify-content: center; margin: 22px 0 0; }

.more-link { margin: 18px 0 0; font-weight: 600; }

/* Long email addresses may wrap on very narrow screens or with enlarged text spacing (WCAG 1.4.10 / 1.4.12) */
a[href^="mailto:"] { overflow-wrap: anywhere; }
.payoff-box .btn-ghost { white-space: normal; text-align: left; }
.apply-wrap > *, .contact-list li > *, .payoff-box > * { min-width: 0; }

/* Language switch (English / Español). A small outlined pill on desktop; a normal menu row on phones. */
@media (min-width: 901px) {
  .nav .lang-switch { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; }
  .nav .lang-switch:hover { border-color: var(--gem); }
}

/* Even out headline line lengths so a single word is not left alone on the last line */
h1 { text-wrap: balance; }

/* Headline phrases each on their own line (no periods) */
.h1-line { display: block; }

/* Note under the 'You can apply if you' list */
.who p { margin: 12px 0 0; color: var(--muted); font-size: .93rem; }

/* "Your Rights Under California Law" box */
.rights { margin-top: 28px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gem); border-radius: var(--radius); padding: 26px 28px; }
.rights h3 { margin-bottom: .3em; }
.rights > p { color: var(--muted); margin-bottom: 12px; }
.rights-list { columns: 2; column-gap: 36px; }
.rights-list li { break-inside: avoid; }
@media (max-width: 760px) { .rights-list { columns: 1; } .rights { padding: 22px 20px; } }
.contact-list .strong { font-weight: 600; color: var(--text); }

/* ---------- Gem accents (chosen 11/18/2026): bullets, label gems, dividers, card badges, background gems.
   All decorative CSS, so screen readers ignore them. ---------- */

:root {
  /* solid gem silhouette (used as a mask, so it takes the element's color) */
  --gem-solid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpolygon points='4,17 14,6 34,6 44,17 24,44' fill='black'/%3E%3C/svg%3E");
  /* outline gem for bullets: same shape as the logo, slightly thicker lines so it reads at 14px (mask) */
  --gem-bullet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='black' stroke-width='4.2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpolygon points='4,17 14,6 34,6 44,17 24,44'/%3E%3Cpath d='M4 17h40M14 6l10 11 10-11M16 17l8 27M32 17l-8 27'/%3E%3C/g%3E%3C/svg%3E");
  /* outline gem (mask) */
  --gem-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='black' stroke-width='3.4' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpolygon points='4,17 14,6 34,6 44,17 24,44'/%3E%3Cpath d='M4 17h40M14 6l10 11 10-11M16 17l8 27M32 17l-8 27'/%3E%3C/g%3E%3C/svg%3E");
  /* terracotta outline gem (background image) */
  --gem-terra: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23b4462a' stroke-width='2.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpolygon points='4,17 14,6 34,6 44,17 24,44'/%3E%3Cpath d='M4 17h40M14 6l10 11 10-11M14 6l2 11M34 6l-2 11M16 17l8 27M32 17l-8 27'/%3E%3C/g%3E%3C/svg%3E");
  /* faint light-terracotta outline gem for dark backgrounds */
  --gem-ghost: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23f3a98f' stroke-opacity='.2' stroke-width='.28' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpolygon points='4,17 14,6 34,6 44,17 24,44'/%3E%3Cpath d='M4 17h40M14 6l10 11 10-11M14 6l2 11M34 6l-2 11M16 17l8 27M32 17l-8 27'/%3E%3C/g%3E%3C/svg%3E");
}

/* 1 — Gem bullets (outline, matching the logo) instead of check marks */
.hero-points svg, .checklist svg, .rights-list svg, .mini.yes svg { display: none; }
.hero-points li::before, .checklist li::before, .rights-list li::before, .mini.yes li::before {
  content: ""; width: 14px; height: 14px; flex: none; margin-top: 6px; background: var(--gem);
  -webkit-mask: var(--gem-bullet) center / contain no-repeat; mask: var(--gem-bullet) center / contain no-repeat;
}
.hero-points li::before { margin-top: 0; }

/* 3 — Small gem before each section label */
.eyebrow::before {
  content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .55em; vertical-align: -.15em;
  background: currentColor;
  -webkit-mask: var(--gem-line) center / contain no-repeat; mask: var(--gem-line) center / contain no-repeat;
}

/* 4 — Gem dividers between sections */
.section { position: relative; }
.section::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 190px; height: 28px; transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    var(--gem-terra) center / 26px 26px no-repeat,
    linear-gradient(var(--gem), var(--gem)) left center / 70px 1.5px no-repeat,
    linear-gradient(var(--gem), var(--gem)) right center / 70px 1.5px no-repeat;
}

/* 5 — Gem-shaped icon badges on the terms cards */
.card-icon {
  border-radius: 0; width: 52px; height: 48px; align-items: flex-start; padding-top: 8px;
  clip-path: polygon(22% 3%, 78% 3%, 100% 34%, 50% 100%, 0% 34%);
}

/* 6 — Faint large gems behind the dark attorneys section and the footer */
.section-dark {
  background-image: var(--gem-ghost); background-repeat: no-repeat;
  background-size: 620px 620px; background-position: right -170px top -40px;
}
.site-footer {
  background-image: var(--gem-ghost); background-repeat: no-repeat;
  background-size: 420px 420px; background-position: right -110px bottom -150px;
}
