/* ==========================================================================
   Solvex Quarion — main.css
   GEO_CINEMATIC_ARCHITECTURAL: warm cream paper, deep navy ink, copper signal,
   stone bands. Fraunces (display) + Archivo (body). Local fonts only.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --bg:            #F8F3EA;
  --surface:       #FDFAF3;
  --surface-2:     #EFE8DA;
  --border:        #DDD2BE;
  --text:          #232C3D;
  --text-muted:    #5A6172;
  --accent:        #A9531F;
  --accent-hover:  #8F4419;
  --accent-tint:   #F3E2D3;
  --ink-band:      #232C3D;
  --cream:         #FDFAF3;
  --cream-muted:   #C9CFDF;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 40px; --sp-12: 64px; --sp-18: 96px; --sp-24: 144px;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(35, 44, 61, .07), 0 2px 6px rgba(35, 44, 61, .05);
  --shadow-md: 0 1px 2px rgba(35, 44, 61, .06), 0 8px 24px rgba(35, 44, 61, .10);
  --shadow-lg: 0 2px 6px rgba(35, 44, 61, .08), 0 16px 48px rgba(35, 44, 61, .16);

  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 160ms; --duration-med: 220ms; --duration-slow: 300ms;
}

/* --- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe, video, canvas { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-3);
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 3.4vw, 3.1rem); text-wrap: balance; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
p { margin: 0 0 var(--sp-3); text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; transition: color var(--duration-fast) var(--ease), background-color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease); }
a:hover { color: var(--accent-hover); text-decoration: underline; }
ul, ol { margin: 0 0 var(--sp-3); padding-left: 1.2em; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent-tint); color: var(--text); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.container.narrow { max-width: 880px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--ink-band); color: var(--cream);
  padding: 10px 18px; border-radius: var(--radius-xs);
  font-weight: 600; transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--cream); text-decoration: none; }

.icon { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.icon-inline { width: 16px; height: 16px; vertical-align: -3px; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 48px; padding: 12px 26px;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn-primary {
  background: var(--accent); color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-hover); color: var(--cream);
  transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none;
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent; color: var(--accent); border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-tint); color: var(--accent-hover); text-decoration: none;
}
.btn-lg { min-height: 54px; padding: 14px 34px; font-size: 17px; }
.btn-block { width: 100%; }
.section-cta { text-align: center; margin: var(--sp-8) 0 0; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 243, 234, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: var(--bg); }
.header-inner {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand svg { width: 200px; height: auto; display: block; }
.brand:hover { text-decoration: none; }
.main-nav { margin-inline: auto; }
.nav-list { display: flex; gap: clamp(6px, 1.4vw, 18px); list-style: none; margin: 0; padding: 0; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: var(--text); padding: 10px 8px; border-radius: var(--radius-xs);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav-trigger:hover { color: var(--accent); background: var(--accent-tint); }
.nav-trigger .icon-caret { width: 14px; height: 14px; transition: transform .18s var(--ease); }
.nav-trigger[aria-expanded="true"] .icon-caret { transform: rotate(180deg); }
.nav-trigger[aria-expanded="true"] { color: var(--accent); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 110;
  min-width: 264px; max-width: min(320px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown.align-right { left: auto; right: 0; }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown a {
  display: block; padding: 10px 12px; border-radius: var(--radius-xs);
  color: var(--text); font-size: 15px; font-weight: 400;
}
.dropdown a:hover, .dropdown a:focus-visible {
  background: var(--accent-tint); color: var(--text); text-decoration: none;
}
.nav-item { position: relative; }
.btn-header { flex: none; min-height: 44px; padding: 10px 20px; }

.nav-burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: var(--radius-xs);
  align-items: center; justify-content: center; color: var(--text);
}
.nav-burger:hover { background: var(--accent-tint); color: var(--accent); }
.nav-burger .icon-menu, .nav-burger .icon-close { width: 24px; height: 24px; }
.nav-burger .icon-close { display: none; }
.nav-burger[aria-expanded="true"] .icon-menu { display: none; }
.nav-burger[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { border-top: 1px solid var(--border); background: var(--bg); }
.mobile-nav .container { padding-block: var(--sp-3); }
.mobile-group { border-bottom: 1px solid var(--border); }
.mobile-group summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; padding: 14px 4px;
  font-weight: 600; font-size: 15px; color: var(--text);
}
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group summary:hover { color: var(--accent); }
.mobile-group ul { list-style: none; margin: 0 0 10px; padding: 0; }
.mobile-group a {
  display: block; padding: 9px 12px; border-radius: var(--radius-xs);
  color: var(--text-muted); font-size: 15px;
}
.mobile-group a:hover { background: var(--accent-tint); color: var(--text); text-decoration: none; }
.mobile-nav .btn { margin: var(--sp-3) 0; }

/* --- Breadcrumbs --------------------------------------------------------- */
.breadcrumbs { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0; padding: 10px 0; font-size: 13.5px; color: var(--text-muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* --- Sections ------------------------------------------------------------ */
.section { padding-block: var(--sp-18); position: relative; overflow-x: clip; }
.section--compact { padding-block: clamp(64px, 8vw, 96px); }
.section--paper2 { background: var(--surface-2); border-block: 1px solid var(--border); }
.section--ink { background: var(--ink-band); color: var(--cream); }
.section-head { max-width: 720px; margin-bottom: var(--sp-8); }
.section-head--inverse { color: var(--cream); }
.lead { font-size: 18px; color: var(--text-muted); margin-bottom: 0; max-width: 640px; }
.section--ink .lead { color: var(--cream-muted); }
.note { font-size: 14px; color: var(--text-muted); margin-top: var(--sp-3); max-width: 460px; }
.note-center { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: var(--sp-6); }
.note-center a { color: var(--accent-hover); }
/* Measure: prose paragraphs never run the full container width */
main .container > p:not([class]) { max-width: 560px; }
main .container > h3 { margin-top: var(--sp-6); }
.intro-lead { font-size: 17.5px; color: var(--text-muted); max-width: 780px; }

/* Decorative section texture: faint drafting grid inside paper bands */
.section--paper2 {
  background-image:
    linear-gradient(rgba(35, 44, 61, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 44, 61, .035) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
}
.section--ink {
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(169, 83, 31, .16), transparent 60%),
    linear-gradient(rgba(253, 250, 243, .045) 1px, transparent 1px);
  background-size: auto, 52px 52px;
}

/* --- Grids, cards, badges ------------------------------------------------ */
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card, .feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: var(--sp-6); transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3, .feature h3 { margin-bottom: var(--sp-2); }
.card p, .feature p { color: var(--text-muted); margin: 0; font-size: 15.5px; }
.card--inverse { background: rgba(253, 250, 243, .06); border-color: rgba(253, 250, 243, .18); box-shadow: none; }
.card--inverse h3 { color: var(--cream); }
.card--inverse p, .card-muted { color: var(--cream-muted) !important; }

.card-link { display: flex; flex-direction: column; gap: var(--sp-2); color: inherit; }
.card-link:hover { text-decoration: none; color: inherit; }
.card-more {
  margin-top: auto; padding-top: var(--sp-3); font-weight: 600; font-size: 14.5px;
  color: var(--accent); display: inline-flex; align-items: center; gap: 6px;
}
.card-link:hover .card-more { color: var(--accent-hover); }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none;
  background: var(--accent-tint); border-radius: var(--radius);
  color: var(--accent); margin-bottom: var(--sp-3);
}
.icon-badge--lg { width: 64px; height: 64px; }
.icon-badge--lg .icon { width: 30px; height: 30px; }
.icon-badge-sm { width: 30px; height: 30px; border-radius: var(--radius-xs); margin: 0; }

/* Editorial variant: icon sits inline with the heading, columns breathe
   unevenly (anti-tile). Used on security cards + advantages. */
@media (min-width: 720px) {
  .grid--inline-icons.grid-3 { grid-template-columns: 1.12fr 1fr 1.12fr; }
  .grid--inline-icons.grid-4 { grid-template-columns: 1.14fr 1fr 1fr 1.14fr; }
}
.grid--inline-icons .card,
.grid--inline-icons .feature {
  display: grid; grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 14px; align-items: center;
}
.grid--inline-icons .card .icon-badge,
.grid--inline-icons .feature .icon-badge { grid-column: 1; grid-row: 1; margin: 0; }
.grid--inline-icons .card h3,
.grid--inline-icons .feature h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 17.5px; }
.grid--inline-icons .card p,
.grid--inline-icons .feature p { grid-column: 1 / -1; grid-row: 2; margin: 12px 0 0; }
.icon-badge-sm .icon { width: 17px; height: 17px; }
.card h3, .feature h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card .icon-badge, .feature .icon-badge { margin-bottom: 0; }
.card .icon-badge + h3 { margin-top: 0; }
.feature .icon-badge, .card .icon-badge { margin-bottom: var(--sp-3); }
.card h3 { margin-top: 0; }

/* --- Notices / note panels ------------------------------------------------ */
.notice, .note-panel {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: var(--sp-4) var(--sp-6); margin: var(--sp-6) 0;
}
.notice > .icon { width: 26px; height: 26px; flex: none; color: var(--accent); margin-top: 3px; }
.notice p:last-child, .note-panel p:last-child { margin-bottom: 0; }
.notice--warning { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-tint); }
.note-panel { display: block; }
.note-panel--ink { background: var(--ink-band); border-color: var(--ink-band); color: var(--cream); }
.note-panel--ink h2, .note-panel--ink h3 { color: var(--cream); }
.note-panel--ink p { color: var(--cream-muted); }
.note-panel--warning { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-tint); }

.bullet-list { margin: var(--sp-3) 0; }
.bullet-list li { margin-bottom: var(--sp-2); }
.bullet-list li::marker { color: var(--accent); }

.check-list { list-style: none; padding: 0; margin: var(--sp-4) 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.check-list .icon { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }

/* --- Tables --------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-sm); margin-top: var(--sp-4);
  -webkit-overflow-scrolling: touch;
}
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.data-table th, .data-table td {
  text-align: left; padding: 13px 16px; vertical-align: top;
  border-bottom: 1px solid var(--border); line-height: 1.5;
}
.data-table thead th {
  background: var(--surface-2); font-weight: 600; font-size: 13.5px;
  text-transform: none; letter-spacing: .01em; color: var(--text);
}
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(243, 226, 211, .35); }
.data-table tbody th[scope="row"] { font-weight: 600; color: var(--text); }
.plans-table td, .plans-table th { text-align: center; }
.plans-table th[scope="row"], .plans-table td:first-child { text-align: left; }

.costs-table { table-layout: fixed; }
.costs-table th:first-child, .costs-table td:first-child { width: 48%; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.compare-table th, .compare-table td { text-align: left; padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--border); line-height: 1.5; }
.compare-table thead th { background: var(--surface-2); font-weight: 600; font-size: 13.5px; color: var(--text); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: rgba(243, 226, 211, .35); }
.compare-table td:first-child { max-width: 320px; }
.cell-yes { color: #2E6B4F; }
.cell-no { color: #A03A2E; }
.icon-check, .icon-x { width: 22px; height: 22px; vertical-align: -5px; }

/* --- Steps ----------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps:not(.steps--inline):not(.steps--stack) {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
}
.steps--inline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.steps--three, .steps.steps--three { grid-template-columns: repeat(3, 1fr); }
.steps--stack .step--full {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: var(--sp-6); margin-bottom: var(--sp-4);
}
.step { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--accent); color: var(--cream);
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  margin-bottom: var(--sp-3);
}
.step-body h2, .step-body h3 { margin-bottom: var(--sp-2); }
.step-body p { color: var(--text-muted); font-size: 15px; margin: 0; }
.step-body .step-tip {
  margin-top: var(--sp-3); font-size: 13.5px; color: var(--text-muted);
  background: var(--accent-tint); border-radius: var(--radius-xs);
  padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start;
}
.step-tip .icon { color: var(--accent); flex: none; }
.steps--inline .step-body p { font-size: 14.5px; }

/* --- Flags ------------------------------------------------------------------ */
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-4); margin: var(--sp-4) 0 0;
}
.hero-trust { margin: 0; }
.flags-label { font-size: 14px; color: var(--cream-muted); margin-bottom: 8px; }
.flags-row { display: flex; gap: 10px; }
.flag {
  width: 34px; height: 24px; border-radius: 4px; display: inline-block;
  box-shadow: 0 0 0 1px rgba(253, 250, 243, .4); overflow: hidden; position: relative;
}
.flag--pe { background: linear-gradient(to bottom, #D91023 0 33%, #F8F3EA 33% 66%, #D91023 66%); }
.flag--jp { background: var(--cream); position: relative; }
.flag--jp::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px;
  border-radius: 50%; background: #BC002D;
}
.flag--br {
  background: linear-gradient(135deg, #009B3A 0 38%, #FEDF00 38% 62%, #009B3A 62%);
}

/* --- Hero (home) -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
  filter: saturate(.82) contrast(1.05);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(215deg, rgba(35, 44, 61, .42) 0%, rgba(35, 44, 61, .68) 58%, rgba(35, 44, 61, .82) 100%);
}
.hero-motif, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-motif--static { opacity: 1; }
.hero-canvas { opacity: 0; transition: opacity .6s var(--ease); }
.hero-canvas.is-live { opacity: 1; }
.hero { padding-block: clamp(64px, 9vw, 120px); min-height: min(88vh, 820px); display: flex; align-items: center; }
.hero .container { width: 100%; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.hero-copy { color: var(--cream); }
.hero-copy h1 { color: var(--cream); margin-bottom: var(--sp-4); }
.hero-lead { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--cream-muted); max-width: 34em; }
.hero-badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin: var(--sp-5, 20px) 0 0; padding: 0;
}
.hero-badges a {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--cream); font-size: 14.5px; font-weight: 600;
  border: 1px solid rgba(253, 250, 243, .35); border-radius: 999px;
  padding: 8px 16px; transition: background-color .16s var(--ease), border-color .16s var(--ease);
}
.hero-badges a:hover { background: rgba(253, 250, 243, .12); border-color: rgba(253, 250, 243, .6); text-decoration: none; }
.hero-badges .icon { color: #C97B45; }

/* Forms (formFactory wrapper) */
.hero-form, .page-hero-form, .auth-form, .so-hero-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(20px, 2.6vw, 32px);
}
.form-title {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  margin-bottom: var(--sp-3); color: var(--text);
}
.form-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--text-muted); margin: var(--sp-3) 0 0;
}
.form-note .icon { color: var(--accent); }

.form-block form { margin: 0; }
.form-block .registration-form { display: grid; gap: 12px; }
.form-block input[type="text"],
.form-block input[type="email"],
.form-block input[type="tel"],
.form-block input[type="password"] {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--text-muted); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 15.5px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-block input::placeholder { color: var(--text-muted); opacity: .85; }
.form-block input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(169, 83, 31, .18);
}
.form-block input[type="submit"] {
  width: 100%; min-height: 52px; margin-top: 4px;
  background: var(--accent); color: var(--cream) !important;
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.form-block input[type="submit"]:hover {
  background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.form-block input[type="submit"]:active { transform: translateY(0); }
.form-block .error, .form-block .field-error { color: #A03A2E; font-size: 13px; }
.form-block__intro { font-size: 14.5px; color: var(--text-muted); margin-bottom: var(--sp-3); }
.form-legal { font-size: 12.5px; color: var(--text-muted); margin: var(--sp-3) 0 0; }

/* --- Exchange row ---------------------------------------------------------- */
.exchange-row {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: clamp(20px, 4vw, 56px);
  margin: var(--sp-6) 0 0; padding: 0;
}
.exchange-row img {
  height: 30px; width: auto; opacity: .68;
  filter: grayscale(1) contrast(1.05);
  transition: opacity .18s var(--ease), filter .18s var(--ease);
}
.exchange-row img:hover { opacity: 1; filter: grayscale(.4); }

/* --- Reviews ------------------------------------------------------------------ */
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-4);
}
.review-card {
  background: rgba(253, 250, 243, .06); border: 1px solid rgba(253, 250, 243, .18);
  border-radius: var(--radius); padding: var(--sp-6);
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.review-card:hover { transform: translateY(-2px); border-color: rgba(201, 123, 69, .55); }
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--sp-3); }
.review-head h3 { margin: 0; font-size: 17.5px; color: var(--cream); }
.review-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.review-avatar .icon { width: 24px; height: 24px; }
.review-avatar--copper { background: rgba(169, 83, 31, .28); color: #C97B45; }
.review-avatar--stone { background: rgba(221, 210, 190, .25); color: #DDD2BE; }
.review-avatar--navy { background: rgba(201, 207, 223, .22); color: #C9CFDF; }
.review-job { font-size: 13.5px; color: var(--cream-muted); margin: 2px 0 0; }
.review-text { margin: 0 0 var(--sp-4); }
.review-text p { color: var(--cream-muted); font-size: 15px; }
.review-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 0; padding-top: var(--sp-3); border-top: 1px solid rgba(253, 250, 243, .16);
}
.review-stats dt { font-size: 11.5px; text-transform: none; letter-spacing: .02em; color: var(--cream-muted); }
.review-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--cream); }
.reviews-note { text-align: center; font-size: 13px; color: var(--cream-muted); margin-top: var(--sp-6); }

/* --- Company split block -------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.facts { margin: var(--sp-3) 0 0; border-top: 1px solid var(--border); }
.facts > div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.facts dt { font-size: 13.5px; color: var(--text-muted); }
.facts dd { margin: 0; font-size: 15px; font-weight: 600; }
.split-cards, .mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.mini-grid { margin-top: var(--sp-4); }
.mini-card {
  display: grid; grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 12px; align-items: center; row-gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: var(--sp-4); color: inherit;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); text-decoration: none; color: inherit; }
.mini-card .icon-badge { margin: 0; width: 40px; height: 40px; grid-column: 1; grid-row: 1 / span 2; }
.mini-card .icon-badge .icon { width: 20px; height: 20px; }
.mini-card h3 { margin: 0; font-size: 16px; grid-column: 2; grid-row: 1; }
.mini-card p { margin: 0; font-size: 13.5px; color: var(--text-muted); grid-column: 2; grid-row: 2; }

/* --- FAQ --------------------------------------------------------------------------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.faq { display: grid; gap: 10px; margin-top: var(--sp-3); }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 15px 18px;
  font-weight: 600; font-size: 15.5px; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item[open] summary { color: var(--accent); border-bottom: 1px solid var(--border); }
.icon-caret { width: 18px; height: 18px; transition: transform .18s var(--ease); flex: none; }
.faq-item[open] .icon-caret { transform: rotate(180deg); }
.faq-answer { padding: 0; }
.faq-answer p { margin: 0; padding: 14px 18px; min-height: 0; color: var(--text-muted); font-size: 15px; }
.faq-more { font-size: 14px; color: var(--text-muted); margin-top: var(--sp-3); }
.faq-category { margin-bottom: var(--sp-8); }
.faq-category:last-of-type { margin-bottom: 0; }
.faq-category h2 {
  display: flex; align-items: center; gap: 12px;
  font-size: 21px; margin-bottom: var(--sp-2);
}

/* --- Page hero (inner pages) ---------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink-band); }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  filter: saturate(.8) contrast(1.06);
}
.page-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(35, 44, 61, .55) 0%, rgba(35, 44, 61, .8) 70%, rgba(35, 44, 61, .88) 100%);
}
.page-hero-motif { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero { padding-block: clamp(56px, 7vw, 96px); }
.page-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.page-hero-copy { color: var(--cream); max-width: 40em; }
.page-hero-copy h1 { color: var(--cream); }
.page-hero-copy p { color: var(--cream-muted); }

/* --- Timeline (about) -------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 34px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding: 0 0 var(--sp-6) 88px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-year {
  position: absolute; left: 0; top: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--accent);
}
.timeline-item::after {
  content: ""; position: absolute; left: 28px; top: 9px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline-body p { margin: 0; color: var(--text-muted); }
.mission { display: flex; gap: var(--sp-6); align-items: flex-start; }
.mission h2 { margin-bottom: var(--sp-2); }
.mission p { color: var(--text-muted); }
.mission p:last-child { margin-bottom: 0; }

/* --- Photos ------------------------------------------------------------------------------ */
.about-photo { margin: var(--sp-8) 0 0; }
.about-photo img {
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  filter: saturate(.85) contrast(1.04);
  outline: 1px solid rgba(35, 44, 61, .08); outline-offset: -8px;
}
.about-photo figcaption {
  margin-top: 10px; font-size: 13.5px; color: var(--text-muted); text-align: center;
}

/* --- Office / contact ---------------------------------------------------------------------- */
.office-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-list { list-style: none; margin: var(--sp-4) 0 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; margin-bottom: var(--sp-4); }
.contact-list .icon { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.contact-list strong { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-list p { margin: 0; color: var(--text-muted); }
.map-embed {
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden; background: var(--surface-2);
  max-width: 100%; aspect-ratio: 16 / 10; min-height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- Jobs ------------------------------------------------------------------------------------ */
.jobs { display: grid; gap: var(--sp-4); margin-top: var(--sp-4); }
.job {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-4);
  align-items: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: var(--sp-6);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.job:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.job-main h3 { margin-bottom: 4px; }
.job-main p { color: var(--text-muted); font-size: 15px; }
.job-mode { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.job-cond { font-size: 13.5px; color: var(--text-muted); margin-top: 10px; }
.job-side { padding-left: var(--sp-2); }

/* --- Auth page ---------------------------------------------------------------------------------- */
.auth-hero { padding-block: var(--sp-12); background: var(--bg); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.auth-copy .lead { margin-bottom: var(--sp-4); }
.after-form { padding-block: var(--sp-12); }
.steps--inline.steps--3 { grid-template-columns: repeat(3, 1fr); }

/* --- Security blocks / risks ----------------------------------------------------------------------- */
.sec-block {
  display: flex; gap: var(--sp-5, 20px); align-items: flex-start;
  padding: var(--sp-6) 0; border-bottom: 1px solid var(--border);
}
.sec-block:last-of-type { border-bottom: 0; }
.sec-block .icon-badge { margin-top: 4px; }
.sec-block h2 { font-size: 21px; margin-bottom: var(--sp-2); }
.sec-block p:last-child { margin-bottom: 0; }
.risk-card h2 { font-size: 19px; }
.risk-card p { margin-bottom: var(--sp-3); }
.risk-card p:last-child { margin-bottom: 0; }
.risk-card .recommendation, .risk-card p + p strong { color: var(--accent); }

/* --- Articles ----------------------------------------------------------------------------------------- */
.article {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 40px); margin-bottom: var(--sp-6);
}
.article-head { display: flex; gap: var(--sp-4); align-items: flex-start; margin-bottom: var(--sp-4); }
.article-head h2 { margin-bottom: 4px; }
.article-meta { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.article h3 { font-size: 17px; margin-top: var(--sp-5, 24px); }
.article p { color: var(--text); }
.article > p { color: var(--text-muted); }

/* --- 404 ------------------------------------------------------------------------------------------------ */
.error-page { text-align: center; padding-block: var(--sp-24); }
.error-mark { width: 210px; height: auto; margin: 0 auto var(--sp-6); }
.error-page .lead { margin-inline: auto; }
.error-page .mini-grid { text-align: left; }

/* --- CTA band -------------------------------------------------------------------------------------------- */
.cta-band, .so-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
  background: var(--ink-band); color: var(--cream);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(24px, 3.4vw, 44px);
}
.cta-band h2, .so-cta-inner h2 { color: var(--cream); margin-bottom: 6px; font-size: 24px; }
.cta-band p, .so-cta-inner p { color: var(--cream-muted); margin: 0; max-width: 44em; }
.cta-band { margin-top: var(--sp-8); }
.section--so-cta { padding-block: var(--sp-12); background: var(--bg); }

/* --- Calculator block ------------------------------------------------------------------------------------- */
.section .calc-module-wrap { margin-top: var(--sp-4); }
/* Site-level affordance polish on the verbatim module: 44px hit target. */
main .calc-widget__cta { min-height: 44px; font-weight: 600; }

/* --- Special offer ------------------------------------------------------------------------------------------ */
.so-strip {
  background: var(--ink-band); color: var(--cream);
  border-bottom: 1px solid rgba(201, 123, 69, .5);
}
.so-strip__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(14px, 3vw, 40px); padding-block: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .03em;
}
.so-strip__inner span { display: inline-flex; align-items: center; gap: 8px; }
.so-strip__accent { color: #C97B45; }
.section--so-hero {
  background:
    radial-gradient(ellipse 60% 80% at 85% 10%, rgba(169, 83, 31, .14), transparent 65%),
    var(--bg);
  padding-block: var(--sp-12);
}
.so-hero-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px); align-items: start;
}
.so-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-tint); border-radius: 999px;
  padding: 7px 15px; margin-bottom: var(--sp-3);
}
.so-hero-copy h1 { margin-bottom: var(--sp-3); }
.so-hero-copy .hero-lead { color: var(--text-muted); font-size: 17.5px; }
.so-hero-facts { margin: var(--sp-4) 0 0; }
.so-hero-facts li { font-size: 14.5px; color: var(--text-muted); }
.so-reinforce {
  margin-top: var(--sp-3); font-size: 13.5px; color: var(--text-muted);
  border-top: 1px dashed var(--border); padding-top: var(--sp-3);
}
.so-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.so-modal[hidden] { display: none; }
.so-modal__overlay { position: absolute; inset: 0; background: rgba(35, 44, 61, .72); }
.so-modal__card {
  position: relative; z-index: 1; width: min(440px, 100%);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(24px, 3vw, 36px); text-align: center;
  animation: so-modal-in var(--duration-med) var(--ease-smooth-out);
}
@keyframes so-modal-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.so-modal--closing .so-modal__card { animation: so-modal-out 150ms var(--ease-smooth-out) forwards; }
@keyframes so-modal-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(8px) scale(.96); } }
.so-modal--closing .so-modal__overlay { animation: so-overlay-out 150ms var(--ease-smooth-out) forwards; }
@keyframes so-overlay-out { from { opacity: 1; } to { opacity: 0; } }
.so-modal__close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: 0; font-size: 26px; line-height: 1;
  color: var(--text-muted); cursor: pointer; padding: 6px; border-radius: var(--radius-xs);
}
.so-modal__close:hover { color: var(--text); background: var(--accent-tint); }
.so-modal__art { width: 190px; height: auto; margin: 0 auto var(--sp-3); display: block; }
.so-modal__title { font-family: var(--font-display); font-size: 22px; margin-bottom: var(--sp-2); }
.so-modal__text { font-size: 14.5px; color: var(--text-muted); margin-bottom: var(--sp-4); }
.so-count {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: var(--sp-4);
}
.so-count__seg {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--ink-band); border-radius: var(--radius-xs);
  padding: 8px 10px; min-width: 58px; color: var(--cream);
}
.so-count__seg b { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.so-count__seg i { font-style: normal; font-size: 10.5px; letter-spacing: .08em; color: var(--cream-muted); }
.so-count__sep { font-size: 22px; font-weight: 700; color: var(--text-muted); }

/* --- Footer -------------------------------------------------------------------------------------------------- */
.site-footer { background: var(--ink-band); color: var(--cream-muted); padding-block: var(--sp-12) var(--sp-6); }
.footer-grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: var(--sp-8); border-bottom: 1px solid rgba(253, 250, 243, .14);
}
.footer-col h3 { color: var(--cream); font-size: 15px; font-family: var(--font-body); font-weight: 700; letter-spacing: .02em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a {
  display: inline-block; padding: 4px 0; color: var(--cream-muted); font-size: 14px;
}
.footer-col a:hover { color: var(--cream); }
.footer-disclaimer { padding-top: var(--sp-6); font-size: 12.5px; }
.footer-disclaimer p { color: var(--cream-muted); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: var(--sp-3) 0; }
.footer-meta a { color: var(--cream); }
.footer-credits { color: rgba(201, 207, 223, .62); margin: 4px 0 0; }

/* --- Scroll reveal ---------------------------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(8px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }

/* --- Responsive ---------------------------------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .btn-header { display: none; }
  .nav-burger { display: inline-flex; margin-left: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps:not(.steps--inline):not(.steps--stack), .steps--inline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-grid, .auth-grid, .faq-wrap, .split, .so-hero-grid, .page-hero-grid, .hero-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: var(--sp-6); }
  .hero-form { order: 2; }
  .hero-copy { order: 1; }
  .hero-meta { order: 3; }
  .map-embed { aspect-ratio: 16 / 9; }
}
@media (max-width: 719px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps:not(.steps--stack), .steps--inline { grid-template-columns: 1fr; }
  .split-cards, .mini-grid { grid-template-columns: 1fr 1fr; }
  .cta-band, .so-cta-inner { flex-direction: column; align-items: flex-start; }
  .sec-block { flex-direction: column; gap: var(--sp-3); }
  .job { grid-template-columns: 1fr; }
  .job-side { padding-left: 0; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .timeline::before { left: 22px; }
  .timeline-item { padding-left: 56px; }
  .timeline-item::after { left: 16px; }
  .brand svg { width: 168px; }
  .hero { padding-block: 48px; }
  .section { padding-block: var(--sp-12); }
  .mission { flex-direction: column; }
  .exchange-row { gap: 18px; }
  .exchange-row img { height: 24px; }
  .so-modal__card { padding: 22px 16px; }
}
@media (max-width: 400px) {
  .split-cards, .mini-grid { grid-template-columns: 1fr; }
  .container { padding-inline: 16px; }
}

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

/* TradingView tape (beacon auto-injection): keep the widget inside the
   viewport at phone widths — its natural min-width is ~430px. */
.tv-ticker-wrapper { max-width: 100%; }
.tv-ticker-host { max-width: 100%; overflow: hidden; }
.tv-ticker-host tv-ticker-tape { max-width: 100%; overflow: hidden; }

/* --- Print -------------------------------------------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .breadcrumbs, .nav-burger, .btn, .ticker-row, .so-modal { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Ticker and international phone field */
.tv-ticker-wrapper {
  padding-top: 0px !important;
  height: 58px !important;
}
.iti__selected-country, .iti__selected-dial-code {
  color: rgb(24, 33, 47) !important;
}

/* Header registration and navigation */
.site-header .registration-cta {
  min-height: 44px;
  gap: .65em;
  font-weight: 700;
}
.registration-cta .cta-arrow { width: 1.05em; height: 1.05em; flex: none; }
.registration-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-header .dropdown { top: 100%; }
.site-header .dropdown ul { max-height: min(62vh, 32rem); overflow-y: auto; }
.site-header .mobile-nav { max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain; }
.site-header .mobile-nav[hidden] { display: none; }
.site-header .mobile-nav summary, .site-header .mobile-nav li a { min-height: 44px; align-content: center; }
.site-header .nav-burger { min-width: 44px; min-height: 44px; }

/* Home page media */
#content > .hero h1 { text-wrap: balance; }
#content > .hero .form-block { scroll-margin-top: 6rem; }
.review-photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.review-photo-note { margin-block: .65rem 1rem; font-size: .875rem; }

#content > .hero { min-height: auto; padding-block: clamp(36px, 6vw, 88px); }
#content > .hero .hero-form { align-self: start; }
#content > .hero .hero-scrim { background: linear-gradient(100deg, rgba(25, 34, 50, .94) 8%, rgba(25, 34, 50, .73) 55%, rgba(25, 34, 50, .31)); }

/* Home reading and spacing */
.home-page .form-block :is(input[type="text"], input[type="email"], input[type="tel"]),
.home-page .calc-modal :is(input[type="text"], input[type="email"], input[type="tel"]) {
  min-height: 44px;
  font-size: 1rem;
}
.home-page :is(.form-block, .calc-modal) :is(input[type="text"], input[type="email"], input[type="tel"])::placeholder {
  font-size: .875rem;
  opacity: 1;
}
.home-page .form-legal { font-size: .875rem; line-height: 1.5; }
.home-page .review-photo-note { max-width: 65ch; line-height: 1.5; }
@media (max-width: 640px) {
  .home-page > .section .section-head { margin-bottom: 20px; }
}

#content.home-page > .section { padding-block: clamp(40px, 5.6vw, 80px); }
#content.home-page > .section--compact { padding-block: clamp(34px, 4.5vw, 64px); }
#content.home-page > .hero .hero-scrim {
  background: linear-gradient(105deg, rgba(19, 27, 42, .97) 5%, rgba(19, 27, 42, .85) 45%, rgba(19, 27, 42, .42));
}
.home-page > .hero :is(.hero-motif, .hero-canvas) { opacity: .5; }
.home-page > .hero .hero-lead { color: var(--cream); margin-bottom: 0; }
.home-page > .hero .hero-meta { gap: 12px 16px; margin-top: 18px; }
.home-page > .hero .hero-badges a { background: var(--ink); }
@media (max-width: 1024px) {
  #content.home-page > .hero .hero-grid { gap: 24px; }
  #content.home-page > .hero .hero-scrim { background: rgba(19, 27, 42, .76); }
}

/* The registration form reserves a grid row for an optional password. */
#content.home-page :is(.form-block, .calc-modal) form > div:has(> div > input[name="first_name"]):not(:has(input[type="password"])) {
  row-gap: 0;
}
#content.home-page :is(.form-block, .calc-modal) form > div:has(> div > input[name="first_name"]):not(:has(input[type="password"])) > div:has(> :is(input[name="first_name"], input[name="last_name"], input[type="email"], input[type="tel"], .iti)) {
  margin-block-end: 12px;
}
.home-page :is(.form-block, .calc-modal) :is(input, button)[type="submit"] {
  min-height: 44px;
  margin-block-start: 0;
}
