/* MatchMyAgent — concept A navy/coral/cream tokens */

:root {
  --navy: #182868;
  --navy-mid: #2a3f88;
  --navy-alt: #101860;
  --gold: #f85850;
  --gold-light: #ff8a7a;
  --teal-pale: #ffe8e4;
  --cream: #f4f2eb;
  --cream-alt: #f7f5ee;
  --coral: #f85850;
  --accent: #f85850;
  --white: #ffffff;
  --ink: #1a1a19;
  --muted: #5a6570;
  --border: #e2ddd4;
  --success: #1f6b4a;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(24, 40, 104, 0.12);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo, .eyebrow {
  font-family: var(--font-display);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-mid); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--gold); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }


/* Sticky call bar — always above header */
.call-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  color: #fff;
  padding: .55rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  justify-content: center;
  align-items: center;
  font-size: .95rem;
  border-bottom: 1px solid rgba(248,88,80,.35);
}
.call-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
}
.call-bar a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.call-bar .label { color: var(--gold-light); font-weight: 600; border: none; padding: 0; }

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky; top: 2.75rem; z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
@supports (height: 100dvh) {
  .site-header { top: 2.75rem; }
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0; flex-wrap: wrap;
}
.logo {
  color: var(--white); text-decoration: none; font-weight: 700; letter-spacing: .02em;
  display: flex; flex-direction: column; line-height: 1.2;
}
.logo span { color: var(--gold-light); font-size: .75rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

.logo-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
}
.logo-lockup > span {
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: .15rem;
}

.nav { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; }
.nav a { color: #dce6f0; text-decoration: none; font-size: .92rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-light); }
.nav .btn-nav {
  background: var(--gold); color: var(--navy); padding: .45rem .9rem; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.nav .btn-nav:hover { background: var(--gold-light); color: var(--navy); }
.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--gold); color: var(--gold-light);
  padding: .4rem .7rem; border-radius: 8px; cursor: pointer;
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: .75rem; }
  .nav.open { display: flex; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #243a7a 100%);
  color: var(--white);
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -20% -40% 40%; height: 80%;
  background: radial-gradient(circle, rgba(248,88,80,.28), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; gap: 2rem;
  position: relative; z-index: 1;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
}
.eyebrow {
  display: inline-block; color: var(--gold-light); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: .75rem;
}
.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem); line-height: 1.15; margin: 0 0 1rem; font-weight: 700;
}
.hero .lead { font-size: 1.1rem; color: #d7e2ee; max-width: 36rem; margin: 0 0 1.5rem; }
.hero-points { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.hero-points li {
  padding: .35rem 0 .35rem 1.5rem; position: relative; color: #e8eef5;
}
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}
.trust-row { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; font-size: .85rem; color: #b8c9da; margin-top: 1rem; }

/* Cards / sections */
.section { padding: 3.25rem 0; }
.section.alt { background: var(--white); }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); margin: 0 0 .75rem; line-height: 1.2;
}
.section .section-lead { color: var(--muted); max-width: 40rem; margin: 0 0 2rem; }
.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem 1.4rem; box-shadow: var(--shadow);
}
.card.dark { background: var(--navy); color: var(--white); border-color: transparent; }
.card h3 { margin: 0 0 .5rem; color: var(--navy); font-size: 1.15rem; }
.card.dark h3 { color: var(--gold-light); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card.dark p { color: #c5d3e0; }
.step-num {
  display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center;
  background: var(--gold); color: var(--navy); border-radius: 50%; font-weight: 700; font-size: .9rem;
  margin-bottom: .75rem;
}

/* Agent profiles */
.agent {
  display: grid; gap: 1rem;
}
@media (min-width: 640px) { .agent { grid-template-columns: 120px 1fr; } }
.agent-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-mid), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1.6rem; letter-spacing: .02em;
}
.agent .meta { font-size: .9rem; color: var(--muted); }
.agent .meta a { color: var(--navy-mid); }

/* Form */
.form-card {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.15);
}
.form-card h2 { color: var(--navy); font-size: 1.35rem; margin: 0 0 .35rem; }
.form-card .form-note { color: var(--muted); font-size: .88rem; margin: 0 0 1.1rem; }
.form-row { margin-bottom: .9rem; }
.form-row label {
  display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: .3rem;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.form-row.two { display: grid; gap: .9rem; }
@media (min-width: 520px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--gold); color: var(--navy); border: none; border-radius: 999px;
  padding: .85rem 1.4rem; font: inherit; font-weight: 700; cursor: pointer;
  text-decoration: none; width: 100%;
}
.btn:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent; border: 2px solid var(--gold); color: var(--gold-light);
  width: auto; padding: .65rem 1.2rem;
}
.btn-outline:hover { background: rgba(248,88,80,.15); color: var(--white); }
.form-fine { font-size: .78rem; color: var(--muted); margin: .75rem 0 0; }

/* Suburb chips */
.suburb-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.suburb-chip {
  display: block; text-align: center; padding: .9rem .75rem; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none;
  color: var(--navy); font-weight: 600; transition: border-color .15s, box-shadow .15s;
}
.suburb-chip:hover { border-color: var(--gold); box-shadow: var(--shadow); color: var(--navy); }

/* FAQ */
.faq details {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.15rem; margin-bottom: .75rem;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--navy); list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .75rem 0 0; color: var(--muted); }

/* CTA band */
.cta-band {
  background: var(--navy); color: var(--white); padding: 2.75rem 0; text-align: center;
}
.cta-band h2 { color: var(--white); margin: 0 0 .5rem; }
.cta-band p { color: #b8c9da; margin: 0 0 1.25rem; }
.cta-band .btn { width: auto; display: inline-flex; }

/* Footer */
.site-footer {
  background: #081828; color: #9aadb8; padding: 2.5rem 0 1.5rem; font-size: .9rem;
}
.footer-grid {
  display: grid; gap: 1.5rem; margin-bottom: 1.75rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: var(--gold-light); font-size: .95rem; margin: 0 0 .6rem; }
.site-footer a { color: #c5d3e0; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between;
  font-size: .8rem;
}

/* Page hero (inner) */
.page-hero {
  background: var(--navy); color: var(--white); padding: 2.5rem 0 2.25rem;
}
.page-hero h1 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
.page-hero p { margin: 0; color: #b8c9da; max-width: 40rem; }
.breadcrumb { font-size: .85rem; color: #8fa3b5; margin-bottom: .75rem; }
.breadcrumb a { color: var(--gold-light); text-decoration: none; }

/* Prose */
.prose { max-width: 42rem; }
.prose p { color: var(--muted); }
.prose h2 { margin-top: 2rem; }
.table-simple { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table-simple th, .table-simple td {
  text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--border);
}
.table-simple th { color: var(--navy); }

/* Thank you */
.thanks {
  text-align: center; padding: 4rem 0; max-width: 36rem; margin: 0 auto;
}
.thanks .check {
  width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%;
  background: var(--success); color: white; display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
}

.nav .btn-call {
  color: var(--gold-light) !important;
  border: 1px solid var(--gold);
  padding: .4rem .75rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none !important;
}
.nav .btn-call:hover { background: var(--gold); color: var(--navy) !important; }

.hero .btn { width: auto; }
@media (max-width: 520px) {
  .hero .btn { width: 100%; }
}
/* Touch-friendly checkboxes */
.form-row input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  accent-color: var(--gold);
}


/* Chat stub — ElevenLabs widget TBD; non-blocking, no heavy scripts */
.chat-stub {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.05rem;
  background: var(--navy);
  color: var(--gold-light);
  border: 1px solid rgba(112, 225, 210, 0.45);
  border-radius: 999px;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  cursor: default;
  max-width: calc(100vw - 2rem);
}
.chat-stub:hover { color: var(--white); border-color: var(--gold); }
.chat-stub[aria-disabled="true"] { pointer-events: none; opacity: 0.92; }
.chat-stub-dot {
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--coral); flex-shrink: 0;
}
@media (max-width: 420px) {
  .chat-stub span.chat-stub-label-full { display: none; }
}


/* —— Interactive less-text home (2026-09-19) —— */
.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;
}
.hero-compact {
  padding: 2.25rem 0 2.5rem;
  text-align: left;
}
.hero-compact h1 {
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  margin: 0 0 1.15rem;
  max-width: 22ch;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .65rem; margin: 0 0 .85rem;
}
.hero-actions .btn { width: auto; min-height: 44px; }
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-outline { width: 100%; }
}
.hero-chat-hint {
  margin: 0;
  font-size: .88rem;
  color: #b8c9da;
}
.region-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.section-more { margin: 1.25rem 0 0; }

/* Stepper */
.stepper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.25rem 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
}
.stepper-progress {
  display: flex; gap: .45rem; justify-content: center; margin-bottom: 1.15rem;
}
.stepper-dot {
  width: 2rem; height: .35rem; border-radius: 999px;
  background: var(--border);
}
.stepper-dot.is-active { background: var(--gold); }
.stepper-dot.is-done { background: var(--gold-light); }
.stepper-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 .35rem;
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
}
.stepper-label .step-num { margin-bottom: 0; }
.stepper-hint {
  margin: 0 0 1rem;
  font-size: .88rem;
  color: var(--muted);
}
.tap-grid {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-bottom: 1rem;
}
.tap-chip {
  min-height: 44px;
  padding: .7rem .85rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--cream-alt);
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  text-align: center;
}
.tap-chip:hover, .tap-chip:focus-visible {
  border-color: var(--gold);
  outline: none;
}
.tap-chip.is-selected {
  background: var(--teal-pale);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(248,88,80,.25);
}
.tap-chip-soft {
  border-style: dashed;
  color: var(--muted);
  font-weight: 500;
}
.stepper-suburb {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}
.stepper-suburb input {
  display: block;
  width: 100%;
  margin-top: .35rem;
  padding: .7rem .8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  min-height: 44px;
}
.stepper-nav {
  display: flex; flex-wrap: wrap; gap: .65rem; margin: 0;
  align-items: center;
}
.stepper-nav .btn { width: auto; min-height: 44px; }
.stepper-nav .btn:disabled {
  opacity: .45; cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--navy);
  width: auto;
  padding: .65rem 1.1rem;
}
.btn-ghost:hover { border-color: var(--gold); background: var(--cream); }

.card-compact { padding: 1.1rem 1.15rem; }
.card-compact h3 { font-size: 1.05rem; }
.card-compact p { font-size: .9rem; }

.chip-row {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin-top: .85rem;
}
.mini-card {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: .55rem .95rem;
  background: var(--cream-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: .88rem;
}
.mini-card:hover { border-color: var(--gold); color: var(--navy); }

.compact-faq details { margin-bottom: .65rem; }
.prefill-banner {
  background: var(--teal-pale);
  border: 1px solid rgba(248,88,80,.35);
  color: var(--navy);
  border-radius: 8px;
  padding: .65rem .85rem;
  font-size: .88rem;
  margin: 0 0 1rem;
}

@media (max-width: 520px) {
  .stepper { padding: 1.15rem 1rem 1.25rem; }
  .tap-grid { grid-template-columns: 1fr 1fr; }
}

.logo { display:inline-flex; align-items:center; text-decoration:none; }
.logo-img { height:44px; width:auto; display:block; }
@media (max-width:520px){ .logo-img{ height:36px; } }

/* —— ElevenLabs convai widget: mobile clearance (QA re-fail 2026-09-19) ——
   Expanded panel still covered home stepper chips at ~390px.
   Stronger clearance + stepper pad; widget stays agent_7301m2wa5jx7f218s1knqk6ykewg. */
:root {
  --convai-clearance: calc(7rem + env(safe-area-inset-bottom, 0px));
  --convai-panel-clearance: calc(18rem + env(safe-area-inset-bottom, 0px));
}
body {
  padding-bottom: var(--convai-clearance);
}
@media (min-width: 640px) {
  :root {
    --convai-clearance: calc(5rem + env(safe-area-inset-bottom, 0px));
    --convai-panel-clearance: calc(8rem + env(safe-area-inset-bottom, 0px));
  }
}
/* Phone: expanded "Need help?" panel is tall — pad interactive regions */
@media (max-width: 480px) {
  :root {
    --convai-clearance: calc(9rem + env(safe-area-inset-bottom, 0px));
    --convai-panel-clearance: min(48vh, 22rem);
  }
  body {
    padding-bottom: calc(var(--convai-panel-clearance) + 1rem);
  }
  #match-steps,
  .stepper,
  .form-card,
  form.lead-form,
  form[action*="formsubmit"] {
    padding-bottom: var(--convai-panel-clearance);
    scroll-margin-bottom: var(--convai-panel-clearance);
  }
  .tap-chip,
  .stepper .tap-chip,
  .stepper-panel .tap-chip {
    position: relative;
    z-index: 2;
  }
  .site-footer {
    padding-bottom: 2rem;
  }
}
elevenlabs-convai {
  z-index: 40;
}

