:root {
  --ink: #172124;
  --muted: #617076;
  --line: #d9e2df;
  --paper: #f7f4ec;
  --surface: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4f49;
  --yellow: #f4b942;
  --rose: #c75d58;
  --shadow: 0 24px 70px rgba(23, 33, 36, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(247, 244, 236, 0.92);
  border-bottom: 1px solid rgba(23, 33, 36, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.language-select,
.ghost-button,
.primary-button,
.secondary-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.ghost-button {
  padding: 0 15px;
  color: var(--teal-dark);
  background: transparent;
  border-color: var(--line);
}

.language-select {
  width: 76px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

body.account-mode .main-nav a {
  display: none;
}

body.account-mode .site-footer,
body.account-mode .hero,
body.account-mode .trust-band,
body.account-mode .about-section,
body.account-mode #services,
body.account-mode #process,
body.account-mode #terms,
body.account-mode #apply {
  display: none;
}

body.account-mode .dashboard {
  min-height: calc(100vh - 72px);
  padding-top: clamp(28px, 5vw, 58px);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-weight: 750;
}

.primary-button {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.24);
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.9);
}

.full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(64px, 10vw, 118px) clamp(20px, 5vw, 72px);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(9, 21, 22, 0.82), rgba(9, 21, 22, 0.52) 46%, rgba(9, 21, 22, 0.12));
}

.hero-content {
  position: relative;
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 670px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-band div {
  min-height: 112px;
  padding: 26px clamp(18px, 4vw, 54px);
  background: #fff;
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band strong {
  margin-bottom: 7px;
  font-size: 22px;
}

.trust-band span {
  color: var(--muted);
}

.section {
  padding: clamp(62px, 8vw, 104px) clamp(18px, 5vw, 72px);
  scroll-margin-top: 96px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.about-section {
  background: #fff;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 16px;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.about-points div {
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(23, 33, 36, 0.1);
  border-radius: 8px;
  background: #f8fbfa;
}

.about-points strong,
.about-points span {
  display: block;
}

.about-points strong {
  margin-bottom: 10px;
  font-size: 19px;
}

.about-points span {
  color: var(--muted);
  line-height: 1.55;
}

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

.price-card,
.steps article,
.application-form,
.auth-card,
.dashboard-card {
  background: var(--surface);
  border: 1px solid rgba(23, 33, 36, 0.1);
  border-radius: 8px;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 24px;
}

.price-card.featured {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: var(--shadow);
}

.price-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  font-weight: 850;
  background: var(--rose);
}

.price-card.featured .price-icon {
  background: var(--teal);
}

.price-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.price-card p {
  color: var(--muted);
  line-height: 1.6;
}

.price-card .price {
  margin: 0;
  color: var(--ink);
  font-size: 44px;
  font-weight: 850;
  line-height: 1;
}

.price-card button {
  margin-top: auto;
}

.split {
  background: #eef5f2;
}

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

.steps article {
  min-height: 230px;
  padding: 22px;
}

.steps span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.steps h3 {
  margin: 18px 0 10px;
  font-size: 21px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.service-terms {
  background: #172124;
  color: #fff;
}

.service-terms .section-heading {
  max-width: 860px;
}

.service-terms h2 {
  color: #fff;
}

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

.terms-layout article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.terms-layout h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.terms-layout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.62;
}

.faq-section {
  background: #ffffff;
}

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

.faq-grid details {
  border: 1px solid rgba(23, 33, 36, 0.12);
  border-radius: 8px;
  background: #fbfaf6;
  padding: 16px 18px;
}

.faq-grid summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.faq-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.legal-section {
  background: #f4fbf9;
}

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

.legal-grid article {
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: #ffffff;
  padding: 17px;
}

.legal-grid h3 {
  margin: 0 0 9px;
  font-size: 18px;
}

.legal-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.application-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.application-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.application-form {
  padding: 24px;
  box-shadow: 0 16px 55px rgba(23, 33, 36, 0.11);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.date-row,
.location-row,
.household-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.check-line {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}

.check-line input {
  width: 18px;
  margin-top: 3px;
}

.form-actions {
  display: grid;
  gap: 10px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard {
  background: #fff;
  padding-top: clamp(86px, 9vw, 118px);
}

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

.dashboard-card {
  padding: 18px;
}

.client-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(23, 33, 36, 0.1);
}

.client-hero h3 {
  margin: 0;
  font-size: 28px;
}

.client-hero p {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.client-hero-status {
  min-width: 190px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: 13px;
  background: #eef7f5;
}

.client-hero-status span,
.client-detail span,
.client-section-head p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.client-hero-status strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.client-account-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: #f4fbf9;
}

.client-account-summary div,
.client-next-action {
  display: grid;
  gap: 4px;
}

.client-account-summary span,
.client-next-action span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.client-account-summary strong,
.client-next-action strong {
  font-size: 15px;
}

.client-account-summary a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--teal);
  font-weight: 850;
}

.client-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.client-progress-step {
  position: relative;
  min-height: 94px;
  padding: 12px;
  border: 1px solid rgba(23, 33, 36, 0.1);
  border-radius: 8px;
  background: #fbfaf6;
}

.client-progress-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--muted);
  background: #e5e7eb;
  font-size: 13px;
  font-weight: 950;
}

.client-progress-step strong {
  display: block;
  margin-top: 9px;
  font-size: 15px;
}

.client-progress-step small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.client-progress-step.done {
  border-color: rgba(15, 118, 110, 0.22);
  background: #f4fbf9;
}

.client-progress-step.done span {
  color: #ffffff;
  background: var(--teal);
}

.client-progress-step.active {
  border-color: rgba(180, 83, 9, 0.24);
  background: #fff8e8;
}

.client-progress-step.active span {
  color: #7a2e0e;
  background: #ffdf99;
}

.client-progress-step.upcoming {
  opacity: 0.74;
}

.client-return-notice {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(180, 83, 9, 0.24);
  border-radius: 8px;
  background: #fff8e8;
}

.client-return-notice span {
  color: #7a2e0e;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.client-return-notice strong {
  font-size: 20px;
}

.client-return-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.client-now-card {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #f4fbf9, #ffffff);
}

.client-now-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.client-now-card strong {
  font-size: 22px;
}

.client-now-card p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.client-now-card small {
  color: var(--ink);
  font-weight: 850;
}

.client-next-action {
  margin: 0 0 14px;
  padding: 13px;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 8px;
  background: #fff8e8;
}

.client-alert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.dashboard-card.client-gate-email-first .client-alert-grid,
.dashboard-card.client-gate-ready .client-alert-grid {
  grid-template-columns: 1fr;
}

.dashboard-card.client-gate-email-first .client-payment {
  display: none;
}

.dashboard-card.client-gate-ready .client-alert-grid {
  display: none;
}

.dashboard-card.client-gate-payment .client-email.verified {
  border-color: rgba(15, 118, 110, 0.16);
  background: #f7fbfa;
}

.dashboard-card h4 {
  margin: 18px 0 10px;
  font-size: 18px;
}

.dashboard-muted {
  color: var(--muted);
  line-height: 1.55;
}

.client-payment {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(23, 33, 36, 0.12);
  border-radius: 8px;
  background: #fff8e8;
}

.client-payment.paid {
  border-color: rgba(15, 118, 110, 0.28);
  background: #e8f8f5;
}

.client-payment span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: #7a2e0e;
  background: #ffdf99;
  font-size: 12px;
  font-weight: 950;
}

.client-payment.paid span {
  color: #ffffff;
  background: var(--teal);
}

.client-payment strong {
  font-size: 20px;
}

.client-payment p {
  margin: 0;
  color: var(--muted);
}

.client-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.client-action-button {
  width: fit-content;
  border: 1px solid rgba(23, 33, 36, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  padding: 11px 18px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(23, 33, 36, 0.08);
}

.client-action-button.secondary {
  background: #ffffff;
  color: var(--green);
  border: 1px solid rgba(0, 124, 111, 0.28);
  box-shadow: none;
}

.client-action-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.client-status-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.client-status-row div,
.client-housing-item,
.client-updates {
  border: 1px solid rgba(23, 33, 36, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: #fbfaf6;
}

.client-status-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.client-status-row strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.client-section {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(23, 33, 36, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.client-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.client-section-head h4,
.client-section-head p {
  margin: 0;
}

.client-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.client-detail {
  min-height: 78px;
  border: 1px solid rgba(23, 33, 36, 0.08);
  border-radius: 8px;
  padding: 11px;
  background: #fbfaf6;
}

.client-detail strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.35;
  word-break: break-word;
}

.client-housing-list {
  display: grid;
  gap: 10px;
}

.client-tracker-empty {
  padding: 16px;
  border: 1px dashed rgba(15, 118, 110, 0.32);
  border-radius: 8px;
  background: #f4fbf9;
}

.client-tracker-empty strong {
  display: block;
  font-size: 18px;
}

.client-tracker-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.client-housing-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.client-housing-top strong {
  font-size: 18px;
  line-height: 1.3;
}

.tracker-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 10px;
  color: #0f3f3b;
  background: #d8f3ef;
  font-size: 12px;
  font-weight: 900;
}

.tracker-status-waiting .tracker-badge {
  color: #7a2e0e;
  background: #ffdf99;
}

.tracker-status-replied .tracker-badge,
.tracker-status-viewing .tracker-badge {
  color: #3730a3;
  background: #e0e7ff;
}

.tracker-status-rejected .tracker-badge,
.tracker-status-closed .tracker-badge {
  color: #4b5563;
  background: #e5e7eb;
}

.client-housing-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.client-housing-meta span {
  min-height: 58px;
  padding: 9px;
  border: 1px solid rgba(23, 33, 36, 0.08);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.client-housing-meta small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.client-housing-item p,
.client-updates p {
  margin: 6px 0 0;
  color: var(--muted);
}

.client-updates .client-update-highlight {
  margin-top: 10px;
  padding: 10px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  color: var(--ink);
  background: #f4fbf9;
}

.client-housing-item .tracker-link {
  display: inline-block;
  margin-top: 12px;
  border: 1px solid rgba(0, 124, 111, 0.22);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--teal-dark);
  background: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.client-housing-item .tracker-link:hover {
  background: #f4fbf9;
}

.status-pill {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #dff3ef;
  font-size: 12px;
  font-weight: 800;
}

.auth-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-dialog::backdrop {
  background: rgba(15, 25, 28, 0.48);
}

.auth-card {
  position: relative;
  padding: 26px;
}

.auth-card h2 {
  margin: 0 0 18px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.close-dialog {
  position: absolute;
  top: 14px;
  right: 14px;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 14px 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: #128c7e;
  box-shadow: 0 16px 42px rgba(18, 140, 126, 0.28);
}

.whatsapp-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}

.whatsapp-icon img {
  width: 34px;
  height: 34px;
  display: block;
}

.whatsapp-float strong,
.whatsapp-float small {
  display: block;
  line-height: 1.15;
}

.whatsapp-float small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
}

.site-footer {
  display: grid;
  gap: 26px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: #fff;
  background: #172124;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 22px;
  align-items: start;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
}

.doorpool-link {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.doorpool-link strong {
  color: var(--yellow);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

.legal-page {
  background: var(--paper);
}

.legal-hero {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 90px) 28px;
}

.legal-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-hero p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.legal-document {
  max-width: 980px;
  margin: 0 auto clamp(54px, 8vw, 92px);
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid rgba(23, 33, 36, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 58px rgba(23, 33, 36, 0.08);
}

.legal-document h2 {
  margin: 32px 0 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(23, 33, 36, 0.1);
  font-size: 30px;
}

.legal-document h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-document h3 {
  margin: 22px 0 8px;
  font-size: 20px;
}

.legal-document p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-nav {
  grid-column: 2 / -1;
}

.payment-result-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(244, 185, 66, 0.12)),
    var(--paper);
}

.payment-result-card {
  width: min(100%, 760px);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(23, 33, 36, 0.1);
  border-radius: 8px;
  padding: clamp(22px, 5vw, 46px);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 33, 36, 0.14);
}

.payment-result-card img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.22);
}

.payment-result-card h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.payment-result-card p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.payment-result-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.payment-result-steps div {
  min-height: 112px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: #f4fbf9;
}

.payment-result-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--teal);
  font-size: 13px;
  font-weight: 950;
}

.payment-result-steps strong,
.payment-result-steps small {
  display: block;
}

.payment-result-steps strong {
  margin-top: 10px;
  font-size: 16px;
}

.payment-result-steps small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.payment-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

body[data-payment-state="cancelled"] .payment-result-steps div,
body[data-payment-state="delayed"] .payment-result-steps div {
  border-color: rgba(180, 83, 9, 0.2);
  background: #fff8e8;
}

body[data-payment-state="cancelled"] .payment-result-steps span,
body[data-payment-state="delayed"] .payment-result-steps span {
  color: #7a2e0e;
  background: #ffdf99;
}

.support-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1.3fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.support-footer h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.support-footer p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.support-links {
  display: grid;
  grid-template-columns: minmax(260px, 420px);
  gap: 10px;
  align-content: start;
}

.support-links a {
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.support-links span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.support-links strong {
  color: #fff;
  overflow-wrap: anywhere;
}

.payment-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1.3fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.payment-footer h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.payment-footer p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.payment-chip {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.payment-chip.ideal {
  color: #111827;
  background: linear-gradient(135deg, #ffffff, #f5f7fb);
}

.payment-chip.ing {
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b00, #f39c12);
}

.payment-chip.visa {
  color: #ffffff;
  background: linear-gradient(135deg, #1a1f71, #3154d4);
}

.payment-chip.mastercard {
  color: #172124;
  background: linear-gradient(135deg, #ff5f00, #f79e1b);
}

.payment-chip.maestro {
  color: #ffffff;
  background: linear-gradient(135deg, #009ddd, #004b93);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .trust-band,
  .pricing-grid,
  .about-layout,
  .about-points,
  .steps,
  .terms-layout,
  .faq-grid,
  .legal-grid,
  .application-section,
  .footer-top,
  .support-footer,
  .payment-footer {
    grid-template-columns: 1fr;
  }

  .support-links {
    grid-template-columns: 1fr;
  }

  .client-hero,
  .client-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .client-account-summary {
    grid-template-columns: 1fr;
  }

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

  .client-alert-grid,
  .client-detail-grid,
  .client-housing-meta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 760px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand span:last-child {
    font-size: 15px;
  }

  .main-nav {
    gap: 10px;
    font-size: 14px;
  }

  .hero {
    min-height: 710px;
    padding: 54px 18px;
    align-items: flex-end;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(9, 21, 22, 0.88), rgba(9, 21, 22, 0.34));
  }

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

  .date-row,
  .location-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .whatsapp-float {
    right: 12px;
    bottom: 14px;
    top: auto;
    transform: none;
  }

  .whatsapp-float span:last-child {
    display: none;
  }

  .hero-actions,
  .hero-actions a {
    width: 100%;
  }
}

.client-email {
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 12px 0;
  padding: 16px;
  border: 1px solid rgba(122, 46, 14, 0.18);
  border-radius: 8px;
  background: #fff8e8;
}

.client-email.verified {
  border-color: rgba(15, 118, 110, 0.24);
  background: #e8f8f5;
}

.client-email-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 11px 6px 7px;
  color: #7a2e0e;
  background: #ffdf99;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.client-email.verified .client-email-badge {
  color: #fff;
  background: var(--teal);
}

.client-email-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: var(--teal);
  background: #fff;
  font-size: 14px;
  font-weight: 950;
}

.client-email.unverified .client-email-icon {
  color: #7a2e0e;
}

.client-email-label {
  white-space: nowrap;
}

.client-email p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.link-button {
  border: 0;
  padding: 0;
  color: var(--teal);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.reset-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--cream);
}

.reset-card {
  width: min(460px, 100%);
}

.reset-card h1 {
  margin: 0;
}

.reset-actions {
  display: grid;
  gap: 10px;
}

.secondary-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid rgba(0, 124, 111, 0.24);
  border-radius: 8px;
  color: var(--green);
  background: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.secondary-link-button:hover {
  border-color: rgba(0, 124, 111, 0.44);
  background: #f4fbf9;
}
