/* dibz.ca — shared styles for the home page and the legal/support pages.
   Colours follow the app (src/theme/colors.ts): navy primary, emerald accent. */
:root {
  --navy: #0a192f;
  --navy-2: #102a4a;
  --accent: #059669;
  --accent-bright: #34d399;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #0a192f;
  --muted: #5b6b80;
  --line: #e3e7ee;
  --chip: #eef7f3;
  --chip-text: #047857;
  --shadow: 0 1px 2px rgba(10, 25, 47, .06), 0 12px 32px rgba(10, 25, 47, .08);
  --radius: 22px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07111f; --card: #0f1c30; --text: #eef2f7; --muted: #9fb0c6; --line: #1d2e47;
    --chip: #0f2e27; --chip-text: #6ee7b7; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
    --accent: #10b981; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07111f; --card: #0f1c30; --text: #eef2f7; --muted: #9fb0c6; --line: #1d2e47;
  --chip: #0f2e27; --chip-text: #6ee7b7; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
  --accent: #10b981; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--navy) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: rgba(255,255,255,.78); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; font: 600 16px/1 var(--font); padding: 14px 22px; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-accent { background: var(--accent-bright); color: var(--navy); }
.btn-accent:hover { background: #6ee7b7; }
.btn-small { padding: 10px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); margin-right: -14px; opacity: .9; }
.btn-ghost:hover { opacity: 1; box-shadow: inset 0 0 0 1.5px #fff; }
@media (max-width: 820px) { .nav .btn-ghost { margin-right: -18px; } .nav .btn-ghost + .btn { margin-left: 0; } }
@media (max-width: 820px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 85% 10%, #134e4a 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-bright); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 25%, transparent); }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); font-weight: 800; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: rgba(255,255,255,.8); max-width: 34em; }
.hero-media { position: relative; }
/* The hero phone is a cut-out: it floats on the page with a glow behind it. */
.hero-media::before { content: ""; position: absolute; left: 50%; top: 50%; width: 90%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(20,184,166,.35), rgba(20,184,166,0)); pointer-events: none; }
.hero-media img.hero-shot { position: relative; display: block; width: auto; height: min(900px, calc(100vh - 80px), 75vw); height: min(900px, calc(100svh - 80px), 75vw);
  min-height: 560px; max-width: none; margin: 0 auto; border-radius: 0; box-shadow: none; aspect-ratio: auto; object-fit: contain;
  filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)); }
.hero-media img { width: auto; height: min(880px, calc(100vh - 90px), 62vw); height: min(880px, calc(100svh - 90px), 62vw); min-height: 520px; max-width: 100%; margin-left: auto; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.45); aspect-ratio: 3 / 4; object-fit: cover; }
.soon { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.7); align-items: center; }
.soon span.pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 7px 12px; color: #fff; font-weight: 600; }
.soon svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 48px; gap: 36px; }
  .hero-media { width: 100%; max-width: 640px; margin: 0 auto; }
  .hero-media img { height: auto; min-height: 0; width: 100%; }
  .hero-media img.hero-shot { width: min(84%, 460px); height: auto; min-height: 0; }
}

/* Waitlist form */
.waitlist { margin-top: 30px; max-width: 520px; }
.waitlist .row { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.waitlist input[type=email] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 17px var(--font); padding: 0 16px; color: var(--navy); }
.waitlist input[type=email]::placeholder { color: #8391a5; }
.waitlist .opts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.78); }
.waitlist fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.waitlist legend { float: left; margin-right: 4px; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); cursor: pointer; font-weight: 600; }
.seg input:checked + span { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--navy); }
.seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.waitlist .msg { min-height: 24px; margin-top: 12px; font-size: 15px; font-weight: 600; }
.waitlist .msg.ok { color: var(--accent-bright); }
.waitlist .msg.err { color: #fca5a5; }
.waitlist .fine { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 4px; }
.waitlist .fine a { color: rgba(255,255,255,.8); text-decoration: underline; }
@media (max-width: 480px) {
  .waitlist .row { flex-direction: column; border-radius: 20px; padding: 8px; }
  .waitlist input[type=email] { padding: 12px 10px; }
}

/* Stats */
.stats { background: var(--card); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 30px; padding-bottom: 30px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }
.head { max-width: 760px; margin-bottom: 48px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.head h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; margin-top: 10px; }
.head p { color: var(--muted); font-size: 19px; margin-top: 14px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip .media { order: 2; }
.feature .media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.feature h3 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 10px 0 14px; }
.feature .intro { color: var(--muted); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; margin-top: 1px; }
.ticks b { display: block; font-weight: 700; }
.ticks span { color: var(--muted); font-size: 16px; }
.tag { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--chip-text); background: var(--chip); border-radius: 6px; padding: 2px 7px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .media { order: 0; }
  .feature + .feature { margin-top: 80px; }
}

/* Renters band */
.band { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.band .head p { color: rgba(255,255,255,.75); }
.band .kicker { color: var(--accent-bright); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.band .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--chip); color: var(--accent); margin-bottom: 16px; }
.band .card .ic { background: rgba(52,211,153,.14); color: var(--accent-bright); }
.card .ic svg { width: 22px; height: 22px; }
.card h4 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 16px; }
.band .card p { color: rgba(255,255,255,.72); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Catalogue */
.cat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.group h3 { font-size: 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.group h3 small { font: 600 13px var(--font); color: var(--muted); letter-spacing: 0; margin-left: auto; }
.group dl { margin: 0; display: grid; gap: 14px; }
.group dt { font-weight: 700; }
.group dd { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; }
.legend { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-size: 15px; margin-top: -24px; margin-bottom: 36px; }
@media (max-width: 860px) { .cat { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; }

/* CTA */
.cta { background: radial-gradient(900px 400px at 50% 0%, #134e4a 0%, transparent 70%), var(--navy); color: #fff; text-align: center; }
.cta h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.cta p.sub { color: rgba(255,255,255,.75); font-size: 19px; margin: 14px auto 0; max-width: 34em; }
.cta .waitlist { margin: 30px auto 0; text-align: left; }
.cta .opts { justify-content: center; }

/* Footer */
footer { background: #06101d; color: rgba(255,255,255,.62); font-size: 14px; padding: 48px 0; }
footer .top { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: rgba(255,255,255,.85); }
footer .legal { margin-top: 28px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; line-height: 1.6; font-size: 13px; }
footer .legal p + p { margin-top: 8px; }
footer .legal .brokerage { font-size: 14px; color: rgba(255,255,255,.85); }
footer .legal .brokerage strong { color: #fff; font-weight: 700; }
/* City links and the company column (site-common.mjs footerHtml) */
footer .foot-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.6fr) minmax(0, 1.6fr) minmax(0, .85fr) minmax(0, .5fr); gap: 28px; margin-top: 36px; }
/* Mortgage + Dibz: one link per line beside the city columns */
footer .foot-cols .foot-mortgage ul, footer .foot-cols nav:last-child ul { grid-template-columns: minmax(0, 1fr); }
footer .foot-cols nav { display: block; }
footer .foot-cols h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 14px; line-height: 1.3; }
footer .foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 20px; }
footer .foot-cols a { color: rgba(255,255,255,.78); }
footer .foot-cols a:hover { color: #fff; }
footer .foot-cols .more { display: inline-block; margin-top: 14px; color: var(--accent-bright); font-weight: 600; }
footer a:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 1180px) { footer .foot-cols { grid-template-columns: 1fr 1fr 1fr; gap: 32px 40px; } footer .foot-cols .foot-mortgage { grid-column: span 2; } footer .foot-cols .foot-mortgage ul, footer .foot-cols nav:last-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { footer .foot-cols { grid-template-columns: 1fr 1fr; } footer .foot-cols .foot-mortgage { grid-column: 1 / -1; } footer .foot-cols nav:last-child { grid-column: 1 / -1; } footer .foot-cols nav:last-child ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { footer .foot-cols { grid-template-columns: 1fr; } footer .foot-cols nav:last-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Document pages (privacy, terms, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 88px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); font-weight: 800; }
.doc .updated { color: var(--muted); margin-top: 10px; font-size: 15px; }
.doc .intro { font-size: 19px; margin-top: 22px; }
.doc h2 { font-size: 22px; margin: 38px 0 10px; letter-spacing: -.01em; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li + li { margin-top: 8px; }
.doc .box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-top: 24px; }

/* Journey chapters with live demos (demo.css styles the demos themselves). */
.chapter.alt { background: color-mix(in srgb, var(--card) 60%, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chapter .head { margin-bottom: 20px; }
.chapter .feature { margin-top: 12px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 4px auto 0; max-width: 860px; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 14px; color: var(--muted); }
.chips li .tag { margin-left: 4px; }

/* Back to top. */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--text); box-shadow: var(--shadow); cursor: pointer;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); color: var(--accent-bright); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* All features: an app icon beside each one. */
.group dl > div { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; align-items: start; }
.group dl > div > dt, .group dl > div > dd { grid-column: 2; }
.group .fi { grid-row: 1 / span 2; width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--chip); color: var(--chip-text); margin-top: 1px; }

/* The app icon, resting on the hero photo's bottom-right corner. */
.hero-media .app-icon { position: absolute; right: -64px; bottom: 7%; width: 128px; height: 128px; min-height: 0; aspect-ratio: 1; margin: 0;
  border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 44px rgba(0,0,0,.5); }
@media (max-width: 900px) { .hero-media .app-icon { width: 88px; height: 88px; right: 2%; bottom: 4%; } }

/* Feature rows: phone cut-outs floating on the page, like the hero. */
.feature .media:has(.phone-cut) { position: relative; display: grid; place-items: center; }
.feature .media:has(.phone-cut)::before { content: ""; position: absolute; left: 50%; top: 50%; width: 85%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(20,184,166,.28), rgba(20,184,166,0)); pointer-events: none; }
.feature .media img.phone-cut { position: relative; width: auto; height: min(720px, calc(100svh - 120px)); min-height: 520px; max-width: 100%;
  object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 34px 44px rgba(0,0,0,.5)); }
@media (max-width: 900px) { .feature .media img.phone-cut { height: min(560px, 72svh); min-height: 0; width: auto; } }

/* "And many more features": a row of front-facing iPhones, top half only. */
.more { padding-bottom: 40px; }
.more-wrap { position: relative; }
.more-rail { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 10px max(20px, calc((100vw - var(--max)) / 2 + 20px)) 24px; scroll-padding-inline: max(20px, calc((100vw - var(--max)) / 2 + 20px)); outline: none; }
.more-rail::-webkit-scrollbar { display: none; }
.mphone { flex: 0 0 auto; width: 340px; margin: 0; scroll-snap-align: start; }
.mphone .frame { position: relative; padding: 4px 4px 0; border-radius: 56px 56px 0 0;
  background: linear-gradient(135deg, #f3f3f5 0%, #b9babf 35%, #e6e6ea 60%, #9fa0a5 100%);
  -webkit-mask-image: linear-gradient(#000 90%, transparent); mask-image: linear-gradient(#000 90%, transparent); }
.mphone .frame::before, .mphone .frame::after { content: ""; position: absolute; top: 160px; width: 2px; border-radius: 2px; background: #a7a8ad; }
.mphone .frame::before { left: -2px; height: 58px; box-shadow: 0 80px 0 #a7a8ad; }
.mphone .frame::after { right: -2px; height: 92px; top: 200px; }
.mphone .bezel { background: #050506; padding: 5px 5px 0; border-radius: 52px 52px 0 0; }
.mphone img { display: block; width: 100%; height: auto; aspect-ratio: 1320 / 2440; border-radius: 47px 47px 0 0; }
.mphone figcaption { margin-top: 12px; text-align: center; font-weight: 600; font-size: 16px; color: var(--text); }
.more-nav { position: absolute; top: 45%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--text); box-shadow: var(--shadow); cursor: pointer; transition: opacity .2s; }
.more-nav:hover { border-color: var(--accent); }
.more-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.more-nav.prev { left: max(12px, calc((100vw - var(--max)) / 2 - 30px)); }
.more-nav.next { right: max(12px, calc((100vw - var(--max)) / 2 - 30px)); }
.more-nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .more-nav { display: none; } .mphone { width: min(78vw, 330px); } .more-rail { gap: 18px; } }

/* Renters: the Type menu on a front-facing phone beside the cards. */
.rent-split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; }
.rent-split .cards { grid-template-columns: 1fr 1fr; }
.rent-split .media { position: relative; display: grid; place-items: center; }
.rent-split .media::before { content: ""; position: absolute; left: 50%; top: 50%; width: 110%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(20,184,166,.28), rgba(20,184,166,0)); pointer-events: none; }
.rent-split img.phone-cut { position: relative; display: block; width: auto; height: min(940px, calc(100svh + 40px)); min-height: 640px; max-width: 100%;
  filter: drop-shadow(0 34px 44px rgba(0,0,0,.5));
  /* The Type menu is the point: the lower half fades into the page. */
  -webkit-mask-image: linear-gradient(#000 52%, transparent 86%); mask-image: linear-gradient(#000 52%, transparent 86%);
  margin-bottom: -22%; }
.rent-split { align-items: start; }
@media (max-width: 1000px) {
  .rent-split { grid-template-columns: 1fr; justify-items: center; gap: 36px; }
  .rent-split img.phone-cut { width: min(100%, 440px); height: auto; min-height: 0; }
}
@media (max-width: 560px) { .rent-split .cards { grid-template-columns: 1fr; } }

/* Mouse drag on the more-features row. */
@media (hover: hover) and (pointer: fine) { .more-rail { cursor: grab; } }
.more-rail.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.more-rail img { -webkit-user-drag: none; user-select: none; }

/* Phones: every feature reads title → phone → details. The text column's
   children join the row's grid so the heading can sit above the image. */
@media (max-width: 900px) {
  .feature { gap: 0; }
  .feature > div:not(.media) { display: contents; }
  .feature h3 { order: 0; margin: 0 0 22px; text-align: center; }
  .feature .media, .feature.flip .media { order: 1; margin-bottom: 26px; }
  .feature > div:not(.media) > :not(h3) { order: 2; }
}

/* ---- Small touches of life (all switched off by prefers-reduced-motion). ---- */
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -6px; rotate: -2deg; } }
@keyframes breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -8deg; } 60% { rotate: 6deg; } }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

/* Scroll progress along the top of the nav. */
.nav::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, var(--accent-bright), #22d3ee); pointer-events: none; }

/* Hero: the phone floats and leans toward the pointer; the icon bobs. */
.hero-media img.hero-shot { animation: floaty 7s ease-in-out infinite; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hero-media img.hero-shot.tilting { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.hero-media .app-icon { animation: bob 6s ease-in-out -2s infinite; transition: transform .3s; }
@media (hover: hover) and (pointer: fine) { .hero-media .app-icon:hover { animation: wiggle .6s ease-in-out; transform: scale(1.06); } }
.hero-media::before, .feature .media:has(.phone-cut)::before, .rent-split .media::before { animation: breathe 6s ease-in-out infinite; }
.hero h1 em { background: linear-gradient(90deg, var(--accent-bright), #5eead4, #a7f3d0, var(--accent-bright)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }

/* Feature phones drift a little with the scroll (--py from site.js) and lift on hover. */
.feature .media img.phone-cut, .rent-split img.phone-cut { translate: 0 var(--py, 0px); }

/* Buttons lift; the green ones get a passing sheen. */
.btn { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, background-color .2s; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: translateY(0) scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn-accent:hover { box-shadow: 0 10px 26px rgba(52, 211, 153, .35); } }
.btn-accent::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .btn-accent:hover::after { transform: translateX(120%); transition: transform .7s ease; } }

/* Nav links: a line grows underneath. */
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent-bright);
  transform: scaleX(0); transition: transform .25s ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover::after { transform: scaleX(1); } }

/* Cards, chips and feature list items respond to the pointer. */
.card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent-bright) 45%, transparent); box-shadow: 0 16px 36px rgba(0,0,0,.25); } }
.card .ic { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
@media (hover: hover) and (pointer: fine) { .card:hover .ic { transform: rotate(-8deg) scale(1.08); } }
.chips li { transition: transform .2s ease, border-color .2s ease, color .2s ease; }
@media (hover: hover) and (pointer: fine) { .chips li:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); } }
.group dl > div .fi { transition: transform .3s cubic-bezier(.3,1.6,.5,1), background-color .2s; }
@media (hover: hover) and (pointer: fine) { .group dl > div:hover .fi { transform: translateY(-2px) rotate(-6deg); } }
.group { transition: border-color .25s ease; }
@media (hover: hover) and (pointer: fine) { .group:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); } }

/* Staggered entrances: tick lists and card grids arrive one item at a time. */
.feature.reveal .ticks li { opacity: 0; transform: translateX(-10px); transition: opacity .5s ease, transform .5s ease; }
.feature.reveal.in .ticks li { opacity: 1; transform: none; }
.feature.reveal.in .ticks li:nth-child(1) { transition-delay: .25s; }
.feature.reveal.in .ticks li:nth-child(2) { transition-delay: .35s; }
.feature.reveal.in .ticks li:nth-child(3) { transition-delay: .45s; }
.feature.reveal.in .ticks li:nth-child(4) { transition-delay: .55s; }
.cards .card.reveal:nth-child(2) { transition-delay: .06s; }
.cards .card.reveal:nth-child(3) { transition-delay: .12s; }
.cards .card.reveal:nth-child(4) { transition-delay: .18s; }
.cards .card.reveal:nth-child(5) { transition-delay: .24s; }
.cards .card.reveal:nth-child(6) { transition-delay: .3s; }
.no-js .feature.reveal .ticks li { opacity: 1; transform: none; }

/* More-features phones lift toward you. */
.mphone .frame { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) and (pointer: fine) { .mphone:hover .frame { transform: translateY(-8px); } }
.more-rail.dragging .mphone .frame { transform: none; }

/* FAQ answers ease in; the back-to-top arrow nudges. */
.faq details[open] p { animation: fadeUp .35s ease; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--accent); } }
@media (hover: hover) and (pointer: fine) { .to-top:hover svg { animation: bob 1s ease-in-out infinite; } }

/* Stats settle in with the count-up. */
.stat b { font-variant-numeric: tabular-nums; }

/* "Everything in the app": long groups start collapsed to four items. */
.group dl.collapsed > .extra { display: none; }
.group dl > .extra { animation: fadeUp .35s ease both; }
.group-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--accent-bright); font: 600 14px var(--font); transition: border-color .2s, background-color .2s; }
.group-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .group-more:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); } }

/* Phones: show what Dibz is before the store badges.
   Headline → pitch → the app on a phone → the store badges. */
@media (max-width: 900px) {
  .hero .wrap { gap: 0; }
  .hero .wrap > div:first-child { display: contents; }
  .hero .eyebrow { order: 0; justify-self: start; }
  .hero h1 { order: 1; }
  .hero .lede { order: 2; }
  .hero-media { order: 3; margin: 30px auto 34px; }
  .hero .stores { order: 4; }
}


/* Store badges: Google Play, and the iPhone beta on TestFlight (dibz.ca/iphone/). */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 14px; border-radius: 12px; background: #000;
  border: 1px solid rgba(255,255,255,.32); color: #fff; line-height: 1.05; }
.store-ic { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .01em; color: rgba(255,255,255,.85); }
.store b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
a.store { text-decoration: none; transition: border-color .12s, transform .12s; }
a.store:hover { border-color: #fff; transform: translateY(-1px); }
.cta .stores { justify-content: center; }
@media (max-width: 560px) {
  .stores { gap: 10px; }
  .store { height: 50px; padding: 0 12px 0 10px; gap: 8px; border-radius: 11px; }
  .store-ic { width: 22px; height: 22px; }
  .store small { font-size: 9.5px; }
  .store b { font-size: 17px; }
}

/* ---- /app hero: two phones (home feed behind, Dibz AI in front), QR card, stats. ---- */
.hero2 .wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; padding-top: 48px; padding-bottom: 64px; }
.hero2 h1 { font-size: clamp(38px, 4.3vw, 60px); margin: 14px 0 18px; text-wrap: balance; }
.hero2 h1 em { display: block; }
.hero2 .lede { max-width: 32em; }
.get { display: flex; gap: 22px; align-items: center; margin-top: 30px; }
.qr-card { flex: none; width: 150px; background: #fff; border-radius: 18px; padding: 14px 14px 10px; text-align: center; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.qr-card .qr { display: block; width: 100%; height: auto; }
.qr-card span { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: #0a192f; }
.get-text > b { display: block; font-size: 21px; color: #fff; }
.get-text > p { color: rgba(255,255,255,.72); font-size: 15.5px; margin: 6px 0 14px; max-width: 25em; }
.get .stores { margin-top: 0; gap: 10px; }
.get .store { height: 46px; padding: 0 14px 0 11px; gap: 8px; border-radius: 11px; }
.get .store-ic { width: 22px; height: 22px; }
.get .store small { font-size: 9.5px; }
.get .store b { font-size: 17px; }
.hero-stats { display: flex; margin: 32px 0 0; }
.hero-stats > div { padding: 0 26px; border-left: 1px solid rgba(255,255,255,.18); }
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { font: 800 32px/1.1 var(--display); color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-stats dd { margin: 4px 0 0; color: rgba(255,255,255,.7); font-size: 15px; }
.hero-duo { --fw: clamp(230px, 21vw, 300px); --bw: clamp(200px, 18.5vw, 266px); position: relative;
  width: calc(var(--fw) + var(--bw) * .62); height: calc(var(--fw) * 2.44 + 24px); }
.hero-duo::before { content: ""; position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(52,211,153,.28), transparent 70%); pointer-events: none; }
.hero-duo img { position: absolute; height: auto; filter: drop-shadow(0 30px 44px rgba(0,0,0,.5)); }
.duo-back { width: var(--bw); left: 0; top: 13%; }
.duo-front { width: var(--fw); right: 0; top: 0; animation: floaty 7s ease-in-out infinite; }
@media (max-width: 900px) {
  .hero2 .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 40px; padding-bottom: 48px; }
  .hero2 .wrap > .hero-copy { display: contents; }
  .hero2 .hero-duo { --fw: min(50vw, 280px); --bw: min(43vw, 240px); order: 3; margin: 30px auto 8px; }
  .hero2 .get { order: 4; margin-top: 22px; }
  .hero2 .hero-stats { order: 5; margin-top: 30px; }
  .qr-card, .get-text > b, .get-text > p { display: none; }
}
@media (max-width: 560px) {
  .hero-stats > div { padding: 0 14px; }
  .hero-stats dt { font-size: 24px; }
  .hero-stats dd { font-size: 13px; }
}

/* ---- Meet Dibz AI: four real answers, each under the question that produced it. ---- */
.ai-band { background: linear-gradient(180deg, color-mix(in srgb, var(--accent-bright) 12%, var(--bg)), var(--bg) 70%); padding: 88px 0 76px; }
.ai-band .head { margin-bottom: 40px; }
.ai-band h2 { text-wrap: balance; }
.ai-band h2 em { font-style: normal; color: var(--accent); }
.ai-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
.ai-card { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.ai-card figcaption { display: flex; flex-direction: column; gap: 8px; min-height: 8.6em; }
.ai-card .q { align-self: flex-start; font-weight: 700; font-size: 15.5px; line-height: 1.35; color: #fff; background: var(--accent);
  border-radius: 16px 16px 4px 16px; padding: 10px 14px; box-shadow: 0 8px 20px rgba(5,150,105,.22); }
.ai-card figcaption > span:not(.q) { color: var(--muted); font-size: 15px; line-height: 1.45; }
.ai-card img { width: 100%; height: auto; filter: drop-shadow(0 22px 34px rgba(10,25,47,.22)); }
.ai-points { list-style: none; padding: 0; margin: 44px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1040px; }
.ai-points li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.ai-points b { display: block; color: var(--text); margin-bottom: 4px; }
.ai-fine { text-align: center; color: var(--muted); font-size: 13.5px; margin: 26px auto 0; max-width: 46em; }
@media (max-width: 1000px) {
  .ai-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(68%, 300px); overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 0 14px; scrollbar-width: thin; }
  .ai-card { scroll-snap-align: center; }
}
@media (max-width: 760px) { .ai-band { padding: 64px 0 56px; } .ai-points { grid-template-columns: 1fr; } }

/* Signed-in / visitor parts (assets/member.js): hidden always wins over .btn display. */
[hidden] { display: none !important; }
