:root {
  --ink: #201915;
  --muted: #6b625b;
  --paper: #fffaf3;
  --surface: #ffffff;
  --line: #e5ded4;
  --forest: #173f2e;
  --moss: #2f7a55;
  --coral: #ec6a4b;
  --gold: #d69b32;
  --sky: #dcecf2;
  --shadow: 0 24px 70px rgba(32, 25, 21, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  color: #fffaf3;
  background: rgba(32, 25, 21, 0.62);
  border-bottom: 1px solid rgba(255, 250, 243, 0.14);
  backdrop-filter: blur(18px);
}

.topbar--solid {
  position: sticky;
  color: var(--ink);
  background: rgba(255, 250, 243, 0.92);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 720;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 14px 34px rgba(236, 106, 75, 0.28);
}

.button-secondary {
  color: #fffaf3;
  border-color: rgba(255, 250, 243, 0.42);
  background: rgba(255, 250, 243, 0.12);
}

.button-quiet {
  color: var(--forest);
  border-color: var(--line);
  background: #fff;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  padding: 112px clamp(18px, 5vw, 64px) 46px;
  color: #fffaf3;
  background-image:
    linear-gradient(90deg, rgba(32, 25, 21, 0.86), rgba(32, 25, 21, 0.38) 58%, rgba(32, 25, 21, 0.56)),
    url("https://source.unsplash.com/FySLL5Nbffk/1800x1300");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(255, 250, 243, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
  max-width: 660px;
}

.stat {
  padding: 14px;
  border: 1px solid rgba(255, 250, 243, 0.18);
  background: rgba(255, 250, 243, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.stat strong {
  display: block;
  font-size: 24px;
}

.stat span {
  color: rgba(255, 250, 243, 0.74);
  font-size: 12px;
}

.hero-store-badges {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 250, 243, 0.2);
}

.hero-store-label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 250, 243, 0.78);
}

.store-badges--hero {
  gap: 12px 16px;
}

.store-badges--hero .store-badge-img {
  height: 40px;
}

.store-badges--hero .store-badge-img--play {
  height: 42px;
}

.app-preview {
  align-self: stretch;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.phone {
  width: min(340px, 100%);
  padding: 14px;
  border: 1px solid rgba(255, 250, 243, 0.22);
  border-radius: 34px;
  background: rgba(23, 63, 46, 0.92);
  box-shadow: var(--shadow);
}

.phone-screen {
  overflow: hidden;
  border-radius: 24px;
  background: #fffaf3;
}

.preview-photo {
  position: relative;
  min-height: 178px;
  /* First listing image: https://www.realestate.co.nz/43016651/residential/sale/825-riddell-road-st-heliers */
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.48)),
    url("https://mediaserver.realestate.co.nz/listings/43016651/f031a69ff2f37933233f57b98ca074c2.pad-ffffff.990x661.jpg");
  background-size: cover;
  background-position: center 35%;
}

.score-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 10px 14px;
  color: #fff;
  background: var(--gold);
  border-radius: 999px;
  font-weight: 800;
}

.score-pill small {
  opacity: 0.78;
}

.preview-body {
  padding: 18px;
  color: var(--ink);
}

.preview-address {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 780;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 18px;
}

.chip {
  padding: 6px 9px;
  color: var(--muted);
  background: #eee7dc;
  border-radius: 999px;
  font-size: 12px;
}

.mini-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mini-score {
  text-align: center;
  color: var(--moss);
  font-weight: 800;
}

.mini-score span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.feature-card,
.step-card,
.policy-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-card h3,
.step-card h3,
.policy-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.feature-card p,
.step-card p,
.policy-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: 8px;
  font-weight: 800;
}

.band {
  background: var(--forest);
  color: #fffaf3;
}

.band .section-kicker {
  color: #efb36a;
}

.band .section-lede,
.band .step-card p {
  color: rgba(255, 250, 243, 0.72);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.step-card {
  background: rgba(255, 250, 243, 0.08);
  border-color: rgba(255, 250, 243, 0.18);
}

.step-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--ink);
  background: #efb36a;
  border-radius: 50%;
  font-weight: 800;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
}

.audience {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: #fffaf3;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.audience-investor {
  background-image:
    linear-gradient(180deg, rgba(32, 25, 21, 0.18), rgba(32, 25, 21, 0.78)),
    url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1200&q=85");
  background-position: center 30%;
}

.audience-agent {
  background-image:
    linear-gradient(180deg, rgba(32, 25, 21, 0.12), rgba(32, 25, 21, 0.76)),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1200&q=85");
  background-position: center 40%;
}

.audience p {
  color: rgba(255, 250, 243, 0.82);
  margin-bottom: 0;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  color: #fffaf3;
  background: var(--ink);
  border-radius: 8px;
}

.cta-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.cta-panel p {
  margin-bottom: 0;
  color: rgba(255, 250, 243, 0.76);
}

.footer {
  padding: 34px clamp(18px, 5vw, 64px);
  color: rgba(255, 250, 243, 0.78);
  background: var(--ink);
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer a {
  text-decoration: none;
}

.footer-support {
  padding: 9px 14px;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  font-weight: 740;
}

.page-main {
  padding: 54px clamp(18px, 5vw, 64px) 88px;
}

.page-header,
.page-content {
  width: min(920px, 100%);
  margin: 0 auto;
}

.page-header {
  padding: 54px 0 28px;
}

.page-header h1 {
  color: var(--ink);
  font-size: clamp(42px, 7vw, 76px);
}

.page-header p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

/* --- Contact page --- */
.contact-hero {
  min-height: 220px;
  background-image:
    linear-gradient(90deg, rgba(32, 25, 21, 0.82), rgba(32, 25, 21, 0.45)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.page-main--contact {
  padding-top: 0;
}

.contact-intro .page-header--contact {
  padding-top: 40px;
  padding-bottom: 12px;
}

.contact-lede {
  max-width: 640px;
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding-bottom: 48px;
}

.contact-card-title {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.contact-card-copy {
  margin: 0 0 20px;
  color: var(--muted);
}

.contact-card--stores .contact-card-copy {
  margin-bottom: 16px;
}

.contact-mailto {
  margin-top: 8px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.store-badge-link {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-badge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(32, 25, 21, 0.12);
}

.store-badge-img {
  display: block;
  height: 44px;
  width: auto;
}

.store-badge-img--play {
  height: 48px;
}

.contact-figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-photo {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.contact-caption {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* --- Legal: privacy policy document --- */
.legal-hero {
  margin: -54px clamp(-18px, -5vw, -64px) 0;
  min-height: 160px;
  border-radius: 0 0 8px 8px;
  background-image:
    linear-gradient(120deg, rgba(23, 63, 46, 0.88), rgba(236, 106, 75, 0.45)),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1400&q=80");
  background-size: cover;
  background-position: center;
}

.legal-meta {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.legal-document {
  max-width: 760px;
  padding-bottom: 48px;
}

.legal-document h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.03em;
  color: var(--forest);
}

.legal-document h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.legal-document p,
.legal-document li {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.legal-document p {
  margin: 0 0 1rem;
}

.legal-document ul {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.legal-document li {
  margin-bottom: 0.35rem;
}

.legal-document a {
  color: var(--moss);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-document a:hover {
  color: var(--coral);
}

.legal-document .legal-notice {
  font-weight: 750;
  font-size: 0.9375rem;
  line-height: 1.65;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label {
  font-weight: 740;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf3;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(236, 106, 75, 0.16);
  border-color: var(--coral);
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
}

.form-status.success {
  color: var(--moss);
}

.form-status.error {
  color: #b63f32;
}

.support-email-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-email {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--forest);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 820;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.support-copy {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--muted);
}

.legal-placeholder {
  padding: 26px;
  border: 1px dashed #c8b9a6;
  border-radius: 8px;
  background: #fff;
}

.legal-placeholder p:last-child {
  margin-bottom: 0;
}

.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .topbar {
    position: absolute;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-inner,
  .support-layout,
  .contact-layout,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .app-preview {
    justify-content: flex-start;
  }

  .phone {
    max-width: 320px;
  }

  .feature-grid,
  .steps,
  .audience-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .hero-stat-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .cta-row,
  .button {
    width: 100%;
  }

  .button {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }
}
