/* Milford website: tokens, base, components, sections.
   Values come from the "Milford Local Launch Page" design canvas (Version C + Real Estate). */

:root {
  --ink: #1a1033;
  --ink-2: #3f394b;
  --ink-muted: #6b6484;
  --placeholder: #8e879c;
  --spotlight: #7922d6;
  --deep: #3b0082;
  --accent: #845fd3;
  --lilac: #ab92e1;
  --lilac-hover: #c5b3ec;
  --line: #d4c9ec;
  --line-soft: #dbd8e8;
  --tint: #ebe2ff;
  --tint-2: #e7e3f5;
  --tint-3: #ece9f7;
  --wash: #f7f5fc;
  --gray-50: #f7f7f7;
  --gray-line: #d9d9d6;
  --gray-soft: #e3e3e2;
  --field-border: #afafac;
  --field-border-soft: #cfcfcc;
  --charcoal: #282829;
  --charcoal-2: #313132;
  --charcoal-line: #3e3e3e;
  --charcoal-line-2: #4a4a4b;
  --success-bg: #ddf3e7;
  --success: #1e5b3a;
  --success-icon: #2e8b57;
  --error: #ba1a1a;
  --alert: #ed2e1f;

  --font-sans: 'Neue Tarasque', 'Figtree', system-ui, sans-serif;
  --font-display: 'Roslindale Display Condensed', 'Fraunces', Georgia, serif;

  --shadow-card: 0 8px 24px 0 #1a10331f;
  --shadow-float: 0 5px 20px 0 #00000026;
  --shadow-chip: 0 1px 3px 0 #7922d633;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.modal-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3 { text-wrap: balance; }
p, span, label, li { text-wrap: pretty; }
img { max-width: 100%; }
a { color: var(--spotlight); }
a:hover { color: var(--deep); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--spotlight); outline-offset: 2px; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 100px; background: var(--ink); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.display { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.1; }

.page { min-height: 100vh; background: var(--charcoal); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 100px; cursor: pointer; text-decoration: none;
  font-weight: 700; letter-spacing: 0.4px; white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn svg { flex: 0 0 auto; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-md { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 18px; }
.btn-xl { min-height: 52px; padding: 0 24px; font-size: 16px; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 4px 0 #845fd326; }
.btn-primary:hover { background: var(--spotlight); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--spotlight); color: #fff; }
.btn-tonal { background: var(--tint); border: 1px solid var(--accent); color: var(--spotlight); }
.btn-tonal:hover { background: #ddd0fb; color: var(--deep); }
.btn-lilac { background: var(--lilac); color: var(--charcoal); }
.btn-lilac:hover { background: var(--lilac-hover); color: var(--charcoal); }
.btn-outline-light { background: transparent; border: 1.5px solid #fff; color: #fff; }
.btn-outline-light:hover { background: #ffffff1a; color: #fff; }

.link-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 700; color: var(--spotlight); text-decoration: underline;
}

.icon-btn {
  flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border-radius: 100px;
  border: 1px solid var(--line); background: #ffffffb3; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { background: #fff; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Store badges ---------- */

.store-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px;
  border-radius: 10px; background: #000; color: #fff; text-align: left;
}
.store-badge--outlined { border: 1px solid #a6a6a6; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge__small { font-size: 10px; letter-spacing: 0.3px; }
.store-badge__big { font-size: 17px; font-weight: 700; }

/* ---------- Header / nav ---------- */

.site-header { background: #fff; }
.site-header--dark { background: var(--charcoal); border-bottom: 1px solid var(--charcoal-line); }
.site-nav {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.site-nav__links { flex: 1 1 0; min-width: 240px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.site-nav__logo { flex: 0 0 auto; display: flex; align-items: center; }
.site-nav__logo img { height: 40px; width: auto; display: block; }
.site-nav__cta { flex: 1 1 0; min-width: 160px; display: flex; justify-content: flex-end; }

.nav-link {
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 0 8px;
  background: linear-gradient(var(--lilac), var(--lilac)) no-repeat left bottom / 0% 2px;
  transition: color 150ms ease, background-size 250ms ease;
}
.nav-link:hover { color: var(--spotlight); background-size: 100% 2px; }
.nav-link[aria-current="location"], .nav-link[aria-current="page"] {
  color: var(--spotlight); background-image: linear-gradient(var(--accent), var(--accent)); background-size: 100% 2px;
}
.site-header--dark .nav-link { color: #fff; }
.site-header--dark .nav-link:hover { color: var(--lilac); }
.site-header--dark .nav-link[aria-current="page"] { color: #fff; font-weight: 700; background-image: linear-gradient(var(--lilac), var(--lilac)); }
@media (prefers-reduced-motion: reduce) { .nav-link { transition: none; } }

@media (max-width: 720px) {
  .site-nav { padding: 12px 16px 4px; gap: 4px 16px; }
  .site-nav__logo { order: -2; }
  .site-nav__cta { order: -1; flex: 0 0 auto; min-width: 0; }
  .site-nav__links { order: 1; flex-basis: 100%; min-width: 0; justify-content: center; gap: 0 20px; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--charcoal); color: #fff; border-top: 1px solid var(--charcoal-line); }
.site-footer__inner {
  max-width: 1200px; margin: 0 auto; padding: 48px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.site-footer__logo { height: 40px; width: auto; display: block; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.site-footer__links a, .site-footer__links button {
  color: #fff; text-decoration: none; padding: 10px 0; border: 0; background: none; cursor: pointer; font-size: 14px;
}
.site-footer__links a:hover, .site-footer__links button:hover { color: var(--lilac); }
.site-footer__copy { font-size: 12px; color: var(--line); }

/* ---------- Shared bits ---------- */

.pill-badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 13px;
  background: var(--spotlight); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}

.notify-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
.notify-cta__hint { font-size: 14px; color: var(--ink-2); }

.on-list {
  display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 22px 12px 14px;
  border-radius: 100px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-chip);
  text-align: left; color: var(--ink);
}
.on-list__check {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 100px; background: var(--success-bg); color: var(--success);
  display: flex; align-items: center; justify-content: center;
}
.on-list__text { display: flex; flex-direction: column; }
.on-list__title { font-size: 16px; font-weight: 700; }
.on-list__sub { font-size: 13px; color: var(--ink-2); }

.photo-ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 16px; border-radius: 15px; background: var(--tint-2); color: var(--ink-2); font-size: 12px;
}

.marble-lav {
  background: linear-gradient(rgba(233, 227, 245, 0.6), rgba(233, 227, 245, 0.6)),
    url(../images/marble-lavender.jpg) center / cover no-repeat, #e9e3f5;
}
.marble-dark {
  background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(132, 95, 211, 0.45) 0%, rgba(132, 95, 211, 0.15) 55%, rgba(132, 95, 211, 0) 100%),
    linear-gradient(rgba(40, 40, 41, 0.78), rgba(40, 40, 41, 0.78)),
    url(../images/marble-dark.jpg) 35% 45% / max(240%, 2600px) auto no-repeat, var(--charcoal);
}

.spin { animation: ml-spin 1s linear infinite; }
@keyframes ml-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* =========================================================
   Modal shell. Forms open as overlays; full screen on phones.
   ========================================================= */

.modal-overlay {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto; overscroll-behavior: contain;
  display: flex; padding: 24px;
}
.modal-scrim {
  position: fixed; inset: 0; border: 0; padding: 0; background: #28282980; cursor: pointer;
}
.modal-dialog {
  position: relative; margin: auto; width: 540px; max-width: 100%;
  padding: 24px 32px 32px; border-radius: 28px;
  display: flex; flex-direction: column; text-align: left;
  animation: modal-in 180ms ease-out;
}
.modal-dialog:focus { outline: none; }
.modal-dialog--narrow { width: 460px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal-dialog { animation: none; } }

/* Milford Local look (Notify Me, business sign-up) */
.dialog-local {
  color: var(--ink);
  background: linear-gradient(180deg, #f7f7f7f2 0%, #f7f7f7f2 45%, #e7e3f5f2 100%);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid #d4c9ec99;
  box-shadow: var(--shadow-card), inset 0 1px 0 0 #ffffffcc;
  --focus: var(--spotlight); --chip-on: var(--accent); --submit-bg: var(--accent); --submit-bg-hover: var(--spotlight); --submit-fg: #fff;
}
.dialog-local.is-done { background: var(--lilac); }

/* Milford Real Estate look (agent request, home value) */
.dialog-re {
  color: var(--charcoal);
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 55%, #ebe2ff 100%);
  border: 1px solid var(--gray-line);
  box-shadow: 0 8px 24px 0 #0000003d;
  --focus: var(--charcoal); --chip-on: var(--charcoal); --submit-bg: var(--lilac); --submit-bg-hover: var(--lilac-hover); --submit-fg: var(--charcoal);
}
.dialog-re .icon-btn { background: transparent; border-color: var(--gray-line); color: var(--charcoal); }
.dialog-re.is-done {
  color: #fff;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(132, 95, 211, 0.45) 0%, rgba(132, 95, 211, 0.15) 55%, rgba(132, 95, 211, 0) 100%), var(--charcoal);
  border-color: var(--charcoal-line);
}
.dialog-re.is-done .icon-btn { border-color: #5a5a5b; color: #fff; }
.dialog-re.is-done .flow-help { color: var(--gray-soft); }
.dialog-re.is-done .flow-eyebrow { color: var(--lilac); }
.dialog-re .modal-scrim { background: #28282999; }

/* Small contact card (More from Milford) */
.modal-overlay--center { align-items: center; justify-content: center; }
.contact-card {
  position: relative; width: 340px; max-width: 100%; padding: 20px; border-radius: 28px;
  background: #ffffffd9; -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid #d4c9ec99; box-shadow: var(--shadow-card), inset 0 1px 0 0 #ffffffcc;
  display: flex; flex-direction: column; gap: 12px; color: var(--ink);
  animation: modal-in 180ms ease-out;
}
.contact-card:focus { outline: none; }
.contact-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.contact-card__titles { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.contact-card__num { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--deep); }
.contact-card__name { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
.contact-card__desc { margin: 0; font-size: 14px; color: var(--charcoal); }
.contact-card__lines {
  display: flex; flex-direction: column; gap: 10px; padding: 12px 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); font-size: 14px;
}
.contact-card__lines a, .contact-card__lines span { display: flex; align-items: center; gap: 10px; color: var(--deep); min-height: 24px; }
.contact-card .btn { width: 100%; min-height: 48px; font-size: 16px; }

@media (max-width: 640px) {
  .modal-overlay:not(.modal-overlay--center) { padding: 0; }
  .modal-overlay:not(.modal-overlay--center) .modal-dialog {
    width: 100%; min-height: 100%; margin: 0; border-radius: 0; border: 0;
    padding: max(12px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  }
}

/* =========================================================
   Step flows (forms inside the modals)
   ========================================================= */

.flow { display: flex; flex-direction: column; gap: 28px; flex: 1 1 auto; }
.flow-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: -6px; }
.flow-top__spacer { width: 44px; }
.flow-progress { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.flow-progress__bars { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.flow-progress__bar { height: 6px; border-radius: 3px; background: var(--tint-2); transition: background-color 200ms ease; }
.flow-progress__bar.is-on { background: var(--accent); }
.flow-progress__label { font-size: 15px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-2); }

.flow-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.flow-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--spotlight); }
.flow-title { margin: 0; font-size: 36px; font-weight: 700; line-height: 1.15; }
.flow-sub { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.3; }
.flow-help { margin: 0; max-width: 430px; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.dialog-re .flow-help { color: var(--ink-2); }
.flow-title:focus { outline: none; }

.flow-form { display: flex; flex-direction: column; gap: 26px; flex: 1 1 auto; }
.flow-form > .flow-submit { margin-top: auto; }
.flow-form--tall { min-height: 400px; }

.field { position: relative; min-width: 0; }
.field__label {
  position: absolute; top: -11px; left: 22px; z-index: 1; padding: 0 6px;
  background: #fff; font-size: 14px; line-height: 20px; color: var(--ink-2); border-radius: 4px;
}
.field__label--muted { color: var(--ink-muted); }
.pill {
  display: block; width: 100%; height: 60px; padding: 0 24px;
  border: 1.5px solid var(--field-border); border-radius: 100px; background: var(--gray-50);
  font: inherit; font-size: 17px; color: inherit;
}
.pill::placeholder { color: var(--placeholder); }
.pill:focus { outline: 2px solid var(--focus, var(--spotlight)); outline-offset: 2px; border-color: var(--focus, var(--spotlight)); }
.pill--soft { border-color: var(--field-border-soft); }
textarea.pill { height: auto; padding: 18px 24px; border-radius: 24px; line-height: 1.45; resize: none; }
.dialog-re .pill { color: var(--charcoal); }
.dialog-re .pill::placeholder { color: #8e8e8b; }

.field-hint { align-self: flex-end; padding-right: 20px; font-size: 14px; color: var(--ink-2); }
.field-stack { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
.field-row--wide-gap { gap: 26px 16px; }

.fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.legend { padding: 0; margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.legend__note { font-weight: 500; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px; min-width: 56px; padding: 0 18px; border-radius: 100px;
  border: 1px solid var(--tint); background: var(--tint); color: inherit;
  font-size: 16px; font-weight: 700; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--chip-on); border-color: var(--chip-on); color: #fff; }
.chip:disabled { opacity: 0.45; cursor: not-allowed; }
.chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.chips-hint { font-size: 15px; color: var(--ink-muted); }

.radio-list { border: 1px solid var(--field-border); border-radius: 16px; background: #fff; overflow: hidden; }
.radio-row { display: flex; align-items: center; gap: 18px; padding: 16px 22px; cursor: pointer; }
.radio-row + .radio-row { border-top: 1px solid var(--gray-soft); }
.radio-row.is-on { box-shadow: inset 4px 0 0 var(--lilac); }
.radio-row input { flex: 0 0 auto; width: 24px; height: 24px; margin: 0; accent-color: var(--chip-on); }
.radio-row__text { display: flex; flex-direction: column; }
.radio-row__title { font-size: 18px; font-weight: 700; }
.radio-row__sub { font-size: 15px; color: var(--ink-2); }
.radio-list--compact .radio-row { padding: 14px 20px; }
.radio-list--compact .radio-row__title { font-size: 17px; }
.radio-list--compact .radio-row__sub { font-size: 14px; }

.captcha {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border: 1px solid var(--field-border); border-radius: 16px; background: #fff;
}
.captcha input { flex: 0 0 auto; width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }
.captcha label { flex: 1 1 auto; font-size: 17px; font-weight: 700; cursor: pointer; }
.captcha__brand {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px; color: var(--ink-2);
  font-size: 12px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase;
}

.consent { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); text-align: center; }
.consent--lg { font-size: 14px; }
.consent a { color: var(--spotlight); text-decoration: underline; }
.dialog-re .consent a { color: var(--charcoal); text-decoration-color: var(--accent); }

.form-error { margin: 0; font-size: 14px; font-weight: 500; color: var(--error); }
.form-error ul { margin: 4px 0 0; padding-left: 18px; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.flow-submit {
  min-height: 60px; width: 100%; border: 0; border-radius: 100px;
  background: var(--submit-bg); color: var(--submit-fg); box-shadow: 0 2px 4px 0 #845fd326;
  font-size: 19px; font-weight: 700; letter-spacing: 0.4px; cursor: pointer;
  transition: background-color 150ms ease;
}
.flow-submit:hover:not(:disabled) { background: var(--submit-bg-hover); }
.flow-submit:disabled { opacity: 0.7; cursor: progress; }

.status-card { border-radius: 20px; background: #fff; padding: 0 22px; box-shadow: var(--shadow-card); color: var(--ink); }
.dialog-re .status-card { box-shadow: none; color: var(--charcoal); }
.status-row { display: flex; align-items: center; gap: 16px; padding: 18px 0; }
.status-row + .status-row { border-top: 1px solid var(--line-soft); }
.dialog-re .status-row + .status-row { border-top-color: var(--gray-soft); }
.status-row__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.status-row__title { font-size: 17px; font-weight: 700; }
.status-row__sub { font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.status-row__icon { flex: 0 0 auto; color: var(--spotlight); }
.dialog-re .status-row__icon { color: var(--accent); }
.status-check {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 100px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.dialog-re .status-check { background: var(--charcoal); color: var(--lilac); }
.status-badge {
  flex: 0 0 auto; padding: 4px 12px; border-radius: 100px; background: var(--tint);
  color: var(--spotlight); font-size: 14px; font-weight: 700;
}
.dialog-re .status-badge { color: var(--deep); }
.flow-done { display: flex; flex-direction: column; gap: 32px; flex: 1 1 auto; }
.flow-done > .flow-submit { margin-top: auto; }

/* Notify Me specifics */
.notify-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.notify-head img { height: 48px; width: auto; }
.notify-head .flow-title { font-size: 32px; }
.notify-done { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.notify-done__check {
  width: 64px; height: 64px; border-radius: 100px; background: var(--success-bg); color: var(--success);
  display: flex; align-items: center; justify-content: center;
}
.notify-done .flow-submit { margin-top: 8px; }
.notify-done__biz { font-size: 15px; color: var(--ink-2); }

@media (max-width: 640px) {
  .flow-title { font-size: 30px; }
  .flow-sub { font-size: 19px; }
  .flow-help { font-size: 16px; }
  .flow-form--tall { min-height: 0; }
}
@media (max-width: 400px) {
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

/* =========================================================
   Milford Local launch page
   ========================================================= */

/* Hero */
.hero {
  overflow: hidden;
  background: radial-gradient(ellipse 60% 45% at 50% 100%, rgba(233, 227, 245, 1) 0%, rgba(233, 227, 245, 0.7) 40%, rgba(233, 227, 245, 0.25) 75%, rgba(233, 227, 245, 0) 100%), #fff;
}
.hero__intro {
  max-width: 1200px; margin: 0 auto; padding: 56px 24px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.hero__title {
  margin: 0; max-width: 900px; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 7vw, 88px); line-height: 1.02; letter-spacing: -0.5px; color: var(--ink);
}
.hero__title img { height: 0.8em; width: auto; vertical-align: -0.08em; margin: 0 0.18em; }
.hero__lede { margin: 0; max-width: 820px; font-size: 18px; color: var(--ink-2); text-wrap: balance; }
.hero__stage { position: relative; height: 540px; overflow: hidden; }
.hero__ribbon { position: absolute; left: 0; top: 0; width: 100%; height: 540px; }
.hero__peek { position: absolute; width: 180px; height: 250px; font-size: 11px; background: var(--tint-3); padding: 12px; }
.hero__peek--l { left: calc(50% - 740px); top: 150px; transform: rotate(-3deg); }
.hero__peek--r { left: calc(50% + 560px); top: 140px; transform: rotate(3deg); }
.hero__card { position: absolute; width: 270px; }
.hero__card--l { left: calc(50% - 500px); top: 70px; transform: rotate(-4deg); }
.hero__card--r { left: calc(50% + 230px); top: 50px; transform: rotate(4deg); }
.hero__card .photo-ph { border: 4px solid #fff; box-shadow: var(--shadow-float); }
.hero__offer {
  position: absolute; left: -24px; bottom: -36px; width: 200px; padding: 12px; border-radius: 12px;
  background: #fff; box-shadow: var(--shadow-float); display: flex; flex-direction: column; gap: 4px;
  text-align: left; transform: rotate(2deg);
}
.tag { align-self: flex-start; padding: 2px 8px; border-radius: 100px; background: var(--tint); color: var(--spotlight); font-size: 10px; font-weight: 700; }
.hero__chip {
  position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 100px;
  background: #fff; font-size: 13px; font-weight: 700; color: var(--ink);
}
.hero__chip--loc { right: -18px; top: 24px; box-shadow: var(--shadow-chip); }
.hero__chip--loc svg { color: var(--spotlight); }
.hero__chip--rsvp { left: -30px; bottom: 36px; gap: 8px; padding: 10px 16px; font-size: 14px; color: var(--success); box-shadow: var(--shadow-float); }
.hero__chip--rsvp svg { color: var(--success-icon); }

.phone {
  position: absolute; left: calc(50% - 165px); top: 20px; width: 330px; padding: 10px;
  border-radius: 44px; background: var(--ink); box-shadow: 0 5px 20px 0 #00000040;
}
.phone__screen { border-radius: 36px; overflow: hidden; background: var(--gray-50); display: flex; flex-direction: column; padding-bottom: 40px; }
.phone__bar { padding: 22px 18px 8px; display: flex; align-items: center; gap: 8px; }
.phone__bar img { width: 26px; height: 32px; object-fit: contain; }
.phone__bar span { font-size: 22px; line-height: 1.2; color: var(--charcoal); }
.phone__body { padding: 4px 18px 0; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.phone__search {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 100px; background: #fff; font-size: 12px; color: var(--ink-muted);
}
.phone__filters { display: flex; gap: 6px; }
.phone__filter { padding: 4px 10px; border-radius: 100px; background: #fff; border: 1px solid var(--line); color: var(--deep); font-size: 11px; }
.phone__filter.is-on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.phone__row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 15px; font-weight: 700; }
.phone__card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px 0 #7922d626; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.phone__card .photo-ph { height: 120px; border-radius: 10px; font-size: 10px; padding: 8px; }
.phone__meta { display: flex; align-items: center; gap: 8px; }
.phone__new { padding: 2px 8px; border-radius: 13px; background: var(--alert); color: #fff; font-size: 9px; font-weight: 700; }
.phone__venue { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--spotlight); }
.phone__title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.phone__small { font-size: 10px; color: var(--ink-muted); }
.phone__event { flex-direction: row; gap: 10px; align-items: center; }
.phone__date { width: 40px; border-radius: 8px; background: var(--tint); display: flex; flex-direction: column; align-items: center; padding: 4px 0; }
.phone__date span:first-child { font-size: 8px; letter-spacing: 1px; color: var(--spotlight); }
.phone__date span:last-child { font-size: 16px; font-weight: 700; color: var(--deep); line-height: 1.1; }
.phone__event-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.phone__event-text span:first-child { font-size: 8px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }
.phone__event-text span:last-child { font-size: 13px; font-weight: 700; line-height: 1.3; }

@media (max-width: 640px) {
  .hero__intro { padding-top: 40px; }
  .hero__stage { height: 460px; }
}

/* App pillars */
.app-section { background: #fff; }
.app-section__inner { max-width: 1200px; margin: 0 auto; padding: 88px 24px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.section-intro { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 680px; text-align: center; }
.section-intro .display { font-size: 52px; line-height: 1.08; }
.section-intro p { margin: 0; font-size: 16px; color: var(--ink-muted); }
.pillars { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.pillar { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.pillar img { width: 48px; height: 48px; object-fit: contain; }
.pillar h3 { margin: 0; font-size: 18px; font-weight: 700; }
.pillar p { margin: 0; font-size: 14px; color: var(--ink-muted); }
.pillar--soon { border-color: var(--lilac); background: var(--wash); }
.pillar--soon p { color: var(--ink-2); }
.pillar__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pillar__badge { padding: 3px 10px; border-radius: 13px; background: var(--spotlight); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

@media (max-width: 640px) {
  .app-section__inner { padding: 64px 24px; }
  .section-intro .display { font-size: 40px; }
}

/* For businesses */
.biz-section { background: var(--gray-50); }
.biz-section__inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px; }
.biz-panel { display: flex; flex-wrap: wrap; align-items: center; column-gap: 40px; padding: 0 48px; border-radius: 28px; overflow: hidden; }
.biz-panel__art { flex: 0 0 auto; align-self: flex-end; width: 190px; height: 190px; margin-top: 24px; overflow: hidden; }
.biz-panel__art img { display: block; width: 190px; height: auto; }
.biz-panel__copy { flex: 1 1 420px; min-width: 0; padding: 32px 0; display: flex; flex-direction: column; gap: 12px; }
.biz-panel__copy .eyebrow { color: var(--deep); }
.biz-panel__copy .display { font-size: 34px; }
.biz-panel__copy p { margin: 0; max-width: 560px; font-size: 16px; }
.biz-panel__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

@media (max-width: 640px) {
  .biz-section__inner { padding: 40px 16px; }
  .biz-panel { padding: 0 24px; flex-direction: column-reverse; align-items: stretch; }
  .biz-panel__art { align-self: center; margin-top: 0; }
  .biz-panel__copy { flex-basis: auto; }
}

/* More from Milford */
.more-section { background: var(--wash); overflow: hidden; }
.more-section__inner { max-width: 1200px; margin: 0 auto; padding: 96px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.more-section__copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.more-section__copy .eyebrow { color: var(--spotlight); }
.more-section__copy .display { font-size: 44px; }
.more-section__copy p { margin: 0; max-width: 420px; font-size: 16px; color: var(--ink-2); }
.more-section__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.more-section__hint { font-size: 14px; color: var(--ink-muted); }

.hub-wrap { flex: 1 1 560px; min-width: 0; display: flex; justify-content: center; }
.hub {
  position: relative; width: 100%; max-width: 640px; aspect-ratio: 1 / 1;
  --orbit: 37.5%;
}
.hub > * { position: absolute; }
.hub__orb { border-radius: 50%; }
.hub__orb--a {
  left: 58%; top: 18%; width: 34%; height: 34%;
  background: radial-gradient(circle, rgba(171, 146, 225, 0.7) 0%, rgba(171, 146, 225, 0) 70%);
  transform: translate(var(--ax, 0px), var(--ay, 0px));
}
.hub__orb--b {
  left: 6%; top: 52%; width: 38%; height: 38%;
  background: radial-gradient(circle, rgba(121, 34, 214, 0.35) 0%, rgba(121, 34, 214, 0) 70%);
  transform: translate(var(--bx, 0px), var(--by, 0px));
}
.hub__glow {
  left: 15%; top: 15%; width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(171, 146, 225, 0.45) 0%, rgba(171, 146, 225, 0.15) 45%, rgba(171, 146, 225, 0) 72%);
}
.hub__ring {
  left: calc(50% - var(--orbit)); top: calc(50% - var(--orbit)); width: calc(var(--orbit) * 2); height: calc(var(--orbit) * 2);
  border-radius: 50%; border: 2px dashed var(--lilac); transform: rotate(var(--ring, 0deg));
}
.hub__inner-ring { left: 30%; top: 30%; width: 40%; height: 40%; border-radius: 50%; border: 1px solid var(--line); }
.hub__core {
  left: 50%; top: 50%; width: 30%; aspect-ratio: 1 / 1; padding: 0;
  transform: translate(-50%, calc(-50% + var(--cy, 0px)));
  border-radius: 50%; border: 3px solid var(--ink); background: var(--ink); box-shadow: 0 5px 20px 0 #00000040;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}
.hub__core[aria-expanded="true"] { border-color: var(--lilac); }
.hub__core img { width: 42%; height: auto; }
.hub__core span { font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #fff; }

.hub__node {
  width: 168px; padding: 14px 16px; border-radius: 16px; text-align: center;
  transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) rotate(var(--rot, 0deg));
}
.hub__node--n0 { left: 50%; top: calc(50% - var(--orbit)); }
.hub__node--n1 { left: calc(50% + var(--orbit)); top: 50%; }
.hub__node--n2 { left: 50%; top: calc(50% + var(--orbit)); }
.hub__node--n3 { left: calc(50% - var(--orbit)); top: 50%; }
.hub__node--local {
  width: 176px; background: var(--spotlight); box-shadow: 0 8px 24px 0 #7922d640; color: #fff; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.hub__node--local:hover { color: #fff; }
.hub__node--local .k { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.hub__node--local .n { font-size: 16px; font-weight: 700; }
.hub__node--local .d { font-size: 12px; }

.glass-node {
  background: #ffffffb3; -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid #d4c9ec99; box-shadow: var(--shadow-card), inset 0 1px 0 0 #ffffffcc;
  color: var(--ink); cursor: pointer; transition: background-color 200ms ease, box-shadow 200ms ease;
}
.glass-node[aria-expanded="true"] { border-color: var(--spotlight); }
.glass-node:hover { background: #ffffffe0; box-shadow: 0 14px 32px 0 #1a103333, inset 0 1px 0 0 #ffffffcc; }
.glass-node__lift { display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform 200ms ease; }
.glass-node:hover .glass-node__lift { transform: translateY(-3px); }
.glass-node .k { font-size: 10px; letter-spacing: 1px; color: var(--deep); }
.glass-node .n { font-size: 15px; font-weight: 700; }
.glass-node .d { font-size: 12px; color: var(--charcoal); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-node { background: #fff; border-color: var(--line); }
}
@media (prefers-reduced-motion: reduce) { .glass-node, .glass-node__lift { transition: none; } }

@media (max-width: 640px) {
  .more-section__inner { padding: 72px 24px; gap: 40px; }
  .more-section__copy .display { font-size: 36px; }
  .hub { --orbit: 32%; }
  .hub__node, .hub__node--local { width: 112px; padding: 10px 8px; border-radius: 14px; }
  .hub__node .d { display: none; }
  .hub__node .n { font-size: 13px; line-height: 1.25; }
  .hub__node .k { font-size: 9px; }
  .hub__core span { font-size: 10px; letter-spacing: 2px; }
}

/* How it works + where we're launching */
.how-section__inner { max-width: 1200px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; gap: 56px; }
.how-section__head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.how-section__head .eyebrow, .launching .eyebrow { color: var(--deep); }
.how-section__head .display { font-size: 48px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.step-card { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-card); }
.step-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.step-card__num { font-family: var(--font-display); font-size: 48px; line-height: 1; color: var(--accent); }
.step-card h3 { margin: 0; font-size: 22px; font-weight: 700; }
.step-card p { margin: 0; font-size: 16px; color: var(--ink-2); }
.how-section .notify-cta__hint { color: var(--charcoal); }
.divider { height: 1px; background: var(--lilac); }
.launching { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.launching__copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.launching__copy .display { font-size: 44px; }
.launching__copy p { margin: 0; max-width: 420px; font-size: 17px; color: var(--charcoal); }
.hoods { flex: 2 1 520px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.hood {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 100px;
  background: #fff; font-size: 16px; font-weight: 700; color: var(--charcoal); box-shadow: 0 1px 3px 0 #7922d61f;
}
.hood svg { color: var(--accent); }
.hood--more { background: transparent; box-shadow: none; border: 1.5px dashed var(--deep); color: var(--deep); }

@media (max-width: 640px) {
  .how-section__inner { padding: 72px 24px; gap: 40px; }
  .how-section__head .display, .launching__copy .display { font-size: 36px; }
  .hoods { flex-basis: auto; }
}

/* Closing launch band */
.launch-section { color: #fff; }
.launch-section__inner {
  max-width: 760px; margin: 0 auto; padding: 96px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.launch-section__inner > img { height: 56px; width: auto; }
.launch-section__date { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 6vw, 72px); line-height: 1.05; }
.launch-section h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--tint); }
.launch-section .notify-cta__hint { color: var(--tint); }

/* =========================================================
   Milford Real Estate page
   ========================================================= */

.re-page { color: var(--charcoal); }
.re-page .site-nav__cta .btn { min-height: 44px; }
.re-dash { display: inline-block; width: 24px; height: 3px; border-radius: 2px; background: var(--lilac); vertical-align: middle; margin-right: 10px; }
.re-eyebrow-light { color: var(--lilac); }

.re-hero {
  overflow: hidden; color: #fff;
  background: radial-gradient(ellipse 50% 75% at 100% 50%, rgba(132, 95, 211, 0.5) 0%, rgba(132, 95, 211, 0.17) 55%, rgba(132, 95, 211, 0) 100%), var(--charcoal);
}
.re-hero__inner { max-width: 1200px; margin: 0 auto; padding: 80px 24px 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.re-hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.re-hero__copy h1 {
  margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 6vw, 76px);
  line-height: 1.03; letter-spacing: -0.5px; color: #fff;
}
.re-hero__copy p { margin: 0; max-width: 500px; font-size: 19px; color: var(--gray-soft); }
.re-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.re-hero__actions .btn { min-height: 56px; padding: 0 28px; font-size: 17px; }
.re-hero__media { flex: 1 1 460px; min-width: 0; position: relative; padding: 0 0 40px 40px; }
.re-hero__photo { height: 460px; border-radius: 15px; background: var(--charcoal-line); border: 1px solid var(--lilac); color: var(--gray-soft); font-size: 13px; padding: 24px; }
.re-hero__badge {
  position: absolute; left: 0; bottom: 0; width: 280px; max-width: calc(100% - 16px); padding: 18px; border-radius: 16px;
  background: #ffffffe6; -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid #d4c9ec99; box-shadow: 0 8px 24px 0 #0000003d, inset 0 1px 0 0 #ffffffcc;
  display: flex; align-items: center; gap: 14px; color: var(--charcoal);
}
.re-hero__badge-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 100px; background: var(--charcoal); color: var(--lilac); display: flex; align-items: center; justify-content: center; }
.re-hero__badge-text { display: flex; flex-direction: column; }
.re-hero__badge-text span:first-child { font-size: 16px; font-weight: 700; }
.re-hero__badge-text span:last-child { font-size: 14px; color: var(--ink-2); }

@media (max-width: 640px) {
  .re-hero__inner { padding: 56px 24px 72px; gap: 40px; }
  .re-hero__media { padding: 0 0 40px 16px; }
  .re-hero__photo { height: 320px; }
}

.re-section-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.re-section-head .display { font-size: 46px; }
.re-help { background: #fff; }
.re-help__inner, .re-agents__inner { max-width: 1200px; margin: 0 auto; padding: 88px 24px; display: flex; flex-direction: column; gap: 40px; }
.re-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.re-card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px; text-align: left;
  border: 1px solid var(--gray-line); border-radius: 16px; background: #fff; color: var(--charcoal); cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.re-card:hover { border-color: var(--lilac); box-shadow: 0 14px 32px 0 #2828291f; }
.re-card h3 { margin: 0; font-size: 22px; font-weight: 700; }
.re-card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.re-link {
  font-size: 15px; font-weight: 700; color: var(--charcoal);
  text-decoration: underline; text-decoration-color: var(--lilac); text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.re-card .re-link { margin-top: auto; }

.re-knowhow { background: var(--charcoal); color: #fff; }
.re-knowhow__inner { max-width: 1200px; margin: 0 auto; padding: 88px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.re-knowhow__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.re-knowhow__copy .display { font-size: 46px; color: #fff; }
.re-knowhow__copy p { margin: 0; max-width: 480px; font-size: 17px; color: var(--gray-soft); }
.re-knowhow__list { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.re-knowhow__item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--charcoal-line-2); background: var(--charcoal-2); }
.re-knowhow__icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 100px; background: var(--lilac); color: var(--charcoal); display: flex; align-items: center; justify-content: center; }
.re-knowhow__text { display: flex; flex-direction: column; }
.re-knowhow__text span:first-child { font-size: 17px; font-weight: 700; }
.re-knowhow__text span:last-child { font-size: 15px; color: var(--gray-soft); }

.re-agents { background: var(--gray-50); }
.re-agents__inner { gap: 36px; }
.re-agent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.re-agent { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--gray-line); text-align: center; }
.re-agent__photo { width: 104px; height: 104px; border-radius: 100px; background: var(--gray-soft); border: 3px solid var(--lilac); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-2); }
.re-agent__name { font-size: 18px; font-weight: 700; }
.re-agent__area { font-size: 14px; color: var(--ink-2); }
.re-agent .re-link { margin-top: 4px; padding: 10px 4px; border: 0; background: none; cursor: pointer; }

.re-contact {
  color: #fff;
  background: radial-gradient(ellipse 50% 70% at 80% 100%, rgba(132, 95, 211, 0.45) 0%, rgba(132, 95, 211, 0.15) 55%, rgba(132, 95, 211, 0) 100%),
    linear-gradient(rgba(40, 40, 41, 0.78), rgba(40, 40, 41, 0.78)),
    url(../images/marble-dark.jpg) 35% 45% / max(240%, 2600px) auto no-repeat, var(--charcoal);
}
.re-contact__inner { max-width: 1200px; margin: 0 auto; padding: 96px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.re-contact__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.re-contact__copy .display { font-size: 50px; color: #fff; }
.re-contact__copy p { margin: 0; max-width: 460px; font-size: 17px; color: var(--gray-soft); }
.re-contact__actions { flex: 0 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.re-contact__actions .btn { min-height: 56px; font-size: 17px; }

@media (max-width: 640px) {
  .re-help__inner, .re-agents__inner, .re-knowhow__inner { padding: 64px 24px; }
  .re-contact__inner { padding: 72px 24px; }
  .re-section-head .display, .re-knowhow__copy .display { font-size: 36px; }
  .re-contact__copy .display { font-size: 40px; }
  .re-contact__actions { flex-basis: 100%; }
}

/* ---------- Simple pages (404) ---------- */

.simple-page { min-height: 70vh; background: #fff; display: flex; align-items: center; }
.simple-page__inner { max-width: 640px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.simple-page__inner .display { font-size: 48px; }
.simple-page__inner p { margin: 0; color: var(--ink-2); }

/* ---------- Blazor reconnect / error UI ---------- */

#blazor-error-ui {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  padding: 12px 20px; background: #fff3cd; color: #1a1033; box-shadow: 0 -1px 4px #0003;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 16px; top: 10px; }

@media (max-width: 400px) {
  .status-row { gap: 12px; }
  .status-badge { padding: 4px 10px; font-size: 13px; }
}
