/* Home Improvements Australia: app styles.
   Shared by the quote form, pro directory, business portal and admin, so app pages match the
   WordPress pages (Elementor uses the same tokens: see wordpress/README.md). */

:root, :host {
  --teal: #0B7A76;
  --teal-hover: #08625F;
  --teal-bright: #17C3B2;
  --teal-tint: #E9F8F6;
  --teal-soft: #CDEFEA;
  --mint: #99F6E4;
  --deep-teal: #0B4542;
  --turquoise: #17C3B2;
  --ink: #17302E;
  --ink-2: #4F6866;
  --ink-3: #849A98;
  --line: #DCEDEA;
  --line-strong: #C9DAD7;
  --bg: #FFFFFF;
  --bg-2: #F3FBFA;
  --amber: #B45309;
  --amber-tint: #FFF6E5;
  --red: #B42318;
  --red-tint: #FDECEA;
  --green: #0B7A50;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 61, 58, 0.06);
  --shadow: 0 1px 2px rgba(15, 61, 58, 0.05), 0 16px 36px -18px rgba(15, 61, 58, 0.22);
  --shadow-lg: 0 2px 4px rgba(15, 61, 58, 0.04), 0 32px 64px -28px rgba(15, 61, 58, 0.32);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-optical-sizing: auto; font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:host { display: block; font-family: var(--font); font-optical-sizing: auto; font-size: 16px; line-height: 1.6; color: var(--ink); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-hover); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.022em; font-weight: 650; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.lede { font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; }
.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; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal-bright) 70%, white); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--teal); --f: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--b); border-radius: 999px; background: var(--b); color: var(--f); font: inherit; font-weight: 600; font-size: .975rem;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 18px -10px rgba(11, 122, 118, .7);
}
.btn:hover { --b: var(--teal-hover); color: var(--f); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .3s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-ghost { --b: transparent; --f: var(--teal); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { --b: var(--teal-tint); --f: var(--teal-hover); border-color: var(--teal-soft); }
.btn-quiet { --b: var(--teal-tint); --f: var(--teal-hover); border-color: transparent; box-shadow: none; }
.btn-quiet:hover { --b: var(--teal-soft); }
.btn-danger { --b: #fff; --f: var(--red); border-color: #F3C7C2; box-shadow: none; }
.btn-danger:hover { --b: var(--red-tint); --f: var(--red); }
.btn-white { --b: #fff; --f: var(--teal-hover); border-color: #fff; box-shadow: none; }
.btn-white:hover { --b: var(--teal-tint); --f: var(--teal-hover); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn[disabled] { color: var(--ink-3); cursor: default; text-decoration: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: inline-flex; flex: none; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav > a, .nav summary { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none; cursor: pointer; list-style: none; transition: background .2s var(--ease); }
.nav summary::-webkit-details-marker { display: none; }
.nav > a:hover, .nav summary:hover, .nav details[open] summary { background: var(--teal-tint); color: var(--teal-hover); }
.nav details { position: relative; }
.nav summary .icon { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav details[open] summary .icon { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: -12px; width: 640px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; animation: pop .28s var(--ease); }
.mega h4 { font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.mega a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.mega a:hover { background: var(--teal-tint); color: var(--teal-hover); }
.mega a .icon { color: var(--teal); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .text-link { color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none; }
.header-actions .text-link:hover { color: var(--teal); }
.menu-toggle { display: none; }
.mobile-cta { display: none; }

@media (max-width: 1020px) {
  .nav, .header-actions .text-link { display: none; }
  .site-header .wrap { justify-content: space-between; min-height: 66px; }
  .logo img { height: 38px; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
  .menu-toggle summary::-webkit-details-marker { display: none; }
  .menu-panel { position: fixed; inset: 66px 0 0 0; background: #fff; padding: 12px 20px 120px; overflow-y: auto; animation: pop .25s var(--ease); }
  .menu-panel h4 { margin: 18px 0 6px; font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
  .menu-panel a { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
  .menu-panel a .icon { color: var(--teal); }
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 39; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  body.has-mobile-cta { padding-bottom: 84px; }
}

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; background: var(--deep-teal); color: #CBEAE6; }
.site-footer a:not(.btn) { color: #E6F2F1; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--mint); }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; padding: 64px 0 40px; }
.footer-top h4 { color: #fff; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .925rem; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: .925rem; max-width: 30ch; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0 28px; font-size: .82rem; color: #A9C0C5; display: grid; gap: 10px; }
.footer-bottom .row-between { align-items: flex-start; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 18px; }
.label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.label .opt { font-weight: 400; color: var(--ink-3); }
.hint { font-size: .85rem; color: var(--ink-2); }
.error-text { font-size: .85rem; color: var(--red); display: flex; gap: 6px; align-items: center; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; font: inherit; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%235B6B73' d='M212.24 100.24l-80 80a6 6 0 0 1-8.48 0l-80-80a6 6 0 0 1 8.48-8.48L128 167.51l75.76-75.75a6 6 0 0 1 8.48 8.48Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.input:hover, .select:hover, .textarea:hover { border-color: #A9C4C0; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, .18); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(180, 35, 24, .08); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .925rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .field + .field { margin-top: 0; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
input[type=range] { width: 100%; accent-color: var(--teal); }

/* Choice tiles (radio/checkbox cards) */
.choices { display: grid; gap: 10px; }
.choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .choices-2, .choices-3 { grid-template-columns: 1fr; } .choices-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-weight: 500; transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease); }
.choice:hover { border-color: var(--teal-bright); background: #FBFEFD; }
.choice:active { transform: scale(.985); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .tick { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: all .2s var(--ease); flex: none; }
.choice .tick svg { width: 14px; height: 14px; opacity: 0; color: #fff; transition: opacity .2s; }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); box-shadow: 0 0 0 1px var(--teal) inset; }
.choice:has(input:checked) .tick { background: var(--teal); border-color: var(--teal); }
.choice:has(input:checked) .tick svg { opacity: 1; }
.choice:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--teal-bright) 70%, white); outline-offset: 2px; }
.choice-service { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 104px; }
.choice-service .svc-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; }
.choice-service .svc-icon svg { width: 24px; height: 24px; }
.choice-service .tick { position: absolute; top: 12px; right: 12px; }
.choice-service:has(input:checked) .svc-icon { background: #fff; }

/* ---------- surfaces ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card-lg { padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.panel { background: var(--teal-tint); border-radius: var(--radius); padding: 22px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.section { padding: 72px 0; }
.section-tint { background: var(--teal-tint); }
.page-head { padding: 40px 0 24px; }
.page-head p { color: var(--ink-2); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; background: var(--teal-tint); color: var(--ink); border: 1px solid var(--teal-soft); }
.alert .icon { color: var(--teal); margin-top: 2px; }
.alert-warn { background: var(--amber-tint); border-color: #F6DDB0; }
.alert-warn .icon { color: var(--amber); }
.alert-error { background: var(--red-tint); border-color: #F3C7C2; }
.alert-error .icon { color: var(--red); }
.alert p:last-child { margin-bottom: 0; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--teal-tint); color: var(--teal-hover); white-space: nowrap; }
.pill .icon { width: 14px; height: 14px; }
.pill-grey { background: #EEF2F3; color: var(--ink-2); }
.pill-amber { background: var(--amber-tint); color: var(--amber); }
.pill-red { background: var(--red-tint); color: var(--red); }
.pill-solid { background: var(--teal); color: #fff; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }

.empty { text-align: center; padding: 48px 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg-2); }
.empty .empty-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: #fff; color: var(--teal); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.empty .empty-icon svg { width: 28px; height: 28px; }
.empty h3 { margin-bottom: .3em; }
.empty p { color: var(--ink-2); max-width: 44ch; margin: 0 auto 1em; }

.skeleton { background: linear-gradient(90deg, #EEF3F2 0%, #F7FAF9 50%, #EEF3F2 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.dl { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; margin: 0; }
.dl dt, .dl dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.dl dt { color: var(--ink-2); }
.dl dd { color: var(--ink); font-weight: 500; }

/* ---------- quote funnel ---------- */
.funnel-page { background: linear-gradient(180deg, var(--teal-tint) 0%, #fff 70%); min-height: 100dvh; }
.funnel-wrap { max-width: 680px; margin: 0 auto; padding: 28px 20px 64px; }
.funnel-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.funnel-top { padding: 18px 28px 0; }
.progress { height: 6px; border-radius: 999px; background: var(--teal-tint); overflow: hidden; }
.progress > span { display: block; height: 100%; width: var(--p, 10%); background: linear-gradient(90deg, var(--teal), var(--teal-bright)); border-radius: inherit; transition: width .5s var(--ease); }
.progress-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: .8rem; color: var(--ink-2); }
.step { padding: 24px 28px 28px; }
.step[hidden] { display: none; }
.step.enter { animation: stepIn .45s var(--ease); }
.step.enter-back { animation: stepBack .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.step h2:focus { outline: none; }
.step h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin-bottom: .3em; }
.step .lede { font-size: 1rem; margin-bottom: 22px; }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.step-actions .btn:only-child { margin-left: auto; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 10px 4px; font: inherit; font-weight: 500; color: var(--ink-2); cursor: pointer; border-radius: 8px; }
.back-btn:hover { color: var(--ink); }
.trust-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: .85rem; color: var(--ink-2); }
.trust-strip span { display: inline-flex; align-items: center; gap: 6px; }
.trust-strip .icon { color: var(--teal); width: 16px; height: 16px; }
.summary-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--teal-tint); border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--teal-hover); margin-bottom: 14px; }
.summary-chip button { background: none; border: 0; color: var(--teal); font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 0; }

.otp { display: flex; gap: 10px; justify-content: flex-start; }
.otp input { width: 52px; height: 60px; text-align: center; font-size: 1.5rem; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 12px; font-family: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.otp input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, .18); }
@media (max-width: 420px) { .otp { gap: 6px; } .otp input { width: 44px; height: 54px; } }

.photo-drop { display: grid; place-items: center; gap: 6px; padding: 22px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-2); color: var(--ink-2); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.photo-drop:hover, .photo-drop.drag { border-color: var(--teal-bright); background: var(--teal-tint); }
.photo-drop .icon { width: 28px; height: 28px; color: var(--teal); }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.thumbs figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--teal-tint); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(31, 42, 48, .7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.thumbs button svg { width: 14px; height: 14px; }

.suggest { position: relative; }
.suggest-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px; margin: 0; list-style: none; max-height: 280px; overflow-y: auto; }
.suggest-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.suggest-list li[aria-selected="true"], .suggest-list li:hover { background: var(--teal-tint); }
.suggest-list li small { color: var(--ink-2); }

.done-hero { text-align: left; padding: 32px 28px 8px; }
.done-badge { width: 64px; height: 64px; border-radius: 20px; background: var(--teal); color: #fff; display: grid; place-items: center; margin-bottom: 18px; animation: popIn .6s var(--ease); }
.done-badge svg { width: 34px; height: 34px; }
@keyframes popIn { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: s; }
.timeline li { position: relative; padding: 0 0 18px 44px; }
.timeline li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-hover); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.timeline li::after { content: ''; position: absolute; left: 14.5px; top: 34px; bottom: 4px; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline strong { display: block; }

/* ---------- pros ---------- */
.pro-list { display: grid; gap: 14px; }
.pro-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
a.pro-card:hover { border-color: var(--teal-soft); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.pro-logo { width: 64px; height: 64px; border-radius: 16px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; overflow: hidden; letter-spacing: -.02em; }
.pro-logo img { width: 100%; height: 100%; object-fit: cover; }
.pro-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.pro-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .875rem; color: var(--ink-2); margin-bottom: 8px; }
.pro-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pro-meta .icon { width: 15px; height: 15px; }
.stars { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; }
.stars .icon { color: #E2A008; }
@media (max-width: 640px) { .pro-card { grid-template-columns: 52px 1fr; } .pro-card > :last-child { grid-column: 1 / -1; } .pro-logo { width: 52px; height: 52px; } }

.profile-head { display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center; padding: 36px 0 28px; }
.profile-head .pro-logo { width: 96px; height: 96px; border-radius: 24px; font-size: 1.8rem; }
@media (max-width: 760px) { .profile-head { grid-template-columns: 72px 1fr; } .profile-head .pro-logo { width: 72px; height: 72px; } .profile-head > :last-child { grid-column: 1 / -1; } }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.profile-grid aside { position: sticky; top: 96px; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } .profile-grid aside { position: static; } }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 140px; gap: 8px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--teal-tint); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--ink); text-decoration: none; background: #fff; }
.chip .icon { color: var(--teal); width: 18px; height: 18px; }
a.chip:hover { border-color: var(--teal-soft); background: var(--teal-tint); color: var(--teal-hover); }

.search-bar { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.search-bar .select, .search-bar .input { border-color: transparent; background-color: var(--bg-2); }
@media (max-width: 720px) { .search-bar { grid-template-columns: 1fr; } }

/* ---------- portal / admin shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; background: var(--bg-2); }
.shell-side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; background: #fff; border-right: 1px solid var(--line); }
.shell-side .logo img { height: 40px; margin: 4px 8px 22px; }
.shell-side a.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; transition: background .2s var(--ease), color .2s var(--ease); }
.shell-side a.nav-item:hover { background: var(--bg-2); color: var(--ink); }
.shell-side a.nav-item[aria-current="page"] { background: var(--teal-tint); color: var(--teal-hover); }
.shell-side a.nav-item .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--teal); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.shell-side .side-foot { margin-top: auto; padding: 12px; font-size: .82rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.shell-main { padding: 28px 36px 64px; min-width: 0; }
.shell-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.shell-head h1 { font-size: 1.75rem; margin: 0; }
.shell-head p { margin: 4px 0 0; color: var(--ink-2); }
.shell-tag { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--teal); margin: 0 12px 8px; }
.mobile-tabs { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .shell-side { display: none; }
  .shell-main { padding: 16px 16px 96px; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .mobile-top img { height: 34px; }
  .mobile-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mobile-tabs a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; font-size: .7rem; color: var(--ink-2); text-decoration: none; border-radius: 10px; }
  .mobile-tabs a[aria-current="page"] { color: var(--teal-hover); background: var(--teal-tint); }
  .mobile-tabs .icon { width: 22px; height: 22px; }
}
@media (min-width: 901px) { .mobile-top { display: none; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; gap: 10px; } .stats .stat { padding: 14px 16px; } .stats .stat-feature { grid-column: 1 / -1; } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .k { font-size: .82rem; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.stat .k .icon { color: var(--teal); width: 18px; height: 18px; }
.stat .v { font-size: 1.75rem; font-weight: 650; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.stat-feature { background: linear-gradient(135deg, var(--teal) 0%, #0E8F84 100%); color: #fff; border: 0; }
.stat-feature .k, .stat-feature .k .icon { color: #CFF5EE; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .925rem; }
.table th { text-align: left; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #FAFCFC; }
.table a.row-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.table a.row-link:hover { color: var(--teal); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); background: #fff; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs a .n { opacity: .7; margin-left: 4px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* Offer cards */
.offer { display: grid; gap: 14px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.offer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.offer-head h3 { margin: 0; font-size: 1.1rem; }
.offer-price { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.offer-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin: 0; }
.offer-facts div { padding: 10px 12px; background: var(--bg-2); border-radius: 10px; }
.offer-facts dt { font-size: .75rem; color: var(--ink-2); margin: 0; }
.offer-facts dd { margin: 2px 0 0; font-weight: 600; font-size: .925rem; }
.offer-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.countdown { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--amber); }
.countdown .icon { width: 16px; height: 16px; }

/* Candidate list (admin matching) */
.cand { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cand + .cand { margin-top: 8px; }
.cand.ineligible { background: var(--bg-2); }
.cand .cand-rank { width: 28px; height: 28px; border-radius: 8px; background: var(--teal-tint); color: var(--teal-hover); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.cand input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--teal); }

/* ---------- Australia map ---------- */
.au-map { position: relative; }
.au-map svg { width: 100%; height: auto; overflow: visible; }
.au-map .state { fill: #E2E8E7; stroke: #fff; stroke-width: 2; stroke-linejoin: round; cursor: pointer; transition: fill .3s var(--ease), transform .35s var(--ease), filter .35s var(--ease); transform-box: fill-box; transform-origin: center; outline: none; }
.au-map .state.live { fill: var(--teal); }
.au-map .state:hover, .au-map .state:focus-visible, .au-map .state.active { fill: #10A699; transform: translateY(-4px); filter: drop-shadow(0 10px 14px rgba(11, 80, 76, .28)); }
.au-map .state:not(.live):hover, .au-map .state:not(.live):focus-visible, .au-map .state:not(.live).active { fill: #9FDCD3; }
.au-map .state-label { font: 600 15px var(--font); fill: var(--ink-2); pointer-events: none; letter-spacing: .02em; }
.au-map .state-label.on-live { fill: #fff; }
.au-map .live-dot { fill: var(--mint); }
.au-map .act-callout { stroke: var(--deep-teal); stroke-width: 1.2; fill: none; }
.map-card { position: absolute; z-index: 3; min-width: 220px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); pointer-events: auto; transform: translate(-50%, calc(-100% - 14px)); animation: mapPop .3s var(--ease); }
@keyframes mapPop { from { opacity: 0; transform: translate(-50%, calc(-100% - 4px)); } to { opacity: 1; transform: translate(-50%, calc(-100% - 14px)); } }
.map-card h4 { margin: 0 0 2px; font-size: 1rem; }
.map-card p { margin: 0 0 10px; font-size: .85rem; color: var(--ink-2); }
.map-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.map-list a { font-size: .85rem; }

/* ---------- preview homepage ---------- */
.hero { position: relative; overflow: hidden; background: var(--teal-tint); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; min-height: min(720px, calc(100dvh - 76px)); padding: 56px 0; }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); background: linear-gradient(160deg, #CDEDE8, #9FD8CF); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-float { position: absolute; left: -28px; bottom: 36px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
.hero-float .pro-logo { width: 44px; height: 44px; border-radius: 12px; font-size: .95rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 36px 0 48px; gap: 28px; } .hero-photo { aspect-ratio: 16 / 11; border-radius: 24px; } .hero-float { left: 12px; bottom: 12px; } }
.quick-quote { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 8px; padding: 8px; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-width: 620px; }
.quick-quote .select, .quick-quote .input { border: 0; background-color: var(--bg-2); min-height: 52px; }
.quick-quote .btn { min-height: 52px; }
@media (max-width: 640px) { .quick-quote { grid-template-columns: 1fr; } }
.trust-line { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: .9rem; color: var(--ink-2); }
.trust-line span { display: inline-flex; align-items: center; gap: 6px; }
.trust-line .icon { color: var(--teal); }

.svc-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.svc-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: #fff; background: var(--teal); isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.svc-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: #fff; }
.svc-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.svc-tile:hover img { transform: scale(1.05); }
.svc-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 48, 46, 0) 35%, rgba(6, 48, 46, .72) 100%); }
.svc-tile .svc-icon { position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .9); color: var(--teal); display: grid; place-items: center; }
.svc-tile .svc-icon svg { width: 22px; height: 22px; }
.svc-tile h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.svc-tile p { margin: 2px 0 0; font-size: .85rem; opacity: .85; }
.svc-tile.big { grid-column: span 2; grid-row: span 2; }
.svc-tile.big h3 { font-size: 1.6rem; }
.svc-tile.wide { grid-column: span 2; }
@media (max-width: 900px) { .svc-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; } .svc-tile.big { grid-row: span 1; } }
@media (max-width: 520px) { .svc-bento { grid-template-columns: 1fr; } .svc-tile.big, .svc-tile.wide { grid-column: span 1; } }
.svc-group-label { display: inline-block; position: absolute; top: 18px; right: 16px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }

.steps-zig { display: grid; gap: 20px; }
.step-row { display: grid; grid-template-columns: 80px 1fr; gap: 20px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.step-row .n { font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; color: var(--teal-bright); line-height: 1; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.why-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.why-grid .card { display: grid; gap: 10px; align-content: start; }
.why-grid .card:first-child { grid-row: span 2; background: var(--deep-teal); color: #D8F1EE; border: 0; }
.why-grid .card:first-child h3 { color: #fff; font-size: 1.5rem; }
.why-grid .why-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; }
.why-grid .card:first-child .why-icon { background: rgba(153, 246, 228, .14); color: var(--mint); }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } .why-grid .card:first-child { grid-row: auto; } }
.biz-band { border-radius: 32px; background: var(--teal); color: #DFF6F2; padding: 48px; display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.biz-band h2 { color: #fff; margin: 0 0 .3em; }
.biz-band::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(153, 246, 228, .35), transparent 70%); }
@media (max-width: 760px) { .biz-band { grid-template-columns: 1fr; padding: 32px 24px; } }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .3s var(--ease); color: var(--teal); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 16px; max-width: 70ch; }
.preview-ribbon { background: var(--deep-teal); color: #D8F1EE; font-size: .82rem; text-align: center; padding: 8px 16px; }
.preview-ribbon a { color: var(--mint); }

/* reveal on scroll (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* stepper (business onboarding) */
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: st; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--ink-3); font-weight: 500; }
.stepper li::before { counter-increment: st; content: counter(st); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #EEF2F3; color: var(--ink-2); font-size: .8rem; font-weight: 700; }
.stepper li + li::after { content: none; }
.stepper li.done::before { content: '✓'; background: var(--teal-soft); color: var(--teal-hover); }
.stepper li.current { color: var(--ink); }
.stepper li.current::before { background: var(--teal); color: #fff; }
.stepper li:not(:last-child) { padding-right: 10px; border-right: 1px solid var(--line); }
.auth-wrap { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--deep-teal); color: #CBEAE6; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); max-width: 16ch; }
.auth-side::after { content: ''; position: absolute; width: 520px; height: 520px; right: -200px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(20, 184, 166, .35), transparent 70%); }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; }
.auth-side li .icon { color: var(--mint); margin-top: 3px; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photo-grid figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--teal-tint); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid form { position: absolute; top: 6px; right: 6px; }
.photo-grid button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(31, 42, 48, .72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.photo-grid button svg { width: 15px; height: 15px; }
.lead-card { display: grid; gap: 14px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-row { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb-row { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-row a { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--teal-tint); display: block; }
.thumb-row img { width: 100%; height: 100%; object-fit: cover; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form .select { min-height: 40px; padding-top: 6px; padding-bottom: 6px; width: auto; }

/* ---------- commission: the won price field and statements ---------- */
.won-field { display: none; align-items: center; gap: 6px; }
.won-field .input { width: 150px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.inline-form:has(option[value="won"]:checked) .won-field, .won-field.is-won { display: flex; }
@supports not selector(:has(*)) { .won-field { display: flex; } }
.deal-note { font-size: .85rem; color: var(--ink-2); }
.statement { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; max-width: 880px; }
.statement-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.statement-head h1 { font-size: 1.6rem; margin: 0 0 6px; }
.statement-head p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.statement-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; font-size: .92rem; }
.statement-parties h4 { margin: 0 0 4px; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.statement-totals { margin: 18px 0 0 auto; max-width: 320px; }
.statement-totals div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.statement-totals .grand { font-weight: 700; font-size: 1.1rem; }
.statement-pay { margin-top: 24px; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); font-size: .92rem; white-space: pre-line; }
@media (max-width: 640px) { .statement { padding: 20px; } .statement-parties { grid-template-columns: 1fr; } }
@media print {
  .shell { display: block; background: #fff; }
  .shell-side, .mobile-top, .mobile-tabs, .no-print { display: none !important; }
  .shell-main { padding: 0; }
  .statement { border: 0; padding: 0; max-width: none; }
}

/* In-page links (e.g. /terms#business) land below the floating nav. */
.prose [id] { scroll-margin-top: 112px; }
