/* Mackay audience landing pages — shared styles (loads after /style.css) */
html { scroll-behavior: smooth; }
.mk-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.mk-section { padding: 64px 0; }
.mk-section.alt { background: var(--turq-foam); }
.mk-lead { font-size: 1.05rem; color: var(--text-mid); max-width: 640px; line-height: 1.7; }
.mk-center { text-align: center; }
.mk-center .mk-lead { margin-left: auto; margin-right: auto; }

/* ── hero: copy left, vertical video right ─────────────────────────────── */
.mk-hero { position: relative; color: #fff; overflow: hidden; background: #0b4a56;
  background-image: radial-gradient(ellipse at 80% 0%, rgba(61,214,232,.28) 0%, rgba(61,214,232,0) 55%), radial-gradient(ellipse at 0% 100%, rgba(212,168,75,.22) 0%, rgba(212,168,75,0) 50%), linear-gradient(160deg, #0d5b69 0%, #0b4a56 55%, #07343e 100%); }
.mk-hero-in { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: calc(var(--nav-h) + 48px) 20px 56px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.mk-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); padding: 7px 16px; border-radius: 50px; margin-bottom: 18px; backdrop-filter: blur(6px); }
.mk-hero h1 { font-family: var(--font-serif); font-size: clamp(2.3rem, 6vw, 3.8rem); line-height: 1.08; font-weight: 400; margin-bottom: 16px; max-width: 560px; text-wrap: balance; }
.mk-hero h1 em { font-style: italic; color: var(--turq-pale); }
.mk-hero p { font-size: 1.1rem; max-width: 540px; line-height: 1.6; margin-bottom: 26px; color: rgba(255,255,255,.92); }
.mk-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.mk-btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; border-radius: var(--radius-pill); font-weight: 700; font-size: .95rem; letter-spacing: .04em; text-decoration: none; border: 2px solid transparent; transition: transform var(--transition), box-shadow var(--transition); }
.mk-btn:hover { transform: translateY(-2px); }
.mk-btn.primary { background: linear-gradient(135deg, var(--turq-mid), var(--turq-deep)); color: #fff; box-shadow: 0 8px 24px rgba(19,168,188,.4); }
.mk-btn.ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(6px); }
.mk-btn.dark { background: var(--turq-deep); color: #fff; }
.mk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px 18px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); }
.mk-facts div { font-size: .82rem; color: rgba(255,255,255,.8); }
.mk-facts strong { display: block; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; color: #fff; line-height: 1.1; }

/* the ad plays inside a phone-shaped frame; the file is a silent 9:16 loop */
/* width is also derived from the viewport height so the 9:16 frame never squashes on short laptop screens */
.mk-phone { position: relative; justify-self: center; width: min(100%, 360px, calc(76vh * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; background: #07343e; box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 8px rgba(255,255,255,.08), 0 0 0 9px rgba(255,255,255,.22); }
.mk-phone video, .mk-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.mk-phone .mk-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--turq-deep); font-size: 1.6rem; display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.mk-phone.paused .mk-play { display: flex; }

/* ── cards ─────────────────────────────────────────────────────────────── */
.mk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 30px; }
.mk-card { background: #fff; border-radius: var(--radius-md); padding: 24px 22px; box-shadow: var(--shadow-sm); border: 1px solid rgba(19,168,188,.12); }
.mk-card .ic { font-size: 1.7rem; margin-bottom: 10px; }
.mk-card h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 400; color: var(--timber-dark); margin-bottom: 8px; }
.mk-card p { font-size: .95rem; color: var(--text-mid); line-height: 1.6; }

/* ── numbered steps ────────────────────────────────────────────────────── */
.mk-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 30px; counter-reset: step; }
.mk-step { background: #fff; border-radius: var(--radius-md); padding: 26px 22px 24px; box-shadow: var(--shadow-sm); border: 1px solid rgba(19,168,188,.12); position: relative; }
.mk-step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--turq-mid), var(--turq-deep)); margin-bottom: 12px; }
.mk-step h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 400; color: var(--timber-dark); margin-bottom: 8px; }
.mk-step p { font-size: .95rem; color: var(--text-mid); line-height: 1.6; }

/* ── two-up with image ─────────────────────────────────────────────────── */
.mk-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.mk-two.flip > :first-child { order: 2; }
.mk-two img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block; }
.mk-callout { display: inline-block; margin-top: 14px; padding: 12px 20px; background: var(--sand-pale); border: 1px solid rgba(212,168,75,.55); border-radius: var(--radius-pill); color: #7a5a10; font-weight: 700; }
.mk-list { margin: 18px 0 0; padding: 0; list-style: none; }
.mk-list li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--text-mid); line-height: 1.6; }
.mk-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--turq-foam); color: var(--turq-deep); font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ── grant calculator (first-home-owner page) ───────────────────────────── */
.mk-calc { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 28px 24px; max-width: 640px; margin-top: 28px; border: 1px solid rgba(19,168,188,.15); }
.mk-calc fieldset { border: 0; margin-bottom: 18px; }
.mk-calc legend { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); margin-bottom: 8px; }
.mk-seg { display: inline-flex; border: 1px solid rgba(19,168,188,.4); border-radius: 50px; overflow: hidden; }
.mk-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mk-seg label { padding: 11px 26px; cursor: pointer; font-weight: 600; color: var(--turq-deep); background: #fff; }
.mk-seg input:checked + label { background: var(--turq-deep); color: #fff; }
.mk-seg input:focus-visible + label { outline: 3px solid var(--turq-bright); outline-offset: -3px; }
.mk-money { position: relative; }
.mk-money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-light); pointer-events: none; }
.mk-money input { padding-left: 28px; }
.mk-result { margin-top: 18px; padding: 18px; border-radius: var(--radius-sm); font-size: 1rem; line-height: 1.55; background: var(--turq-foam); border: 1px solid rgba(19,168,188,.25); color: #0a5f6e; min-height: 3.6em; }
.mk-result strong { font-size: 1.15rem; display: block; margin-bottom: 4px; }
.mk-result.good { background: #e9f8f1; border-color: rgba(26,158,132,.4); color: #11694f; }
.mk-result.warn { background: var(--sand-pale); border-color: rgba(212,168,75,.5); color: #7a5a10; }
.mk-disc { font-size: .8rem; color: var(--text-light); margin-top: 12px; line-height: 1.5; }

/* ── agent card ────────────────────────────────────────────────────────── */
.mk-agent { display: flex; align-items: center; gap: 22px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid rgba(19,168,188,.15); padding: 22px 26px; max-width: 760px; margin: 0 auto; }
.mk-agent img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 6px 18px rgba(7,52,62,.18); }
.mk-agent .who { flex: 1; min-width: 0; }
.mk-agent .lbl { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--turq-deep); margin-bottom: 4px; }
.mk-agent h3 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400; color: var(--timber-dark); line-height: 1.1; margin: 0 0 2px; }
.mk-agent .role { font-size: .9rem; color: var(--text-mid); margin-bottom: 12px; }
.mk-agent .line { font-size: .95rem; color: var(--text-mid); margin: 2px 0; }
.mk-agent .line a { color: var(--turq-deep); font-weight: 700; text-decoration: none; }
.mk-agent .line a.big { font-size: 1.25rem; }
.mk-agent .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mk-agent .acts .mk-btn { padding: 12px 20px; font-size: .9rem; }
.mk-agent .acts .mk-btn.ghost { color: var(--turq-deep); border-color: rgba(19,168,188,.5); background: #fff; }
.mk-agent.compact { margin-top: 22px; padding: 18px 20px; max-width: 680px; }
.mk-agent.compact img { width: 84px; height: 84px; }
.mk-agent.compact h3 { font-size: 1.3rem; }
.mk-callbar { display: none; }

/* ── form ──────────────────────────────────────────────────────────────── */
.mk-formwrap { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 30px 24px; max-width: 680px; margin: 28px auto 0; border: 1px solid rgba(19,168,188,.15); }
.mk-formwrap .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mk-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; }
.mk-check input { margin-top: 4px; }
.mk-check label { font-size: .95rem; color: var(--text-mid); line-height: 1.5; }
.mk-res { display: none; text-align: center; font-size: 14px; padding: 16px; border-radius: var(--radius-sm); margin-top: 16px; }
.mk-res.success { background: rgba(19,168,188,.08); color: var(--turq-deep); border: 1px solid rgba(19,168,188,.2); }
.mk-res.error { background: rgba(232,124,90,.08); color: var(--sunset-coral); border: 1px solid rgba(232,124,90,.25); }
.mk-note { margin-top: 14px; font-size: .8rem; color: var(--text-light); text-align: center; line-height: 1.5; }
.mk-fine { font-size: .82rem; color: var(--text-light); line-height: 1.55; max-width: 760px; margin: 22px auto 0; }

/* ── mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .mk-hero-in { grid-template-columns: 1fr; gap: 30px; padding-top: calc(var(--nav-h) + 28px); padding-bottom: 44px; }
  .mk-phone { width: min(100%, 300px, calc(66vh * 9 / 16)); }
}
@media (max-width: 760px) {
  .mk-section { padding: 48px 0; }
  .mk-two, .mk-two.flip { grid-template-columns: 1fr; }
  .mk-two.flip > :first-child { order: 0; }
  .mk-btn { width: 100%; }
  .mk-formwrap .form-row { grid-template-columns: 1fr; }
  .mk-calc, .mk-formwrap { padding: 24px 18px; }
  .mk-agent { flex-direction: column; text-align: center; padding: 22px 18px; }
  .mk-agent .acts { justify-content: center; }
  .mk-agent .acts .mk-btn { width: auto; }
  .mk-callbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: var(--radius-pill); background: linear-gradient(135deg, var(--turq-mid), var(--turq-deep)); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 28px rgba(7,52,62,.35); }
  .mk-callbar small { font-weight: 500; opacity: .9; }
  body { padding-bottom: 70px; }
}

/* partnership line (approved for public use 2026-10-28) */
.mk-partner { margin-top: 14px; font-size: .95rem; color: var(--text-mid); }
.mk-partner strong { color: var(--turq-deep); }

/* breadcrumbs (hero) */
.mk-crumbs { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 16px; }
.mk-crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.mk-crumbs a:hover { border-bottom-color: #fff; }
.mk-crumbs span { margin: 0 8px; opacity: .55; }
.mk-crumbs span[aria-current] { margin: 0; opacity: 1; color: var(--turq-pale); }

/* /mackay/ hub */
.mk-photo { justify-self: center; width: min(100%, 420px); aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.4), 0 0 0 8px rgba(255,255,255,.08); }
.mk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-auds { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 30px; }
.mk-aud { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(19,168,188,.12); text-decoration: none; transition: transform var(--transition), box-shadow var(--transition); }
.mk-aud:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mk-aud img { width: 100%; height: auto; min-height: 0; flex: none; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: #0b4a56; }
.mk-aud-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.mk-aud-tag { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--turq-deep); }
.mk-aud strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.3rem; line-height: 1.2; color: var(--timber-dark); }
.mk-aud-body > span:not(.mk-aud-tag) { font-size: .93rem; line-height: 1.6; color: var(--text-mid); }
.mk-aud em { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 700; font-size: .9rem; color: var(--turq-deep); }
@media (max-width: 860px) { .mk-photo { width: min(100%, 340px); } }
