/* ─────────────────────────────────────────────────────────────────────────
   Public marketing site — "Estatein" design system.

   Ported from the Figma template *Real Estate Business Website UI Template —
   Dark Theme (Produce UI)*. Dark is the design's native mode, but the site
   ships light by default; both are full mappings of the same tokens, so
   every component works either way.

   Served straight from public/ with no build step — the product deploys to
   cPanel where there is no Node at runtime. Keep it plain CSS.

   Theming contract
     :root                    light tokens — the site default, so the default
                              holds even if the layout's data-theme attribute
                              is ever missing
     :root[data-theme=dark]   dark tokens, the design's native palette
     --brand / --on-brand     injected inline by the layout from the operator's
                              branding settings. Never hard-code them here.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Tokens ──────────────────────────────────────────────────────────────
   Dark is the design's native mode, so it is the site default: the dark
   greyscale lives on :root and a full light re-map lives under
   :root[data-theme="light"]. Every value is sampled straight from the Figma
   home page — #141414 page, #1A1A1A surfaces, #262626 hairlines. */
:root {
  /* Greyscale ramp, named by role rather than by lightness so the light block
     can re-map it without any component having to know which mode it is in. */
  --bg:            #141414;  /* page                    */
  --surface:       #1A1A1A;  /* cards, header, inputs    */
  --surface-2:     #1E1E1E;  /* raised / hover          */
  --surface-3:     #262626;  /* chips, wells            */
  --line:          #262626;  /* hairline borders        */
  --line-strong:   #383838;

  --ink:           #FFFFFF;  /* headings                */
  --ink-soft:      #D4D4D4;  /* body copy               */
  --ink-muted:     #999999;  /* secondary, labels       */
  --ink-faint:     #666666;  /* meta, disabled          */

  /* The template's purple. --brand is the operator's colour and wins wherever
     the design uses the accent; --accent is the fallback so the stylesheet is
     still coherent if the layout is rendered without branding. */
  --accent:        #703BF7;
  --accent-hover:  #8254F8;
  --accent-soft:   #A685FA;
  --accent-wash:   rgba(112, 59, 247, .16);

  --star-gold:     #FFE600;  /* testimonial rating stars */

  --ok:            #34C77B;
  --warn:          #E5A33D;
  --danger:        #F35B5B;

  --radius:        12px;  /* cards, panels   */
  --radius-sm:     10px;  /* buttons, inputs */
  --radius-lg:     16px;  /* hero, big wells */

  --shadow:        0 8px 30px rgba(0, 0, 0, .38);
  --shadow-lg:     0 24px 60px rgba(0, 0, 0, .55);
  --glow:          0 0 0 1px var(--accent-wash), 0 18px 44px rgba(112, 59, 247, .20);

  /* Ravi FaNum, self-hosted by public/css/fonts.css (linked before this file).
     It covers Persian and Latin, so the fallbacks only matter while it loads
     or if the request for it fails.

     --font-choice is injected by the layout from branding.font_family, ahead
     of this file, so it has to be read as the preferred value rather than
     declared here — a later declaration of --font would otherwise win. */
  --font: var(--font-choice, 'Ravi FaNum', 'Segoe UI', Tahoma, system-ui, sans-serif);
  --measure: 68ch;

  /* Section rhythm — the template breathes a lot more than a typical page. */
  --section-y: 110px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:            #FFFFFF;
  --surface:       #FAFAFB;
  --surface-2:     #F4F4F6;
  --surface-3:     #EDEDF1;
  --line:          #E6E6EC;
  --line-strong:   #D6D6DE;

  --ink:           #0A0A0A;
  --ink-soft:      #3D3D46;
  --ink-muted:     #6B6B76;
  --ink-faint:     #9A9AA5;

  --accent-wash:   rgba(112, 59, 247, .10);

  --shadow:        0 8px 30px rgba(16, 16, 24, .07);
  --shadow-lg:     0 24px 60px rgba(16, 16, 24, .13);
  --glow:          0 0 0 1px var(--accent-wash), 0 18px 44px rgba(112, 59, 247, .14);

  color-scheme: light;
}

/* The accent used by components. This public marketing site follows the
   Estatein design's purple accent (--accent, #703BF7) rather than the
   operator's brand colour, so it reproduces the reference design exactly; the
   admin and investor SPAs keep operator branding through their own shells.
   --on-brand is forced white here because the purple accent always needs light
   text on it (the layout still injects a value computed for the operator hue,
   which this deliberately overrides since public.css is linked afterwards). */
:root { --a: var(--accent); --on-brand: #FFFFFF; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

::selection { background: var(--a); color: #fff; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 10px; z-index: 200;
  background: var(--a); color: var(--on-brand, #fff);
  padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { inset-inline-start: 12px; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
@media (max-width: 720px) { .container { width: min(1240px, 100% - 32px); } }

/* Latin-shaped values (money, phone, percentages) inside RTL prose. */
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── The template's abstract line motif ──────────────────────────────────
   Estatein sets a faint outlined grid behind its hero and its darkest
   sections. Drawn with gradients rather than an image so it costs nothing
   and re-tints itself between the two themes. */
.abstract { position: relative; isolation: isolate; }
.abstract::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 8%, transparent 72%);
          mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 8%, transparent 72%);
  opacity: .75;
}
/* Purple bloom behind the hero. */
.abstract::after {
  content: "";
  position: absolute; inset-inline: 0; top: -140px; height: 460px; z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 100% at 50% 0%, var(--accent-wash), transparent 70%);
}

/* ── Typography ──────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  color: var(--ink); margin: 0; text-wrap: balance;
  font-weight: 700; letter-spacing: -.015em; line-height: 1.32;
}
h1 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.22; }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 17px; }

p { margin: 0; }
.lead { font-size: clamp(15.5px, 1.5vw, 17.5px); color: var(--ink-muted); line-height: 1.9; }

/* Section eyebrow — the template prefixes these with its four-point star. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--a); margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: var(--star) center / contain no-repeat;
          mask: var(--star) center / contain no-repeat;
}
:root {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.6 6.3 5.7 11.4 12 12-6.3.6-11.4 5.7-12 12-.6-6.3-5.7-11.4-12-12C6.3 11.4 11.4 6.3 12 0z'/%3E%3C/svg%3E");
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: var(--section-y) 0; }
.section-tight { padding: calc(var(--section-y) * .62) 0; }
.section-soft { background: var(--surface); }
.section + .section-soft, .section-soft + .section { border-top: 1px solid var(--line); }

/* Title block: copy on the start side, an optional action on the end side —
   the template's standard section header. */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; margin-bottom: 44px;
}
.section-head-text { max-width: 62ch; }
.section-head h2 + .lead { margin-top: 12px; }
.section-head-cta { flex: none; }
@media (max-width: 800px) {
  .section-head { flex-direction: column; align-items: stretch; gap: 20px; }
  .section-head-cta .btn { width: 100%; }
}
/* Centred variant for pages that have no section action. */
.section-head-center { flex-direction: column; align-items: center; text-align: center; }
.section-head-center .section-head-text { margin-inline: auto; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; font-family: inherit; line-height: 1.4;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; } .btn:hover { transform: none; }
}
.btn .icon { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--a); color: var(--on-brand, #fff); border-color: var(--a); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* The template's default action: a bordered, transparent chip. */
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-3); border-color: var(--line-strong); }

.btn-ghost { background: transparent; color: var(--ink-muted); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--a); }

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ── Icons ───────────────────────────────────────────────────────────── */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-solid { fill: currentColor; stroke: none; }

/* Circular icon plate used on feature cards and contact rows. */
.icon-plate {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--a);
}
.icon-plate .icon { width: 22px; height: 22px; }
.icon-plate-accent { background: var(--a); border-color: var(--a); color: var(--on-brand, #fff); }

/* ── Promo bar ──────────────────────────────────────────────────────────
   The template's top announcement strip. Dismissible with no JavaScript: a
   hidden checkbox placed before it collapses it when its label ✕ is clicked. */
.promo-toggle { position: absolute; opacity: 0; pointer-events: none; }
.promo {
  background: var(--surface); border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-soft);
}
.promo-inner {
  min-height: 46px; display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 7px 44px 7px 16px; position: relative; text-align: center;
}
.promo-star { width: 15px; height: 15px; flex: none; color: var(--a); }
.promo-msg { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.promo-link {
  font-weight: 700; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong);
}
.promo-link:hover { text-decoration-color: var(--a); }
.promo-x {
  position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-muted); transition: color .16s, background-color .16s;
}
.promo-x:hover { color: var(--ink); background: var(--surface-3); }
.promo-x .icon { width: 16px; height: 16px; }
.promo-toggle:checked ~ .promo { display: none; }
@media (max-width: 620px) { .promo-inner { font-size: 12.5px; } }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-logo { max-height: 34px; width: auto; }
.brand-mark {
  width: 36px; height: 36px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--a);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name { font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -.01em; }

/* Nav sits in a bordered pill well, the way the template groups it. */
.site-nav {
  display: flex; align-items: center; gap: 4px; margin-inline: auto;
  padding: 6px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent;
}
.nav-link {
  font-size: 15px; font-weight: 500; color: var(--ink-muted);
  padding: 10px 20px; border-radius: 999px; transition: color .16s, background-color .16s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); background: var(--line-strong); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* Theme switch — the button shows the mode it switches *to*: a sun while the
   site is dark (the default), a moon while it is light. Dark is the default,
   so the sun shows unless data-theme="light" is set. */
.theme-toggle {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
  cursor: pointer; transition: color .16s, border-color .16s, background-color .16s;
}
.theme-toggle:hover { border-color: var(--a); background: var(--surface-3); }
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Burger — CSS-only, so navigation still works with JS disabled. */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }

@media (max-width: 1040px) {
  .header-inner { min-height: 70px; gap: 12px; }
  .nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
    background: var(--surface-3); border: 1px solid var(--line); color: var(--ink);
    order: 3;
  }
  .nav-burger .icon { width: 22px; height: 22px; }
  /* Actions stay next to the brand; the burger takes the far edge. */
  .header-actions { order: 2; margin-inline-start: auto; }
  .site-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 12px; border-radius: 0; border-inline: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-link { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 16px; }
  .header-actions .btn { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: 84px 0 var(--section-y); }
.hero-grid { display: grid; gap: 46px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.06fr .94fr; gap: 60px; } }

.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 560px) { .hero-actions .btn { flex: 1 1 100%; } }

.hero-art {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden;
  aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%;
}
.hero-art-empty {
  background:
    radial-gradient(ellipse at 30% 20%, var(--accent-wash), transparent 60%),
    linear-gradient(150deg, var(--surface-2), var(--surface));
}

/* Stat strip — bordered cells, the template's signature under the hero. */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.hero .stat-strip { margin-top: 46px; }
/* The strip is usually a <dl>: a description list must put its <dt> before its
   <dd>, but the design shows the figure above its label — so the cell reverses
   the pair visually and the markup stays valid. Also drops the UA margins the
   list and its children come with. */
dl.stat-strip { margin-block: 0; }
.stat-strip dt, .stat-strip dd { margin: 0; }
.stat {
  padding: 22px 24px; text-align: center;
  display: flex; flex-direction: column-reverse; justify-content: center;
  border-inline-start: 1px solid var(--line);
}
.stat:first-child { border-inline-start: 0; }
.stat .v { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--ink); line-height: 1.4; }
.stat .l { font-size: 13.5px; color: var(--ink-muted); margin-top: 2px; }
@media (max-width: 620px) {
  .stat { border-inline-start: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
}

/* ── Grids ───────────────────────────────────────────────────────────────
   `minmax(N, 1fr)` cannot shrink below N, so on a viewport narrower than the
   floor the track overflows the container and the whole page scrolls
   sideways. `min(N, 100%)` lets the last track collapse to the container
   instead — the standard fix, and the reason none of these need a breakpoint. */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
/* auto-fit stretches a lone card across the row; cap the track container so
   one or two items still read as deliberate. */
.grid-cap-1 { max-width: 400px; margin-inline: auto; }
.grid-cap-2 { max-width: 820px; margin-inline: auto; }

/* ── Cards ───────────────────────────────────────────────────────────── */
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
a.card:hover { border-color: var(--a); transform: translateY(-3px); box-shadow: var(--glow); }
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; } a.card:hover { transform: none; }
}
.card-media { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--surface-2); }
.card-media-empty {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(ellipse at 30% 20%, var(--accent-wash), transparent 62%),
    linear-gradient(150deg, var(--surface-2), var(--surface-3));
}
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0; }
.card-text { color: var(--ink-muted); font-size: 14.5px; line-height: 1.8; margin: 0; }
.card-foot {
  padding: 18px 22px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 13.5px; color: var(--ink-muted);
}
.card-foot .price { font-size: 17px; font-weight: 800; color: var(--ink); }

/* Project card: the status badge floats over the image the way the template
   overlays its "For Sale" pill. */
.project-card-media { position: relative; }
.project-card-media .badge {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.project-card-funding { margin-top: auto; padding-top: 6px; }
.project-card-funding .meta-row { border-bottom: 0; padding-bottom: 0; }

/* Feature tags on a property card: pill + inline icon. */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
}
.tag .icon { width: 15px; height: 15px; }

/* Feature / value card: icon plate, title, copy. */
.feature-card {
  padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s, background-color .2s;
}
.feature-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.feature-card h3 { font-size: 18px; }
.feature-card p { color: var(--ink-muted); font-size: 14.5px; }

/* Numbered step, used by "how it works". */
.step-card {
  padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); position: relative;
}
.step-card .step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: var(--accent-wash); color: var(--a);
  font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { color: var(--ink-muted); font-size: 14.5px; }

/* Testimonial: stars, quote, attribution. */
.testimonial {
  padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); display: flex; flex-direction: column; gap: 14px;
}
.stars { display: inline-flex; gap: 4px; color: var(--a); }
.stars .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.testimonial .quote { color: var(--ink-soft); font-size: 15px; margin: 0; }
.testimonial .by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial .by img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testimonial .by b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 700; }
.testimonial .by span { font-size: 13px; color: var(--ink-muted); }

/* FAQ preview card (the grid variant on the homepage). */
.faq-card {
  padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); display: flex; flex-direction: column; gap: 12px;
}
.faq-card h3 { font-size: 17px; }
.faq-card .answer { color: var(--ink-muted); font-size: 14.5px; }
.faq-card .more { color: var(--a); font-weight: 700; font-size: 14px; margin-top: auto; }

/* ── Badges, meta, progress ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 5px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  background: var(--surface-3); color: var(--ink-soft);
}
.badge-open   { background: rgba(52, 199, 123, .14); color: var(--ok); }
.badge-soon   { background: rgba(229, 163, 61, .14); color: var(--warn); }
.badge-closed { background: var(--surface-3); color: var(--ink-faint); }

.meta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 14px; padding: 11px 0; border-bottom: 1px solid var(--line);
}
.meta-row:last-child { border-bottom: 0; }
.meta-row .k { color: var(--ink-muted); }
.meta-row .v { font-weight: 700; color: var(--ink); }

.progress {
  height: 8px; border-radius: 999px; background: var(--surface-3);
  overflow: hidden; margin: 4px 0;
}
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--a); }

/* ── Split panel (image + copy) ──────────────────────────────────────── */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

/* ── Panel / well ────────────────────────────────────────────────────── */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.panel-head h3 { font-size: 17px; }

/* ── CTA band ────────────────────────────────────────────────────────── */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 140% at 100% 0%, var(--accent-wash), transparent 62%),
    var(--surface);
  padding: 52px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band .lead { max-width: 52ch; margin-top: 12px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
@media (max-width: 860px) {
  .cta-band { flex-direction: column; align-items: stretch; text-align: start; padding: 38px 26px; }
  .cta-actions .btn { flex: 1 1 auto; }
}

/* ── Breadcrumb ──────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink-muted); margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--ink-faint); }
.breadcrumb [aria-current] { color: var(--ink); }

/* ── Page header band ────────────────────────────────────────────────── */
.page-head { padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 14px; }
.page-head .lead { max-width: 64ch; }

/* ── Filter bar ──────────────────────────────────────────────────────── */
.filter-bar {
  display: grid; gap: 12px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  align-items: end; margin-bottom: 34px;
}
.filter-bar .field { margin: 0; }

/* Category / tag rail. */
.chip-rail { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 17px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-muted);
  transition: color .16s, border-color .16s, background-color .16s;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.active { background: var(--a); border-color: var(--a); color: var(--on-brand, #fff); }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form { display: block; }
.form-narrow { max-width: 620px; margin-inline: auto; }
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.input, .textarea, .select {
  width: 100%; padding: 14px 16px; font-family: inherit; font-size: 15px;
  color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  outline: none; transition: border-color .16s, background-color .16s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--a); background: var(--surface); }
.textarea { resize: vertical; min-height: 140px; line-height: 1.8; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px;
  background-position: left 14px center;
  padding-inline-start: 16px; padding-inline-end: 44px;
}
:root:dir(ltr) .select { background-position: right 14px center; }
.field-error { color: var(--danger); font-size: 13px; margin-top: 7px; }
.field-hint { color: var(--ink-faint); font-size: 13px; margin-top: 7px; }

.alert {
  border-radius: var(--radius-sm); padding: 15px 18px; font-size: 15px;
  margin-bottom: 24px; border: 1px solid transparent;
}
.alert-ok  { background: rgba(52, 199, 123, .10); border-color: rgba(52, 199, 123, .30); color: var(--ok); }
.alert-err { background: rgba(243, 91, 91, .10); border-color: rgba(243, 91, 91, .30); color: var(--danger); }

/* Inline subscribe row (footer + CTA). */
.subscribe { display: flex; gap: 10px; }
.subscribe .input { flex: 1; }
@media (max-width: 480px) { .subscribe { flex-direction: column; } }

/* ── Accordion (FAQ) ─────────────────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 4px 24px;
  transition: border-color .18s;
}
.accordion details[open] { border-color: var(--line-strong); }
.accordion summary {
  cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 16px; color: var(--ink);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-3) var(--plus) center / 13px no-repeat;
  transition: transform .2s;
}
.accordion details[open] summary::after { transform: rotate(45deg); background-color: var(--a); }
/* The plus is an SVG data URI, so its stroke cannot inherit currentColor —
   it needs one variant per theme. Open rows always sit on the accent, which
   is dark enough for the white stroke in both modes. */
:root {
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] {
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.accordion details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.accordion .answer { padding-bottom: 22px; color: var(--ink-muted); font-size: 15px; }
/* An answer is operator HTML: .prose styles it, but inside an accordion it
   must not re-impose the article measure. */
.accordion .prose { max-width: none; margin: 0; font-size: 15px; }

/* ── Prose (CMS bodies, blog posts) ──────────────────────────────────── */
.prose { max-width: var(--measure); margin-inline: auto; color: var(--ink-soft); font-size: 17px; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: 27px; margin-top: 1.9em; }
.prose h3 { font-size: 21px; margin-top: 1.6em; }
.prose a { color: var(--a); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin-block: 1.8em; border: 1px solid var(--line); }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose blockquote {
  border-inline-start: 3px solid var(--a); padding: 4px 20px;
  color: var(--ink); font-weight: 500; margin-inline: 0;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 15px; text-align: start; }
.prose th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.prose pre {
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 18px; border-radius: var(--radius-sm); overflow-x: auto;
  direction: ltr; font-size: 14px;
}
.prose code { font-size: .92em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }

/* ── Pagination ──────────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; padding-inline: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.pagination a:hover { color: var(--ink); border-color: var(--line-strong); }
.pagination .active { background: var(--a); border-color: var(--a); color: var(--on-brand, #fff); }
.pagination .disabled { opacity: .38; }

/* ── Empty state ─────────────────────────────────────────────────────── */
.empty {
  text-align: center; padding: 76px 24px; color: var(--ink-muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface);
}
.empty .t { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); margin-top: 0; }
.footer-top { padding: 70px 0 54px; }
.footer-inner { display: grid; gap: 48px; grid-template-columns: 1.1fr 2.4fr; align-items: start; }
@media (max-width: 980px) { .footer-inner { grid-template-columns: 1fr; gap: 40px; } }

.footer-brand .brand { margin-bottom: 24px; }
/* Newsletter row: a bordered pill with the send button riding its end. */
.footer-sub-form {
  display: flex; align-items: center; gap: 8px; max-width: 340px;
  padding: 6px; padding-inline-start: 18px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
}
.footer-sub-input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  color: var(--ink); font: inherit; font-size: 14px; padding: 8px 0;
}
.footer-sub-input::placeholder { color: var(--ink-muted); }
.footer-sub-btn {
  flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-3); color: var(--ink); transition: background-color .16s, color .16s;
}
.footer-sub-btn:hover { background: var(--a); color: var(--on-brand, #fff); }
.footer-sub-btn svg { width: 20px; height: 20px; }

.footer-nav { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(140px, 45%), 1fr)); }
.footer-col { display: flex; flex-direction: column; gap: 15px; }
.footer-head { color: var(--ink-muted); font-weight: 500; font-size: 15px; margin-bottom: 3px; }
.footer-link { color: var(--ink); font-size: 14.5px; transition: color .16s; }
.footer-link:hover { color: var(--accent-soft); }

.social-row { display: flex; gap: 12px; }
.social {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-3); color: var(--ink);
  transition: color .16s, background-color .16s;
}
.social svg { width: 18px; height: 18px; }
.social:hover { color: var(--on-brand, #fff); background: var(--a); }

.footer-legal {
  border-top: 1px solid var(--line); padding: 26px 0 30px;
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center;
  font-size: 13.5px; color: var(--ink-muted);
}
.footer-legal .legal-links { display: flex; gap: 28px; align-items: center; }
.footer-legal a:hover { color: var(--ink); }
.footer-legal .social-row { margin-inline-start: auto; }
/* Risk disclosure is a regulatory obligation for this product, not a
   marketing line — it stays on every page, on its own full-width line. */
.footer-legal .risk { flex-basis: 100%; order: 9; font-size: 12px; color: var(--ink-faint); }
@media (max-width: 640px) { .footer-legal .social-row { margin-inline-start: 0; } }

/* ── Responsive rhythm ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-y: 68px; }
  .hero { padding: 48px 0 var(--section-y); }
  .section-head { margin-bottom: 32px; }
}

/* ── Print ───────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .hero-actions, .cta-band, .pagination { display: none; }
  body { background: #fff; color: #000; }
}
