/* PropertyPal marketing site. Plain CSS, no build step.
   Colours live in the palette blocks below; everything else reads them
   through the variables, so changing the look means editing one block. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Palette: Lagoon ---------- */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #e8f5f4;
  --ink: #12292b;
  --muted: #4b6466;
  --heading: #0b4a4f;
  --line: #d3e6e4;
  --accent: #0e8a84;
  --link: #0b6b70;
  --hero-bg: #0e5a60;
  --hero-ink: #ffffff;
  --hero-muted: #d2e8e6;
  --band-bg: #0e5a60;
  --band-ink: #ffffff;
  --band-muted: #d2e8e6;
  --cta: #ffc93c;
  --cta-ink: #1c2a2b;
  --footer-bg: #093f44;
  --footer-ink: #d2e8e6;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--heading); }
h3 { font-size: 1.25rem; color: var(--heading); }
p { margin: 0; }
a { color: var(--link); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section-tint { background: var(--tint); }
.section-intro { max-width: 40rem; }
.section-intro p { margin-top: 0.75rem; color: var(--muted); }
.skip-link {
  position: absolute;
  left: -999rem;
  top: 0;
  background: var(--cta);
  color: var(--cta-ink);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.btn-cta { background: var(--cta); color: var(--cta-ink); }
.btn-cta:hover { filter: brightness(1.06); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(127, 127, 127, 0.12); }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--heading);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
}
.brand img { width: 2.25rem; height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 47.99rem) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--hero-bg); color: var(--hero-ink); }
.hero .wrap {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
@media (min-width: 60rem) {
  .hero .wrap { grid-template-columns: 1fr 1fr; }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8125rem;
  color: var(--hero-muted);
}
.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  margin-top: 0.9rem;
  color: var(--hero-ink);
}
.hero h1 span { display: block; }
.hero .lede {
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  max-width: 36rem;
  color: var(--hero-muted);
}
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero picture: one image of a phone and tablet (images/hero-devices.png). */
.hero-devices { display: block; width: 100%; max-width: 40rem; height: auto; margin: 0 auto; }
.hero-art-note {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--hero-muted);
}
.device-pill {
  display: inline-block;
  margin-top: 0.6em;
  background: var(--cta);
  color: var(--cta-ink);
  border-radius: 999px;
  padding: 0.3em 0.85em;
  font-weight: 600;
  font-size: 0.93em;
}

/* ---------- Benefit strip ---------- */
.strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.strip ul {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0;
  display: grid;
  gap: 0.6rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  font-size: 0.9375rem;
  color: var(--muted);
}
.strip li::before { content: "\25CF"; color: var(--accent); margin-right: 0.55rem; }

/* ---------- Cards ---------- */
.cards {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  list-style: none;
  padding: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.6rem;
}
.card p { margin-top: 0.6rem; color: var(--muted); }
@media (min-width: 60rem) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- A glimpse inside: simplified screens drawn in HTML/CSS ---------- */
.glimpse {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.glimpse figure { margin: 0; }
.glimpse figcaption { margin-top: 0.9rem; color: var(--muted); font-size: 0.9375rem; }
.panel {
  background: #ffffff;
  color: #1d2b2c;
  border-radius: 1.1rem;
  padding: 1.25rem;
  min-height: 15.5rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  line-height: 1.4;
}
.panel-title { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.05rem; }
.panel-sub { font-size: 0.75rem; color: #5d6f70; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.chip {
  border: 1px solid #d5dddd;
  border-radius: 0.6rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #ffffff; font-weight: 600; }
.panel .device-pill { margin-top: 0.9rem; }
.doc-list { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.doc-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid #e3e9e9;
}
.doc-list li span { color: #5d6f70; font-size: 0.75rem; }
.news-pic {
  height: 5.5rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--accent), var(--cta));
}
.news-tag {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}
.glimpse-note { margin-top: 1.5rem; font-size: 0.8125rem; color: var(--muted); }

/* ---------- DefectBuddy band ---------- */
.band { background: var(--band-bg); color: var(--band-ink); }
.band h2 { color: var(--band-ink); }
.band p { margin-top: 1rem; max-width: 44rem; color: var(--band-muted); font-size: 1.125rem; }
.band .btn { margin-top: 1.75rem; }
.band a:not(.btn) { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }

/* ---------- Contact form ---------- */
.contact-grid { margin-top: 2.5rem; max-width: 36rem; }
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.75rem;
  display: grid;
  gap: 1.1rem;
}
.form label { display: block; font-weight: 600; font-size: 0.9375rem; }
.form input,
.form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 0.7rem;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.form input:focus,
.form textarea:focus { border-color: var(--accent); outline: none; }
.form .optional { font-weight: 400; color: var(--muted); }
.form .privacy { font-size: 0.8125rem; color: var(--muted); }
.form .trap { position: absolute; left: -999rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 2.5rem 0; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer .brand { color: #ffffff; }
.site-footer p { margin-top: 0.5rem; font-size: 0.875rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.9375rem; }
.site-footer a { color: var(--footer-ink); }

/* ---------- Page not found ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.notfound .wrap { max-width: 36rem; }
.notfound p { margin-top: 1rem; color: var(--muted); }
.notfound .btn { margin-top: 2rem; }
