﻿:root {
  --bg: #f5efe2;
  --surface: rgba(255, 251, 244, 0.92);
  --surface-strong: rgba(255, 252, 247, 0.98);
  --surface-deep: rgba(19, 63, 51, 0.96);
  --text: #18372c;
  --text-soft: #5e7269;
  --text-invert: #f7f1e7;
  --brand: #174f3f;
  --brand-deep: #10392d;
  --accent: #c6892c;
  --accent-soft: #f3e3c8;
  --line: rgba(24, 55, 44, 0.12);
  --line-strong: rgba(24, 55, 44, 0.22);
  --ok: #216548;
  --warn: #8e5a18;
  --error: #8b2f2f;
  --shadow: 0 24px 60px rgba(24, 55, 44, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #f7f2e8 0%, #eee4d4 56%, #e7dac8 100%);
}

a { color: inherit; }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.page-shell--cookie-offset .site-footer {
  padding-bottom: 138px;
}
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  background-clip: padding-box;
  overflow: hidden;
}

.portal-top-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(164, 104, 30, 0.22);
  background: rgba(255, 245, 226, 0.94);
  color: #6a4614;
  box-shadow: 0 18px 32px rgba(24, 55, 44, 0.08);
}

.portal-top-alert.is-hidden {
  display: none !important;
}

.portal-top-alert--alert {
  border-color: rgba(159, 95, 24, 0.28);
  background: rgba(255, 239, 223, 0.96);
  color: #7b3416;
}

.portal-top-alert--warn {
  border-color: rgba(198, 137, 44, 0.24);
  background: rgba(255, 248, 233, 0.96);
  color: #7a5117;
}

.portal-top-alert__main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.portal-top-alert__text {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
}

.portal-top-alert__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 79, 63, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.portal-top-alert__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.hero { position: relative; overflow: hidden; padding: 28px 0 40px; }
.hero__glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}
.hero__glow--left { left: -120px; top: 100px; background: rgba(198, 137, 44, 0.18); }
.hero__glow--right { right: -90px; top: -30px; background: rgba(23, 79, 63, 0.18); }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.topbar__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
}

.brand { display: inline-flex; align-items: center; gap: 14px; }

.brand__mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  flex: 0 0 78px;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand__mark--link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.brand__mark--link:focus-visible {
  outline: 3px solid rgba(23, 79, 63, 0.35);
  outline-offset: 4px;
}

.brand__title {
  font-family: "Spectral", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.brand__subtitle {
  margin-top: 7px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
}

.topbar__link--ghost {
  background: rgba(23, 79, 63, 0.08);
}

.topbar__link--owner {
  background: rgba(198, 137, 44, 0.14);
  border-color: rgba(198, 137, 44, 0.22);
}

.topbar__link--tenant {
  background: rgba(73, 142, 122, 0.14);
  border-color: rgba(73, 142, 122, 0.2);
}

.topbar__link.is-authenticated {
  background: rgba(23, 79, 63, 0.16);
  border-color: rgba(23, 79, 63, 0.22);
}

.topbar__auth-name {
  font: inherit;
  color: var(--brand);
  cursor: pointer;
}

.topbar__auth-name:hover,
.topbar__auth-name:focus-visible {
  border-color: rgba(23, 79, 63, 0.34);
  box-shadow: 0 10px 24px rgba(24, 55, 44, 0.12);
}

.topbar__auth-row {
  flex: 0 0 100%;
  order: 999;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-top: 2px;
}

.topbar__auth-row [data-auth-entry] {
  max-width: min(100%, 360px);
  margin-left: auto;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 24px;
}

.hero__copy,
.hero__aside,
.account-panel,
.info-panel,
.intro-panel,
.journey,
.overview,
.registration-panel,
.registration-side,
.compare-panel {
  padding: 36px;
}

.eyebrow,
.section-label,
.aside-label,
.overview__label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(23, 79, 63, 0.1);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Spectral", Georgia, serif;
}

h1 {
  margin-top: 18px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 0.98;
  max-width: none;
}

h2 {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.04;
}

h3 {
  font-size: 24px;
  line-height: 1.12;
}

.hero__lead,
.product-card p,
.overview p,
.aside-note,
.intro-panel p,
.journey-step p,
.registration-lead,
.save-note p,
.cookie-banner p {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 18px;
}

.hero__lead { margin: 22px 0 0; max-width: 76ch; }
.hero__lead--compact { margin-top: 16px; font-size: 17px; }

.hero__actions,
.registration-actions,
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.button--primary {
  background: #0d6b63;
  color: #fff;
}

.button--secondary {
  background: #e5f2ee;
  color: #124f43;
  border-color: #6fa497;
}

.button--accent {
  background: #0d6b63;
  color: #fff;
}

.button--primary:hover,
.button--accent:hover {
  background: #09574f;
}

.button--secondary:hover {
  background: #d2e8e1;
  border-color: #4d887a;
}

.button:focus-visible {
  outline: 3px solid rgba(13, 107, 99, 0.3);
  outline-offset: 3px;
}

.button--disabled,
.button[aria-disabled="true"] {
  opacity: 0.58;
  filter: grayscale(0.18);
  cursor: not-allowed;
}


.hero__cta-btn,
.hero__auth-btn {
  font-size: 17px;
}

.hero__auth-btn {
  min-width: 360px;
}.feature-list {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--text-soft);
  line-height: 1.72;
}

.feature-list--tight { margin-top: 14px; }

.feature-list--hero-benefits {
  margin-top: 20px;
  padding-left: 26px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.75;
}

.feature-list--hero-benefits li + li {
  margin-top: 10px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.package-banner {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(198, 137, 44, 0.24);
  background: linear-gradient(180deg, rgba(255, 244, 223, 0.96) 0%, rgba(255, 252, 247, 0.94) 100%);
  box-shadow: 0 12px 26px rgba(24, 55, 44, 0.06);
}

.package-banner strong {
  font-size: 22px;
  font-family: "Spectral", Georgia, serif;
  color: var(--brand);
}

.package-banner span {
  color: var(--text-soft);
  line-height: 1.6;
}

.aside-note { margin-top: 20px; }

.main-content { padding: 8px 0 42px; flex: 1 0 auto; }

.intro-panel,
.journey,
.compare-panel,
.overview,
.registration-grid {
  margin-top: 22px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.metric-grid {
  display: grid;
  gap: 16px;
}

.metric-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(24, 55, 44, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px rgba(24, 55, 44, 0.05);
}

.metric-card strong {
  display: block;
  font-size: 28px;
  font-family: "Spectral", Georgia, serif;
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  line-height: 1.55;
}

.journey-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.journey-step {
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(24, 55, 44, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px rgba(24, 55, 44, 0.05);
}

.journey-step__index {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(23,79,63,0.12) 0%, rgba(198,137,44,0.18) 100%);
  color: var(--brand);
  font-weight: 800;
}

.journey-step h3 { margin-top: 18px; }
.journey-step p { margin: 14px 0 0; font-size: 16px; }

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.product-card {
  padding: 32px;
  background: var(--surface-strong);
  border: 1px solid rgba(24, 55, 44, 0.14);
  box-shadow: 0 18px 42px rgba(24, 55, 44, 0.08);
  border-radius: var(--radius-xl);
  background-clip: padding-box;
}

.product-card--featured {
  background: linear-gradient(180deg, rgba(255,252,247,0.98) 0%, rgba(245,237,223,0.98) 100%);
}

.product-card__eyebrow {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--warn);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card h2 { margin-top: 16px; font-size: 34px; }

.page-shell--how .hero {
  padding-top: 30px;
  padding-bottom: 30px;
}

.page-shell--how .panel {
  border-radius: 26px;
}

.page-shell--how .topbar {
  margin-bottom: 22px;
}

.how-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: 24px;
}

.how-hero__main,
.how-hero__rail,
.how-section {
  padding: 34px 36px;
}

.how-hero__main h1 {
  margin-top: 16px;
  max-width: 13ch;
  font-size: clamp(44px, 4.6vw, 62px);
  line-height: 0.98;
  text-wrap: pretty;
}

.how-hero__lead {
  margin-top: 20px;
  max-width: 62ch;
  font-size: 19px;
}

.how-hero__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.how-kpi {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(24, 55, 44, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 239, 226, 0.94) 100%);
  box-shadow: 0 10px 24px rgba(24, 55, 44, 0.06);
}

.how-kpi span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.how-kpi strong {
  display: block;
  margin-top: 8px;
  font-family: "Spectral", Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.how-kpi p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.how-hero__actions {
  margin-top: 24px;
}

.how-hero__rail {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(240, 234, 223, 0.98) 100%);
}

.how-rail-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.how-rail-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  padding: 18px 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(24, 55, 44, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.how-rail-item__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 12px;
  background: rgba(23, 79, 63, 0.1);
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.how-rail-item strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.how-rail-item p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.how-section {
  margin-top: 22px;
}

.how-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
  border-radius: 22px;
  border: 1px solid rgba(24, 55, 44, 0.12);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
}

.how-strip__step {
  padding: 24px 22px;
  border-right: 1px solid rgba(24, 55, 44, 0.1);
}

.how-strip__step:last-child {
  border-right: none;
}

.how-strip__label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(23, 79, 63, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.how-strip__step strong {
  display: block;
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.2;
}

.how-strip__step p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.how-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.how-bundle {
  padding: 28px 30px;
  border-radius: 24px;
  border: 1px solid rgba(24, 55, 44, 0.12);
}

.how-bundle--start {
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.98) 0%, rgba(247, 236, 214, 0.96) 100%);
}

.how-bundle--work {
  background: linear-gradient(180deg, rgba(239, 247, 242, 0.98) 0%, rgba(226, 239, 233, 0.96) 100%);
}

.how-bundle h2 {
  margin-top: 16px;
  font-size: 34px;
  line-height: 1.06;
}

.how-row-list {
  display: grid;
  margin-top: 18px;
}

.how-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(24, 55, 44, 0.12);
}

.how-row:first-child {
  border-top: none;
}

.how-row span {
  color: var(--text-soft);
  line-height: 1.55;
}

.how-row strong {
  text-align: right;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand);
}

.how-operation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 20px;
  margin-top: 24px;
}

.how-screen {
  padding: 26px 28px;
  border-radius: 24px;
  border: 1px solid rgba(24, 55, 44, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(24, 55, 44, 0.06);
}

.how-screen--owner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 238, 227, 0.96) 100%);
}

.how-screen--tenant {
  background: linear-gradient(180deg, rgba(229, 241, 238, 0.98) 0%, rgba(216, 231, 227, 0.98) 100%);
}

.how-screen__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.how-screen__kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.how-screen__title {
  margin-top: 8px;
  font-size: 28px;
  font-family: "Spectral", Georgia, serif;
  line-height: 1.08;
}

.how-screen__badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(23, 79, 63, 0.1);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.how-screen__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.how-screen__stat {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 55, 44, 0.1);
}

.how-screen__stat span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.how-screen__stat strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.15;
}

.how-ledger {
  margin-top: 22px;
  border-top: 1px solid rgba(24, 55, 44, 0.12);
}

.how-ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(24, 55, 44, 0.12);
}

.how-ledger__row strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.how-ledger__row p {
  margin: 6px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.how-ledger__sum {
  align-self: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
  white-space: nowrap;
}

.how-ledger__status {
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(23, 79, 63, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.how-section--faq .how-faq__list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.how-faq__item {
  padding: 18px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(24, 55, 44, 0.08);
  border-right: 1px solid rgba(24, 55, 44, 0.08);
  border-bottom: 1px solid rgba(24, 55, 44, 0.08);
}

.how-faq__item strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.how-faq__item p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

@media (max-width: 1120px) {
  .how-hero__grid,
  .how-operation-grid,
  .how-split {
    grid-template-columns: 1fr;
  }

  .how-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .how-hero__summary,
  .how-screen__stats {
    grid-template-columns: 1fr;
  }

  .how-strip {
    grid-template-columns: 1fr;
  }

  .how-ledger__row,
  .how-row {
    grid-template-columns: 1fr;
  }

  .how-row strong,
  .how-ledger__sum,
  .how-ledger__status {
    text-align: left;
    justify-self: start;
  }

  .page-shell--how .topbar__actions {
    width: 100%;
  }
}
.product-card__list {
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* 2026-04-24: how-it-works refresh */
.page-shell--how {
  background:
    radial-gradient(circle at 12% 10%, rgba(120, 214, 168, 0.16), transparent 22%),
    radial-gradient(circle at 84% 16%, rgba(23, 79, 63, 0.14), transparent 22%),
    linear-gradient(180deg, #f5f8f1 0%, #f4eee3 42%, #f0e7da 100%);
}

.page-shell--how .hero {
  padding-top: 28px;
  padding-bottom: 20px;
}

.page-shell--how .topbar {
  margin-bottom: 30px;
}

.page-shell--how .topbar__actions {
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 32px rgba(24, 55, 44, 0.08);
}

.page-shell--how .topbar__link {
  min-height: 48px;
}

.page-shell--how .topbar__home-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.page-shell--how .hero__glow--left {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -120px;
  background: rgba(120, 214, 168, 0.16);
}

.page-shell--how .hero__glow--right {
  width: 520px;
  height: 520px;
  top: 0;
  right: -140px;
  background: rgba(23, 79, 63, 0.1);
}

.how-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 28px;
  align-items: stretch;
}

.how-hero__main {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px 0 0;
}

.how-hero__main h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(52px, 6vw, 88px);
  line-height: 0.94;
  text-wrap: balance;
}

.how-hero__lead {
  margin: 0;
  max-width: 58ch;
  font-size: 19px;
  line-height: 1.72;
}

.how-hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.how-hero__checks span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  background: rgba(255, 255, 255, 0.68);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.how-hero__actions {
  margin-top: 6px;
}

.how-hero__visual {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 8px;
}

.how-surface {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 48px rgba(24, 55, 44, 0.08);
}

.how-surface--dark {
  color: #f4f5ef;
  border-color: rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 18% 18%, rgba(104, 214, 173, 0.24), transparent 28%),
    linear-gradient(160deg, #143a31 0%, #19473b 48%, #102a23 100%);
}

.how-surface--dark .section-label {
  color: rgba(255, 248, 232, 0.84);
}

.how-surface--dark .section-label--light {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 248, 232, 0.9);
}

.how-board__list {
  display: grid;
  gap: 12px;
}

.how-board__row {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.how-board__row span {
  font-size: 14px;
  color: rgba(244, 245, 239, 0.76);
}

.how-board__row strong {
  font-size: 22px;
  line-height: 1.2;
  color: #f9fbf7;
}

.how-surface--light {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(247, 241, 230, 0.94) 100%);
}

.how-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.how-mini-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 55, 44, 0.08);
}

.how-mini-card span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.how-mini-card strong {
  font-size: 18px;
  line-height: 1.3;
}

.how-stage-line,
.how-bundle-grid,
.how-showcase-grid,
.how-faq {
  margin-top: 26px;
}

.how-stage-line__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.how-stage {
  display: grid;
  gap: 12px;
  padding: 24px 20px 0 0;
  border-top: 1px solid rgba(24, 55, 44, 0.16);
}

.how-stage__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(23, 79, 63, 0.08);
  color: var(--brand);
  font-size: 18px;
  font-weight: 800;
}

.how-stage strong {
  font-size: 22px;
  line-height: 1.2;
}

.how-stage p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.how-bundle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.how-bundle-card {
  padding: 30px 32px;
  border-radius: 28px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  box-shadow: 0 20px 40px rgba(24, 55, 44, 0.06);
}

.how-bundle-card--start {
  background: linear-gradient(180deg, rgba(255, 248, 234, 0.94) 0%, rgba(248, 239, 222, 0.98) 100%);
}

.how-bundle-card--work {
  background: linear-gradient(180deg, rgba(239, 247, 242, 0.96) 0%, rgba(228, 239, 233, 0.98) 100%);
}

.how-bundle-card h2 {
  margin-top: 14px;
  font-size: 38px;
  line-height: 1.04;
}

.how-row-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.how-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(24, 55, 44, 0.08);
}

.how-row:first-child {
  border-top: none;
  padding-top: 0;
}

.how-row span {
  color: var(--text-soft);
  line-height: 1.55;
}

.how-row strong {
  text-align: right;
  line-height: 1.35;
}

.how-showcase-grid {
  display: grid;
  gap: 20px;
}

.how-showcase {
  display: grid;
  gap: 20px;
  padding: 28px 30px;
  border-radius: 30px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  box-shadow: 0 20px 44px rgba(24, 55, 44, 0.06);
}

.how-showcase--owner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 238, 227, 0.96) 100%);
}

.how-showcase--tenant {
  background: linear-gradient(180deg, rgba(231, 242, 238, 0.96) 0%, rgba(219, 232, 228, 0.98) 100%);
}

.how-showcase__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.how-showcase__top h2 {
  margin-top: 12px;
  font-size: 42px;
  line-height: 1.04;
}

.how-showcase__badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(23, 79, 63, 0.1);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.section-label--tenant {
  background: rgba(23, 79, 63, 0.08);
  color: #285e55;
}

.how-showcase__badge--tenant {
  background: rgba(33, 108, 98, 0.12);
  color: #285e55;
}

.how-showcase__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.how-showcase__metric {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 55, 44, 0.08);
}

.how-showcase__metric span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.how-showcase__metric strong {
  font-size: 20px;
  line-height: 1.2;
}

.how-ledger-list {
  display: grid;
  gap: 12px;
}

.how-ledger-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(24, 55, 44, 0.08);
}

.how-ledger-item:first-child {
  border-top: none;
  padding-top: 0;
}

.how-ledger-item strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.how-ledger-item p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.62;
}

.how-ledger-item__amount {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(23, 79, 63, 0.08);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.how-faq__list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.how-faq__item {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid rgba(24, 55, 44, 0.12);
}

.how-faq__item:first-child {
  border-top: none;
  padding-top: 0;
}

.how-faq__item strong {
  font-size: 20px;
  line-height: 1.25;
}

.how-faq__item p {
  margin: 0;
  max-width: 70ch;
  color: var(--text-soft);
  line-height: 1.65;
}

@media (max-width: 1120px) {
  .how-hero__grid,
  .how-bundle-grid {
    grid-template-columns: 1fr;
  }

  .how-stage-line__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-showcase__metrics,
  .how-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .page-shell--how .topbar__actions {
    width: 100%;
    border-radius: 28px;
  }

  .how-hero__main h1,
  .how-showcase__top h2,
  .how-bundle-card h2 {
    max-width: none;
    font-size: clamp(38px, 10vw, 54px);
  }

  .how-showcase__top,
  .how-row,
  .how-ledger-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .how-stage-line__grid,
  .how-showcase__metrics,
  .how-mini-grid {
    grid-template-columns: 1fr;
  }

  .how-bundle-card,
  .how-surface,
  .how-showcase {
    padding: 22px;
  }
}

/* 2026-04-24: how-it-works explainer refresh */
.how-explainer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.how-explainer-hero__copy,
.how-explainer-hero__summary,
.how-purpose-panel,
.how-route-panel,
.how-include-card,
.how-examples-intro,
.how-example-panel,
.how-faq {
  padding: clamp(30px, 3.8vw, 46px);
  border-radius: 30px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  box-shadow: 0 24px 52px rgba(24, 55, 44, 0.06);
}

.how-explainer-hero__copy {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(249, 242, 231, 0.98) 100%);
}

.how-explainer-hero__copy h1 {
  margin: 18px 0 0;
  width: 100%;
  max-width: none;
  font-size: clamp(44px, 4.6vw, 70px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: normal;
}

.how-explainer-hero__copy .hero__lead {
  margin-top: 22px;
  max-width: 68ch;
  font-size: 19px;
  line-height: 1.78;
}

.how-explainer-hero__note {
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.76;
}

.how-explainer-hero__copy .hero__actions {
  margin-top: 26px;
}

.how-explainer-hero__summary {
  background: linear-gradient(160deg, rgba(18, 74, 59, 0.98) 0%, rgba(27, 97, 77, 0.98) 100%);
  color: rgba(255, 255, 255, 0.92);
}

.how-explainer-hero__summary .section-label {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}

.how-summary-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.how-summary-item {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.how-summary-item span {
  display: block;
  color: rgba(232, 245, 240, 0.76);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.how-summary-item strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 24px;
  line-height: 1.38;
}

.how-purpose-panel,
.how-route-panel,
.how-examples-intro,
.how-faq {
  margin-top: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(249, 242, 231, 0.96) 100%);
}

.how-purpose-panel h2,
.how-route-panel h2,
.how-examples-intro h2 {
  margin-top: 16px;
  width: 100%;
  max-width: none;
}

.how-purpose-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.how-purpose-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid rgba(24, 55, 44, 0.08);
}

.how-purpose-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.how-purpose-item span,
.how-route-card__no {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: rgba(23, 79, 63, 0.08);
  color: var(--brand);
  font-size: 18px;
  font-weight: 800;
}

.how-purpose-item strong,
.how-route-card strong {
  display: block;
  color: var(--brand-deep);
  font-size: 24px;
  line-height: 1.34;
}

.how-purpose-item p,
.how-route-card p,
.how-include-card p,
.how-example-panel p,
.how-faq__item p {
  margin: 10px 0 0;
  width: 100%;
  max-width: none;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.74;
}

.how-route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.how-route-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 55, 44, 0.08);
}

.how-route-card strong {
  margin-top: 18px;
}

.how-include-grid,
.how-examples-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.how-include-card--start,
.how-example-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(249, 242, 231, 0.97) 100%);
}

.how-include-card--work,
.how-example-panel--tenant {
  background: linear-gradient(145deg, rgba(246, 252, 250, 0.92) 0%, rgba(236, 247, 244, 0.98) 100%);
  border-color: rgba(47, 102, 90, 0.12);
}

.how-include-card h2,
.how-example-panel h2 {
  margin-top: 10px;
}

.how-include-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  max-width: 760px;
}

.how-include-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(220px, 1fr);
  gap: 18px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(24, 55, 44, 0.08);
}

.how-include-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.how-include-row span {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.55;
}

.how-include-row strong {
  color: var(--brand);
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
}

.how-examples-intro p {
  margin-top: 16px;
  width: 100%;
  max-width: none;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.76;
}

.how-example-panel .hero-dashboard-preview {
  margin-top: 22px;
}

.how-faq__list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.how-faq__item {
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 55, 44, 0.08);
}

.how-faq__item strong {
  display: block;
  color: var(--brand-deep);
  font-size: 22px;
  line-height: 1.38;
}

@media (max-width: 1120px) {
  .how-explainer-hero,
  .how-include-grid,
  .how-examples-grid {
    grid-template-columns: 1fr;
  }

  .how-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .how-explainer-hero__copy h1 {
    max-width: none;
    font-size: clamp(40px, 10vw, 56px);
  }

  .how-route-grid {
    grid-template-columns: 1fr;
  }

  .how-purpose-item {
    grid-template-columns: 1fr;
  }

  .how-include-row {
    grid-template-columns: 1fr;
  }

  .how-include-row strong {
    text-align: left;
  }

  .how-explainer-hero__copy,
  .how-explainer-hero__summary,
  .how-purpose-panel,
  .how-route-panel,
  .how-include-card,
  .how-examples-intro,
  .how-example-panel,
  .how-faq {
    padding: 24px;
  }
}

/* 2026-04-24: payments redesign */
.page-shell--payments {
  background:
    radial-gradient(circle at 18% 8%, rgba(138, 192, 170, 0.14), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(23, 79, 63, 0.1), transparent 20%),
    linear-gradient(180deg, #f4efe4 0%, #f3ebdd 46%, #efe7d9 100%);
}

.page-shell--payments .hero {
  padding-top: 26px;
  padding-bottom: 18px;
}

.finance-hero {
  padding: clamp(26px, 3.2vw, 38px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 241, 227, 0.96) 100%);
  border-color: rgba(24, 55, 44, 0.08);
}

.finance-hero__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 22px;
  align-items: start;
  margin-top: 18px;
}

.finance-hero__lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.72;
}

.finance-hero__intro {
  margin-top: 24px;
}

.finance-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.finance-summary-grid .portal-summary__item {
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(24, 55, 44, 0.04);
}

.finance-summary-grid .portal-summary__value {
  font-size: 28px;
  line-height: 1.08;
}

.finance-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.finance-toolbar__card,
.finance-panel {
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 38px rgba(24, 55, 44, 0.05);
}

.finance-toolbar__title,
.finance-panel__title {
  margin: 10px 0 0;
  color: var(--brand-deep);
  font-size: 28px;
  line-height: 1.12;
}

.finance-toolbar__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.payments-anchor-nav--finance {
  gap: 10px;
  margin-top: 20px;
}

.payments-anchor-nav--finance .payments-anchor-nav__link {
  border-radius: 999px;
  border: 1px solid rgba(24, 55, 44, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: var(--brand-deep);
  font-weight: 700;
}

.payments-anchor-nav--finance .payments-anchor-nav__link:hover {
  background: rgba(23, 79, 63, 0.08);
  border-color: rgba(23, 79, 63, 0.18);
}

.finance-section-head {
  max-width: 86ch;
}

.finance-section-head__note {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.72;
}

.finance-register-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 20px;
  margin-top: 18px;
}

.finance-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.finance-panel--history,
.finance-panel--table {
  background: linear-gradient(145deg, rgba(248, 252, 250, 0.94) 0%, rgba(241, 246, 244, 0.98) 100%);
}

.finance-filter-grid {
  margin-bottom: 18px;
}

.finance-table-wrap {
  padding: 10px;
  margin-top: 0;
  border-radius: 22px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.page-shell--payments .workspace-section {
  margin-top: 24px;
}

.page-shell--payments .portal-form__allocations {
  margin-top: 10px;
}

.page-shell--payments .portal-allocation-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(24, 55, 44, 0.18);
  background: rgba(244, 248, 245, 0.76);
  color: var(--text-soft);
  line-height: 1.5;
}

.page-shell--payments .portal-allocation-note .button {
  flex: 0 0 auto;
}

.page-shell--payments .ledger-stack {
  display: grid;
  gap: 14px;
}

.page-shell--payments .ledger-entry {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.page-shell--payments .workspace-inline-actions {
  margin-top: 18px;
}

@media (max-width: 1120px) {
  .finance-hero__head,
  .finance-toolbar,
  .finance-register-grid,
  .finance-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .finance-toolbar__grid {
    grid-template-columns: 1fr;
  }

  .finance-toolbar__card,
  .finance-panel,
  .finance-hero {
    padding: 22px;
  }

  .finance-summary-grid .portal-summary__value {
    font-size: 24px;
  }
}
.product-card__list li + li { margin-top: 8px; }
.product-card .button { margin-top: 22px; }
.product-card__note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(24, 55, 44, 0.14);
  box-shadow: 0 8px 18px rgba(24, 55, 44, 0.04);
  color: var(--text-soft);
  line-height: 1.6;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.compare-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(24, 55, 44, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(24, 55, 44, 0.05);
}

.account-panel {
  margin-top: 22px;
}

.account-panel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

.role-entry {
  margin-top: 28px;
}

.role-entry__header h3 {
  font-size: 28px;
}

.role-entry__header .portal-note {
  margin: 12px 0 0;
}

.role-entry__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.role-entry-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(24, 55, 44, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(24, 55, 44, 0.05);
}

.role-entry-card--owner {
  background: linear-gradient(180deg, rgba(249, 238, 218, 0.9) 0%, rgba(255, 251, 245, 0.95) 100%);
  border-color: rgba(198, 137, 44, 0.18);
}

.role-entry-card--tenant {
  background: linear-gradient(180deg, rgba(232, 244, 239, 0.94) 0%, rgba(250, 253, 251, 0.98) 100%);
  border-color: rgba(73, 142, 122, 0.18);
}

.role-entry-card h3 {
  margin-top: 12px;
  font-size: 26px;
}

.role-entry-card .portal-note {
  margin: 14px 0 0;
}

.role-entry-card .button {
  margin-top: 18px;
}

.registration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.92fr;
  gap: 22px;
}

.registration-form { margin-top: 24px; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field__label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 54px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.92);
  padding: 0 16px;
  font: inherit;
  color: var(--text);
}

.field input:focus {
  outline: 2px solid rgba(198,137,44,0.32);
  outline-offset: 1px;
}

.field__hint {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.field__hint--full {
  grid-column: 1 / -1;
  margin: -2px 0 8px;
}

.field__hint--empty {
  visibility: hidden;
}

.inline-link-btn {
  border: none;
  background: transparent;
  padding: 0;
  margin: -2px 0 6px;
  width: fit-content;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.checkline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-soft);
  line-height: 1.55;
}

.checkline input {
  margin-top: 4px;
}

.consent-details {
  margin: 2px 0 14px 30px;
  color: var(--text-soft);
}

.consent-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand);
}

.consent-details__body {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.consent-details__body p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
}

.consent-details__body p:last-child {
  margin-bottom: 0;
}

.form-message {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
}

.form-message--error {
  background: rgba(139, 47, 47, 0.1);
  color: var(--error);
}

.form-message--success {
  background: rgba(33, 101, 72, 0.1);
  color: var(--ok);
}

.is-hidden { display: none !important; }

.auth-switcher {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-priority-note {
  display: none;
}

.auth-priority-note__item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(24, 55, 44, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
}

.auth-switcher__btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(24, 55, 44, 0.1);
  background: rgba(255,255,255,0.9);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.auth-switcher__btn.is-active {
  background: linear-gradient(145deg, var(--brand) 0%, #205847 100%);
  border-color: transparent;
  color: #fff;
}

.modal-shell {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 29, 24, 0.28);
  backdrop-filter: blur(10px);
  z-index: 80;
}

.modal-card {
  width: min(560px, 100%);
  min-width: 0;
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 22px;
  padding: 24px;
  background: rgba(255, 250, 242, 0.98);
  border: 1px solid rgba(24, 55, 44, 0.12);
  box-shadow: 0 24px 58px rgba(22, 47, 39, 0.16);
}

.modal-card--auth {
  width: min(500px, 100%);
}

.modal-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.modal-card__close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-card__lead {
  margin: 12px 0 16px;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 42ch;
}

@media (max-width: 640px) {
  .modal-shell {
    align-items: flex-start;
    padding: 14px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .modal-card,
  .modal-card--auth {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    min-width: 0;
    max-height: none;
    margin: 6px 0 22px;
    padding: 18px 16px;
    border-radius: 20px;
  }

  .modal-card__lead {
    margin: 10px 0 14px;
    font-size: 15px;
    line-height: 1.52;
  }

  .auth-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    margin-bottom: 14px;
  }

  .auth-switcher__btn {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
  }

  .auth-priority-note {
    gap: 8px;
    margin-bottom: 14px;
  }

  .auth-priority-note__item {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .registration-form {
    margin-top: 18px;
  }

  .field {
    margin-bottom: 14px;
  }

  .field__hint {
    font-size: 12px;
    line-height: 1.45;
  }

  .registration-actions {
    gap: 10px;
    margin-top: 18px;
  }
}

@media (max-width: 480px) {
  .modal-card,
  .modal-card--auth {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .modal-card__header {
    gap: 12px;
  }

  .modal-card__header h2 {
    font-size: 28px;
  }

  .modal-card__close {
    font-size: 28px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.dd-dialog-shell {
  z-index: 120;
}

.dd-dialog-card {
  width: min(520px, 100%);
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.98) 0%, rgba(255, 244, 231, 0.98) 100%);
  border-color: rgba(164, 104, 30, 0.2);
  box-shadow: 0 32px 82px rgba(112, 76, 35, 0.22);
}

.dd-dialog-card--danger {
  border-color: rgba(159, 95, 24, 0.28);
}

.dd-dialog__header {
  margin-bottom: 6px;
}

.dd-dialog__title {
  margin: 0;
}

.dd-dialog__message {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
  white-space: pre-line;
}

.dd-dialog__message-strong {
  color: var(--brand-deep);
  font-weight: 800;
}

.dd-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.dd-dialog__action--danger {
  background: linear-gradient(145deg, #8f5a16 0%, #b06d1e 100%);
  color: #fff;
}

.registration-side {
  background: linear-gradient(180deg, rgba(19,63,51,0.95) 0%, rgba(27,79,64,0.95) 100%);
  color: var(--text-invert);
}

.registration-side .section-label {
  background: rgba(255,255,255,0.1);
  color: #fff4df;
}

.registration-side .feature-list {
  color: rgba(247, 241, 231, 0.84);
}

.save-note {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.82);
}

.save-note strong {
  display: block;
  font-size: 20px;
  font-family: "Spectral", Georgia, serif;
  color: var(--text);
}

.save-note p {
  color: var(--text-soft);
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: center;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.faq-item {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(24, 55, 44, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(24, 55, 44, 0.05);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.account-status-stack {
  margin-top: 18px;
  max-width: 820px;
}

.save-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(24, 55, 44, 0.12);
  box-shadow: 0 8px 18px rgba(24, 55, 44, 0.04);
  color: var(--text-soft);
  font-weight: 700;
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(calc(100vw - 32px), 560px);
  z-index: 40;
}

.cookie-banner__content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 251, 242, 0.98);
  color: var(--brand-deep);
  border: 1px solid rgba(205, 177, 127, 0.28);
  box-shadow: 0 18px 42px rgba(34, 52, 46, 0.14);
  backdrop-filter: blur(10px);
}

.cookie-banner strong {
  font-size: 16px;
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.2;
  font-weight: 800;
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-banner .button--secondary {
  background: #fff;
  color: var(--brand-deep);
  border-color: rgba(16, 80, 63, 0.12);
}

.cookie-banner .button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.save-toast {
  position: fixed;
  right: 24px;
  bottom: 118px;
  z-index: 41;
  min-width: 260px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(23, 79, 63, 0.95);
  color: #fff;
  box-shadow: 0 18px 40px rgba(16, 57, 45, 0.24);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .hero__grid,
  .intro-grid,
  .products,
  .compare-grid,
  .registration-grid,
  .journey-list,
  .account-panel__grid,
  .role-entry__grid,
  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .field-grid,
  .cookie-banner__content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .hero__copy,
  .hero__aside,
  .intro-panel,
  .journey,
  .overview,
  .registration-panel,
  .registration-side,
  .compare-panel,
  .product-card { padding: 24px; }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .topbar__actions,
  .hero__actions,
  .registration-actions,
  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
  }
  .button,
  .topbar__link {
    width: 100%;
  }

  .topbar__auth-row {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .topbar__auth-row [data-auth-entry] {
    width: 100%;
    max-width: none;
    margin-left: 0;
    justify-content: center;
  }

  .save-toast {
    left: 16px;
    right: 16px;
    bottom: 108px;
    min-width: 0;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .cookie-banner__content {
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .cookie-banner strong {
    font-size: 16px;
    line-height: 1.2;
  }

  .cookie-banner p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
  }

  .cookie-banner .button {
    min-height: 42px;
    font-size: 14px;
  }

  .page-shell--cookie-offset .site-footer {
    padding-bottom: 168px;
  }
}

.site-footer {
  margin-top: auto;
  padding: 8px 0 28px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
  order: 3;
}

.site-footer__app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 197px;
  height: 40px;
  flex-shrink: 0;
  text-decoration: none;
  background: center / contain no-repeat url("https://www.rustore.ru/help/icons/logo-color-light.svg");
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-footer__app-button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.site-footer__app-image {
  display: none;
}

.site-footer__text {
  margin: 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  order: 1;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
  order: 2;
}

.site-footer__nav .site-footer__link {
  font-size: inherit;
}

.site-footer__link {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.site-footer__link:hover {
  text-decoration: underline;
}

@media print {
  .site-footer {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .site-footer .container {
    gap: 10px;
  }

  .site-footer__text,
  .site-footer__nav {
    text-align: center;
  }
}

.portal-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 14px;
}

.portal-breadcrumbs a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.portal-breadcrumbs span[aria-hidden="true"] {
  opacity: .45;
}

.portal-context {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  flex-wrap: wrap;
  margin-top: 14px;
}

.portal-context__meta {
  display: grid;
  gap: 8px;
}

.portal-context__address {
  font-size: 28px;
  font-family: "Spectral", Georgia, serif;
  line-height: 1.08;
}

.portal-context__subline {
  color: var(--text-soft);
  line-height: 1.6;
}

.tenant-contract-picker {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.page-shell--tenant .tenant-contract-picker {
  border-color: rgba(73, 142, 122, 0.16);
  background: rgba(246, 252, 249, 0.92);
}

.page-shell--owner {
  background:
    radial-gradient(circle at top left, rgba(230, 201, 153, 0.24), transparent 34%),
    linear-gradient(180deg, #fbf6ed 0%, #f6efe2 100%);
}

.page-shell--tenant {
  --container: 1280px;
  background:
    radial-gradient(circle at top left, rgba(164, 201, 193, 0.22), transparent 34%),
    linear-gradient(180deg, #f2f7f5 0%, #edf4f1 100%);
}

.page-shell--tenant .hero {
  background:
    radial-gradient(circle at top left, rgba(164, 201, 193, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(250, 247, 240, .92) 0%, rgba(255,255,255,.88) 55%, rgba(242,247,245,.96) 100%);
}

.page-shell--tenant .portal-card,
.page-shell--tenant .panel {
  border-color: rgba(47, 102, 90, 0.12);
}

.page-shell--tenant .portal-nav__link,
.page-shell--tenant .role-switcher__link,
.page-shell--tenant .role-pill {
  color: #24584f;
  border-color: rgba(47, 102, 90, 0.16);
  background: rgba(47, 102, 90, 0.08);
}

.page-shell--tenant .portal-nav__link.is-active,
.page-shell--tenant .role-switcher__link.is-active {
  background: linear-gradient(145deg, #3d7469 0%, #2c5c54 100%);
  color: #fff;
}

.role-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 22px;
  border: 1px solid rgba(24, 55, 44, 0.1);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
}

.role-strip__meta {
  display: grid;
  gap: 8px;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(23, 79, 63, 0.08);
  border: 1px solid rgba(23, 79, 63, 0.14);
}

.role-strip__lead {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 54rem;
}

.role-switcher {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.role-switcher__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: var(--brand);
  background: rgba(23, 79, 63, 0.08);
  border: 1px solid rgba(23, 79, 63, 0.12);
}

.role-switcher__link.is-active {
  background: linear-gradient(145deg, var(--brand) 0%, #205847 100%);
  color: #fff;
}

.portal-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-nav--top {
  margin-top: 14px;
  margin-bottom: 18px;
}

.portal-nav--top + .portal-context {
  margin-top: 0;
}

.portal-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: var(--brand);
  background: rgba(23, 79, 63, 0.08);
  border: 1px solid rgba(23, 79, 63, 0.12);
}

.portal-nav__link.is-active {
  background: linear-gradient(145deg, var(--brand) 0%, #205847 100%);
  color: #fff;
}

.portal-grid {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.portal-grid--two {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
}

.portal-card {
  padding: 26px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.portal-card h2 {
  font-size: 34px;
  margin-top: 0;
}

.portal-card h3 {
  margin-top: 0;
}

.portal-card__lead,
.portal-note,
.portal-table td,
.portal-table th,
.portal-empty,
.portal-summary__hint {
  color: var(--text-soft);
  line-height: 1.6;
}

.portal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.portal-summary__item {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
}

.portal-summary__value {
  margin-top: 8px;
  color: var(--brand);
  font-size: 28px;
  font-weight: 800;
}

.portal-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.portal-status-chip--neutral {
  color: var(--brand);
  background: rgba(23, 79, 63, 0.1);
}

.portal-status-chip--success {
  color: var(--ok);
  background: rgba(33, 101, 72, 0.14);
}

.portal-status-chip--warn {
  color: var(--warn);
  background: rgba(198, 137, 44, 0.14);
}

.portal-status-chip--danger {
  color: var(--error);
  background: rgba(139, 47, 47, 0.12);
}

.portal-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
}

.portal-table th,
.portal-table td {
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.portal-table th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-soft);
}

.portal-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.portal-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portal-form__allocations {
  display: grid;
  gap: 12px;
}

.portal-allocation-row,
.portal-meter-input,
.portal-upload-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 170px);
  gap: 12px;
  align-items: end;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.portal-step-grid,
.portal-insight-grid,
.portal-feature-grid,
.portal-meter-grid,
.portal-media-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.portal-step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-insight-grid,
.portal-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-meter-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portal-media-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.portal-step,
.portal-insight,
.portal-feature,
.portal-meter-card,
.portal-media-card,
.portal-note-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(24, 55, 44, 0.14);
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 24px rgba(24, 55, 44, 0.05);
}

.portal-step__index {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-weight: 800;
  color: var(--brand);
  background: linear-gradient(145deg, rgba(23,79,63,.12) 0%, rgba(198,137,44,.18) 100%);
}

.portal-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(198, 137, 44, 0.16);
  color: var(--warn);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.portal-step h3,
.portal-insight h3,
.portal-feature h3 {
  margin-top: 18px;
}

.portal-feature .portal-kicker + h3 {
  margin-top: 0;
}

.portal-step .portal-note,
.portal-insight .portal-note,
.portal-feature .portal-note {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.7;
}

.portal-meter-card__meta,
.portal-media-card__meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.portal-media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.portal-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(23, 79, 63, 0.14);
  background: rgba(23, 79, 63, 0.08);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.portal-inline-link:hover {
  background: rgba(23, 79, 63, 0.14);
}

.portal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  cursor: pointer;
}

.portal-checkbox input {
  margin-top: 3px;
}

.portal-checkbox span {
  color: var(--text);
  line-height: 1.5;
}

.portal-meter-card__value {
  color: var(--brand);
  font-size: 24px;
  font-weight: 800;
}

.portal-media-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(23, 79, 63, 0.08);
}

.portal-login-note {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(198, 137, 44, 0.28);
  background: rgba(255, 248, 233, 0.88);
  color: var(--warn);
  margin-top: 18px;
}

.portal-login-note.is-success {
  border-color: rgba(23, 79, 63, 0.2);
  background: rgba(233, 247, 241, 0.92);
  color: #1f6a52;
}

.button--disabled,
.button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.65;
}

@media (max-width: 1080px) {
  .portal-grid--two,
  .portal-summary,
  .portal-step-grid,
  .portal-form__grid {
    grid-template-columns: 1fr;
  }

  .role-strip {
    align-items: start;
  }
}

@media (max-width: 860px) {
  .portal-insight-grid,
  .portal-feature-grid {
    grid-template-columns: 1fr;
  }

  .portal-top-alert {
    padding: 14px 16px;
  }

  .portal-top-alert__main {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .portal-context__address {
    font-size: 24px;
  }
  .portal-allocation-row,
  .portal-meter-input,
  .portal-upload-row {
    grid-template-columns: 1fr;
  }
}

.hero--compact {
  padding: 18px 0 24px;
}

.hero--compact .topbar {
  gap: 16px;
  margin-bottom: 16px;
}

.hero--compact .brand__mark {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
}

.hero--compact .brand__title {
  font-size: 24px;
}

.hero--compact .brand__subtitle {
  margin-top: 4px;
  font-size: 18px;
}

.topbar__actions--compact {
  gap: 10px;
}

.topbar__actions--compact .topbar__link {
  min-height: 40px;
  padding: 0 15px;
  font-size: 15px;
}

.role-strip--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(24, 55, 44, 0.06);
}

.role-strip--compact .role-strip__meta {
  display: contents;
}

.role-strip--compact .role-pill {
  grid-column: 1;
  justify-self: start;
  align-self: center;
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.role-strip--compact .role-strip__lead {
  grid-column: 1 / -1;
  max-width: 44rem;
  font-size: 14px;
  line-height: 1.45;
}

.role-strip--compact .role-switcher {
  grid-column: 2;
  justify-self: end;
  align-self: center;
  gap: 8px;
  justify-content: flex-end;
}

.role-strip--compact .role-switcher__link {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.portal-breadcrumbs--compact {
  margin-bottom: 10px;
  font-size: 13px;
}

.portal-card--compact {
  padding: 22px 24px;
  border-radius: 28px;
}

.portal-card--compact .eyebrow {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.portal-card--compact .portal-context {
  margin-top: 10px;
  gap: 12px;
}

.portal-card--compact .portal-context__meta {
  gap: 6px;
}

.portal-card--compact .portal-context__address {
  font-size: 24px;
}

.portal-card--compact .portal-context__subline {
  max-width: 56rem;
  font-size: 15px;
  line-height: 1.45;
}

.portal-card--compact .portal-nav {
  gap: 8px;
}

.portal-card--compact .portal-nav__link {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.portal-card--compact .tenant-contract-picker {
  margin-top: 14px !important;
  padding: 14px 16px;
  border-radius: 18px;
}

@media (max-width: 980px) {
  .role-strip--compact {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .role-strip--compact .role-pill,
  .role-strip--compact .role-switcher,
  .role-strip--compact .role-strip__lead {
    grid-column: 1;
    justify-self: start;
  }

  .role-strip--compact .role-switcher {
    justify-content: flex-start;
  }
}

.topbar__actions--roles {
  gap: 14px;
}

.topbar__actions--hierarchy {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar__trail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(24, 55, 44, 0.08);
  box-shadow: 0 10px 24px rgba(24, 55, 44, 0.06);
}

.topbar__trail .topbar__link {
  min-height: 42px;
  padding: 0 16px;
}

.topbar__link--reports:not(.is-current) {
  background: rgba(198, 137, 44, 0.12);
  color: #8f5a16;
}

.cabinet-role-tabs {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
}

.topbar__link.is-current {
  background: linear-gradient(145deg, var(--brand) 0%, #205847 100%);
  border-color: transparent;
  color: #fff;
}

.topbar__link--owner:not(.is-current),
.topbar__link--tenant:not(.is-current) {
  background: rgba(23, 79, 63, 0.08);
  color: var(--brand);
}

.portal-card--dashboard {
  padding: 18px 22px;
}

.portal-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.portal-card--dashboard .portal-context__meta {
  gap: 4px;
}

.portal-card--dashboard .portal-context__address {
  font-size: 26px;
}

.portal-card--dashboard .portal-context__subline {
  font-size: 15px;
  line-height: 1.45;
}

.portal-nav--stacked {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.portal-nav--stacked .portal-nav__link {
  min-width: 208px;
  justify-content: center;
}

.tenant-contract-picker--compact {
  margin-top: 0 !important;
}

.tenant-contract-picker__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.tenant-contract-picker__field {
  grid-template-rows: auto auto auto;
  gap: 8px;
}

.tenant-contract-picker__nav {
  min-width: 240px;
}

#tenantContractSelect,
#tenantContractSelect option {
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .topbar__actions--hierarchy {
    justify-content: flex-start;
  }

  .topbar__trail {
    width: 100%;
  }

  .cabinet-role-tabs {
    margin-left: 0;
  }

  .portal-card__top {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-nav--stacked {
    justify-items: start;
  }

  .tenant-contract-picker__top {
    grid-template-columns: 1fr;
  }

.tenant-contract-picker__nav {
  min-width: 0;
  width: 100%;
}
}

@media (max-width: 760px) {
  .hero--compact .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
  }

  .hero--compact .brand {
    gap: 12px;
  }

  .hero--compact .brand__mark {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .hero--compact .brand__title {
    font-size: 24px;
  }

  .hero--compact .brand__subtitle {
    margin-top: 4px;
    font-size: 16px;
    line-height: 1.3;
  }

  .topbar__actions--hierarchy {
    width: 100%;
    gap: 10px;
  }

  .topbar__trail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }

  .topbar__trail > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .topbar__trail .topbar__link,
  .topbar__actions--hierarchy > .topbar__link {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 14px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .topbar__trail .topbar__link + .topbar__link::before {
    display: none;
  }
}

/* Marketing redesign: homepage + search landing */
.page-shell--marketing {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #fbf7ef 0%, #efe6d7 58%, #e7dbc8 100%);
}

.page-shell--marketing::before,
.page-shell--marketing::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.page-shell--marketing::before {
  inset: 0;
  background:
    linear-gradient(rgba(24, 55, 44, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 55, 44, 0.018) 1px, transparent 1px);
  background-size: 160px 160px;
  opacity: 0.46;
}

.page-shell--marketing::after {
  left: -2%;
  top: 120px;
  width: 44vw;
  height: 29vw;
  border: 2px solid rgba(24, 55, 44, 0.05);
  border-right-width: 0;
  border-bottom-width: 0;
  transform: rotate(-7deg);
  box-shadow:
    210px 44px 0 -1px rgba(24, 55, 44, 0.05),
    110px 154px 0 -1px rgba(24, 55, 44, 0.05);
  opacity: 0.82;
}

.hero--marketing,
.marketing-main,
.page-shell--marketing .site-footer {
  position: relative;
  z-index: 1;
}

.page-shell--marketing .hero__glow {
  display: none;
}

.hero--marketing {
  padding-bottom: 52px;
}

.page-shell--home .hero--marketing {
  padding-bottom: 0;
}

.page-shell--home .marketing-main {
  padding-top: 0;
}

.hero--marketing .container {
  position: relative;
}

.hero--marketing .container::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 52px;
  width: 38%;
  height: 26vw;
  max-height: 360px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 86%);
  transform: rotate(-7deg);
  pointer-events: none;
  opacity: 0.7;
}

.page-shell--marketing .brand__mark {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(24, 55, 44, 0.08);
  box-shadow: 0 10px 24px rgba(24, 55, 44, 0.06);
}

.page-shell--marketing .brand__mark img {
  width: 78%;
  height: 78%;
}

.page-shell--marketing .topbar__actions {
  gap: 10px;
}

.page-shell--marketing .topbar__link {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(24, 55, 44, 0.08);
  box-shadow: 0 10px 22px rgba(24, 55, 44, 0.05);
}

.page-shell--marketing .topbar__link--ghost {
  background: rgba(255, 255, 255, 0.66);
}

.page-shell--marketing .topbar__link--owner {
  background: rgba(198, 137, 44, 0.14);
  border-color: rgba(198, 137, 44, 0.2);
}

.page-shell--marketing .topbar__link--tenant {
  background: rgba(23, 79, 63, 0.1);
  border-color: rgba(23, 79, 63, 0.14);
}

.page-shell--home .topbar__actions {
  align-items: center;
}

.hero__grid--home-focus {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.hero__copy--home-focus {
  padding: clamp(24px, 3vw, 36px);
  width: 100%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 239, 225, 0.96) 100%);
  border-color: rgba(24, 55, 44, 0.08);
  box-shadow: 0 24px 52px rgba(24, 55, 44, 0.07);
}

.hero__copy--home-focus h1 {
  margin-top: 14px;
  width: 100%;
  max-width: none;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: normal;
}

.hero__lead--home-focus {
  margin-top: 14px;
  width: 100%;
  max-width: none;
  font-size: 17px;
  line-height: 1.62;
}

.home-value-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.home-value-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.home-value-card strong {
  display: block;
  color: var(--brand-deep);
  font-size: 18px;
}

.home-value-card p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.62;
}

.package-banner--home-focus {
  margin-top: 20px;
}

.page-shell--home .hero__actions {
  margin-top: 20px;
}

.page-shell--home .hero__auth-btn {
  min-width: 0;
}

.hero-dashboard-preview {
  padding: 24px;
  background: linear-gradient(145deg, rgba(23, 79, 63, 0.97) 0%, rgba(29, 92, 74, 0.98) 100%);
  border-color: rgba(17, 53, 42, 0.08);
  box-shadow: 0 26px 56px rgba(24, 55, 44, 0.12);
  color: #f6f3ed;
  max-width: 980px;
}

.hero-dashboard-preview__cap {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-dashboard-preview__window {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(249, 245, 238, 0.97);
  color: var(--text);
}

.hero-dashboard-preview__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.hero-dashboard-preview__title {
  color: var(--brand-deep);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-dashboard-preview__subline {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.hero-dashboard-preview__badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(23, 79, 63, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-dashboard-preview__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-dashboard-preview__stat {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  background: #fff;
}

.hero-dashboard-preview__stat span {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
}

.hero-dashboard-preview__stat strong {
  display: block;
  margin-top: 6px;
  color: var(--brand-deep);
  font-size: 18px;
  line-height: 1.35;
}

.hero-dashboard-preview__rows {
  display: grid;
  gap: 10px;
}

.hero-dashboard-preview__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(23, 79, 63, 0.05);
}

.hero-dashboard-preview__row strong {
  display: block;
  color: var(--brand-deep);
}

.hero-dashboard-preview__row p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.hero-dashboard-preview__status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(23, 79, 63, 0.12);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-dashboard-preview__footer {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.home-summary-panel,
.home-steps-panel {
  padding: clamp(28px, 3.5vw, 40px);
  margin-top: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(249, 242, 231, 0.95) 100%);
  border-color: rgba(24, 55, 44, 0.08);
  box-shadow: 0 24px 52px rgba(24, 55, 44, 0.06);
}

.page-shell--home .home-summary-panel:first-child {
  margin-top: 0;
}

.home-summary-panel__grid,
.home-steps-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.home-summary-card,
.home-step-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.home-summary-card h2,
.home-step-card h3 {
  margin-top: 10px;
}

.home-summary-card p,
.home-step-card p {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.68;
}

.home-step-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.home-step-card span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(23, 79, 63, 0.98) 0%, rgba(34, 90, 73, 0.98) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.home-preview-panel {
  padding: clamp(28px, 3.5vw, 40px);
  margin-top: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(249, 242, 231, 0.95) 100%);
  border-color: rgba(24, 55, 44, 0.08);
  box-shadow: 0 24px 52px rgba(24, 55, 44, 0.06);
}

.home-summary-panel--owner,
.home-steps-panel--owner,
.home-preview-panel--owner {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(249, 242, 231, 0.96) 100%);
}

.home-preview-panel--tenant {
  background: linear-gradient(145deg, rgba(246, 252, 250, 0.92) 0%, rgba(236, 247, 244, 0.98) 100%);
  border-color: rgba(47, 102, 90, 0.12);
}

.home-summary-panel--owner .section-label,
.home-steps-panel--owner .section-label,
.home-preview-panel--owner .section-label {
  background: rgba(23, 79, 63, 0.08);
  color: var(--brand);
}

.home-preview-panel--tenant .section-label {
  background: rgba(47, 102, 90, 0.1);
  color: #24584f;
}

.home-summary-panel--owner .portal-kicker,
.home-steps-panel--owner .portal-kicker {
  color: var(--brand);
}

.home-steps-panel--owner .home-step-card span {
  background: linear-gradient(145deg, rgba(23, 79, 63, 0.98) 0%, rgba(34, 90, 73, 0.98) 100%);
}

.home-preview-panel .hero-dashboard-preview {
  margin-top: 20px;
  max-width: none;
}

.hero-dashboard-preview--owner {
  background: linear-gradient(145deg, rgba(23, 79, 63, 0.97) 0%, rgba(29, 92, 74, 0.98) 100%);
}

.hero-dashboard-preview--tenant {
  background: linear-gradient(145deg, rgba(35, 83, 90, 0.96) 0%, rgba(49, 108, 104, 0.98) 100%);
}

.hero-dashboard-preview--tenant .hero-dashboard-preview__cap {
  background: rgba(255, 255, 255, 0.16);
}

.hero-dashboard-preview--tenant .hero-dashboard-preview__window {
  background: rgba(247, 252, 250, 0.98);
}

.hero-dashboard-preview--tenant .hero-dashboard-preview__badge,
.hero-dashboard-preview--tenant .hero-dashboard-preview__status {
  background: rgba(47, 102, 90, 0.12);
  color: #24584f;
}

.hero-dashboard-preview--tenant .hero-dashboard-preview__row {
  background: rgba(47, 102, 90, 0.06);
}

.hero-dashboard-preview--tenant .hero-dashboard-preview__title,
.hero-dashboard-preview--tenant .hero-dashboard-preview__row strong,
.hero-dashboard-preview--tenant .hero-dashboard-preview__stat strong {
  color: #1f4e48;
}

.hero__grid--editorial {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.hero__copy--editorial {
  position: relative;
  padding: clamp(28px, 3.6vw, 44px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78) 0%, rgba(250, 243, 232, 0.96) 100%);
  border-color: rgba(24, 55, 44, 0.09);
  box-shadow: 0 28px 60px rgba(24, 55, 44, 0.08);
}

.hero__copy--editorial::before {
  content: "";
  position: absolute;
  inset: 18px auto auto 18px;
  width: 116px;
  height: 116px;
  border-top: 1px solid rgba(24, 55, 44, 0.1);
  border-left: 1px solid rgba(24, 55, 44, 0.1);
  border-radius: 18px 0 0 0;
  pointer-events: none;
}

.hero__copy--editorial::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  border: 1px solid rgba(24, 55, 44, 0.035);
  pointer-events: none;
}

.hero__overline {
  margin: 18px 0 0;
  max-width: 36rem;
  color: var(--brand);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.34;
  font-weight: 700;
}

.hero__copy--editorial h1 {
  margin-top: 20px;
  max-width: 11.8ch;
}

.page-shell--home .hero__copy--editorial h1 {
  max-width: none;
  text-wrap: balance;
}

.hero__copy--editorial .hero__lead {
  max-width: 62ch;
}

.page-shell--marketing .button--secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(24, 55, 44, 0.1);
}

.page-shell--marketing .button--accent {
  background: linear-gradient(145deg, rgba(198, 137, 44, 0.92) 0%, rgba(219, 170, 92, 0.98) 100%);
  color: #213028;
}

.page-shell--marketing .package-banner {
  background: rgba(255, 247, 233, 0.86);
  border-color: rgba(198, 137, 44, 0.16);
}

.page-shell--marketing .trust-pill {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(24, 55, 44, 0.08);
}

.hero-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-signal {
  padding: 18px 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 28px rgba(24, 55, 44, 0.05);
}

.hero-signal span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-signal strong {
  display: block;
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.42;
}

.hero-dossier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(26px, 3vw, 36px);
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.92) 0%, rgba(246, 238, 226, 0.98) 100%);
  border-color: rgba(24, 55, 44, 0.08);
  color: var(--text);
  box-shadow: 0 30px 62px rgba(24, 55, 44, 0.09);
}

.hero-dossier::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid rgba(24, 55, 44, 0.08);
  pointer-events: none;
}

.hero-dossier::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 26px;
  bottom: 26px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(23, 79, 63, 0.92) 0%, rgba(198, 137, 44, 0.9) 100%);
  opacity: 0.92;
  pointer-events: none;
}

.hero-dossier__cap {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(23, 79, 63, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-dossier h3 {
  color: var(--brand-deep);
  font-size: clamp(30px, 3vw, 38px);
}

.hero-dossier__stack {
  display: grid;
  gap: 14px;
}

.hero-dossier__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid rgba(24, 55, 44, 0.08);
}

.hero-dossier__item:first-child {
  border-top: none;
  padding-top: 0;
}

.hero-dossier__item span {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(23, 79, 63, 0.98) 0%, rgba(34, 90, 73, 0.98) 100%);
  box-shadow: 0 14px 28px rgba(24, 55, 44, 0.12);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.hero-dossier__item strong {
  display: block;
  color: var(--brand-deep);
  font-size: 19px;
  line-height: 1.3;
}

.hero-dossier__item p,
.hero-dossier__quote {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.62;
}

.hero-dossier__footer {
  display: grid;
  gap: 18px;
  padding-top: 6px;
}

.pulse-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.pulse-band__item {
  min-height: 100%;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 55, 44, 0.08);
  box-shadow: 0 14px 30px rgba(24, 55, 44, 0.05);
  color: var(--brand-deep);
  font-size: 16px;
  line-height: 1.56;
  font-weight: 700;
}

.marketing-main {
  padding-top: 18px;
  padding-bottom: 56px;
}

.story-panel,
.blindspot-panel,
.route-panel,
.audience-panel,
.account-panel--editorial,
.closing-cta,
.faq-panel {
  position: relative;
  margin-top: 28px;
}

.story-panel,
.blindspot-panel,
.route-panel,
.audience-panel,
.account-panel--editorial,
.faq-panel {
  padding: clamp(28px, 3.5vw, 40px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(249, 242, 231, 0.95) 100%);
  border-color: rgba(24, 55, 44, 0.08);
  box-shadow: 0 24px 52px rgba(24, 55, 44, 0.06);
}

.story-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 24px;
  align-items: start;
}

.story-panel__lead {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.72;
}

.story-panel__message {
  margin: 0;
}

.story-panel__cards {
  display: grid;
  gap: 16px;
}

.page-shell--marketing .portal-kicker,
.intent-card__label,
.tool-card__label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(23, 79, 63, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-shell--marketing .portal-note {
  color: var(--text-soft);
}

.intent-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  box-shadow: 0 16px 36px rgba(24, 55, 44, 0.05);
}

.intent-card--search {
  background: rgba(255, 255, 255, 0.74);
}

.intent-card--reality {
  background: linear-gradient(145deg, rgba(26, 71, 57, 0.97) 0%, rgba(18, 48, 40, 0.98) 100%);
  color: var(--text-invert);
}

.intent-card--reality .intent-card__label {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-soft);
}

.intent-card h3 {
  margin-top: 16px;
}

.intent-card p {
  margin: 14px 0 0;
  color: inherit;
  font-size: 17px;
  line-height: 1.62;
}

.intent-card--search p {
  color: var(--text-soft);
}

.blindspot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.blindspot-card,
.route-card,
.audience-card,
.tool-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 38px rgba(24, 55, 44, 0.05);
}

.blindspot-card h3 {
  margin-top: 14px;
  font-size: 22px;
}

.route-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 22px;
  align-items: end;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.route-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.route-card__index {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(23, 79, 63, 1) 0%, rgba(34, 90, 73, 1) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.route-card h3 {
  font-size: 24px;
}

.route-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.62;
}

.audience-grid--marketing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.audience-card h3 {
  margin-top: 14px;
  color: var(--text);
}

.audience-card .portal-note {
  color: var(--text-soft);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.tool-card {
  padding: clamp(26px, 3vw, 34px);
}

.tool-card h2 {
  margin-top: 16px;
  font-size: clamp(28px, 3vw, 38px);
}

.tool-card p {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.68;
}

.tool-card .product-card__list {
  margin-top: 18px;
}

.tool-card .button {
  margin-top: 22px;
}

.tool-card--contract {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78) 0%, rgba(249, 242, 231, 0.95) 100%);
}

.tool-card--max {
  background: linear-gradient(145deg, rgba(251, 248, 242, 0.78) 0%, rgba(243, 237, 227, 0.95) 100%);
}

.tool-card--tax {
  background: linear-gradient(145deg, rgba(255, 249, 239, 0.8) 0%, rgba(246, 237, 216, 0.95) 100%);
}

.tool-card--owner {
  background: linear-gradient(145deg, rgba(248, 248, 245, 0.8) 0%, rgba(239, 234, 225, 0.95) 100%);
}

.account-panel--editorial .overview__label {
  background: rgba(198, 137, 44, 0.16);
  color: #8a5716;
}

.closing-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: clamp(28px, 3.5vw, 40px);
  background: linear-gradient(180deg, rgba(20, 58, 47, 0.985) 0%, rgba(16, 44, 37, 0.985) 100%);
  border-color: rgba(24, 55, 44, 0.06);
  color: var(--text-invert);
  box-shadow: 0 30px 64px rgba(24, 55, 44, 0.16);
}

.closing-cta::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.closing-cta .section-label {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(247, 241, 231, 0.92);
}

.closing-cta h2 {
  color: #fff;
}

.closing-cta p {
  margin: 16px 0 0;
  color: rgba(247, 241, 231, 0.88);
  font-size: 17px;
  line-height: 1.72;
}

.closing-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.closing-cta__actions .button--secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.page-shell--landing .story-panel,
.page-shell--landing .blindspot-panel,
.page-shell--landing .route-panel,
.page-shell--landing .closing-cta,
.page-shell--landing .faq-panel {
  margin-top: 14px;
}

.page-shell--landing .hero__copy--editorial {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 238, 221, 0.96) 100%);
}

.page-shell--landing .hero--marketing {
  padding-bottom: 20px;
}

.page-shell--landing .marketing-main {
  padding-top: 0;
}

.page-shell--landing .topbar {
  align-items: flex-start;
}

.page-shell--landing .topbar__actions {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  justify-content: end;
  align-items: start;
  gap: 10px;
}

.page-shell--landing .topbar__link.is-authenticated {
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 100%;
}

.page-shell--landing .hero__grid--editorial {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
}

.page-shell--landing .hero__copy--editorial h1 {
  max-width: none;
  font-size: clamp(48px, 4.8vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.page-shell--landing .story-panel__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 30px;
}

.page-shell--landing .story-panel__message--landing {
  max-width: none;
  color: var(--brand-deep);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-dossier--landing {
  background: linear-gradient(145deg, rgba(255, 252, 247, 0.94) 0%, rgba(244, 236, 222, 0.98) 100%);
}

.pulse-band--landing .pulse-band__item:nth-child(2) {
  background: rgba(248, 242, 231, 0.9);
}

.pulse-band--landing .pulse-band__item:nth-child(3) {
  background: rgba(244, 247, 244, 0.84);
}

.tool-grid--landing {
  margin-top: 26px;
}

.closing-cta--landing {
  background: linear-gradient(180deg, rgba(18, 54, 43, 0.985) 0%, rgba(23, 61, 49, 0.985) 100%);
}

@media (max-width: 1180px) {
  .page-shell--marketing::after {
    width: 54vw;
    height: 34vw;
  }

  .hero__grid--editorial,
  .story-panel__grid,
  .route-panel__head,
  .closing-cta {
    grid-template-columns: 1fr;
  }

  .hero__grid--home-focus {
    grid-template-columns: 1fr;
  }

  .blindspot-grid,
  .route-grid,
  .audience-grid--marketing,
  .home-summary-panel__grid,
  .home-steps-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closing-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .hero-signal-grid,
  .pulse-band,
  .tool-grid,
  .home-summary-panel__grid,
  .home-steps-panel__grid,
  .hero-dashboard-preview__stats {
    grid-template-columns: 1fr;
  }

  .hero__copy--editorial h1 {
    max-width: none;
  }

  .hero-dossier__item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .hero-dossier__item span,
  .route-card__index {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
}

@media (max-width: 760px) {
  .page-shell--marketing::before,
  .page-shell--marketing::after,
  .hero--marketing .container::before,
  .hero__copy--editorial::before,
  .hero__copy--editorial::after {
    display: none;
  }

  .hero--marketing {
    padding-bottom: 36px;
  }

  .hero__copy--editorial,
  .hero-dossier,
  .story-panel,
  .blindspot-panel,
  .route-panel,
  .audience-panel,
  .tool-card,
  .account-panel--editorial,
  .closing-cta,
  .faq-panel,
  .hero__copy--home-focus,
  .hero-dashboard-preview,
  .home-summary-panel,
  .home-steps-panel {
    padding: 24px;
  }

  .blindspot-grid,
  .route-grid,
  .audience-grid--marketing {
    grid-template-columns: 1fr;
  }

  .pulse-band__item,
  .intent-card,
  .blindspot-card,
  .route-card,
  .audience-card {
    padding: 20px;
  }

  .hero__overline {
    font-size: 18px;
  }

  .closing-cta__actions,
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-shell--marketing .topbar {
    gap: 14px;
    margin-bottom: 18px;
  }

  .page-shell--marketing .brand {
    gap: 12px;
  }

  .page-shell--marketing .brand__mark {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .page-shell--marketing .brand__title {
    font-size: 24px;
  }

  .page-shell--marketing .brand__subtitle {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
  }

  .page-shell--marketing .topbar__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .page-shell--marketing .topbar__actions > * {
    min-width: 0;
  }

  .page-shell--marketing .topbar__link {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .page-shell--how .topbar__home-action {
    width: 100%;
    margin-left: 0;
  }

  .page-shell--marketing .eyebrow {
    width: 100%;
    min-height: auto;
    padding: 10px 14px;
    line-height: 1.25;
    white-space: normal;
    text-wrap: balance;
    justify-content: flex-start;
  }

  .page-shell--marketing .hero__copy--editorial h1 {
    margin-top: 16px;
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.02;
  }

  .hero__copy--home-focus h1 {
    margin-top: 14px;
    max-width: none;
    font-size: clamp(34px, 9vw, 42px);
    line-height: 1.02;
  }

  .page-shell--marketing .hero__copy--editorial .hero__lead {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.58;
  }

  .hero__lead--home-focus {
    font-size: 16px;
    line-height: 1.58;
  }

  .page-shell--marketing .hero__actions {
    margin-top: 22px;
  }

  .page-shell--marketing .hero__auth-btn {
    min-width: 0;
  }

  .hero-dashboard-preview__head,
  .hero-dashboard-preview__row {
    grid-template-columns: 1fr;
  }

  .hero-dashboard-preview__badge,
  .hero-dashboard-preview__status {
    justify-self: start;
  }
}

.page-shell--dossier {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 18%),
    linear-gradient(180deg, #f7f2e8 0%, #eee4d4 58%, #e7dac8 100%);
}

.page-shell--dossier::before,
.page-shell--dossier::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.page-shell--dossier::before {
  inset: 0;
  background:
    linear-gradient(rgba(24, 55, 44, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 55, 44, 0.024) 1px, transparent 1px);
  background-size: 136px 136px;
  opacity: 0.24;
}

.page-shell--dossier::after {
  left: 32px;
  right: 32px;
  top: 126px;
  width: auto;
  height: calc(100% - 188px);
  border: 1px solid rgba(24, 55, 44, 0.06);
  border-radius: 36px;
  background:
    linear-gradient(rgba(24, 55, 44, 0.1), rgba(24, 55, 44, 0.1)) left 22px top 22px / 78px 1px no-repeat,
    linear-gradient(rgba(24, 55, 44, 0.1), rgba(24, 55, 44, 0.1)) left 22px top 22px / 1px 78px no-repeat,
    linear-gradient(rgba(24, 55, 44, 0.1), rgba(24, 55, 44, 0.1)) right 22px top 22px / 78px 1px no-repeat,
    linear-gradient(rgba(24, 55, 44, 0.1), rgba(24, 55, 44, 0.1)) right 22px top 22px / 1px 78px no-repeat,
    linear-gradient(rgba(198, 137, 44, 0.14), rgba(198, 137, 44, 0.14)) left 22px bottom 22px / 78px 1px no-repeat,
    linear-gradient(rgba(198, 137, 44, 0.14), rgba(198, 137, 44, 0.14)) left 22px bottom 22px / 1px 78px no-repeat,
    linear-gradient(rgba(198, 137, 44, 0.14), rgba(198, 137, 44, 0.14)) right 22px bottom 22px / 78px 1px no-repeat,
    linear-gradient(rgba(198, 137, 44, 0.14), rgba(198, 137, 44, 0.14)) right 22px bottom 22px / 1px 78px no-repeat;
  box-shadow: none;
  opacity: 0.32;
}

.page-shell--dossier .hero,
.page-shell--dossier .main-content,
.page-shell--dossier .site-footer {
  position: relative;
  z-index: 1;
}

.page-shell--dossier .hero {
  padding-bottom: 34px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.92) 0%, rgba(245, 237, 224, 0.54) 58%, rgba(255, 255, 255, 0) 100%);
}

.page-shell--dossier .container {
  position: relative;
}

.page-shell--dossier .container::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 46px;
  width: min(28vw, 300px);
  min-width: 220px;
  max-width: 300px;
  height: clamp(180px, 18vw, 240px);
  border-radius: 22px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  background:
    linear-gradient(rgba(24, 55, 44, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 55, 44, 0.055) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 100%);
  background-size: 26px 26px, 26px 26px, 100% 100%;
  box-shadow: none;
  transform: rotate(-4deg);
  opacity: 0.22;
  pointer-events: none;
}

.page-shell--dossier .hero__glow,
.page-shell--dossier .hero__backdrop {
  display: none;
}

.page-shell--dossier .brand__mark {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(24, 55, 44, 0.08);
  box-shadow: none;
}

.page-shell--dossier .brand__mark img {
  width: 78%;
  height: 78%;
}

.page-shell--dossier .topbar__link {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(24, 55, 44, 0.08);
  box-shadow: none;
}

.page-shell--dossier .topbar__link--ghost {
  background: rgba(255, 255, 255, 0.54);
}

.page-shell--dossier .panel {
  background: rgba(255, 251, 244, 0.88);
  box-shadow: 0 16px 34px rgba(24, 55, 44, 0.06);
}

@media (max-width: 900px) {
  .page-shell--dossier .container::before {
    right: 0;
    width: min(34vw, 220px);
    min-width: 160px;
    opacity: 0.18;
  }
}

@media (max-width: 760px) {
  .page-shell--dossier::before,
  .page-shell--dossier::after,
  .page-shell--dossier .container::before {
    display: none;
  }

  .page-shell--dossier .topbar {
    gap: 14px;
    margin-bottom: 18px;
  }

  .page-shell--dossier .brand {
    gap: 12px;
  }

  .page-shell--dossier .brand__mark {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .page-shell--dossier .brand__title {
    font-size: 24px;
  }

  .page-shell--dossier .brand__subtitle {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
  }

  .page-shell--dossier .topbar__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .page-shell--dossier .topbar__actions > * {
    min-width: 0;
  }

  .page-shell--dossier .topbar__actions > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .page-shell--dossier .topbar__link {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .page-shell--dossier .eyebrow {
    width: 100%;
    min-height: auto;
    padding: 10px 14px;
    line-height: 1.25;
    white-space: normal;
    text-wrap: balance;
    justify-content: flex-start;
  }

  .page-shell--dossier h1 {
    margin-top: 16px;
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.02;
  }

  .page-shell--dossier .hero__lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.58;
  }
}

.page-shell--owner,
.page-shell--tenant {
  position: relative;
  isolation: isolate;
}

.page-shell--owner::before,
.page-shell--owner::after,
.page-shell--tenant::before,
.page-shell--tenant::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.page-shell--owner::before,
.page-shell--tenant::before {
  inset: 0;
  background:
    linear-gradient(rgba(24, 55, 44, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 55, 44, 0.014) 1px, transparent 1px);
  background-size: 170px 170px;
  opacity: 0.24;
}

.page-shell--owner::after,
.page-shell--tenant::after {
  left: -2%;
  top: 82px;
  width: 36vw;
  height: 22vw;
  border: 2px solid rgba(24, 55, 44, 0.038);
  border-right-width: 0;
  border-bottom-width: 0;
  border-radius: 34px 0 0 0;
  transform: skewY(-5deg);
}

.page-shell--owner .hero,
.page-shell--owner .main-content,
.page-shell--owner .site-footer,
.page-shell--tenant .hero,
.page-shell--tenant .main-content,
.page-shell--tenant .site-footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .page-shell--owner::before,
  .page-shell--owner::after,
  .page-shell--tenant::before,
  .page-shell--tenant::after {
    display: none;
  }
}

.page-shell--landing-product .hero--landing {
  padding-bottom: 18px;
}

.landing-product-hero {
  grid-template-columns: minmax(0, 1.34fr) minmax(400px, 0.76fr);
  align-items: start;
}

.landing-product-hero__copy,
.landing-product-hero__aside,
.landing-product-section,
.landing-product-cta-band,
.landing-faq {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(250, 245, 236, 0.94) 100%);
  border-color: rgba(24, 55, 44, 0.08);
  box-shadow: 0 20px 40px rgba(24, 55, 44, 0.07);
}

.landing-product-hero__copy {
  padding: clamp(34px, 4vw, 48px);
}

.landing-product-hero__copy .hero__overline {
  margin: 18px 0 0;
  color: var(--brand);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}

.page-shell--landing-product .hero__copy--editorial h1 {
  font-size: clamp(50px, 5vw, 72px);
  width: 100%;
  max-width: none;
  text-wrap: pretty;
}

.landing-product-hero__copy .hero__lead {
  max-width: 74ch;
}

.landing-product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.landing-product-signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.landing-product-signal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(24, 55, 44, 0.07);
}

.landing-product-signal span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-product-signal strong {
  font-size: 20px;
  line-height: 1.35;
}

.landing-product-signal__list {
  margin: 0;
  padding-left: 18px;
  color: var(--brand-deep);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

.landing-product-signal__list li + li {
  margin-top: 3px;
}

.landing-product-hero__aside {
  padding: clamp(28px, 3.4vw, 38px);
  background: linear-gradient(180deg, rgba(23, 79, 63, 0.98) 0%, rgba(18, 60, 48, 0.98) 100%);
  border-color: rgba(12, 43, 34, 0.7);
  box-shadow: 0 24px 48px rgba(13, 49, 38, 0.22);
  color: #f7f5ef;
}

.landing-product-hero__aside h3 {
  margin-top: 14px;
  font-size: clamp(34px, 3.6vw, 44px);
  line-height: 1.06;
  color: #fff;
}

.landing-register {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.landing-register__row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.landing-register__row:first-child {
  border-top: none;
  padding-top: 0;
}

.landing-register__row span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 800;
}

.landing-register__row strong {
  display: block;
  font-size: 20px;
  line-height: 1.3;
  color: #fff;
}

.landing-register__row p,
.landing-register__note,
.landing-value-row p,
.landing-flow-step p,
.landing-scope-card p,
.landing-package-card p,
.landing-product-cta-band p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 17px;
}

.landing-register__row p,
.landing-register__note {
  color: rgba(247, 245, 239, 0.82);
}

.landing-register__note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.landing-product-section,
.landing-product-cta-band,
.landing-faq {
  margin-top: 22px;
  padding: clamp(28px, 3.4vw, 40px);
}

.landing-faq h2 {
  margin-top: 14px;
  width: 100%;
  max-width: none;
}

.landing-product-section h2,
.landing-product-cta-band h2 {
  width: 100%;
  max-width: none;
  margin-top: 14px;
}

.landing-product-section--value {
  display: grid;
  gap: 0;
}

.landing-value-table {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid rgba(24, 55, 44, 0.08);
}

.landing-value-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(24, 55, 44, 0.08);
}

.landing-value-row strong {
  font-size: 18px;
  line-height: 1.35;
}

.landing-value-row__action {
  margin-top: 16px;
}

.landing-value-cta {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: #fff;
  border-color: rgba(23, 79, 63, 0.24);
  box-shadow: 0 8px 20px rgba(24, 55, 44, 0.08);
}

.landing-value-cta:hover {
  background: rgba(23, 79, 63, 0.08);
  transform: translateY(-1px);
}

.landing-flow-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  position: relative;
  padding-top: 22px;
}

.landing-flow-rail::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(24, 55, 44, 0.16) 0%, rgba(24, 55, 44, 0.08) 100%);
}

.landing-flow-step {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px 22px 18px;
  min-height: 220px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(24, 55, 44, 0.08);
  position: relative;
  z-index: 1;
}

.landing-flow-step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(23, 79, 63, 0.96) 0%, rgba(34, 95, 76, 0.96) 100%);
  color: #fff;
  font-weight: 800;
}

.landing-flow-step strong {
  font-size: 21px;
  line-height: 1.28;
}

.landing-scope-grid,
.landing-package-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.landing-scope-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-package-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-scope-card,
.landing-package-card {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(24, 55, 44, 0.08);
}

.landing-scope-card strong,
.landing-package-card h3 {
  display: block;
  font-size: 22px;
  line-height: 1.24;
}

.landing-package-card__label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(198, 137, 44, 0.14);
  color: var(--warn);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-package-card h3 {
  margin-top: 16px;
}

.landing-product-section--scope .landing-scope-grid {
  gap: 14px;
}

.landing-product-section--scope .landing-scope-card {
  padding: 20px 22px;
  border-radius: 18px;
  box-shadow: none;
}

.landing-package-ledger {
  display: grid;
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid rgba(24, 55, 44, 0.08);
}

.landing-package-line {
  display: grid;
  grid-template-columns: minmax(140px, 0.22fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(24, 55, 44, 0.08);
}

.landing-package-line__label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(198, 137, 44, 0.14);
  color: var(--warn);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-package-line strong {
  display: block;
  font-size: 22px;
  line-height: 1.24;
}

.landing-product-cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(24, 55, 44, 0.08);
  border-radius: 28px;
  overflow: hidden;
}

.landing-product-cta-band__actions {
  display: grid;
  gap: 12px;
  min-width: 280px;
  max-width: 100%;
}

.landing-faq .faq-list {
  margin-top: 24px;
}

.landing-faq .faq-item + .faq-item {
  margin-top: 12px;
}

.page-shell--landing-product .topbar__actions {
  row-gap: 10px;
}

/* Home router */
.page-shell--home-router {
  background:
    linear-gradient(180deg, rgba(247, 242, 232, 0.98) 0%, rgba(239, 230, 214, 0.98) 100%);
}

.page-shell--home-router .hero--home-router {
  overflow: visible;
  padding: 28px 0 0;
  background: transparent;
}

.home-router-main {
  flex: 1 1 auto;
  display: grid;
  align-items: start;
  padding: 34px 0 44px;
}

.home-router-main__inner {
  display: grid;
  align-content: start;
  gap: 28px;
  min-height: 0;
}

.home-router-intro {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.home-router-intro__eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-router-intro h1,
.home-router-tagline {
  color: var(--brand-deep);
  font-family: "Spectral", Georgia, serif;
  font-weight: 700;
}

.home-router-intro h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.02;
}

.home-router-intro p:not(.home-router-intro__eyebrow) {
  margin: 18px auto 0;
  max-width: 72ch;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.7;
}

.home-router-menu {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 1260px);
  margin: 0 auto;
}

.home-router-menu--starter {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 960px;
}

.home-router-card {
  appearance: none;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  min-width: 0;
  padding: 16px 16px 22px;
  border: 1px solid rgba(24, 55, 44, 0.14);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 18px 42px rgba(24, 55, 44, 0.1);
  color: var(--text);
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-router-card[hidden] {
  display: none !important;
}

.home-router-card:hover,
.home-router-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(198, 137, 44, 0.42);
  box-shadow: 0 24px 56px rgba(24, 55, 44, 0.15);
}

.home-router-card:focus-visible {
  outline: 3px solid rgba(198, 137, 44, 0.32);
  outline-offset: 4px;
}

.home-router-card__image {
  display: block;
  width: 100%;
  height: 236px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.home-router-card__text {
  display: grid;
  align-content: start;
  gap: 8px;
}

.home-router-card__kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-router-card strong {
  color: var(--brand-deep);
  font-size: 21px;
  line-height: 1.18;
}

.home-router-card__text span:last-child {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.58;
}

.home-router-tagline {
  justify-self: center;
  margin: 2px 0 0;
  max-width: min(100%, 820px);
  font-size: clamp(22px, 6.6vw, 36px);
  line-height: 1.04;
  text-align: center;
}

.home-router-tagline__formula {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-router-tagline__formula > span {
  display: block;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
}

.home-router-tagline__operator {
  width: 100%;
  line-height: 0.72;
}

.home-router-tagline__result {
  text-align: center;
}

@media (max-width: 1180px) {
  .home-router-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }

  .home-router-menu--starter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 960px;
  }

  .home-router-card__image {
    height: 220px;
  }

  .landing-product-signal-row,
  .landing-flow-rail,
  .landing-scope-grid,
  .landing-package-grid {
    grid-template-columns: 1fr 1fr;
  }

  .landing-product-cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .home-router-main {
    padding-top: 30px;
  }

  .home-router-main__inner {
    min-height: 0;
    gap: 28px;
  }

  .home-router-intro h1 {
    font-size: 42px;
  }

  .home-router-menu {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .home-router-menu--starter {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .home-router-card {
    gap: 16px;
  }

  .home-router-card__image {
    height: 220px;
  }

  .landing-product-signal-row,
  .landing-flow-rail,
  .landing-scope-grid,
  .landing-package-grid,
  .landing-value-row,
  .landing-package-line {
    grid-template-columns: 1fr;
  }

  .landing-value-row {
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .home-router-main {
    padding: 24px 0 40px;
  }

  .home-router-intro {
    text-align: left;
  }

  .home-router-intro h1 {
    font-size: 34px;
  }

  .home-router-intro p:not(.home-router-intro__eyebrow) {
    font-size: 16px;
  }

  .home-router-card {
    padding: 14px 14px 20px;
  }

  .home-router-card__image {
    height: 190px;
  }

  .home-router-card strong {
    font-size: 22px;
  }

  .home-router-tagline {
    font-size: clamp(22px, 6.6vw, 32px);
  }

  .page-shell--landing-product .hero__copy--editorial h1 {
    font-size: clamp(32px, 9.4vw, 42px);
    line-height: 1.06;
  }

  .landing-product-hero__copy .hero__overline {
    font-size: 18px;
  }

  .landing-product-hero__copy,
  .landing-product-hero__aside,
  .landing-product-section,
  .landing-product-cta-band,
  .landing-faq {
    padding: 24px;
  }

  .landing-product-cta-band {
    gap: 18px;
    border-radius: 22px;
  }

  .landing-product-cta-band__actions {
    width: 100%;
    min-width: 0;
  }

  .landing-product-cta-band__actions .button {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 12px 14px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .landing-register__row {
    grid-template-columns: 1fr;
  }

  .landing-flow-rail::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .home-router-intro h1,
  .page-shell--landing-product .hero__copy--editorial h1 {
    overflow-wrap: anywhere;
  }

  .home-router-intro h1 {
    font-size: clamp(30px, 9vw, 34px);
    line-height: 1.08;
  }

  .landing-product-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-product-hero > * {
    min-width: 0;
  }

  .landing-product-hero__aside h3 {
    font-size: clamp(30px, 10vw, 38px);
  }
}

@media (max-width: 420px) {
  .page-shell--landing-product .hero__copy--editorial h1 {
    font-size: clamp(30px, 8.8vw, 36px);
  }

  .landing-product-cta-band {
    padding: 20px;
    border-radius: 20px;
  }

  .landing-product-cta-band h2 {
    font-size: clamp(28px, 9.2vw, 34px);
    line-height: 1.08;
  }

  .landing-product-cta-band__actions .button {
    font-size: 15px;
  }
}

.page-shell--dossier,
.page-shell--marketing,
.page-shell--simple {
  overflow: hidden;
}

.site-footer {
  padding-bottom: 14px;
}

.topbar__auth-row .topbar__link.is-authenticated,
.topbar__link.topbar__auth-name.is-authenticated,
.page-shell .topbar__link.is-authenticated,
.page-shell--dossier .topbar__link.is-authenticated,
.page-shell--marketing .topbar__link.is-authenticated,
.page-shell--home-router .topbar__link.is-authenticated,
.page-shell--landing-product .topbar__link.is-authenticated {
  background: rgba(23, 79, 63, 0.16);
  border-color: rgba(23, 79, 63, 0.22);
  color: var(--brand);
}

