/* ============================================================
   Homefully by SDA Data — design system
   Navy + orange, Oswald / Open Sans, dark feature bands,
   dotted textures, scroll-reveal motion. No build step.
   ============================================================ */

:root {
  /* Pastel SaaS palette — mirrors sdadata.com.au / FracHaus
     (navy text, sky-blue + coral accents, soft blue tints) */
  --navy:        #0C2742;   /* headings, dark feature bands */
  --navy-2:      #16365C;
  --navy-deep:   #0A2038;
  --ink:         #243341;   /* crisp slate body text */
  --ink-soft:    #5C6B7A;
  /* coral — warm accent (maps onto the old --orange vars) */
  --orange:      #F58A3C;   /* bright, decorative */
  --orange-2:    #B8470C;   /* CTA buttons + warm accent text — AA (~5.3:1 on white) */
  --orange-hover:#9A3C0A;
  --orange-soft: #FDEAD9;   /* pale orange */
  /* sky blue — primary brand accent */
  --blue:        #2D9CDB;   /* bright sky, decorative */
  --blue-ink:    #0E6FB0;   /* links / blue text + buttons */
  --blue-soft:   #EAF3FB;   /* faint light blue */
  /* secondary pastels */
  --teal:        #1AB6A0;   --teal-soft: #DAF2EE;
  --lilac:       #8C63C9;   --lilac-soft: #ECE4F8;
  --cream:       #FFFFFF;   /* page canvas: white */
  --paper:       #FFFFFF;
  --tint:        #F1F7FC;   /* faint light-blue section/panel */
  --tint-2:      #E3EFF9;
  --line:        #E6ECF2;
  --good:        #157A52;
  --good-soft:   #dff3ea;
  --warn:        #8A6200;
  --warn-soft:   #fdf0d6;
  --bad:         #d24b4b;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow:    0 1px 2px rgba(12,39,66,.06), 0 6px 18px rgba(12,39,66,.05);
  --shadow-lg: 0 12px 40px rgba(12,39,66,.10);
  --shadow-premium: 0 4px 22px rgba(12,39,66,.07);
  --ring:      0 0 0 4px rgba(45,156,219,.25);

  --maxw: 1180px;
  --font-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(135deg, #eaf3fb 0%, #f6f9fc 42%, #fdf1e9 100%);
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, .head {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 .4em;
}
h1 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.018em; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
strong { font-weight: 700; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--orange-2);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .8rem;
}
.eyebrow::before { content: "✦"; color: var(--orange); }

.lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 64ch; line-height: 1.65; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
section { padding: clamp(52px, 7vw, 104px) 0; position: relative; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.grid { display: grid; gap: 26px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ---------- backgrounds ---------- */
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-tint  { background: var(--tint); }
.band {
  background: var(--tint);   /* faint light blue (was navy) */
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.band h1, .band h2, .band h3 { color: var(--navy); }
.band .lead, .band .muted { color: var(--ink-soft); }
.band .eyebrow { color: var(--orange-2); }
.band .dots { background-image: radial-gradient(rgba(12,39,66,.045) 1.4px, transparent 1.5px); }

.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1.4px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.dots-ink {
  background-image: radial-gradient(rgba(10,35,66,.07) 1.4px, transparent 1.5px);
  background-size: 22px 22px;
}

/* slanted / feathered dividers */
.slant-top, .slant-bottom { position: relative; }
.slant-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: inherit; clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* floating glyphs */
.glyphs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.glyph { position: absolute; opacity: .14; color: var(--orange); font-size: 3rem; will-change: transform; }
.band .glyph { color: #2a4a76; opacity: .5; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--orange-2);
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; letter-spacing: 0;
  text-transform: none; font-size: .94rem;
  padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent;
  background: var(--bg); color: #fff; cursor: pointer;
  text-decoration: none; transition: transform .18s, box-shadow .25s, background .2s;
  position: relative; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(224,103,28,.26); background: var(--orange-hover); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; box-shadow: none; }
.band .btn-ghost { color: var(--navy); border-color: rgba(12,39,66,.3); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #fff; color: var(--orange-2); }
.btn-sm { padding: 9px 16px; font-size: .82rem; }
.btn-block { width: 100%; justify-content: center; }

/* pulsing attention ring on the hero CTA */
.btn-pulse::after {
  content: ""; position: absolute; inset: -2px; border-radius: 999px;
  border: 2px solid var(--orange); opacity: .6;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .6; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-pulse::after { animation: none; display: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; transition: padding .25s, background .25s, box-shadow .25s;
}
.nav.scrolled { padding: 10px 24px; background: rgba(251,248,243,.92); backdrop-filter: blur(10px); box-shadow: 0 6px 22px rgba(10,35,66,.07); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--navy); letter-spacing: .3px; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 1.1rem; position: relative;
}
.brand .mark::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 5px; height: 3px; background: var(--orange); border-radius: 2px; }
.brand .sub { font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--orange-2); display: block; line-height: 1; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-family: var(--font-head); font-weight: 500; text-transform: none; font-size: .94rem; letter-spacing: 0; color: var(--navy); }
.nav-links a:hover { color: var(--orange-2); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 0 0 0 30%; flex-direction: column; justify-content: center; gap: 22px; background: var(--navy); transform: translateX(100%); transition: transform .3s; padding: 30px; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: #fff; font-size: 1.2rem; }
  .nav-toggle { display: block; z-index: 101; }
  .nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }
}

/* scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--orange), #ffb182); z-index: 200; }

/* ---------- hero ---------- */
.hero { padding: 190px 0 96px; position: relative; }
.hero h1 span.hl { color: var(--orange-2); position: relative; white-space: nowrap; }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border-radius: var(--r-lg); padding: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow-premium);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange-2); font-size: 1.5rem; margin-bottom: 16px;
}
.card.navy-ic .ic { background: var(--tint); color: var(--navy); }

/* persona card */
.persona { border-top: 4px solid var(--orange); }
.persona h3 { margin-bottom: 6px; }
.persona .role { font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--orange-2); font-weight: 700; }
.persona ul { margin: 14px 0 0; padding-left: 1.1em; }
.persona li { margin-bottom: 6px; }

/* tilt cards */
.tilt { transform-style: preserve-3d; transition: transform .12s ease-out; will-change: transform; }

/* stat */
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--blue-ink); line-height: 1.05; letter-spacing: -0.02em; }
.band .stat .num { color: var(--blue-ink); }
.stat .lab { font-size: .98rem; color: var(--ink-soft); margin-top: 8px; }
.band .stat .lab { color: var(--ink-soft); }

/* badges / pills */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .3px; }
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-tint { background: var(--tint); color: var(--navy); }
.badge-orange { background: var(--orange-soft); color: var(--orange-2); }
.badge-cat { background: var(--navy); color: #fff; }
.verified { color: var(--good); font-weight: 700; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- listing card ---------- */
.listing-card { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.listing-photo { aspect-ratio: 16/10; position: relative; display: grid; place-items: center; color: rgba(255,255,255,.9); }
.listing-photo .house-ic { font-size: 3.2rem; opacity: .35; }
.listing-photo .cat-tag { position: absolute; top: 12px; left: 12px; }
.listing-photo .fav { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.92); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: grid; place-items: center; }
.listing-photo .days { position: absolute; bottom: 12px; left: 12px; background: rgba(6,26,51,.78); color: #fff; font-size: .74rem; padding: 5px 10px; border-radius: 999px; font-weight: 600; }
.listing-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.listing-body .price { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); font-weight: 600; }
.listing-body .addr { color: var(--ink-soft); font-size: .94rem; }
.listing-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .86rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; }
.listing-meta b { color: var(--navy); }
.metric-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.metric-chip { background: var(--tint); border-radius: var(--r-sm); padding: 6px 10px; font-size: .76rem; color: var(--navy); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.metric-chip .v { color: var(--orange-2); }

/* ---------- filters ---------- */
.filterbar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px; align-items: end; }
@media (max-width: 980px) { .filterbar { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--ink-soft); }
.field select, .field input, .input {
  font-family: var(--font-body); font-size: .95rem; padding: 11px 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--cream); color: var(--ink); width: 100%;
}
.field select:focus, .field input:focus, .input:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: var(--ring); background: #fff; }
textarea.input { resize: vertical; min-height: 110px; }

.result-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }

/* ---------- forms ---------- */
.form-card { background: var(--paper); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px){ .form-grid { grid-template-columns: 1fr; } }
.form-full { grid-column: 1 / -1; }
.check-row { display: flex; gap: 12px; flex-wrap: wrap; }
.chk { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .9rem; background: var(--cream); transition: .15s; user-select: none; }
.chk input { accent-color: var(--orange); }
.chk:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-2); font-weight: 600; }

/* steps */
.steps { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.step { flex: 1; min-width: 120px; padding: 12px 14px; border-radius: var(--r); background: var(--tint); color: var(--navy); font-weight: 600; font-size: .9rem; position: relative; opacity: .55; transition: .2s; }
.step.active { background: var(--navy); color: #fff; opacity: 1; }
.step.done { background: var(--good-soft); color: var(--good); opacity: 1; }
.step .n { font-family: var(--font-head); font-size: 1.1rem; margin-right: 6px; }

/* timeline / how it works */
.timeline { display: grid; gap: 0; }
.tl-step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding-bottom: 36px; position: relative; }
.tl-step::before { content: ""; position: absolute; left: 31px; top: 56px; bottom: -4px; width: 2px; background: var(--line); }
.tl-step:last-child::before { display: none; }
.tl-num { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; z-index: 1; }
.tl-step.alt .tl-num { background: var(--orange); }

/* marquee */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding: 16px 0; }
.marquee-track { display: inline-flex; gap: 48px; animation: scrollx 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); font-size: 1rem; display: inline-flex; gap: 48px; }
.marquee span::after { content: "✦"; color: var(--orange); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* quote / testimonial */
.quote { background: var(--paper); border-left: 5px solid var(--orange); border-radius: var(--r); padding: 26px 28px; box-shadow: var(--shadow); }
.quote p { font-size: 1.12rem; color: var(--ink); font-style: italic; }
.quote .who { font-weight: 700; color: var(--navy); font-style: normal; font-size: .95rem; }

/* ---------- tables & dashboard ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; }
.panel h3 { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: baseline; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; position: relative; overflow: hidden; }
.kpi .label { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); font-weight: 700; }
.kpi .value { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--navy); line-height: 1.1; margin-top: 6px; }
.kpi .delta { font-size: .85rem; font-weight: 700; margin-top: 4px; }
.kpi .delta.up { color: var(--good); }
.kpi .delta.down { color: var(--bad); }
.kpi .spark { position: absolute; right: 14px; bottom: 12px; opacity: .8; }
.kpi .corner { position: absolute; top: 0; right: 0; width: 60px; height: 60px; background: radial-gradient(circle at top right, var(--orange-soft), transparent 70%); }

table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th { text-align: left; font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; font-size: .8rem; color: var(--ink-soft); padding: 10px 12px; border-bottom: 2px solid var(--line); }
table.data td { padding: 12px; border-bottom: 1px solid var(--line); }
table.data tr:hover td { background: var(--cream); }

/* heatmap */
.heat { display: grid; grid-template-columns: 140px repeat(4, 1fr); gap: 6px; font-size: .82rem; }
.heat .cell { padding: 12px 8px; border-radius: 8px; text-align: center; font-weight: 700; color: #fff; }
.heat .rowlab, .heat .collab { background: transparent; color: var(--ink-soft); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.heat .rowlab { justify-content: flex-start; color: var(--navy); }

/* funnel */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 160px 1fr 60px; align-items: center; gap: 12px; font-size: .9rem; }
.funnel-bar { height: 34px; border-radius: 8px; background: linear-gradient(90deg, var(--navy), #2a5a96); display: flex; align-items: center; padding-left: 12px; color: #fff; font-weight: 700; font-size: .85rem; transition: width 1s cubic-bezier(.2,.7,.2,1); }

/* mini bar chart */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; }
.bars .bar { flex: 1; background: linear-gradient(180deg, var(--orange), #ffb182); border-radius: 8px 8px 0 0; position: relative; transition: height 1s cubic-bezier(.2,.7,.2,1); min-height: 4px; }
.bars .bar .cap { position: absolute; top: -22px; left: 0; right: 0; text-align: center; font-weight: 700; font-size: .8rem; color: var(--navy); }
.bars .bar .xl { position: absolute; bottom: -26px; left: 0; right: 0; text-align: center; font-size: .76rem; color: var(--ink-soft); }

/* ---------- reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: transform, opacity; }
.js [data-reveal="left"]  { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="scale"] { transform: scale(.92); }
[data-reveal].in { opacity: 1 !important; transform: none !important; }
[data-delay="1"]{ transition-delay: .08s; }
[data-delay="2"]{ transition-delay: .16s; }
[data-delay="3"]{ transition-delay: .24s; }
[data-delay="4"]{ transition-delay: .32s; }
[data-delay="5"]{ transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .mask-line > span { transform: none !important; }
  html { scroll-behavior: auto !important; }
  .marquee-track, .glyph { animation: none !important; transform: none !important; }
  /* nuclear reset: no CSS animation/transition motion for reduced-motion users */
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* draw-on-scroll svg line */
.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); color: #9fb2cd; padding: 64px 0 30px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer a { color: #9fb2cd; display: block; margin-bottom: 8px; font-size: .94rem; }
.footer a:hover { color: var(--orange); text-decoration: none; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px){ .footer .cols { grid-template-columns: 1fr 1fr; } }
.footer .fine { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .82rem; color: #6f86a6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* utility */
.mt-0{margin-top:0}.mt-1{margin-top:12px}.mt-2{margin-top:24px}.mt-3{margin-top:40px}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:24px}
.hide-mobile{}
@media(max-width:640px){.hide-mobile{display:none}}
.tag-note{font-size:.85rem;color:var(--ink-soft)}
.flex{display:flex}.between{justify-content:space-between}.aic{align-items:center}.gap{gap:14px}.wrapf{flex-wrap:wrap}
.divider{height:1px;background:var(--line);margin:18px 0}

/* ============================================================
   Accessibility
   ============================================================ */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 8px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .5px;
  transform: translateY(-150%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); text-decoration: none; outline: 3px solid var(--orange); }

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

/* visible focus for keyboard users on every interactive element */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, .listing-card:focus-visible, .chk:focus-within {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}
.band a:focus-visible, .band button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
main:focus { outline: none; }

/* ============================================================
   Reviews / ratings
   ============================================================ */
.stars { color: #E8A317; letter-spacing: 1px; font-size: .95rem; display: inline-flex; }
.stars .empty { color: #d8d2c8; }
.rating-inline { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--ink-soft); }
.rating-inline b { color: var(--navy); }
.review { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.review:last-child { border-bottom: 0; }
.review .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.review .who { font-weight: 700; color: var(--navy); }
.review .role { font-size: .78rem; color: var(--ink-soft); }
.review p { margin: 8px 0 0; }

/* SLA panel */
.sla { background: var(--cream); border-radius: var(--r); padding: 16px; }
.sla-bar { height: 10px; background: var(--tint-2); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; position: relative; }
.sla-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--good), #46c08a); border-radius: 999px; width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.sla-bar .pledge { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--navy); }

/* ============================================================
   Coordinator caseload dashboard
   ============================================================ */
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1024px) { .board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .board { grid-template-columns: 1fr; } }
.col { background: var(--tint); border-radius: var(--r); padding: 12px; min-height: 120px; }
.col h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .8px; color: var(--navy); display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; line-height: 1.2; }
.col h3 .n { background: var(--navy); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: .74rem; }
.client-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; box-shadow: 0 4px 12px rgba(10,35,66,.06); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.client-card:hover, .client-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.client-card .ava { display: flex; align-items: center; gap: 9px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .9rem; flex: none; }
.client-card .name { font-weight: 700; color: var(--navy); font-size: .92rem; line-height: 1.1; }
.client-card .pref { font-size: .76rem; color: var(--ink-soft); margin-top: 8px; }
.client-card .chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.mini-chip { font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--tint-2); color: var(--navy); }
.mini-chip.urgent { background: #fde2e2; color: var(--bad); }
.mini-chip.alert { background: var(--good-soft); color: var(--good); }
.compare-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
table.compare th, table.compare td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { font-family: var(--font-head); text-transform: uppercase; font-size: .76rem; letter-spacing: .5px; color: var(--ink-soft); }
table.compare tbody th { font-weight: 700; color: var(--navy); background: var(--cream); position: sticky; left: 0; }
table.compare .best { color: var(--good); font-weight: 700; }

/* ============================================================
   Photos, gallery, lightbox, floor plan, uploads
   ============================================================ */
.listing-photo .card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.listing-photo .cat-tag, .listing-photo .fav, .listing-photo .days { z-index: 2; }

/* listing-detail gallery */
.gallery2 { display: grid; grid-template-columns: 1fr; gap: 10px; }
.g-main { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9; border: 0; padding: 0; cursor: zoom-in; background: var(--tint); width: 100%; }
.g-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 700px) { .g-thumbs { grid-template-columns: repeat(3, 1fr); } }
.g-thumb { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); cursor: zoom-in; padding: 0; background: var(--tint); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-thumb .cap, .g-main .cap { position: absolute; left: 8px; bottom: 8px; background: rgba(6,26,51,.78); color: #fff; font-size: .72rem; padding: 4px 9px; border-radius: 999px; }
.g-thumb.plan { background: #fff; }
.g-thumb.plan svg { width: 100%; height: 100%; object-fit: contain; }
.g-thumb .g-more { position: absolute; inset: 0; background: rgba(10,35,66,.6); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.05rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(6,16,33,.93); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox .lb-stage { max-width: 94vw; max-height: 78vh; border-radius: var(--r); overflow: hidden; background: #fff; display: grid; place-items: center; }
.lightbox .lb-stage img { max-width: 94vw; max-height: 78vh; object-fit: contain; display: block; }
.lightbox .lb-stage svg { width: min(820px, 92vw); height: auto; display: block; }
.lightbox .lb-cap { color: #dce6f2; margin-top: 14px; font-family: var(--font-head); letter-spacing: .5px; }
.lightbox button { position: absolute; background: rgba(18,28,46,.62); color: #fff; border: 1px solid rgba(255,255,255,.25); width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox button:hover { background: rgba(18,28,46,.82); }
.lightbox .lb-close { top: 22px; right: 22px; }
.lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* floor plan */
.plan-frame { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; padding: 8px; }
.plan-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-soft); margin-top: 12px; }
.plan-legend span { display: inline-flex; align-items: center; gap: 6px; }
.plan-legend i.dash { width: 18px; border-top: 3px dashed var(--orange-2); }
.plan-legend i.solid { width: 14px; height: 14px; border-radius: 3px; background: var(--good); }

/* upload dropzone + thumbnails (provider) */
.dropzone { border: 2px dashed var(--tint-2); border-radius: var(--r-lg); background: var(--cream); padding: 28px; text-align: center; cursor: pointer; transition: .18s; }
.dropzone:hover, .dropzone.drag { border-color: var(--orange-2); background: var(--orange-soft); }
.dropzone:focus-within { border-color: var(--navy); }
.dropzone .big { font-size: 2.2rem; }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.thumb { position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--tint); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .rm { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(6,26,51,.82); color: #fff; cursor: pointer; font-size: .85rem; line-height: 1; display: grid; place-items: center; }
.thumb .cover-tag { position: absolute; bottom: 5px; left: 5px; font-size: .6rem; padding: 3px 7px; }
.plan-preview { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; max-width: 360px; }
.plan-preview img { width: 100%; display: block; }

/* ============================================================
   Refokus-style motion layer (GSAP, additive, optional)
   These only take effect when motion.js + GSAP load AND the
   user has not requested reduced motion. Everything below is
   inert otherwise — headings stay fully visible.
   ============================================================ */
.mask-line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.12em; }
.mask-line > span { display: block; will-change: transform; }
/* media that scales on scroll lives inside already-clipped wrappers
   (.listing-card, .g-main) so there is no layout shift */
.scalewrap { overflow: hidden; }

/* ============================================================
   Cula-style 3D "Data Engine" globe hero
   ============================================================ */
.hero-globe { position: relative; overflow: hidden; min-height: clamp(620px, 88vh, 900px); display: flex; align-items: center; }
.globe-stage {
  position: absolute; top: 0; right: 0; width: 60%; height: 100%; z-index: 0;
  background: radial-gradient(circle at 62% 44%, #CFE6F7 0%, #E4EFFA 30%, rgba(243,248,253,0) 68%);
  pointer-events: none;
}
.globe-stage #globe { width: 100%; height: 100%; display: block; }
.globe-stage.globe-fallback::after {
  content: ""; position: absolute; top: 50%; left: 55%; transform: translate(-50%,-50%);
  width: 58%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #7FC4F0, #16365C 72%);
  box-shadow: 0 0 90px rgba(46,166,230,.45);
}
.hero-globe .wrap { position: relative; z-index: 2; width: 100%; }
.hero-globe .hero-copy { max-width: 600px; }

.data-engine {
  position: absolute; right: 5%; bottom: 11%; width: min(330px, 42%); z-index: 3;
  background: rgba(255,255,255,.93); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 18px; box-shadow: 0 26px 64px rgba(10,35,66,.26); border: 1px solid rgba(255,255,255,.65);
  padding: 14px; pointer-events: auto;
  animation: deIn .9s .7s both cubic-bezier(.2,.7,.2,1);
}
@keyframes deIn { from { opacity: 0; transform: translateY(26px) scale(.95); } to { opacity: 1; transform: none; } }
.data-engine h4 { font-family: var(--font-head); font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); margin: 4px 6px 12px; display: flex; align-items: center; gap: 7px; }
.data-engine h4 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(31,157,107,.5); animation: dePulse 2s infinite; }
@keyframes dePulse { 0%{box-shadow:0 0 0 0 rgba(31,157,107,.5);} 70%{box-shadow:0 0 0 7px rgba(31,157,107,0);} 100%{box-shadow:0 0 0 0 rgba(31,157,107,0);} }
.de-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(10,35,66,.06); margin-bottom: 8px; }
.de-row:last-child { margin-bottom: 0; }
.de-row .lab { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--ink); font-weight: 600; }
.de-row .lab .ic { width: 26px; height: 26px; border-radius: 7px; background: var(--tint); display: grid; place-items: center; font-size: .85rem; flex: none; }
.de-row .val { font-size: .8rem; font-weight: 700; color: var(--ink-soft); background: #eef1f5; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.de-row.good .val { background: var(--good-soft); color: var(--good); }

@media (max-width: 920px) {
  .hero-globe { min-height: auto; }
  .globe-stage { width: 100%; opacity: .4; }
  .data-engine { display: none; }
  .hero-globe .hero-copy { max-width: 100%; }
}

/* ============================================================
   Clean blue + orange accent system (Apple-style)
   ============================================================ */
.card .ic { background: var(--blue-soft); color: var(--blue-ink); }
.grid > .card:nth-child(2n) .ic { background: var(--orange-soft); color: var(--orange-2); }
.persona { border-top-color: var(--blue); }
.persona:nth-child(2n) { border-top-color: var(--orange); }
.bg-tint { background: var(--tint); }
.band .stat .num { color: var(--blue-ink); }
/* clean + restrained: no floating glyphs, no pulsing CTA ring */
.glyphs, .glyph { display: none !important; }
.btn-pulse::after { display: none !important; }

/* ============================================================
   Clean hero (Apple-style: copy + product preview, no globe)
   ============================================================ */
.hero-clean { padding: 116px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-copy .lead { margin-top: 6px; }
.hero-visual { position: relative; }
.hero-window { background: var(--blue-soft); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-lg); }
.hero-window-bar { display: flex; gap: 6px; padding: 2px 4px 12px; }
.hero-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cdd9e6; }
.hero-window .listing-card { box-shadow: var(--shadow); }
@media (max-width: 900px) { .hero-window { max-width: 460px; margin: 8px auto 0; } }

/* ============================================================
   "Data Engine" skin — frosted glass + airy gradient, site-wide
   (mirrors the dashboard reference: soft blue->peach gradient,
   drifting blobs, frosted cards, motion)
   ============================================================ */
.bg-blobs { display: none; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* only show the animated blobs on larger screens with motion allowed (perf + a11y) */
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) { .bg-blobs { display: block; } }
.bg-blobs .blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .5; will-change: transform; }
.bg-blobs .b1 { width: 520px; height: 520px; background: radial-gradient(circle, #b9def6, transparent 70%); top: -150px; right: -70px; animation: hf-float1 22s ease-in-out infinite; }
.bg-blobs .b2 { width: 460px; height: 460px; background: radial-gradient(circle, #fcd5bb, transparent 70%); bottom: -150px; left: 8%; animation: hf-float2 26s ease-in-out infinite; }
.bg-blobs .b3 { width: 400px; height: 400px; background: radial-gradient(circle, #d6e8fb, transparent 70%); top: 40%; left: -130px; animation: hf-float1 30s ease-in-out infinite; }
@keyframes hf-float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-26px,40px) scale(1.07); } }
@keyframes hf-float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(38px,-26px) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .bg-blobs .blob { animation: none !important; } }

/* airy sections: let the gradient + blobs show through; frost the panels */
.bg-cream, .bg-paper { background: transparent; }
.bg-tint { background: rgba(255,255,255,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.band { background: rgba(233,243,251,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* cards: near-opaque (better text contrast over the gradient) + no per-card
   backdrop blur (perf: avoids ~20 live blur surfaces over the animated bg) */
.card, .listing-card, .panel, .kpi, .form-card, .quote, .filterbar, .plan, .hero-window {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 24px;
}
.hero-window { background: rgba(233,243,251,.85); }
.card-hover:hover, .listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* frosted nav for the app-like feel */
.nav { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav.scrolled { background: rgba(255,255,255,.82); }

/* inputs read better on frosted cards */
.field select, .field input, .input, textarea.input { background: rgba(255,255,255,.7); }

/* FAQ accordion (SEO/AEO/GEO) */
.faq-item { background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.9); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 12px; padding: 2px 22px; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--blue-ink); font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px; color: var(--ink-soft); }

/* Google sign-in chip / button + toast */
.auth-slot { display: inline-flex; align-items: center; }
.btn-google { background: #fff; color: var(--ink); border: 1.5px solid var(--line); display: inline-flex; align-items: center; gap: 8px; }
.btn-google:hover { background: #fff; color: var(--blue-ink); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-google .g-ic { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(#EA4335, #FBBC05, #34A853, #4285F4, #EA4335); color: #fff; font-weight: 800; font-size: .66rem; display: grid; place-items: center; }
.auth-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 4px; }
.auth-chip img, .auth-ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.auth-ava { background: var(--blue-ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .78rem; }
.auth-chip .auth-name { font-weight: 600; color: var(--navy); font-size: .9rem; }
.auth-out { border: 0; background: transparent; color: var(--ink-soft); font-size: .8rem; cursor: pointer; padding: 3px 9px; border-radius: 8px; }
.auth-out:hover { background: var(--orange-soft); color: var(--orange-2); }
.hf-toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 600; opacity: 0; transition: opacity .3s, transform .3s; max-width: 90vw; font-size: .9rem; }
.hf-toast.in { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 860px) { .auth-slot { margin-top: 8px; } }
