/* ==================================================================
   Serenity Property Management
   Layout & type scale follow the Airbnb design system spec;
   the colour system comes from the Serenity navy + gold logo.
   ================================================================== */

:root {
  /* Brand (replaces Rausch) */
  --navy: #0B1426;
  --navy-2: #132038;
  --navy-3: #1D2C4A;
  --gold: #C9A157;
  --gold-start: #E6C77F;
  --gold-mid: #C9A157;
  --gold-end: #A47B35;
  --gold-ink: #8A6526;           /* gold text on white (AA for large text) */
  --on-gold: #0B1426;

  /* Surfaces & ink */
  --surface: #FFFFFF;
  --surface-2: #F7F7F7;
  --surface-3: #F2F2F2;
  --ink: #1B2233;
  --ink-2: #6B7080;
  --ink-disabled: #C1C1C1;
  --hairline: #DDDDDD;
  --hairline-soft: #EBEBEB;
  --error: #C13515;
  --success: #008A05;

  /* Type */
  --font: "Plus Jakarta Sans", -apple-system, system-ui, Roboto, "Helvetica Neue", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  /* Radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 150ms; --t-med: 250ms;

  --container: 1280px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 20px;
  color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }

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

/* ---------- Type scale ---------- */
.display     { font-size: 32px; line-height: 36px; font-weight: 700; }
.headline-lg { font-size: 28px; line-height: 40px; font-weight: 700; }
.headline-md { font-size: 22px; line-height: 26px; font-weight: 600; }
.body-lg     { font-size: 16px; line-height: 24px; }
.caption     { font-size: 12px; line-height: 16px; color: var(--ink-2); }
.eyebrow     { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.muted { color: var(--ink-2); }
.serif { font-family: var(--font-serif); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; line-height: 18px; font-weight: 600; text-decoration: none;
  border-radius: var(--r-sm); padding: 14px 24px; border: 0; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: var(--on-gold);
  background: linear-gradient(90deg, var(--gold-start) 0%, var(--gold-mid) 50%, var(--gold-end) 100%);
}
.btn-primary:hover { box-shadow: 0 6px 16px rgba(164,123,53,.35); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--ink); padding: 11px 16px; }
.btn-secondary:hover { background: var(--surface-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); padding: 13px 20px; }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }

.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-full); border: 0; display: inline-grid; place-items: center;
  background: var(--surface-3); color: var(--ink); cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), opacity var(--t-fast);
}
.icon-btn:hover { box-shadow: 0 2px 6px rgba(0,0,0,.12); transform: scale(1.04); }
.icon-btn[disabled] { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-24 { width: 24px; height: 24px; }
.icon-32 { width: 32px; height: 32px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--hairline-soft); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-serif); font-size: 24px; font-weight: 600; letter-spacing: .16em; color: var(--navy); }
.brand-sub { font-size: 9px; letter-spacing: .28em; color: var(--gold-ink); margin-top: 4px; font-weight: 600; }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  text-decoration: none; padding: 10px 16px; border-radius: var(--r-full); font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background var(--t-fast) var(--ease), color var(--t-fast);
}
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a.active { color: var(--ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-link { text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: var(--r-full); }
.header-link:hover { background: var(--surface-2); }
.menu-toggle { display: none; }

.mobile-menu { display: none; border-top: 1px solid var(--hairline-soft); padding: 8px var(--gutter) 16px; }
.mobile-menu a { display: block; padding: 12px 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--hairline-soft); }
.mobile-menu.open { display: block; }

/* ---------- Hero + search pill ---------- */
.hero { padding: 40px 0 24px; text-align: center; }
.hero h1 { margin: 10px auto 8px; max-width: 760px; }
.hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 600; color: var(--gold-ink); font-size: 1.18em; }
.hero p { max-width: 640px; margin: 0 auto; }

.search-pill {
  margin: 28px auto 0; max-width: 860px; display: flex; align-items: center;
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-full);
  padding: 8px 8px 8px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
}
.search-seg { flex: 1; display: flex; flex-direction: column; text-align: left; padding: 6px 16px; position: relative; border-radius: var(--r-full); }
.search-seg + .search-seg::before { content: ""; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--hairline); }
.search-seg:first-child { padding-left: 0; }
.search-seg label { font-size: 12px; font-weight: 600; line-height: 16px; }
.search-seg select {
  border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink-2); padding: 2px 0;
  appearance: none; -webkit-appearance: none; cursor: pointer; outline: none; width: 100%;
}
.search-seg:focus-within { background: var(--surface-2); }
.search-submit {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--r-full); border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end)); color: var(--navy);
  display: grid; place-items: center; transition: transform var(--t-fast) var(--ease);
}
.search-submit:hover { transform: scale(1.05); }
.search-submit .icon { width: 18px; height: 18px; stroke-width: 3; }

/* ---------- Category tabs ---------- */
.cat-bar { border-bottom: 1px solid var(--hairline-soft); margin-top: 32px; }
.cat-tabs { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0 14px;
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.cat-tab:hover { color: var(--ink); border-bottom-color: var(--hairline); }
.cat-tab.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-tight { padding: 32px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head .sub { margin-top: 6px; }
.section-alt { background: var(--surface-2); }
.rule { border: 0; border-top: 1px solid var(--hairline-soft); margin: 0; }

/* ---------- Carousels ---------- */
.carousel-nav { display: flex; gap: 8px; align-items: center; }
.carousel-nav .see-all { font-weight: 600; text-decoration: underline; margin-right: 8px; background: none; border: 0; cursor: pointer; font-size: 14px; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 24px) / 6);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }

.grid-listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 24px; }

/* ---------- Listing card ---------- */
.card { position: relative; cursor: pointer; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.card-media {
  position: relative; aspect-ratio: 20 / 19; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2);
}
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med) var(--ease); }
.card:hover .card-media img, .card:hover .card-media svg { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink);
  border-radius: var(--r-full); padding: 6px 12px; font-size: 12px; line-height: 16px; font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.heart {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.heart svg { width: 24px; height: 24px; fill: rgba(0,0,0,.5); stroke: #fff; stroke-width: 2; transition: transform var(--t-fast) var(--ease); }
.heart:hover svg { transform: scale(1.1); }
.heart.saved svg { fill: var(--gold); }
.card-body { padding-top: 12px; }
.card-title { font-weight: 600; font-size: 15px; }
.card-meta { color: var(--ink-2); }
.card-price { margin-top: 6px; }
.card-price strong { font-weight: 600; }
.sample-note { margin-top: 8px; }

/* ---------- Owner banner ---------- */
.owner-banner {
  position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--navy); color: #fff;
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 32px; padding: 48px;
}
.owner-banner h2 { color: #fff; }
.owner-banner p { color: rgba(255,255,255,.78); margin-top: 12px; max-width: 520px; }
.owner-banner .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.owner-banner .logo-wrap { display: grid; place-items: center; position: relative; z-index: 1; }
.owner-banner .logo-wrap img { max-width: 360px; width: 100%; }
.owner-banner .eyebrow { color: var(--gold-start); }

/* ---------- Services ---------- */
.services-section { background: #FAF7F1; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  position: relative; overflow: hidden; border: 1px solid #EFE7D8; border-radius: var(--r-xl); padding: 28px; background: #fff;
  transition: box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease), border-color var(--t-med);
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-start), var(--gold-end)); transition: width var(--t-med) var(--ease);
}
.service:hover { box-shadow: 0 12px 28px rgba(11,20,38,.10); transform: translateY(-4px); border-color: transparent; }
.service:hover::before { width: 100%; }
.service-num {
  position: absolute; top: 18px; right: 24px; font-family: var(--font-serif); font-size: 44px; line-height: 1;
  font-weight: 600; color: #EADFC9; transition: color var(--t-med);
}
.service:hover .service-num { color: var(--gold); }
.service .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy); color: var(--gold-start); margin-bottom: 20px;
  transition: transform var(--t-med) var(--ease);
}
.service:hover .ico { transform: rotate(-6deg) scale(1.05); }
.service h3 { font-size: 17px; line-height: 24px; font-weight: 600; margin-bottom: 12px; color: var(--navy); }
.service ul { margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.service li { padding: 4px 0 4px 24px; position: relative; }
.service li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 50%;
  background: #F4EAD5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6526' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 8px no-repeat;
}

/* featured card */
.service-featured { background: var(--navy); border-color: var(--navy); color: #fff; }
.service-featured h3 { color: #fff; }
.service-featured ul { color: rgba(255,255,255,.75); }
.service-featured li::before { background-color: rgba(201,161,87,.38); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E6C77F' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.service-featured .ico { background: linear-gradient(135deg, var(--gold-start), var(--gold-end)); color: var(--navy); }
.service-featured .service-num { color: rgba(201,161,87,.35); }
.service-featured::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; opacity: .08;
  background: url("/assets/img/emblem-gold.png") center / contain no-repeat;
}

/* ---------- Remote owners split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 22px; }
.checklist .tick { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--gold-start); display: grid; place-items: center; }
.checklist-grid { grid-template-columns: repeat(3, 1fr); gap: 16px 32px; margin-top: 28px; }
@media (max-width: 860px) { .checklist-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .checklist-grid { grid-template-columns: 1fr; } }
.checklist .tick .icon { width: 13px; height: 13px; stroke-width: 3; }


/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--hairline-soft); }
.step .num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: var(--navy); color: var(--gold-start); margin-bottom: 14px; font-family: var(--font-serif); font-size: 20px;
}
.step h3 { font-size: 15px; line-height: 20px; font-weight: 600; margin-bottom: 6px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--hairline); border-radius: var(--r-full); padding: 10px 18px; font-weight: 500; background: #fff; }

/* ---------- Tenant portal band ---------- */
.portal-band { background: var(--navy); color: #fff; }
.portal-band .eyebrow { color: var(--gold-start); }
.portal-band h2 { color: #fff; }
.portal-band p.lead { color: rgba(255,255,255,.75); }
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.portal-card {
  display: block; text-decoration: none; background: var(--navy-2); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-xl); padding: 24px; color: #fff; transition: transform var(--t-med) var(--ease), border-color var(--t-med);
}
.portal-card:hover { transform: translateY(-3px); border-color: rgba(201,161,87,.6); }
.portal-card .ico { width: 48px; height: 48px; border-radius: 50%; background: rgba(201,161,87,.14); color: var(--gold-start); display: grid; place-items: center; margin-bottom: 16px; }
.portal-card h3 { font-size: 17px; line-height: 22px; font-weight: 600; margin-bottom: 6px; }
.portal-card p { color: rgba(255,255,255,.7); }
.portal-card .go { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--gold-start); font-weight: 600; }
.powered { margin-top: 20px; color: rgba(255,255,255,.6); font-size: 12px; }
.powered a { color: rgba(255,255,255,.85); }

/* ---------- Why / commitment ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-item .ico { flex-shrink: 0; color: var(--ink); }
.why-item h3 { font-size: 15px; line-height: 20px; font-weight: 600; }
.commitment { text-align: center; max-width: 820px; margin: 0 auto; }
.commitment h2 { color: var(--navy); }
.commitment .sig { margin-top: 16px; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 14px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: #fff; color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form-note { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; font-weight: 500; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--error); }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.contact-list .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { max-width: 240px; }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity var(--t-med) var(--ease);
}
.modal-backdrop.open { display: flex; }
.modal-backdrop.visible { opacity: 1; }
.modal {
  background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 760px; max-height: 90vh; overflow: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,.25); transform: translateY(24px) scale(.98);
  transition: transform 420ms cubic-bezier(.34,1.36,.64,1);   /* spring-like */
}
.modal-backdrop.visible .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--hairline-soft); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-media { aspect-ratio: 16 / 8; overflow: hidden; }
.modal-media svg, .modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 24px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.fact { background: var(--surface-2); border-radius: var(--r-full); padding: 6px 12px; font-weight: 500; }
.features { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.features li { display: flex; gap: 8px; align-items: center; }
.apply-box { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 20px; box-shadow: 0 6px 16px rgba(0,0,0,.08); align-self: start; }
.apply-box .price { font-size: 22px; line-height: 26px; font-weight: 600; }
.apply-box .btn { margin-top: 12px; }
.apply-box .code { margin-top: 12px; background: var(--surface-2); padding: 10px 12px; border-radius: var(--r-sm); }

/* ---------- Tenant page ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 56px 0; }
.page-hero .eyebrow { color: var(--gold-start); }
.page-hero h1 { color: #fff; margin: 10px 0 12px; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 620px; }
.page-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.page-hero-grid img { max-width: 320px; margin-left: auto; }
.how-list { counter-reset: how; list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.how-list li { counter-increment: how; position: relative; padding: 3px 0 0 42px; min-height: 28px; font-size: 15px; line-height: 22px; }
.how-list li::before {
  content: counter(how); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.panel { border: 1px solid var(--hairline-soft); border-radius: var(--r-xl); padding: 28px; background: #fff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.faq details { border-bottom: 1px solid var(--hairline-soft); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) { .carousel { grid-auto-columns: calc((100% - 4 * 24px) / 5); } .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) {
  .carousel { grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 860px) {
  .carousel { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
  .services-grid, .portal-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-wrap, .page-hero-grid, .owner-banner, .modal-body, .two-col { grid-template-columns: 1fr; }
  .owner-banner { padding: 32px; }
  .owner-banner .logo-wrap img { max-width: 260px; }
  .page-hero-grid img { margin: 0; max-width: 220px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .header-link.hide-sm { display: none; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .display { font-size: 26px; line-height: 32px; }
  .headline-lg { font-size: 24px; line-height: 32px; }
  .carousel { grid-auto-columns: calc((100% - 16px) / 2); }
  .search-pill { flex-direction: column; align-items: stretch; border-radius: var(--r-xl); padding: 12px; }
  .search-seg { padding: 8px 12px; }
  .search-seg:first-child { padding-left: 12px; }
  .search-seg + .search-seg::before { left: 12px; right: 12px; top: 0; width: auto; height: 1px; }
  .search-submit { width: 100%; border-radius: var(--r-sm); margin-top: 8px; }
  .cat-tabs { justify-content: flex-start; gap: 24px; }
  .services-grid, .portal-grid, .steps, .why-grid, .footer-grid, .form, .features, .uc-stats { grid-template-columns: 1fr; }
  .brand img { height: 38px; }
  .brand-name { font-size: 20px; }
  .header-actions .btn-secondary { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
