/* Acorus website styles. One file for every page.
   Palette comes from the logo blue plus the yellow of a Google review star. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* colour */
  --ink: #0d1b33;
  --ink-soft: #46536d;
  --blue: #004aad;
  --blue-deep: #003a88;
  --blue-night: #062a5e;
  --mist: #e6eefa;
  --star: #ffc531;
  --good: #17703c;
  --warn: #8a5300;
  --bad: #b3261e;
  --surface-0: #f6f8fc;
  --surface-1: #ffffff;
  --line: color-mix(in oklch, var(--ink) 13%, transparent);
  --line-strong: color-mix(in oklch, var(--ink) 55%, transparent);
  --shadow-float: 0 1px 2px color-mix(in oklch, var(--ink) 7%, transparent),
    0 18px 44px -16px color-mix(in oklch, var(--ink) 30%, transparent);

  /* type */
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --text: "Hanken Grotesk", "Segoe UI", Arial, sans-serif;
  --step--1: clamp(0.875rem, 0.868rem + 0.03vw, 0.9rem);
  --step-0: clamp(1.0625rem, 1.03rem + 0.14vw, 1.15rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.444vw, 1.5rem);
  --step-2: clamp(1.44rem, 1.254rem + 0.828vw, 1.999rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 3.1rem);
  --step-4: clamp(2.3rem, 1.45rem + 3.4vw, 4.35rem);

  /* space and shape */
  --gutter: clamp(1.125rem, 0.6rem + 2.6vw, 2.5rem);
  --section: clamp(3.75rem, 2.2rem + 5.4vw, 7.5rem);
  --r-control: 10px;
  --r-card: 16px;
  --r-panel: 26px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; font-weight: 700; }
h1 { font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: var(--step-3); line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.012em; font-weight: 650; }
p, li, dd { text-wrap: pretty; max-inline-size: 68ch; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-blue :focus-visible, .site-footer :focus-visible { outline-color: var(--star); }
strong { font-weight: 650; }

.wrap { width: min(100% - 2 * var(--gutter), 75rem); margin-inline: auto; }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section.tint, .section.blue, .section.tint + .section, .section.blue + .section, .photo-band + .section { padding-top: var(--section); }
.tint { background: var(--mist); }
.lede { font-size: var(--step-1); line-height: 1.42; color: var(--ink-soft); max-inline-size: 34em; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); line-height: 1.5; }
.measure { max-inline-size: 65ch; }
.flow > * + * { margin-top: 1em; }
.price { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: var(--r-control); z-index: 50; }
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  font: 650 var(--step-0)/1.2 var(--text);
  color: #fff; background: var(--blue);
  border: 0; border-radius: var(--r-control); text-decoration: none; cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { background: var(--blue-deep); }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.ghost:hover { background: color-mix(in oklch, var(--ink) 6%, transparent); }
.btn.light { background: #fff; color: var(--blue-night); }
.btn.light:hover { background: var(--mist); }
.btn.small { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: var(--step--1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.textlink { font-weight: 650; display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(246 248 252 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand img { height: 2.1rem; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(0.25rem, 1.2vw, 1rem); }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 0.6rem;
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: var(--step--1);
  border-radius: var(--r-control);
}
.nav a:not(.btn):hover { background: color-mix(in oklch, var(--ink) 6%, transparent); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav .btn { margin-left: 0.5rem; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.9rem;
    font: 650 var(--step--1) var(--text); color: var(--ink);
    background: transparent; border: 0; box-shadow: inset 0 0 0 1.5px var(--line-strong); border-radius: var(--r-control); cursor: pointer;
  }
  .menu-btn .bars { width: 1.1rem; height: 0.75rem; position: relative; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease; }
  .menu-btn .bars::before { top: 0; }
  .menu-btn .bars::after { bottom: 0; }
  .menu-btn[aria-expanded="true"] .bars::before { transform: translateY(0.3rem) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-0.33rem) rotate(-45deg); }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--surface-1); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-float);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { min-height: 3.25rem; font-size: var(--step-0); border-bottom: 1px solid var(--line); border-radius: 0; padding-inline: 0.25rem; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 1rem 0 0; }
}

/* ---------- hero (home) ---------- */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(1rem, 3vw, 2.5rem); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2.4vw, 2.25rem); align-items: center; }
.hero-copy { grid-column: 1 / span 7; padding-right: clamp(0rem, 3vw, 3rem); }
.hero-copy h1 { max-inline-size: 12em; }
.hero-copy .lede { max-inline-size: 30em; }
.hero-copy .lede { margin-top: 1.4rem; }
.hero-copy .btn-row { margin-top: 2rem; }
.hero-copy .small { margin-top: 1.4rem; max-inline-size: 46ch; }
.hero-visual { grid-column: 8 / span 5; position: relative; margin-right: calc(-1 * max(var(--gutter), (100vw - 75rem) / 2)); }
.hero-visual picture img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-panel) 0 0 var(--r-panel); }

.pack {
  position: absolute; left: clamp(-4rem, -5vw, -1.5rem); bottom: clamp(1.25rem, 3vw, 2.5rem);
  width: min(23.5rem, 80%);
  background: var(--surface-1); border-radius: var(--r-card); box-shadow: var(--shadow-float);
  padding: 0.85rem; font-size: var(--step--1); line-height: 1.35;
}
.pack-search { display: flex; align-items: center; gap: 0.55rem; min-height: 2.5rem; padding: 0 0.85rem; border-radius: 999px; background: var(--surface-0); border: 1px solid var(--line); color: var(--ink); }
.pack-search svg { width: 1rem; height: 1rem; flex: none; color: var(--ink-soft); }
.pack-search .caret { width: 1.5px; height: 1.1em; background: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pack-list { margin-top: 0.6rem; display: grid; gap: 0.4rem; }
.pack-row { display: grid; grid-template-columns: auto 1fr; column-gap: 0.7rem; align-items: center; padding: 0.6rem 0.7rem; border-radius: 12px; border: 1px solid var(--line); }
.pack-row b { display: block; font-weight: 650; }
.pack-row span.meta { color: var(--ink-soft); }
.pack-pin { width: 1.75rem; height: 2.1rem; color: var(--ink-soft); }
.pack-row.you { border-color: var(--blue); background: color-mix(in oklch, var(--blue) 6%, var(--surface-1)); box-shadow: inset 0 0 0 1px var(--blue); }
.pack-row.you .pack-pin { color: var(--blue); }
.stars { display: inline-flex; gap: 1px; vertical-align: -0.12em; margin-right: 0.3em; }
.stars svg { width: 0.85em; height: 0.85em; color: var(--star); }
.pack-note { margin-top: 0.6rem; color: var(--ink-soft); line-height: 1.4; }

@media (max-width: 860px) {
  .hero-copy, .hero-visual { grid-column: 1 / -1; }
  .hero-copy { padding-right: 0; }
  .hero-visual { margin: 2.5rem calc(-1 * var(--gutter)) 0; padding-bottom: 9.5rem; }
  .hero-visual picture img { aspect-ratio: 3 / 2; border-radius: 0; }
  .pack { left: var(--gutter); right: var(--gutter); bottom: 0; width: auto; }
}

/* ---------- split sections: heading rail + content ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2.4vw, 2.25rem); row-gap: 2rem; }
.split > .rail { grid-column: 1 / span 4; align-self: start; }
.split > .body { grid-column: 6 / span 7; }
.rail h2 + p { margin-top: 1rem; color: var(--ink-soft); }
@media (min-width: 861px) { .rail.stick { position: sticky; top: 6.5rem; } }
@media (max-width: 860px) { .split > .rail, .split > .body { grid-column: 1 / -1; } }

/* definition rows, used for "what Google looks at" and the service list */
.rows > * { display: grid; grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr); column-gap: 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.rows > *:last-child { border-bottom: 1px solid var(--line); }
.rows dt, .rows .row-title { font-family: var(--display); font-weight: 650; font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.012em; }
.rows dd, .rows .row-body { color: var(--ink-soft); }
.rows .row-body strong, .rows dd strong { color: var(--ink); }
.rows .row-price { display: block; margin-top: 0.35rem; font: 600 var(--step--1) var(--text); color: var(--blue); letter-spacing: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .rows > * { grid-template-columns: 1fr; row-gap: 0.4rem; } }

/* ---------- offer ladder ---------- */
.ladder-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2.4vw, 2.25rem); row-gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.ladder-head h2 { grid-column: 1 / span 6; }
.ladder-head p { grid-column: 8 / span 5; align-self: end; color: var(--ink-soft); }
.ladder { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: clamp(0.9rem, 1.6vw, 1.4rem); align-items: stretch; }
.offer { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.4rem, 2.2vw, 2rem); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-card); }
.offer .stage { font: 600 var(--step--1) var(--text); color: var(--ink-soft); }
.offer .price { font-size: var(--step-3); }
.offer .price small { font: 500 var(--step--1) var(--text); letter-spacing: 0; color: var(--ink-soft); margin-left: 0.25em; }
.offer .btn, .offer .textlink { margin-top: auto; align-self: flex-start; }
.offer.main { background: var(--blue); border-color: var(--blue); color: #fff; border-radius: var(--r-panel); padding: clamp(1.6rem, 3vw, 2.75rem); }
.offer.main .stage, .offer.main .price small { color: color-mix(in oklch, #fff 82%, var(--blue)); }
.offer.main h3 { font-size: var(--step-2); }
.offer.main .price { font-size: var(--step-4); }
.offer.main .ticks { columns: 2; column-gap: 1.75rem; }
.ticks { display: block; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem; break-inside: avoid; font-size: var(--step--1); line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.42em; width: 0.7rem; height: 0.38rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); color: var(--good); }
.on-blue .ticks li::before { color: var(--star); }
.ticks.big li { font-size: var(--step-0); margin-bottom: 0.8rem; }
@media (max-width: 960px) {
  .ladder-head h2, .ladder-head p { grid-column: 1 / -1; }
  .ladder { grid-template-columns: 1fr; }
  .offer.main { order: -1; }
}
@media (max-width: 520px) { .offer.main .ticks { columns: 1; } }

/* ---------- photo band ---------- */
.photo-band { position: relative; color: #fff; isolation: isolate; }
.photo-band picture img { width: 100%; height: clamp(24rem, 52vw, 38rem); object-fit: cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in oklch, var(--blue-night) 88%, transparent) 0%, color-mix(in oklch, var(--blue-night) 62%, transparent) 42%, transparent 78%); z-index: 1; }
.photo-band .wrap { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; }
.photo-band h2 { max-inline-size: 12em; }
.photo-band p { max-inline-size: 30em; font-size: var(--step-1); line-height: 1.42; color: color-mix(in oklch, #fff 90%, var(--blue-night)); }
@media (max-width: 700px) {
  .photo-band::after { background: linear-gradient(0deg, color-mix(in oklch, var(--blue-night) 94%, transparent) 0%, color-mix(in oklch, var(--blue-night) 70%, transparent) 55%, color-mix(in oklch, var(--blue-night) 25%, transparent) 100%); }
  .photo-band picture img { height: 34rem; }
  .photo-band .wrap { justify-content: flex-end; padding-bottom: 2.5rem; }
}

/* ---------- steps ---------- */
.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 1.25rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font: 800 var(--step-3)/0.95 var(--display); letter-spacing: -0.04em; color: var(--blue); }
.steps h3 + p { margin-top: 0.4rem; color: var(--ink-soft); }

/* ---------- blue guarantee panel ---------- */
.panel-blue { background: var(--blue); color: #fff; border-radius: var(--r-panel); padding: clamp(1.75rem, 4vw, 3.75rem); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2.4vw, 2.25rem); row-gap: 1.25rem; align-items: center; }
.panel-blue h2 { grid-column: 1 / span 6; }
.panel-blue .flow { grid-column: 8 / span 5; color: color-mix(in oklch, #fff 90%, var(--blue)); }
.panel-blue a { color: #fff; }
@media (max-width: 860px) { .panel-blue h2, .panel-blue .flow { grid-column: 1 / -1; } }

/* ---------- suburbs ---------- */
.suburbs { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; }
.suburbs li { padding: 0.55rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-1); font-weight: 600; font-size: var(--step--1); }
.suburbs li span { color: var(--ink-soft); font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 0.4em; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; padding-block: 0.9rem; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 650; font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 0.7rem; height: 0.7rem; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--ink-soft); max-inline-size: 62ch; }

/* ---------- contact + forms ---------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2.4vw, 2.25rem); row-gap: 2.25rem; }
.contact-copy { grid-column: 1 / span 5; }
.contact-copy h2 + p { margin-top: 1rem; color: var(--ink-soft); }
.contact-list { margin-top: 2rem; display: grid; gap: 0; }
.contact-list div { display: grid; grid-template-columns: 6.5rem 1fr; padding-block: 0.9rem; border-top: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--ink-soft); font-size: var(--step--1); align-self: center; }
.contact-list dd { font-weight: 650; overflow-wrap: anywhere; }
.contact-list a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; margin-block: -0.6rem; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }
.form-card { grid-column: 7 / span 6; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(1.25rem, 3vw, 2.25rem); }
@media (max-width: 860px) { .contact-copy, .form-card { grid-column: 1 / -1; } }
form { display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
label.field { display: grid; gap: 0.35rem; font-size: var(--step--1); font-weight: 600; min-width: 0; }
label.field .opt { font-weight: 400; color: var(--ink-soft); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem;
  font: 400 var(--step-0)/1.4 var(--text); color: var(--ink);
  background: var(--surface-1); border: 1px solid var(--line-strong); border-radius: var(--r-control);
}
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in oklch, var(--blue) 45%, transparent); outline-offset: 0; border-color: var(--blue); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: var(--step--1); color: var(--ink-soft); cursor: pointer; }
.consent input, .check input { width: 1.35rem; height: 1.35rem; margin: 0.1rem 0 0; accent-color: var(--blue); flex: none; }
.form-error { color: var(--bad); font-weight: 600; font-size: var(--step--1); }
.form-out { padding: 0.9rem 1rem; border-radius: var(--r-control); background: var(--mist); font-size: var(--step--1); }
.form-out pre { white-space: pre-wrap; font: 400 var(--step--1)/1.5 var(--text); margin: 0.6rem 0 0; user-select: all; }

/* ---------- page heads (inner pages) ---------- */
.page-head { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(1rem, 3vw, 2.5rem); }
.page-head-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2.4vw, 2.25rem); row-gap: 2.5rem; align-items: center; }
.page-head-copy { grid-column: 1 / span 6; }
.page-head-copy h1 { font-size: var(--step-4); }
.page-head-copy .lede { margin-top: 1.3rem; }
.page-head-copy .price-line { margin-top: 1.75rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
.page-head-copy .price-line .price { font-size: var(--step-3); color: var(--blue); }
.page-head-copy .btn-row { margin-top: 1.5rem; }
.page-head-photo { grid-column: 8 / span 5; }
.page-head-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-panel); }
.page-head-photo.wide { grid-column: 7 / span 6; }
.page-head-photo.wide img { aspect-ratio: 1 / 1; }
.crumb { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 1.1rem; }
.crumb a { color: inherit; display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (max-width: 860px) {
  .page-head-copy, .page-head-photo, .page-head-photo.wide { grid-column: 1 / -1; }
  .page-head-photo img, .page-head-photo.wide img { aspect-ratio: 3 / 2; }
}
.page-head.plain .page-head-copy { grid-column: 1 / span 8; }
@media (max-width: 860px) { .page-head.plain .page-head-copy { grid-column: 1 / -1; } }

/* included list on offer pages */
.included { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 3vw, 3rem); }
.included li { padding-block: 1.15rem; border-top: 1px solid var(--line); }
.included li b { display: block; font-family: var(--display); font-weight: 650; font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.012em; }
.included li span { display: block; margin-top: 0.3rem; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.5; }
@media (max-width: 640px) { .included { grid-template-columns: 1fr; } }

.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-panel); }
.cta-strip h2 { font-size: var(--step-2); max-inline-size: 18em; }
.cta-strip p { color: var(--ink-soft); margin-top: 0.4rem; }

/* ---------- scorecard ---------- */
.score-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 3rem); align-items: start; }
.score-group { border: 0; padding: 0; margin: 0 0 2.25rem; min-width: 0; }
.score-group legend { padding: 0; font-family: var(--display); font-weight: 700; font-size: var(--step-2); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; min-height: 3rem; padding: 0.85rem 0.25rem; border-top: 1px solid var(--line); cursor: pointer; }
.check:hover { background: color-mix(in oklch, var(--blue) 4%, transparent); }
.check input { margin-top: 0.15rem; }
.score-result { position: sticky; top: 5.75rem; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(1.25rem, 2.4vw, 2rem); display: grid; gap: 1.1rem; box-shadow: var(--shadow-float); }
.dial { display: flex; align-items: baseline; gap: 0.5rem; }
.dial .price { font-size: var(--step-4); color: var(--blue); }
.meter { height: 0.6rem; border-radius: 999px; background: var(--mist); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--bad); transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.35s ease; }
.band-label { font-family: var(--display); font-weight: 700; font-size: var(--step-1); }
ol.fixes { list-style: decimal; padding-left: 1.2rem; margin: 0.4rem 0 0; font-size: var(--step--1); line-height: 1.5; }
.fixes li + li { margin-top: 0.45rem; }
.score-result form { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.score-bar { display: none; }
@media (max-width: 860px) {
  .score-grid { grid-template-columns: 1fr; }
  .score-result { position: static; box-shadow: none; }
  .score-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--blue-night); color: #fff; font-weight: 600; font-size: var(--step--1);
  }
  .score-bar b { font-family: var(--display); font-size: var(--step-1); font-variant-numeric: tabular-nums; }
  .has-score-bar { padding-bottom: 4.5rem; }
}

/* ---------- prose (privacy) ---------- */
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose p, .prose ul { margin-top: 1em; max-inline-size: 65ch; }
.prose ul { padding-left: 1.2rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-night); color: color-mix(in oklch, #fff 86%, var(--blue-night)); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; font-size: var(--step--1); line-height: 1.6; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem clamp(1.5rem, 4vw, 4rem); }
.footer-grid img { height: 2.1rem; width: auto; margin-bottom: 1rem; }
.footer-grid h2 { font: 650 var(--step--1) var(--text); letter-spacing: 0; color: #fff; margin-bottom: 0.4rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.footer-grid li a:hover { text-decoration: underline; }
.footer-legal span { max-inline-size: none; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in oklch, #fff 18%, transparent); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
.footer-legal a { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-visual picture, .pack { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
  .hero-visual picture { animation-delay: 0.1s; }
  .pack { animation-delay: 0.35s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- small helpers ---------- */
.nw { white-space: nowrap; }

/* ---------- guarantee panel ---------- */
.panel-blue.guarantee { align-items: start; row-gap: 2rem; }
.guarantee .g-head { grid-column: 1 / span 5; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 1rem; }
.guarantee .g-icon { width: 3rem; height: 3rem; color: var(--star); }
.guarantee .g-head .small { color: color-mix(in oklch, #fff 80%, var(--blue)); max-inline-size: 36ch; width: 100%; }
.guarantee .g-points { grid-column: 7 / span 6; display: grid; gap: 0; }
.guarantee .g-points li { display: grid; gap: 0.3rem; padding-block: 1.1rem; border-top: 1px solid color-mix(in oklch, #fff 22%, transparent); max-inline-size: none; }
.guarantee .g-points li:first-child { border-top: 0; padding-top: 0.2rem; }
.guarantee .g-points strong { font-family: var(--display); font-size: var(--step-1); font-weight: 700; letter-spacing: -0.012em; }
.guarantee .g-points span { color: color-mix(in oklch, #fff 86%, var(--blue)); }
@media (max-width: 860px) { .guarantee .g-head, .guarantee .g-points { grid-column: 1 / -1; } }

/* ---------- service area map ---------- */
.area { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2.4vw, 2.25rem); row-gap: 2rem; align-items: center;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(0.75rem, 1.6vw, 1.25rem); }
.area > * { min-width: 0; }
.area-figure { grid-column: 1 / span 7; display: grid; gap: 0.6rem; }
.area-figure figcaption { padding-inline: 0.4rem; }
.area-map { width: 100%; height: auto; border-radius: calc(var(--r-panel) - 0.75rem); background: #eef2f8; }
.area-key { grid-column: 8 / span 5; padding: clamp(0.5rem, 1.5vw, 1.25rem) clamp(0.5rem, 1.5vw, 1.25rem) clamp(0.5rem, 1.5vw, 1.25rem) 0; display: grid; gap: 1rem; }
.area-key h3 { font-size: var(--step-2); }
.area-key > p:first-of-type { color: var(--ink-soft); }
.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; border-top: 1px solid var(--line); }
.area-list li { display: flex; align-items: center; gap: 0.55rem; padding-block: 0.5rem; border-bottom: 1px solid var(--line); font-weight: 600; font-size: var(--step--1); cursor: default; transition: color 0.15s; }
.area-list li:first-child { grid-column: 1 / -1; }
.area-list .n { flex: none; display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.area-list li:first-child .n { background: var(--star); border-color: var(--ink); }
.area-list .pc { margin-left: auto; color: var(--ink-soft); font-weight: 500; font-variant-numeric: tabular-nums; }
.area-list li.on { color: var(--blue); }
.area-list li.on .n { background: var(--blue); color: #fff; }
.m-land { fill: #eef2f8; }
.m-streets { stroke: #e0e6ef; stroke-width: 1.8; fill: none; stroke-linecap: round; }
.m-park { fill: #e2ecdf; }
.m-water { fill: #c6d9f2; }
.m-river { stroke: #b9d0ee; stroke-width: 3.5; stroke-linejoin: round; fill: none; stroke-linecap: round; }
.m-road-edge { stroke: #c3ccda; stroke-width: 11; stroke-linejoin: round; fill: none; stroke-linecap: round; }
.m-road { stroke: #fff; stroke-width: 7; stroke-linejoin: round; fill: none; stroke-linecap: round; }
.m-sea { fill: #dde7f3; }
.m-lgas path { fill: #fbfcfe; stroke: #fbfcfe; stroke-width: 1.4; stroke-linejoin: round; }
.m-sub.m-home-area { fill: #ffe39a; fill-opacity: 1; stroke: #a87a00; stroke-opacity: 0.8; }
.m-sub.m-home-area.on { fill: #ffd25e; }
.m-nbs path { fill: #f8fafd; stroke: #cfd7e3; stroke-width: 1.2; stroke-linejoin: round; }
.m-sub { fill: var(--blue); fill-opacity: 0.1; stroke: var(--blue); stroke-opacity: 0.55; stroke-width: 1.6; stroke-linejoin: round; transition: fill-opacity 0.15s; }
.m-sub.on { fill-opacity: 0.24; }
.m-hwy-edge { stroke: #d3dae5; stroke-width: 7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-hwy { stroke: #fff; stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-stn circle { fill: #fff; stroke: var(--ink); stroke-width: 2.2; }
.m-nbl { font: 600 12.5px var(--text); fill: #7a879c; paint-order: stroke; stroke: #f8fafd; stroke-width: 4px; stroke-linejoin: round; }
.m-scale path { fill: none; stroke: var(--ink-soft); stroke-width: 2; }
.m-scale text, .m-attr { font: 600 12.5px var(--text); fill: var(--ink-soft); }
.m-attr { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.m-ring { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-dasharray: 7 8; opacity: 0.6; }
.m-ring-in { opacity: 0.35; }
.m-feat { font: 600 17px var(--text); fill: #5f6e88; letter-spacing: 0.02em; }
.m-feat-water { fill: #33609e; font-style: italic; }
.m-shield rect { fill: var(--ink); }
.m-north circle { fill: #fff; stroke: var(--line); }
.m-north path { fill: var(--ink); }
.m-north text { font: 700 14px var(--text); fill: var(--ink-soft); }
.m-shield text { fill: #fff; font: 700 14px var(--text); }
.m-ringlabel { font: 700 16px var(--text); fill: var(--blue); }
.mk .dot { transform-box: fill-box; transform-origin: center; transition: transform 0.2s cubic-bezier(.3,1.4,.5,1); }
.mk .dot circle { fill: #fff; stroke: var(--blue); stroke-width: 3; transition: fill 0.15s; }
.mk .dot text { font: 700 14px var(--text); fill: var(--blue); }
.mk .lbl { font: 650 20px var(--text); fill: var(--ink); paint-order: stroke; stroke: #eef2f8; stroke-width: 5px; stroke-linejoin: round; }
.mk-home .dot path { fill: var(--star); stroke: var(--ink); stroke-width: 2.5; }
.mk-home .halo { fill: var(--star); opacity: 0.28; stroke: none; }
.mk-home .pin-eye { fill: var(--ink); stroke: none; }
.mk .lbl-home { font: 800 25px var(--display); letter-spacing: -0.01em; }
.mk .lbl-sub { font: 600 16px var(--text); fill: var(--ink-soft); }
.mk.on .dot { transform: scale(1.3); }
.mk.on .dot circle { fill: var(--blue); }
.mk.on .dot text { fill: #fff; }
@media (max-width: 860px) {
  .area-figure, .area-key { grid-column: 1 / -1; }
  .area-key { padding: 0 0.5rem 0.75rem; }
}
@media (max-width: 640px) {
  .mk .lbl { display: none; }
  .mk .dot { transform: scale(2); }
  .mk.on .dot { transform: scale(2.35); }
  .mk-home .dot { transform: scale(1.6); }
  .m-feat { font-size: 30px; }
  .m-shield, .m-feat-water, .m-north, .m-nbl, .m-attr, .m-scale, .m-stn { display: none; }
  .m-sub { stroke-width: 2.4; }
  .m-ringlabel { font-size: 28px; }
}
@media (max-width: 480px) { .area-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mk .dot, .area-list li { transition: none; } }

/* ---------- page-head mockups (Get Found, Health Check) ---------- */
.page-head-visual { grid-column: 7 / span 6; display: grid; gap: 0.75rem; justify-items: center; }
.page-head-visual figcaption { text-align: center; max-inline-size: 44ch; }
.mock-profile, .mock-report { position: relative; width: min(100%, 28rem); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-float); }
.mock-profile { overflow: visible; }
.mp-cover { position: relative; border-radius: var(--r-panel) var(--r-panel) 0 0; overflow: hidden; }
.mp-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 40%; }
.mp-count { position: absolute; right: 0.85rem; bottom: 0.85rem; padding: 0.35rem 0.7rem; border-radius: 999px; background: rgb(13 27 51 / 0.78); color: #fff; font-size: var(--step--1); font-weight: 600; backdrop-filter: blur(6px); }
.mp-body { padding: 1.25rem 1.4rem 1.4rem; display: grid; gap: 0.45rem; }
.mp-name { font: 800 var(--step-2) / 1.1 var(--display); letter-spacing: -0.02em; }
.mp-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: center; font-size: var(--step--1); color: var(--ink-soft); }
.mp-stars { display: inline-flex; align-items: center; gap: 0.1rem; color: var(--ink); font-weight: 650; }
.mp-stars svg { width: 0.95rem; height: 0.95rem; color: var(--star); }
.mp-stars svg:first-of-type { margin-left: 0.3rem; }
.mp-open { font-size: var(--step--1); color: var(--ink-soft); }
.mp-open b { color: var(--good); }
.mp-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; margin-top: 0.5rem; padding-block: 0.85rem; border-block: 1px solid var(--line); }
.mp-actions span { display: grid; justify-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 650; color: var(--blue); }
.mp-actions svg { width: 2.4rem; height: 2.4rem; padding: 0.55rem; border-radius: 50%; background: var(--mist); }
.mp-checks { display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.mp-checks li { display: flex; align-items: center; gap: 0.55rem; font-size: var(--step--1); font-weight: 600; }
.mp-checks svg { flex: none; width: 1.3rem; height: 1.3rem; padding: 0.15rem; border-radius: 50%; background: color-mix(in oklch, var(--good) 14%, #fff); color: var(--good); }
.mp-score { position: absolute; left: -1.75rem; top: 38%; display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-radius: var(--r-card); background: var(--ink); color: #fff; box-shadow: var(--shadow-float); font-size: var(--step--1); }
.mp-score span { color: color-mix(in oklch, #fff 72%, var(--ink)); margin-right: 0.2rem; }
.mp-score b { font: 800 var(--step-1) / 1 var(--display); font-variant-numeric: tabular-nums; color: color-mix(in oklch, #fff 70%, var(--ink)); }
.mp-score b.up { color: var(--star); }
.mp-score svg { width: 1.1rem; height: 1.1rem; color: color-mix(in oklch, #fff 60%, var(--ink)); }
.mock-report { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: 1.25rem; }
.mr-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.mr-head img { height: 1.5rem; width: auto; }
.mr-head span { font-size: var(--step--1); font-weight: 650; color: var(--ink-soft); }
.mr-score { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.mr-num { font: 800 clamp(3.2rem, 2.4rem + 3vw, 4.4rem) / 0.9 var(--display); letter-spacing: -0.04em; color: var(--blue); font-variant-numeric: tabular-nums; }
.mr-num small { font: 600 var(--step-0) var(--text); letter-spacing: 0; color: var(--ink-soft); margin-left: 0.2rem; }
.mr-band { padding: 0.35rem 0.8rem; border-radius: 999px; background: color-mix(in oklch, var(--bad) 11%, #fff); color: var(--bad); font-weight: 700; font-size: var(--step--1); }
.mr-label { font-size: var(--step--1); font-weight: 650; margin-bottom: 0.6rem; }
.mr-bars { display: grid; gap: 0.5rem; }
.mr-bar { display: grid; grid-template-columns: 2.5rem 1fr 2rem; align-items: center; gap: 0.75rem; font-size: var(--step--1); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.mr-bar i { height: 0.7rem; border-radius: 999px; background: linear-gradient(to right, #9aa6ba var(--w), var(--mist) var(--w)); }
.mr-bar b { text-align: right; color: var(--ink); }
.mr-bar.you span, .mr-bar.you b { color: var(--blue); font-weight: 700; }
.mr-bar.you i { background: linear-gradient(to right, var(--blue) var(--w), var(--mist) var(--w)); }
.mr-fixes { padding-top: 1rem; border-top: 1px solid var(--line); }
.mr-fixes ol { list-style: none; padding: 0; display: grid; gap: 0.45rem; counter-reset: fx; }
.mr-fixes li { counter-increment: fx; display: flex; gap: 0.6rem; align-items: baseline; font-size: var(--step--1); font-weight: 600; }
.mr-fixes li::before { content: counter(fx); flex: none; display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.72rem; transform: translateY(-0.05rem); }
@media (max-width: 860px) {
  .page-head-visual { grid-column: 1 / -1; }
  .mp-score { left: auto; right: -0.25rem; top: -1rem; }
}

/* Greater Sydney map: whole metro shaded, region labels only */
.m-outer path { fill: #fbfcfe; stroke: #e1e7ef; stroke-width: 1.4; stroke-linejoin: round; }
.m-metro path { fill: #b9cdea; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.rg circle { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.rg text { font: 650 24px var(--text); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.area-list--regions li { cursor: auto; }
.area-list--regions li:first-child { grid-column: auto; }
.area-list--regions li::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #b9cdea; border: 2px solid var(--blue); }
@media (max-width: 640px) { .rg text { font-size: 36px; stroke-width: 7px; } .rg circle { r: 8; } }
@media (max-width: 480px) { .area-list--regions { grid-template-columns: 1fr 1fr; } }

/* About: brand scene image (generated with Higgsfield) */
.about-photo { margin: 1.75rem 0 0; }
.about-photo img { display: block; width: 100%; height: auto; border-radius: var(--r-card); box-shadow: 0 18px 40px -24px rgba(13, 27, 51, .45); }
@media (max-width: 860px) { .about-photo { max-width: 560px; } }

/* ---------- money-back assurance line (next to buttons) ---------- */
.assure { display: flex; align-items: flex-start; gap: 0.55rem; margin-top: 0.9rem; font-size: var(--step--1); line-height: 1.45; color: var(--ink-soft); max-inline-size: 52ch; }
.assure svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.05rem; color: var(--blue); }
.assure a { font-weight: 650; white-space: nowrap; }
.hero-copy .assure { margin-top: 1.1rem; }
.form-card .assure { margin-top: 0.75rem; }
.ladder-foot { margin-top: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.ladder-foot .assure { margin-top: 0; font-size: var(--step-0); }
.ladder-foot .assure svg { width: 1.5rem; height: 1.5rem; }
.guarantee .g-head .small a { font-weight: 650; }
/* guarantee and terms pages */
.prose .callout { margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-radius: var(--r-card); background: var(--mist); max-inline-size: 65ch; }
.prose li + li { margin-top: 0.45em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; }

/* ---- Website chat (assets/chat.js) ---- */
.chat-launcher {
  position: fixed; z-index: 60;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 3.25rem; padding: 0.75rem 1.2rem;
  font: 650 var(--step--1)/1.2 var(--text); color: #fff; background: var(--blue);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 2px 4px color-mix(in oklch, var(--ink) 12%, transparent), 0 14px 32px -10px color-mix(in oklch, var(--blue-night) 55%, transparent);
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.chat-launcher:hover { background: var(--blue-deep); }
.chat-launcher:active { transform: scale(0.97); }
.chat-launcher:focus-visible, .chat-panel :focus-visible { outline: 3px solid var(--star); outline-offset: 2px; }
.chat-launcher.is-open span { display: none; }
.chat-panel {
  position: fixed; z-index: 61;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  inline-size: min(380px, calc(100vw - 32px)); block-size: min(600px, calc(100dvh - 120px));
  display: flex; flex-direction: column;
  background: var(--surface-1); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden;
  box-shadow: 0 2px 6px color-mix(in oklch, var(--ink) 8%, transparent), 0 30px 60px -20px color-mix(in oklch, var(--blue-night) 45%, transparent);
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 0.9rem 0.9rem 1.15rem; background: var(--blue-night); color: #fff; }
.chat-title { flex: 1; min-width: 0; display: grid; gap: 0.1rem; }
.chat-title strong { font: 700 var(--step-0)/1.2 var(--display); }
.chat-title span { font-size: 0.8rem; color: color-mix(in oklch, #fff 78%, transparent); }
.chat-close { display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; border: 0; border-radius: var(--r-control); background: transparent; color: #fff; cursor: pointer; }
.chat-close:hover { background: color-mix(in oklch, #fff 12%, transparent); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--surface-0); overscroll-behavior: contain; }
.chat-msg { max-inline-size: 86%; padding: 0.65rem 0.9rem; border-radius: 16px; font-size: var(--step--1); line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg p { margin: 0; }
.chat-msg p + p { margin-top: 0.55em; }
.chat-msg.bot { align-self: flex-start; background: var(--surface-1); border: 1px solid var(--line); border-end-start-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-end-end-radius: 4px; }
.chat-msg.bot a { color: var(--blue); font-weight: 650; }
.chat-msg.typing { color: var(--ink-soft); }
.chat-msg.typing p::after { content: "..."; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.75rem; background: var(--surface-0); }
.chat-chips[hidden] { display: none; }
.chat-chip { min-height: 2.5rem; padding: 0.4rem 0.8rem; font: 600 0.82rem/1.25 var(--text); color: var(--blue-night); background: var(--mist); border: 1px solid color-mix(in oklch, var(--blue) 25%, transparent); border-radius: 999px; cursor: pointer; text-align: start; }
.chat-chip:hover { background: color-mix(in oklch, var(--blue) 14%, var(--mist)); }
.chat-form { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--line); background: var(--surface-1); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; min-height: 2.75rem; max-height: 120px; padding: 0.65rem 0.8rem; font: 400 16px/1.4 var(--text); color: var(--ink); background: var(--surface-0); border: 1px solid var(--line-strong); border-radius: var(--r-control); scrollbar-width: none; }
.chat-send { display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; flex: none; border: 0; border-radius: var(--r-control); background: var(--blue); color: #fff; cursor: pointer; }
.chat-send:hover { background: var(--blue-deep); }
.chat-send:disabled { opacity: 0.55; cursor: default; }
.chat-foot { margin: 0; padding: 0 0.9rem 0.75rem; font-size: 0.75rem; line-height: 1.4; color: var(--ink-soft); background: var(--surface-1); }
.chat-foot a { color: inherit; }
@media (max-width: 520px) {
  .chat-panel { right: 0; left: 0; bottom: 0; inline-size: 100%; block-size: min(100dvh, 640px); border-radius: var(--r-panel) var(--r-panel) 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .chat-launcher.is-open { display: none; }
}
@media (prefers-reduced-motion: reduce) { .chat-launcher { transition: none; } }
@media print { .chat-launcher, .chat-panel { display: none !important; } }
