/* Scan2Home – shared styles */
:root {
  --navy: #001e44;
  --navy-2: #0a2a55;
  --navy-3: #163a6b;
  --red: #e3171c;
  --red-dark: #c4111a;
  --cream: #f7f5f0;
  --white: #ffffff;
  --ink: #14213a;
  --muted: #55627a;
  --line: #e3e0d8;
  --radius: 16px;
  --shadow: 0 18px 50px -20px rgba(15, 29, 51, .35);
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-dark); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px -10px rgba(227,23,28,.9); }
.btn-primary:hover { background: #f2353a; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(150%) blur(10px);
  color: var(--navy); box-shadow: 0 1px 0 var(--line), 0 6px 20px -12px rgba(0, 30, 68, .25);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 48px; width: auto; }
.foot .logo img { height: 44px; }
.tagline-foot { display: block; margin-top: 10px; color: #c5cfdf; font-weight: 600; letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .8; }
.nav-links a:hover { opacity: 1; }
.nav-links .btn { opacity: 1; padding: .6em 1.2em; font-size: .92rem; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 16px 20px;
    border-top: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0,30,68,.35);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; width: 100%; }
}

/* Hero */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -45% auto; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(227,23,28,.18), transparent 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 72px 0 88px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(227,23,28,.14); color: #ffb9bb; border: 1px solid rgba(227,23,28,.35);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227,23,28,.25); }
.hero-tagline { font-size: clamp(3.2rem, 7.4vw, 6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 24px; }
.hero-tagline span { display: block; }
.hero-tagline b { color: #ff3b3f; font-weight: 800; }
.hero-sub { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; margin: 0 0 16px; color: var(--white); }
.hero-sub em { font-style: normal; color: #ff3b3f; }
.tagline { font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 800; letter-spacing: .01em; margin: 0 0 14px; color: var(--white); }
.tagline span { color: #ff3b3f; }
.hero .lead { color: #c5cfdf; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: #93a1b8; }
.hero-media { position: relative; }
.hero-media img { border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); aspect-ratio: 1044 / 941; object-fit: cover; width: 100%; }
.float-card {
  position: absolute; left: -28px; bottom: 28px;
  background: var(--white); color: var(--ink); border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); max-width: 260px;
}
.float-card .ico { width: 40px; height: 40px; border-radius: 10px; background: #ffe9ea; display: grid; place-items: center; flex: none; }
.float-card strong { display: block; font-size: .95rem; line-height: 1.3; }
.float-card small { color: var(--muted); font-size: .8rem; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding: 48px 0 64px; gap: 40px; }
  .float-card { left: 12px; bottom: 12px; }
}

/* Sections */
section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* Pilot benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.benefit .ico {
  width: 52px; height: 52px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; margin-bottom: 18px;
}
.benefit .ico svg { width: 26px; height: 26px; stroke: #fff; }
.benefit p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 1000px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* How it works */
.how { background: var(--white); }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--red);
  display: grid; place-items: center; font-weight: 800; font-size: 1.25rem;
}
.steps h3 { margin-bottom: .25em; }
.steps p { color: var(--muted); margin: 0; }
.how-media img { border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 62% center; width: 100%; }
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; gap: 40px; } .how-media { order: -1; } }

/* Audience split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  border-radius: 22px; padding: 40px; position: relative; overflow: hidden;
}
.card.agents { background: var(--navy); color: var(--white); }
.card.buyers { background: var(--white); border: 1px solid var(--line); }
.card .tag { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.card.buyers .tag { color: var(--red-dark); }
.card h3 { font-size: 1.6rem; margin: .5em 0 .8em; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.ticks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.card.agents .ticks li { color: #d6deea; }
.card.buyers .ticks li { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .card { padding: 30px 24px; } }

/* Phone mock */
.preview { background: var(--navy-2); color: var(--white); }
.preview-grid { display: grid; grid-template-columns: 1fr 340px; gap: 72px; align-items: center; }
.preview .lead { color: #c5cfdf; }
.phone {
  width: 300px; margin-inline: auto; background: #0a1424; border-radius: 44px; padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 2px #2b3c58;
}
.screen { background: var(--white); color: var(--ink); border-radius: 34px; overflow: hidden; }
.screen-photo { height: 170px; background: url("../images/buyer-booking-viewing.jpg") 68% 24% / 520% no-repeat; }
.screen-body { padding: 16px 18px 20px; }
.price { font-size: 1.35rem; font-weight: 800; }
.addr { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.facts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.facts span { font-size: .72rem; font-weight: 600; background: #eef1f6; border-radius: 6px; padding: 4px 8px; }
.facts .epc { background: #e5f5e8; color: #1d6b33; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.slots span { font-size: .72rem; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 7px 0; font-weight: 600; }
.slots .on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.screen .btn { width: 100%; padding: .75em; font-size: .9rem; }
.demo-label { text-align: center; margin-top: 14px; font-size: .8rem; color: #93a1b8; }
@media (max-width: 900px) { .preview-grid { grid-template-columns: 1fr; gap: 48px; } }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 32px; }
.feature-list div { border-left: 3px solid var(--red); padding-left: 14px; }
.feature-list strong { display: block; }
.feature-list span { color: #a9b6ca; font-size: .93rem; }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--cream);
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 600; color: var(--navy);
}
details[open] summary::after { content: "–"; background: var(--red); color: #fff; }
details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* Signup */
.signup { background: var(--navy); color: var(--white); }
.signup-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.signup .lead { color: #c5cfdf; }
.contact-lines { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-lines li { display: flex; gap: 12px; align-items: center; color: #d6deea; }
.contact-lines svg { width: 20px; height: 20px; stroke: var(--red); flex: none; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
form.panel { background: var(--white); color: var(--ink); border-radius: 22px; padding: 36px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #d5d9e1; border-radius: 10px; background: #fbfbfc;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(227,23,28,.25); }
textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 4px 0 20px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--navy); }
form .btn { width: 100%; }
.hidden { display: none; }
@media (max-width: 900px) { .signup-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; gap: 0; } form.panel { padding: 24px 20px; } }

/* Footer */
footer { background: #00142f; color: #93a1b8; padding: 48px 0 32px; font-size: .92rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.foot .logo { color: var(--white); }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--white); }
.legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Inner pages (privacy policy) ---------- */
.page-hero { background: var(--navy); color: var(--white); padding: 64px 0 56px; }
.page-hero .tagline { margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); margin-bottom: .3em; }
.page-hero p { color: #c5cfdf; margin: 0; }
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; padding: 56px 0 96px; }
.toc { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font-size: .9rem; }
.toc strong { display: block; margin-bottom: 10px; color: var(--navy); }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--red-dark); }
.legal-doc { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 48px 52px; max-width: 820px; }
.legal-doc h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; scroll-margin-top: 96px; }
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h3 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.legal-doc p, .legal-doc li { color: #3a465c; }
.legal-doc ul { padding-left: 20px; margin: 0 0 1em; }
.legal-doc li { margin-bottom: .4em; }
.legal-doc a { color: var(--red-dark); }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .94rem; }
.legal-doc th { text-align: left; background: var(--cream); padding: 10px 12px; border-bottom: 2px solid var(--line); }
.legal-doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: #3a465c; }
.draft-note { background: #fff6e0; border: 1px solid #f0d58a; color: #6b4e00; border-radius: 14px; padding: 16px 20px; margin-bottom: 32px; font-size: .93rem; }
.draft-note strong { color: #4d3800; }
.fill { background: #fff1b8; border-radius: 4px; padding: 0 4px; font-weight: 600; color: #5c4400; }
.nav-links a[aria-current="page"] { opacity: 1; color: var(--red-dark); }
@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 64px; }
  .toc { position: static; }
  .legal-doc { padding: 28px 22px; }
  .legal-doc table, .legal-doc tbody, .legal-doc tr, .legal-doc td { display: block; width: 100%; }
  .legal-doc thead { display: none; }
  .legal-doc tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .legal-doc td { border: 0; padding: 4px 0; }
  .legal-doc td:first-child { font-weight: 700; color: var(--navy); }
}
