/* =========================================================================
   Luminvestry — premium light editorial fintech
   Warm ivory / porcelain, midnight-blue text, champagne-gold accent,
   Fraunces display serif for headings, system sans for body and tables.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #FBF8F1;
  --surface: #FFFFFF;
  --surface-2: #F3EDDF;
  --border: #E5DCC6;
  --border-strong: #D8CCAC;
  --text: #182542;
  --muted: #5A6377;
  --accent: #8A6B20;
  --accent-hover: #6F5518;
  --accent-tint: #F0E7CE;
  --accent-bright: #C9A44C;
  --midnight: #1E2F5E;
  --midnight-deep: #182542;
  --ok: #3F7A52;
  --bad: #A94442;
  --ivory-on-dark: #F4EFE3;
  --muted-on-dark: #B9C0D4;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;

  --shadow-sm: 0 1px 2px rgba(24, 37, 66, 0.06);
  --shadow-md: 0 1px 2px rgba(24, 37, 66, 0.06), 0 8px 24px rgba(24, 37, 66, 0.09);
  --shadow-lg: 0 2px 6px rgba(24, 37, 66, 0.08), 0 18px 44px rgba(24, 37, 66, 0.14);

  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe, video, canvas { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; margin: 0 0 0.6em; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--midnight); text-decoration-color: var(--accent-bright); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.45em; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-tint); color: var(--text); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--midnight-deep); color: var(--ivory-on-dark);
  padding: 10px 18px; border-radius: var(--radius-sm); transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; color: var(--ivory-on-dark); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* ---------- Section bands ---------- */
.section { padding: clamp(3rem, 6vw, 4.6rem) 0; position: relative; }
.band { position: relative; }
.band--parchment { background: var(--surface-2); }
.band--ivory { background: var(--bg); }
.band--porcelain { background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF6 100%); }
.band--midnight { background: var(--midnight-deep); color: var(--ivory-on-dark); }
.band--midnight h2, .band--midnight h3 { color: var(--ivory-on-dark); }

/* Decorative layered backgrounds: gradient base + drawn motif, never gradient-only */
.band--dots {
  background-image:
    radial-gradient(ellipse 70% 90% at 85% 10%, rgba(201, 164, 76, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 90%, rgba(30, 47, 94, 0.06), transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%238A6B20' fill-opacity='0.09'/%3E%3C/svg%3E");
}
.band--mesh {
  background-image:
    linear-gradient(180deg, rgba(240, 231, 206, 0.55), rgba(240, 231, 206, 0)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%238A6B20' stroke-opacity='0.12'%3E%3Cpath d='M20 30l60 25 40-30M20 30l35 70M80 55l-25 45M80 55l55 15M135 25l-15 60M20 30l-5 85'/%3E%3C/g%3E%3Cg fill='%238A6B20' fill-opacity='0.16'%3E%3Ccircle cx='20' cy='30' r='4'/%3E%3Ccircle cx='80' cy='55' r='4'/%3E%3Ccircle cx='135' cy='25' r='4'/%3E%3Ccircle cx='55' cy='100' r='4'/%3E%3Ccircle cx='120' cy='115' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
.band--ledger {
  background-image:
    linear-gradient(0deg, rgba(240, 231, 206, 0.5), rgba(240, 231, 206, 0)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='72' viewBox='0 0 120 72'%3E%3Cg stroke='%231E2F5E' stroke-opacity='0.07'%3E%3Cpath d='M0 14h120M0 30h120M0 46h120M0 62h120'/%3E%3C/g%3E%3Ccircle cx='24' cy='22' r='7' fill='none' stroke='%238A6B20' stroke-opacity='0.16' stroke-width='2'/%3E%3Ccircle cx='86' cy='54' r='9' fill='none' stroke='%238A6B20' stroke-opacity='0.14' stroke-width='2'/%3E%3C/svg%3E");
}

.section-head { max-width: 720px; margin-bottom: 2.2rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.04rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: 0.78rem;
  font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.7rem;
}
.eyebrow--on-dark { color: var(--accent-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 650; font-size: 1rem;
  padding: 12px 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #FFFFFF; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); color: #FFFFFF; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--secondary:hover { background: var(--accent-tint); color: var(--accent-hover); transform: translateY(-2px); }
.btn--on-dark { background: var(--accent-bright); color: var(--midnight-deep); }
.btn--on-dark:hover { background: #D9BC72; color: var(--midnight-deep); transform: translateY(-2px); }
.btn--ghost-dark { background: transparent; color: var(--ivory-on-dark); border-color: rgba(244, 239, 227, 0.4); }
.btn--ghost-dark:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.btn--sm { padding: 9px 18px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.link-cta { font-weight: 650; color: var(--midnight); }
.link-cta:hover { color: var(--accent); }

/* ---------- Icon badges ---------- */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  background: var(--accent-tint); color: var(--accent);
}
.icon-badge--midnight { background: rgba(30, 47, 94, 0.1); color: var(--midnight); }
.icon-badge--ondark { background: rgba(201, 164, 76, 0.18); color: var(--accent-bright); }
.icon { width: 24px; height: 24px; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 15px; height: 15px; vertical-align: -2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { background: #FBF8F1; box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo svg { display: block; height: 40px; width: auto; }
.logo-word { font-family: var(--font-display); font-size: 23px; font-weight: 600; fill: var(--text); letter-spacing: 0.01em; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 0.97rem; font-weight: 600;
  color: var(--text); background: none; border: 0; padding: 10px 13px;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.nav-trigger:hover, .nav-trigger:focus-visible { background: var(--accent-tint); color: var(--accent-hover); }
.nav-trigger .icon { width: 15px; height: 15px; transition: transform 0.16s ease; }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 90;
  min-width: 262px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(5px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.dropdown::before {
  content: ""; position: absolute; top: -5px; left: 22px;
  width: 10px; height: 10px; background: var(--surface);
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item:last-child .dropdown { left: auto; right: 0; }
.nav-item:last-child .dropdown::before { left: auto; right: 22px; }
.dropdown__list { list-style: none; margin: 0; padding: 0; }
.dropdown__list a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 0.94rem; font-weight: 500;
}
.dropdown__list a::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-bright); margin-right: 9px; vertical-align: 2px; }
.dropdown__list a:hover, .dropdown__list a:focus-visible { background: var(--accent-tint); color: var(--accent-hover); }

.header-cta { flex: none; }
.nav-toggle {
  display: none; margin-left: auto; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); cursor: pointer;
}
.nav-toggle .icon--close { display: none; }
.nav-toggle.is-open .icon--menu { display: none; }
.nav-toggle.is-open .icon--close { display: block; }

.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--surface); }
.mobile-menu__inner { padding: 10px 0 22px; }
.mm-group { border-bottom: 1px solid var(--border); }
.mm-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  background: none; border: 0; padding: 14px 4px; cursor: pointer;
  font-family: var(--font-body); font-size: 1rem; font-weight: 650; color: var(--text);
}
.mm-toggle .icon { width: 16px; height: 16px; transition: transform 0.16s ease; color: var(--accent); }
.mm-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mm-panel ul { list-style: none; margin: 0 0 12px; padding: 0; }
.mm-panel a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.mm-panel a:hover { background: var(--accent-tint); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- Ticker ---------- */
.beacon-ticker {
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 8px 0; font-family: var(--font-body);
}
.beacon-ticker__inner {
  width: fit-content; margin-inline: auto; display: flex; gap: 34px;
  padding-inline: clamp(16px, 4vw, 40px); white-space: nowrap;
}
.beacon-ticker__sym { font-size: 0.86rem; color: var(--muted); letter-spacing: 0.02em; }
.beacon-ticker__sym b { color: var(--text); font-weight: 650; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumbs .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 10px; font-size: 0.88rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.6rem, 5vw, 4.2rem) 0 clamp(3rem, 5vw, 4.4rem); }
.hero-bg { position: absolute; inset: -60px 0; z-index: 0; will-change: transform; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; display: block; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.hero-copy > * { max-width: 620px; }
.hero-sub { font-size: 1.09rem; color: var(--muted); margin-bottom: 1.4rem; }
.hero-form-wrap { max-width: 480px; margin-bottom: 1.6rem; }

.flags { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 1.2rem; }
.flags__label { font-size: 0.92rem; color: var(--muted); font-weight: 550; }
.flags__items { display: flex; align-items: center; gap: 10px; }
.flag-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text); }
.flag-chip svg { width: 27px; height: 19px; border-radius: 3px; box-shadow: var(--shadow-sm); display: block; }

.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-link {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 16px; box-shadow: var(--shadow-sm); color: var(--text);
  font-size: 0.93rem; font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.hero-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); color: var(--accent-hover); }
.hero-link .icon-badge { width: 34px; height: 34px; border-radius: 9px; }
.hero-link .icon { width: 18px; height: 18px; }

.hero-visual { position: relative; }
.hero-visual .ledger-panel { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 40px rgba(24, 37, 66, 0.13)); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(2.4rem, 4.5vw, 3.8rem) 0; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr); gap: clamp(1.8rem, 4vw, 3.6rem); align-items: start; }
.page-hero__copy p { font-size: 1.04rem; color: var(--muted); }
.page-hero__motif { position: absolute; right: -80px; top: -40px; width: 420px; opacity: 0.5; z-index: 0; pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }

/* ---------- Forms ---------- */
.form-block { max-width: 480px; }
.form-block--wide { max-width: 520px; margin-left: auto; }
.form-block__heading { font-size: 1.28rem; margin-bottom: 0.4rem; }
.form-block__intro { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.9rem; }
.form-block__card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 22px 22px 18px;
}
.form-legal { font-size: 0.8rem; color: var(--muted); margin: 10px 2px 4px; }
.form-manager { font-size: 0.88rem; color: var(--text); font-weight: 600; margin: 2px 2px 0; }
.form-manager .icon { color: var(--accent); margin-right: 4px; }

.beacon-form .beacon-form__row { margin-bottom: 12px; }
.beacon-form .beacon-form__label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.beacon-form .beacon-form__input {
  width: 100%; padding: 11px 13px; font-family: var(--font-body); font-size: 0.98rem;
  color: var(--text); background: #FFFEFB; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.beacon-form .beacon-form__input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 107, 32, 0.18);
}
.beacon-form .beacon-form__submit {
  width: 100%; margin-top: 4px; padding: 13px 20px; font-family: var(--font-body);
  font-size: 1.02rem; font-weight: 700; color: #FFFFFF; background: var(--accent);
  border: 0; border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.beacon-form .beacon-form__submit:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.card__head h3 { margin: 0; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--wide-first { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--wide-first .card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 62px 1fr; gap: 16px; align-items: start; }

.card--tint { background: linear-gradient(180deg, #FFFFFF, #FCF8EE); }

/* ---------- Steps ---------- */
.step { position: relative; padding-top: 4px; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 12px;
  background: var(--accent); color: #FFFFFF; font-family: var(--font-body);
  font-weight: 700; font-size: 0.95rem; box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: 1.6rem;
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px; vertical-align: top; }
.table-wrap thead th {
  background: var(--surface-2); font-family: var(--font-body); font-weight: 650;
  font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text);
  border-bottom: 1px solid var(--border-strong);
}
.table-wrap tbody tr + tbody tr, .table-wrap tbody tr:nth-child(even) { background: rgba(243, 237, 223, 0.4); }
.table-wrap tbody tr:nth-child(even) { background: rgba(243, 237, 223, 0.45); }
.table-wrap tbody tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
.table-wrap td strong { color: var(--text); }

/* Comparison table */
.compare-table td, .compare-table th { text-align: center; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; }
.compare-table .col-us { background: rgba(240, 231, 206, 0.55); }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; }
.mark--ok { background: rgba(63, 122, 82, 0.14); color: var(--ok); }
.mark--no { background: rgba(169, 68, 68, 0.12); color: var(--bad); }
.mark .icon { width: 14px; height: 14px; }

/* ---------- Exchange chips ---------- */
.exchanges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.exchange-chip {
  display: inline-flex; align-items: center; padding: 9px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  color: var(--muted); letter-spacing: 0.02em; box-shadow: var(--shadow-sm);
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.exchange-chip:hover { color: var(--accent-hover); border-color: var(--border-strong); transform: translateY(-2px); }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.review-card { display: flex; flex-direction: column; gap: 12px; }
.review-card--featured { grid-column: span 1; border-top: 3px solid var(--accent-bright); }
.review__head { display: flex; align-items: center; gap: 14px; }
.review__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface-2); box-shadow: var(--shadow-sm); flex: none; }
.review__name { font-weight: 650; display: block; }
.review__role { font-size: 0.86rem; color: var(--muted); }
.review__stats { display: flex; flex-wrap: wrap; gap: 8px; }
.review__stat {
  font-size: 0.82rem; background: var(--surface-2); border-radius: 999px;
  padding: 4px 12px; color: var(--text);
}
.review__stat b { color: var(--accent-hover); font-weight: 700; }
.review__text { font-size: 0.95rem; color: var(--text); margin: 0; }
.reviews-note { font-size: 0.84rem; color: var(--muted); margin-top: 1.3rem; text-align: center; max-width: 680px; margin-inline: auto; }

/* ---------- Company block ---------- */
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.8rem, 4vw, 3.4rem); align-items: start; }
.company-facts { list-style: none; padding: 0; margin: 1.2rem 0; }
.company-facts li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); margin: 0; }
.company-facts .icon { color: var(--accent); margin-top: 3px; }
.company-facts b { display: block; font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 650; }
.company-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.company-link {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px; box-shadow: var(--shadow-sm); color: var(--text); font-weight: 600; font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.company-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--accent-hover); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none; padding: 16px 20px;
  font-weight: 650; font-family: var(--font-body); font-size: 1rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex: none; color: var(--accent); width: 18px; height: 18px; transition: transform 0.18s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item__body { padding: 0 20px 18px; color: var(--muted); }
.faq-item__body p:last-child { margin-bottom: 0; }

/* ---------- Calculator section ---------- */
.calc-section { position: relative; }
.calc-section .section-head { margin-bottom: 1.6rem; }
.calc-note { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; text-align: center; }

/* ---------- Prose (long documents) ---------- */
.prose { max-width: 800px; }
.prose--wide { max-width: 860px; }
.prose h2 { margin-top: 2.1em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }
.prose .lead { font-size: 1.08rem; color: var(--muted); }
.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 1.6rem 0; }
.notice {
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 18px 20px; font-size: 0.95rem; margin: 1.4rem 0;
}
.notice--gold { border-left: 4px solid var(--accent-bright); }
.notice b { color: var(--text); }

/* ---------- Map ---------- */
.map-embed {
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-md); max-width: 860px; aspect-ratio: 16 / 9; min-height: 320px;
  background: var(--surface-2);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.8rem, 4vw, 3.2rem); align-items: start; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 1.4rem; }

/* ---------- Timeline (About) ---------- */
.timeline { list-style: none; padding: 0; margin: 1.6rem 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--border-strong); }
.timeline li { position: relative; padding: 0 0 1.6rem 42px; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: var(--shadow-sm);
}
.timeline b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--text); margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Vacancies ---------- */
.vacancy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.vacancy h3 { margin-bottom: 4px; }
.vacancy__meta { font-size: 0.87rem; color: var(--muted); }
.vacancy p { margin: 0.4em 0 0; font-size: 0.94rem; color: var(--muted); flex: 1 1 340px; }
.vacancy .btn { flex: none; }

/* ---------- Articles ---------- */
.article-card + .article-card { margin-top: 1.8rem; }
.article-card h3 { font-size: 1.35rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight-deep); color: var(--muted-on-dark); margin-top: 0; }
.footer-top { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; padding: clamp(2.4rem, 5vw, 3.6rem) 0 2rem; }
.footer-brand .logo svg { height: 38px; }
.footer-brand .logo-word { fill: var(--ivory-on-dark); }
.footer-brand p { font-size: 0.9rem; margin-top: 14px; }
.footer-col h3 { color: var(--accent-bright); font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { display: inline-block; color: var(--muted-on-dark); text-decoration: none; font-size: 0.9rem; padding: 4px 0; }
.footer-col a:hover { color: var(--accent-bright); }
.footer-disclaimer { border-top: 1px solid rgba(244, 239, 227, 0.16); padding: 1.6rem 0; }
.footer-disclaimer h2 { color: var(--ivory-on-dark); font-size: 1.05rem; margin-bottom: 0.5rem; }
.footer-disclaimer p { font-size: 0.83rem; line-height: 1.6; margin: 0; max-width: 980px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(244, 239, 227, 0.16); padding: 1.1rem 0 1.5rem; }
.footer-bottom p { margin: 0; font-size: 0.83rem; }
.footer-bottom a { color: var(--accent-bright); text-decoration: none; }
.footer-bottom a:hover { color: var(--ivory-on-dark); }

/* ---------- Special offer ---------- */
.urgency-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 28px;
  min-height: 46px; padding: 6px 16px;
  background: linear-gradient(90deg, #6F5518, #8A6B20 45%, #6F5518);
  color: #FFF8E6; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(24, 37, 66, 0.25);
}
.urgency-strip span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.urgency-strip .dot { width: 7px; height: 7px; border-radius: 50%; background: #F4D98C; box-shadow: 0 0 0 3px rgba(244, 217, 140, 0.25); }
.page-special-offer .site-header { margin-top: 46px; top: 46px; }

.so-hero { position: relative; overflow: hidden; }
.so-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr); gap: clamp(1.8rem, 4vw, 3.4rem); align-items: start; }
.so-hero__badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent-tint);
  color: var(--accent-hover); border: 1px solid var(--border-strong); border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; padding: 6px 16px; margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.so-count { display: inline-flex; align-items: center; gap: 8px; margin: 0.4rem 0 1.2rem; }
.so-count__seg {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 58px; padding: 9px 8px; border-radius: 9px;
  background: var(--midnight-deep); color: #F4D98C;
  font-family: var(--font-body); font-weight: 700; font-size: 1.35rem;
  font-variant-numeric: tabular-nums; letter-spacing: 0.04em; box-shadow: var(--shadow-sm);
}
.so-count__sep { color: var(--accent); font-weight: 700; font-size: 1.2rem; }
.so-reinforce { font-size: 0.95rem; color: var(--muted); margin-top: 0.9rem; }

.so-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

.so-cta-band {
  background: linear-gradient(120deg, var(--midnight-deep), var(--midnight));
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  color: var(--ivory-on-dark); text-align: center;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.4rem, 3vw, 3rem);
}
.so-cta-band h2 { color: var(--ivory-on-dark); }
.so-cta-band p { color: var(--muted-on-dark); max-width: 560px; margin-inline: auto; }

.so-modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 20px; }
.so-modal.is-open { display: flex; }
.so-modal__overlay { position: absolute; inset: 0; background: rgba(24, 37, 66, 0.62); }
.so-modal__card {
  position: relative; z-index: 1; width: min(480px, 100%);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 28px 26px 24px; text-align: center;
}
.so-modal__close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.so-modal__close:hover { background: var(--accent-tint); color: var(--accent-hover); }
.so-modal__art { width: 132px; height: auto; margin: 0 auto 10px; display: block; }
.so-modal__card h2 { font-size: 1.5rem; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.error-page__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 10vw, 7rem); color: var(--accent); line-height: 1; margin-bottom: 0.2em; }
.error-page p { max-width: 520px; margin-inline: auto; color: var(--muted); }
.error-page__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1.6rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-lg > * + * { margin-top: 1.4rem; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; align-items: start; }

/* ---------- Scroll reveal (JS-enhanced only) ---------- */
body.js-reveal .reveal-item { opacity: 0; transform: translateY(10px); }
body.js-reveal .reveal-item.is-revealed { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .page-hero__grid, .so-hero__grid { grid-template-columns: 1fr; }
  .form-block--wide { margin-left: 0; }
}
@media (max-width: 920px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: block; }
  .company-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .hero-bg { display: none; }
  .table-wrap table { min-width: 520px; }
  .so-count__seg { min-width: 50px; font-size: 1.15rem; }
}
@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .grid { gap: 14px; }
  .card { padding: 18px; }
  .form-block__card { padding: 16px 14px 12px; }
  .footer-top { grid-template-columns: 1fr; }
  .flags { gap: 10px; }
  .so-count__seg { min-width: 44px; font-size: 1rem; padding: 7px 4px; }
  .urgency-strip { font-size: 0.72rem; gap: 4px 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body.js-reveal .reveal-item { opacity: 1 !important; transform: none !important; }
  .hero-bg { transform: none !important; }
}

/* Home conversion redesign: city photography, focused application, market motifs. */
.tv-ticker-wrapper { padding-top: 0 !important; height: 58px !important; }
[hidden] { display: none !important; }
.hero--conversion {
  isolation: isolate;
  padding: clamp(32px, 4.5vw, 64px) 0 20px;
  background: linear-gradient(90deg, rgba(251,248,241,.96) 0%, rgba(251,248,241,.65) 62%, rgba(251,248,241,.96) 100%), url('/assets/images/hero-city.jpg') center / cover;
  border-bottom: 1px solid var(--border);
}
.hero--conversion::before { display: none; }
.hero-market-art { position: absolute; inset: 0; color: var(--accent); opacity: .14; pointer-events: none; z-index: -1; }
.hero-market-art svg { width: 100%; height: 100%; }
.hero-conversion-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .9fr); grid-template-areas: 'heading application' 'details application' 'visual application' 'location location'; gap: 22px 48px; align-items: start; }
.hero-heading { grid-area: heading; min-width: 0; }
.hero-kicker, .application-kicker { font: 700 .72rem/1.5 var(--font-body); letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.hero-heading h1 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1.12; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.hero-heading h1 span { color: var(--accent-hover); }
.hero-details { grid-area: details; min-width: 0; }
.hero-description { color: var(--text); font-size: 1.02rem; line-height: 1.65; max-width: 590px; margin: 0 0 22px; }
.hero-benefits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; padding: 0; margin: 0 0 22px; border-block: 1px solid var(--border); }
.hero-benefits li { padding: 14px 10px 14px 0; margin: 0; }
.hero-benefits li + li { border-left: 1px solid var(--border); padding-left: 16px; }
.hero-benefits strong, .hero-benefits span { display: block; }
.hero-benefits strong { font: 700 1.3rem/1.3 var(--font-body); color: var(--text); }
.hero-benefits span { font-size: .73rem; color: var(--muted); margin-top: 4px; }
.hero-application { grid-area: application; min-width: 0; padding: clamp(22px, 2.5vw, 32px); border: 1px solid var(--accent); border-radius: 22px; background: var(--surface); box-shadow: 0 22px 64px rgba(24,37,66,.15); border-top: 4px solid var(--accent); }
.hero-application .form-block { max-width: none; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.hero-application .form-block__heading { font-size: 1.45rem; line-height: 1.25; margin: 0 0 12px; }
.hero-application .form-block__intro { font-size: .9rem; line-height: 1.6; color: var(--muted); margin-bottom: 20px; }
.hero-application .form-block__card { padding: 0; border: 0; box-shadow: none; background: transparent; }
.hero-application input { min-height: 48px; }
.hero-application button[type='submit'] { min-height: 52px; width: 100%; white-space: normal; border-radius: 10px; font-weight: 700; box-shadow: 0 5px 20px rgba(138,107,32,.2); }
.hero-application .form-manager { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .85rem; }
.hero-application .form-legal { font-size: .74rem; }
.hero-risk { color: var(--muted); font-size: .74rem; line-height: 1.5; margin: 12px 0 0; }
.hero-details .flags, .hero-details .hero-flags { margin: 0 0 12px; font-size: .8rem; }
.hero-details .hero-links, .hero-details .hero-iconlinks, .hero-details .hero-meta { margin: 10px 0 0; gap: 8px; }
.hero-details .hero-foot { display: block; padding: 0; border: 0; }
.hero-details .hero-link, .hero-details .icon-link { padding: 8px 12px; font-size: .8rem; }
.hero-preview { grid-area: visual; width: 100%; max-width: 560px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.8); }
.hero--conversion .hero-preview > svg { height: 160px; width: 100%; object-fit: contain; filter: none; }
.hero-preview .term-panel { padding: 10px; box-shadow: none; }
.hero-preview .term-chart { max-height: 120px; }
.hero-preview .hero-orbits { display: none; }
.hero-preview-label { font-size: .67rem; color: var(--muted); text-align: center; margin: 8px 0 0; }
.hero-location { grid-area: location; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: .75rem; color: var(--text); margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.hero-location span { color: var(--muted); font-size: .65rem; }
.hero-location a { color: inherit; text-decoration: underline; }
.page-home .section-head h2 { letter-spacing: -.025em; }
.page-home .step { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.page-home .review-card { border-radius: 18px; border-top: 2px solid var(--accent); }
.review-photo { width: 64px; height: 64px; flex: 0 0 64px; object-fit: cover; border-radius: 50%; border: 2px solid var(--accent); }
#registration-form { scroll-margin-top: 100px; }
#mobile-menu { max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }
#mobile-menu button, #mobile-menu a { min-height: 44px; }
@media (min-width: 921px) { #mobile-menu { display: none !important; } }
@media (max-width: 920px) {
  .hero-conversion-grid { grid-template-columns: minmax(0,1fr); grid-template-areas: 'heading' 'application' 'details' 'visual' 'location'; gap: 24px; }
  .hero-kicker { display: none; }
  .hero-heading h1 { font-size: clamp(1.9rem, 6.8vw, 3rem); max-width: 680px; }
  .hero-application { width: 100%; max-width: 680px; }
  .hero-preview { max-width: 680px; }
  .hero--conversion { background-position: 55% center; }
}
@media (max-width: 480px) {
  .hero--conversion { padding-top: 28px; }
  .hero-conversion-grid { gap: 20px; }
  .hero-application { padding: 20px 16px; border-radius: 16px; }
  .hero-application .form-block__heading { font-size: 1.3rem; }
  .hero-benefits li + li { padding-left: 10px; }
  .hero-benefits strong { font-size: 1.15rem; }
  .hero-location { flex-direction: column; }
  .page-home .reviews-grid { grid-template-columns: minmax(0,1fr); }
}

#mobile-menu .mobile-menu__inner { padding: 10px clamp(16px,4vw,40px) 22px; }
.page-special-offer #mobile-menu { max-height: calc(100dvh - 124px); }
