/* =========================================================
   Scan Foundry styles
   The colours are defined once here, so you can change the
   whole look by editing these few lines.
   ========================================================= */
:root {
  --background: #0e1013;   /* page background (near black) */
  --panel: #171a1f;        /* card background */
  --border: #2a2f37;       /* thin lines around cards */
  --text: #e8eaed;         /* main text */
  --text-dim: #9aa1ab;     /* secondary text */
  --accent: #ff7a1a;       /* molten orange highlight */
  --accent-hover: #ff9447;
}

/* ----- Basic page setup ----- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ----- Announcement banner (very top of every page; banner.js) ----- */
.site-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 44px;          /* room for the × on the right */
  background: #ff5700;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.banner-closed .site-banner {
  display: none;
}

.site-banner-link {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;        /* always one line */
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-banner-link:hover {
  text-decoration: underline;
}

.site-banner-link:focus-visible,
.site-banner-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.site-banner-close {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.site-banner-close:hover {
  background: rgba(0, 0, 0, 0.15);
}

.banner-short {
  display: none;
}

@media (max-width: 600px) {
  .site-banner {
    padding: 6px 40px 6px 12px;
    font-size: 0.82rem;
  }
  .banner-long {
    display: none;
  }
  .banner-short {
    display: inline;
  }
}

/* Leave a little space above the sign-up box when the banner scrolls to it */
#newsletter {
  scroll-margin-top: 16px;
}

/* ----- Top bar ----- */
/* Light strip so the dark parts of the logo are readable */
.site-header {
  background: #f4f5f7;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  text-align: center;   /* centres the logo */
}

.logo {
  display: inline-block;
}

.logo img {
  display: block;
  height: 170px;   /* logo height on computers */
  width: auto;
  max-width: 100%; /* never wider than the screen */
  /* Soft light glow that follows the logo's shape, so the
     dark "Scan" lettering and tagline stand out on black.
     The first glow is a tight outline; the second is a wider haze. */
  filter:
    drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.7))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}

@media (max-width: 600px) {
  .logo img {
    height: auto;  /* on phones, fit the screen width instead */
  }
}

/* ----- Intro section ----- */
.hero {
  padding: 64px 0 40px;
  background:
    linear-gradient(rgba(255, 122, 26, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 26, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;   /* faint "blueprint" grid */
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 700px;
}

.hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 0 20px;
}

.intro-banner {
  display: inline-block;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 6px 14px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem !important;
}

/* ----- Shop grid ----- */
.section-title {
  margin: 48px 0 24px;
  font-size: 1.4rem;
}

.scan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));   /* one column on narrow phones */
  gap: 24px;
  margin-bottom: 64px;
}

.scan-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.scan-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.scan-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.scan-info h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.description {
  color: var(--text-dim);
  margin: 0 0 16px;
}

/* "What's included" list */
.included {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.92rem;
}

.included li {
  padding: 4px 0 4px 22px;
  position: relative;
}

.included li::before {
  content: "\2713";   /* tick mark */
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* Price and Buy button */
.buy-row {
  margin-top: auto;   /* pushes this row to the bottom of the card */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.price {
  display: flex;
  flex-direction: column;
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 700;
}

.price-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.buy-button {
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.buy-button:hover {
  background: var(--accent-hover);
}

.buy-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ----- Navigation links under the logo ----- */
.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 6px;
}

.site-nav a {
  color: #1a1d22;   /* dark, to read on the light header strip */
  text-decoration: none;
  font-weight: 600;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

/* ----- Book a scan page ----- */
.book-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 64px;
}

@media (min-width: 900px) {
  .book-page {
    grid-template-columns: 2fr 3fr;   /* explanation beside the form */
    align-items: start;
  }
}

.book-intro h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 12px;
}

.book-lead {
  font-size: 1.15rem;
  margin: 0 0 20px;
}

.book-price {
  font-size: 1.3rem;
  margin: 8px 0;
}

.book-price strong {
  color: var(--accent);
  font-size: 1.6rem;
}

.book-note {
  color: var(--text-dim);
}

.book-form-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.book-form-panel h2 {
  margin: 0 0 4px;
}

.form-hint {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 20px;
}

legend {
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid-3 {
    grid-template-columns: 1fr 1fr 0.6fr;
  }
}

.book-form-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.book-form-panel label.full-width {
  margin-bottom: 20px;
}

.book-form-panel input,
.book-form-panel textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}

.book-form-panel input:focus,
.book-form-panel textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.book-form-panel textarea {
  resize: vertical;
}

.request-email {
  margin-top: 16px;
}

.field-note {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* "Do you own this vehicle?" free scan offer on the Request a scan page */
.free-scan {
  margin: 4px 0 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.free-scan legend {
  float: left;          /* keeps the heading inside the box */
  width: 100%;
  margin-bottom: 4px;
}

.free-scan .form-hint {
  clear: both;
  margin-bottom: 4px;
}

.free-scan .form-grid {
  margin-top: 6px;
}

.free-scan-email-note {
  margin: 10px 0 0;
}

.book-form-panel label.terms-tick {
  flex-direction: row;
  font-size: 0.88rem;
}

.book-form-panel .terms-tick input {
  padding: 0;
}

.book-form-panel input[type="file"] {
  padding: 8px;
  cursor: pointer;
}

.photo-list {
  margin: -10px 0 20px;
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* "Can't find the vehicle?" box at the bottom of the shop */
.request-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 0 0 64px;
  padding: 18px 20px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
}

.request-prompt p {
  margin: 0;
}

/* The hidden spam trap */
.trap {
  position: absolute;
  left: -9999px;
}

.submit-button {
  width: 100%;
}

.form-status {
  margin: 14px 0 0;
  min-height: 1.5em;
}

.form-status.ok {
  color: #5fd38d;
}

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

/* ----- Search and filters ----- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.browse {
  margin: 40px 0 16px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.search-box {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.search-box:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
}

.filter-row[hidden] {
  display: none;
}

.filter-label {
  flex: 0 0 56px;
  padding-top: 7px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 14px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--accent);
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
  font-weight: 600;
}

.chip-count {
  opacity: 0.6;
  font-size: 0.85em;
  margin-left: 2px;
}

.results-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  margin: 8px 0 8px;
}

.breadcrumb {
  font-size: 0.95rem;
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--text);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.crumb-sep {
  margin: 0 6px;
  color: var(--text-dim);
}

.result-count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ----- Make and model groups ----- */
.make-group {
  margin: 32px 0 48px;
}

.make-heading {
  font-size: 1.6rem;
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.make-heading a,
.model-heading a {
  color: var(--text);
  text-decoration: none;
}

.make-heading a:hover,
.model-heading a:hover {
  color: var(--accent);
}

.model-group {
  margin-top: 24px;
}

.model-heading {
  font-size: 1.2rem;
  margin: 0 0 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.group-count {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-dim);
}

.model-group .scan-grid {
  margin-bottom: 0;
}

.no-results {
  padding: 48px 0;
  text-align: center;
  color: var(--text-dim);
}

/* Small "Toyota · Hiace" line above titles */
.card-kicker {
  margin: 0 0 2px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.card-type {
  margin: -6px 0 10px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.card-type::first-letter {
  text-transform: uppercase;
}

/* Make / Model / Year / Variant on the product page */
.spec-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.spec-list dt {
  color: var(--text-dim);
}

.spec-list dd {
  margin: 0;
}

/* ----- Links on the shop cards ----- */
.card-image-link {
  display: block;
}

.scan-info h3 a {
  color: var(--text);
  text-decoration: none;
}

.scan-info h3 a:hover {
  color: var(--accent);
}

.details-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 4px;
}

.details-link:hover {
  text-decoration: underline;
}

/* ----- Product page ----- */
.product-page {
  padding-top: 24px;
  padding-bottom: 64px;
}

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

@media (min-width: 900px) {
  .product-top {
    grid-template-columns: 3fr 2fr;   /* gallery wider than the details */
  }
}

/* Let page columns shrink to the screen. Without this, a column is never
   narrower than its widest content (e.g. a row of thumbnails), which pushed
   the gallery off the right of phone screens. */
.product-top > *,
.book-page > *,
.home-newsletter > *,
.viewer-section {
  min-width: 0;
}

.gallery-main {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;   /* show the whole photo, never crop it */
  display: block;
}

/* The big photo is a button that opens the enlarged view */
button.gallery-main {
  display: block;
  width: 100%;
  padding: 0;
  position: relative;
  cursor: zoom-in;
  font: inherit;
}

button.gallery-main:hover,
button.gallery-main:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.enlarge-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  opacity: 0.85;
  pointer-events: none;
}

/* Caption under the big gallery photo (only shown when a photo has one) */
.gallery-caption {
  margin: 8px 2px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.gallery-caption:empty {
  display: none;
}

/* ----- Enlarged photo view (lightbox) ----- */
body.no-scroll {
  overflow: hidden;
}

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(5, 6, 8, 0.92);
}

.lb-figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 16px 24px;
}

.lb-figure img {
  max-width: min(94vw, 1800px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 4px;
  touch-action: pan-y;   /* let our swipe handle left/right */
  user-select: none;
}

.lb-figure figcaption {
  font-size: 0.9rem;
  color: #c9ccd1;
}

.lb-close,
.lb-arrow {
  position: absolute;
  border: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-close:hover,
.lb-arrow:hover,
.lb-close:focus-visible,
.lb-arrow:focus-visible {
  background: var(--accent);
  color: #111;
  outline: none;
}

.lb-close {
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
}

.lb-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2.2rem;
  line-height: 1;
  padding-bottom: 4px;
}

.lb-prev { left: 14px; }
.lb-next { right: 14px; }

@media (max-width: 600px) {
  .lb-arrow {
    top: auto;
    bottom: 16px;
    transform: none;
    width: 46px;
    height: 46px;
  }
}

/* Row of small pictures under the main photo, sharing the width evenly */
.thumbnails {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 1fr);
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;   /* scrolls sideways if there are lots of photos */
}

.thumb {
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
  overflow: hidden;
}

.thumb.active,
.thumb:hover {
  border-color: var(--accent);
}

.thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.product-info h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  margin: 0 0 12px;
}

.small-heading {
  font-size: 1rem;
  margin: 8px 0;
}

.viewer-section {
  margin-top: 48px;
}

.viewer-section .section-title {
  margin-top: 0;
}

model-viewer,
.viewer-placeholder {
  width: 100%;
  height: min(70vh, 560px);
  background: radial-gradient(circle at 50% 40%, #3a3f47, #1a1d22);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.viewer-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.viewer-hint {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Camera angle tuner (only shown with &tune in the address) */
.tune-panel {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.tune-panel p {
  margin: 0;
  flex-basis: 100%;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.tune-panel code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.05rem;
  background: var(--panel);
  padding: 6px 10px;
  border-radius: 4px;
  user-select: all;
}

.tune-panel button {
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
}

/* ----- Mailing list sign-up ----- */
.newsletter-row {
  display: flex;
  gap: 8px;
  max-width: 460px;
}

.newsletter-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}

.newsletter-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-button {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 700;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #111;
  cursor: pointer;
}

.newsletter-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.newsletter-heading {
  margin: 0 0 10px;
  color: var(--text);
}

.newsletter-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.newsletter-note a {
  color: var(--text-dim);
}

.newsletter-status {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.newsletter-status:empty {
  display: none;
}

.newsletter-status.ok {
  color: #5fd38d;
}

.newsletter-status.error {
  color: #ff6b6b;
}

.footer-newsletter {
  padding-bottom: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.home-newsletter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 32px;
  align-items: center;
  margin: 0 0 64px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

@media (min-width: 900px) {
  .home-newsletter {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .home-newsletter {
    padding: 20px 16px;
  }
}

.home-newsletter h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.home-newsletter p {
  margin: 0;
  color: var(--text-dim);
}

.home-newsletter .newsletter-note {
  margin-top: 8px;
}

.unsubscribe-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin-top: 20px;
}

.unsubscribe-form input {
  flex: 1;
  min-width: 0;   /* lets the box shrink so the button fits on phones */
  font: inherit;
  color: var(--text);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}

/* ----- Trademark disclaimer in the footer ----- */
.footer-disclaimer {
  max-width: 820px;
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-dim);
  opacity: 0.85;
}

/* ----- Footer policy links ----- */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 8px;
}

.footer-nav a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ----- Policy pages ----- */
.legal {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.legal h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin: 0 0 4px;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 32px 0 8px;
}

.legal p,
.legal li {
  color: #cfd3d8;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  color: var(--accent);
}

.legal-updated {
  color: var(--text-dim) !important;
  font-size: 0.9rem;
  margin-top: 0;
}

.legal-summary {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 14px 18px;
  margin: 24px 0;
}

.contact-email {
  font-size: 1.3rem;
  font-weight: 700;
}

.field-note a {
  color: var(--accent);
}

/* ----- Price, "I agree" tick box and Buy button ----- */
.buy-area {
  margin-top: auto;   /* sits at the bottom of each card */
}

.buy-area .buy-row {
  margin-top: 0;
}

.terms-tick {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--text-dim);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.terms-tick input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
  cursor: pointer;
}

.terms-tick a {
  color: var(--accent);
}

/* Highlight the box if Buy is clicked before ticking */
.needs-tick .terms-tick {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.25);
}

.buy-area .buy-button {
  width: 100%;
}

.buy-error {
  margin: 8px 0 0;
  min-height: 0;
  font-size: 0.88rem;
  color: #ff6b6b;
}

.buy-error:empty {
  display: none;
}

/* ----- Thank-you page ----- */
.thank-you {
  padding: 80px 16px;
  min-height: 60vh;
}

.thank-you h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin: 0 0 16px;
}

.thank-you p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 600px;
}

.download-button {
  display: inline-block;
  margin: 8px 0 16px;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 14px 32px;
}

.thank-you .download-note {
  font-size: 0.95rem;
  margin: 6px 0;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent);
  text-decoration: none;
}

/* ----- Bottom bar ----- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ----- Land models page (land-models.html) ----- */
.site-nav {
  flex-wrap: wrap;          /* four links: let them wrap on small phones */
  gap: 6px 28px;
}

@media (max-width: 480px) {
  .site-nav { gap: 4px 18px; }
}

.land-page section {
  margin: 48px 0;
}

.land-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}

.land-frame img,
.land-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.land-launch {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.land-launch:hover {
  background: var(--accent-hover);
}


.land-caption {
  margin: 12px 0 4px;
}

.land-caption a,
.land-contact a {
  color: var(--accent);
}

.land-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.land-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.land-grid li {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
}

.land-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.land-steps ol {
  margin: 0;
  padding-left: 1.4em;
}

.land-steps li {
  margin-bottom: 10px;
}

.land-page .section-title {
  margin-top: 0;
}

/* Live viewer on the Real estate page */
.land-howto {
  margin: -12px 0 14px;
}

.land-frame.live {
  aspect-ratio: 16 / 10;
  min-height: 480px;
}

@media (max-width: 700px) {
  /* taller window on phones so the model has room */
  .land-frame.live { aspect-ratio: 3 / 4; min-height: 0; }
}

/* Real estate sales page */
.re-kicker {
  margin: 0 0 10px !important;
  color: var(--accent) !important;
  font-size: 0.85rem !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.re-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.re-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.re-btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
}

.re-btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.land-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.re-price {
  margin-top: 20px;
}

/* Real estate page: tighter spacing on phones */
@media (max-width: 600px) {
  .re-hero { padding: 32px 0 28px; }
  .re-hero h1 { margin-bottom: 12px; }
  .re-hero p { font-size: 1rem; line-height: 1.55; margin-bottom: 16px; }
  .re-kicker { margin-bottom: 8px !important; font-size: 0.78rem !important; }
  .re-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .re-btn { padding: 12px 10px; text-align: center; }

  .land-page section { margin: 32px 0; }
  .land-page .section-title { margin-bottom: 12px; font-size: 1.25rem; }
  .land-howto { margin: -4px 0 12px; font-size: 0.9rem; }
  .land-caption { margin-top: 8px; }

  .land-grid { gap: 10px; }
  .land-grid li { padding: 12px 14px; font-size: 0.92rem; line-height: 1.45; }

  /* the eight features sit two across, shorter text */
  .land-features .land-grid { grid-template-columns: 1fr 1fr; }
  .land-features .land-grid li { padding: 12px; font-size: 0.82rem; }
  .land-features .land-grid strong { font-size: 0.92rem; }

  .re-price { margin-top: 14px; }
  .land-steps li { margin-bottom: 8px; font-size: 0.95rem; }
  .land-contact { margin-bottom: 40px; padding: 16px; }
}

/* =========================================================
   Premium layout. It started on the Real estate page and now
   runs site-wide: every page has <body class="re-page">.
   Spacing uses one 8px scale: 8 16 24 32 48 64 96.
   ========================================================= */
.re-page {
  --rx-bg: #0b0d10;
  --rx-alt: #111418;
  --rx-card: #171b21;
  --rx-line: #252a32;
  --rx-r: 20px;
  background: var(--rx-bg);
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.re-page .container { max-width: 1208px; padding: 0 24px; }

/* ----- Header: logo left, links right, phone button -----
   The logo is large at the top of a page so its small lettering can be read, and
   the bar slims down once you scroll. The header's real height never changes (that
   would make the page jump): it sticks with its top part tucked above the screen,
   and banner.js slides the logo, links and phone button into the part that stays
   visible. --logo-big and --logo-small are the logo's two heights. */
.re-page .site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 0; background: #fff; border-bottom: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.18);
  text-align: left;
}
.re-page .site-header { --logo-big: clamp(96px, 34.5vw - 244px, 132px); --logo-small: 48px; }
html.js-header .re-page .site-header { top: calc(var(--logo-small) - var(--logo-big)); }
.re-page .site-header .container { display: flex; align-items: center; gap: 32px; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
.re-page .logo { flex: 0 0 auto; transform-origin: left center; transform: translateY(var(--hdr-shift, 0px)) scale(var(--logo-scale, 1)); }
.re-page .logo img { height: var(--logo-big); width: auto; max-width: none; filter: none; }
.re-page .site-nav, .re-page .rx-head-cta { transform: translateY(var(--hdr-shift, 0px)); }
.re-page .rx-head-cta { transition: background 0.15s, box-shadow 0.15s; }
.re-page .rx-head-cta:hover { transform: translateY(calc(var(--hdr-shift, 0px) - 1px)); }
.re-page .site-nav { margin: 0 0 0 auto; gap: 32px; flex-wrap: nowrap; }
.re-page .site-nav a { padding: 6px 0; font-size: 0.94rem; font-weight: 700; color: #14181d; white-space: nowrap; }
.re-page .site-nav a:hover, .re-page .site-nav a[aria-current="page"] { color: #e85f00; }

/* ----- Buttons ----- */
.rx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: #111; font-weight: 800; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 28px rgba(255, 122, 26, 0.28);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.rx-btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 14px 32px rgba(255, 122, 26, 0.36); }
.rx-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.rx-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rx-btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px #3a414c; }
.rx-btn-ghost:hover { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rx-btn-sm { min-height: 42px; padding: 0 20px; font-size: 0.92rem; box-shadow: none; }

/* ----- Type ----- */
.re-page h1, .re-page h2 {
  font-family: "Archivo", "Manrope", "Segoe UI", system-ui, sans-serif;
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; color: #fff; margin: 0;
  text-wrap: balance;
}
.re-page h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); max-width: none; }
.re-page h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
.re-page h1 span, .re-page h2 span { color: var(--accent); }
.re-page .re-kicker { margin: 0 0 16px !important; font-size: 0.78rem !important; font-weight: 800; letter-spacing: 0.2em; }

/* ----- Hero ----- */
.re-page .re-hero {
  padding: 80px 0 0; border-bottom: 0;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(255, 122, 26, 0.13), transparent 70%),
    var(--rx-bg);
}
.rx-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.re-page .re-hero p { max-width: 34em; margin: 24px 0 0; font-size: 1.12rem; line-height: 1.65; color: #b4bac3; }
.re-page .re-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.re-page .re-hero .rx-trust { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 0.9rem; color: var(--text-dim); }
.rx-trust svg, .rx-checks svg {
  flex: 0 0 auto; width: 20px; height: 20px; padding: 4px; border-radius: 50%;
  background: rgba(255, 122, 26, 0.16); fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.rx-hero-shot {
  position: relative; display: block; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--rx-line);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.03);
}
.rx-hero-shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.rx-chip {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px;
  background: rgba(11, 13, 16, 0.82); color: #fff; font-size: 0.8rem; font-weight: 700;
  backdrop-filter: blur(6px);
}
.rx-chip::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent); }

.rx-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: 72px 0 0; padding: 0; list-style: none;
  background: var(--rx-card); border: 1px solid var(--rx-line); border-radius: var(--rx-r);
  transform: translateY(50%); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.rx-stats li { padding: 28px 24px; text-align: center; border-left: 1px solid var(--rx-line); }
.rx-stats li:first-child { border-left: 0; }
.rx-stats strong { display: block; font-family: "Archivo", "Manrope", sans-serif; font-size: 2.1rem; font-weight: 800; line-height: 1; color: #fff; letter-spacing: -0.02em; }
.rx-stats span { display: block; margin-top: 10px; font-size: 0.86rem; line-height: 1.4; color: var(--text-dim); }

/* ----- Bands ----- */
.re-page .land-page section { margin: 0; }
.rx-band { padding: 96px 0; }
.rx-band-alt { background: var(--rx-alt); border-top: 1px solid var(--rx-line); border-bottom: 1px solid var(--rx-line); }
.re-page .land-demo { padding-top: 168px; }   /* room for the stats strip that overlaps from the hero */
.rx-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.rx-head p:not(.re-kicker), .rx-lead { margin: 20px 0 0; font-size: 1.08rem; color: #b4bac3; }
.rx-center { margin: 40px 0 0; text-align: center; }
.re-page .re-price { margin: 0; padding: 10px 20px; border-radius: 999px; font-family: inherit; font-weight: 700; }

/* ----- Viewer and film frames ----- */
.re-page .land-frame { border-radius: 24px; border-color: var(--rx-line); box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5); }
.re-page .land-frame.live { aspect-ratio: 16 / 9; min-height: 520px; }
.rx-frame-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 32px; margin-top: 20px; }
.rx-frame-foot .land-note { max-width: 62ch; font-size: 0.84rem; }
.rx-frame-foot .land-caption { margin: 0; white-space: nowrap; font-weight: 700; }
.re-page .land-caption a { text-decoration: none; }
.re-page .land-caption a:hover { text-decoration: underline; }
.rx-split-film { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.rx-checks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.rx-checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }

/* ----- Cards ----- */
.re-page .rx-cards { gap: 24px; }
.rx-cards-4 { grid-template-columns: repeat(4, 1fr) !important; }
.rx-cards-3 { grid-template-columns: repeat(3, 1fr) !important; }
.re-page .rx-cards li {
  padding: 28px; border-radius: var(--rx-r); background: var(--rx-card); border: 1px solid var(--rx-line);
  font-size: 0.95rem; line-height: 1.6; color: #a9b0ba;
  transition: transform 0.2s, border-color 0.2s;
}
.re-page .rx-cards li:hover { transform: translateY(-3px); border-color: #3a414c; }
.re-page .rx-cards strong { margin-bottom: 8px; font-size: 1.08rem; font-weight: 800; line-height: 1.3; color: #fff; }
.rx-cards i {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px;
  background: rgba(255, 122, 26, 0.14);
}
.rx-cards i svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.re-page .rx-cards-sm li { padding: 24px; background: transparent; }
.re-page .rx-cards-sm strong { padding-left: 14px; border-left: 3px solid var(--accent); }

/* ----- Steps ----- */
.re-page .rx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.re-page .rx-steps li { margin: 0; padding: 32px 28px; border-radius: var(--rx-r); background: var(--rx-card); border: 1px solid var(--rx-line); font-size: 0.97rem; color: #a9b0ba; }
.rx-steps b { display: block; margin-bottom: 20px; font-family: "Archivo", "Manrope", sans-serif; font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.rx-steps strong { display: block; margin-bottom: 8px; font-size: 1.08rem; font-weight: 800; line-height: 1.3; color: #fff; }

/* ----- Closing call to action ----- */
.rx-band-cta { padding-top: 0; }
.rx-cta {
  padding: 72px 32px; border-radius: 28px; text-align: center;
  background: radial-gradient(700px 300px at 50% 0%, rgba(255, 122, 26, 0.2), transparent 70%), var(--rx-card);
  border: 1px solid rgba(255, 122, 26, 0.35);
}
.rx-cta > p:not(.re-kicker) { max-width: 34em; margin: 20px auto 0; color: #b4bac3; }
.re-page .rx-cta .re-ctas { justify-content: center; }

.re-page .site-footer { padding: 48px 0; }

/* ----- Tablet ----- */
@media (max-width: 1000px) {
  .rx-split, .rx-split-film { grid-template-columns: 1fr; gap: 40px; }
  .rx-cards-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .rx-stats { grid-template-columns: repeat(2, 1fr); }
  .rx-stats li:nth-child(3) { border-left: 0; }
  .rx-stats li:nth-child(n+3) { border-top: 1px solid var(--rx-line); }
  .rx-stats { transform: none; margin-top: 48px; }
  .re-page .re-hero { padding-bottom: 64px; }
  .re-page .land-demo { padding-top: 72px; }
  .rx-band { padding: 72px 0; }
  .rx-band-cta { padding-top: 0; }
  .re-page .site-header { --logo-big: 88px; --logo-small: 44px; }
  .re-page .site-header .container { flex-wrap: wrap; gap: 0 24px; padding-top: 10px; padding-bottom: 4px; }
  .rx-head-cta { margin-left: auto; }
  .re-page .site-nav { order: 3; width: 100%; margin: 6px 0 0; gap: 24px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; border-top: 1px solid #e6e8ec; padding: 6px 0; transform: none; }
  .re-page .site-nav::-webkit-scrollbar { display: none; }
}

/* ----- Phone ----- */
@media (max-width: 700px) {
  .re-page { font-size: 16px; }
  .re-page .container { padding: 0 20px; }
  .re-page .re-hero { padding: 40px 0 48px; }
  .re-page .re-hero p { margin-top: 16px; font-size: 1rem; }
  .re-page .re-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
  .rx-btn { min-height: 50px; padding: 0 16px; font-size: 0.95rem; }
  .rx-btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.85rem; }
  .re-page .re-hero .rx-trust { align-items: flex-start; margin-top: 20px; font-size: 0.85rem; }
  .rx-hero-shot { border-radius: 18px; }
  .rx-stats { margin-top: 32px; }
  .rx-stats li { padding: 20px 12px; }
  .rx-stats strong { font-size: 1.7rem; }
  .rx-stats span { font-size: 0.8rem; }

  .rx-band { padding: 56px 0; }
  .re-page .land-demo { padding-top: 56px; }
  .rx-band-cta { padding-top: 0; }
  .rx-head { margin-bottom: 32px; text-align: left; }
  .rx-head p:not(.re-kicker), .rx-lead { margin-top: 14px; font-size: 1rem; }
  .re-page .re-kicker { margin-bottom: 12px !important; font-size: 0.72rem !important; }

  .re-page .land-frame { border-radius: 18px; }
  .re-page .land-frame.live { aspect-ratio: 3 / 4; min-height: 0; }
  .re-page .land-frame.rx-film { aspect-ratio: 16 / 9; }
  .rx-frame-foot { flex-direction: column-reverse; gap: 10px; margin-top: 16px; }

  .re-page .rx-cards { gap: 12px; }
  .rx-cards-3 { grid-template-columns: 1fr !important; }
  .re-page .rx-cards li { padding: 20px; font-size: 0.9rem; line-height: 1.5; }
  .re-page .rx-cards strong { font-size: 1rem; }
  .rx-cards i { width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; }
  .rx-cards i svg { width: 20px; height: 20px; }
  .re-page .rx-cards-sm li { padding: 4px 0 12px; border: 0; font-size: 0.85rem; }
  .re-page .rx-cards-sm { gap: 16px 20px; }
  .re-page .rx-cards-sm strong { font-size: 0.95rem; }

  .re-page .rx-steps { grid-template-columns: 1fr; gap: 12px; }
  .re-page .rx-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; font-size: 0.92rem; }
  .rx-steps b { grid-row: span 2; margin: 0; font-size: 1.7rem; }
  .rx-steps strong { margin-bottom: 4px; font-size: 1rem; }

  .rx-cta { padding: 40px 20px; border-radius: 20px; }
  .re-page .rx-cta .re-ctas { grid-template-columns: 1fr; }
  .rx-center { margin-top: 28px; }
}

/* fixes: button text colours inside the contact panel, phone nav, phone cards */
.re-page a.rx-btn { color: #111; }
.re-page a.rx-btn.rx-btn-ghost { color: var(--text); }
.re-page a.rx-btn.rx-btn-ghost:hover { color: var(--accent); }

@media (max-width: 700px) {
  .re-page .site-header { --logo-big: clamp(40px, 12.5vw, 56px); --logo-small: 40px; }
  .re-page .site-header .container { column-gap: 12px; }   /* keeps the phone button beside the logo on narrow phones */
  .re-page .site-nav { gap: 0; justify-content: space-between; }
  .re-page .site-nav a { font-size: 0.84rem; }
  .re-page .rx-cards-4:not(.rx-cards-sm) { grid-template-columns: 1fr !important; }
  .re-page .rx-cards:not(.rx-cards-sm) li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; align-items: start; }
  .re-page .rx-cards:not(.rx-cards-sm) i { grid-row: span 2; margin: 0; }
  .re-page .rx-cards:not(.rx-cards-sm) strong { margin-bottom: 4px; }
}

/* Form polish: label text stays on one line, intro and form panel align at the top */
.book-form-panel .label-text { display: block; }
.book-form-panel h2 { margin: 0 0 6px; line-height: 1.2; }
.book-form-panel { padding: 32px; }
.book-intro h1 { margin: 0 0 16px; }
.book-form-panel .request-email { margin-top: 20px; }
@media (max-width: 600px) { .book-form-panel { padding: 20px; } }

/* ----- Real estate hero: headline above the live model ----- */
.re-page .re-hero-live { padding: 72px 0 80px; }
.rx-hero-copy { max-width: 820px; margin: 0 auto 48px; text-align: center; }
.re-page .rx-hero-copy p:not(.re-kicker) { margin: 24px auto 0; max-width: 40em; }
.re-page .rx-hero-copy .re-ctas { justify-content: center; }
.rx-hero-viewer { max-width: 1120px; margin: 0 auto; }
.re-page .rx-hero-viewer .land-frame.live { aspect-ratio: auto; min-height: 0; height: clamp(440px, 52vw, 630px); box-shadow: 0 32px 80px rgba(0,0,0,.55), 0 0 0 8px rgba(255,255,255,.03); }
.rx-live-tag { display: flex; align-items: flex-start; gap: 10px; margin: 0; max-width: 56ch; font-size: .9rem; line-height: 1.5; color: #b4bac3; }
.rx-live-tag strong { color: #fff; }
.rx-chip-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,26,.2); }
.re-hero-live .rx-frame-foot { justify-content: space-between; margin-top: 20px; }
.re-hero-live .rx-frame-foot .land-note { max-width: 44ch; margin: 0; text-align: right; }
.re-page .re-hero-live .rx-stats { transform: none; margin: 64px 0 0; }
@media (max-width: 1000px) {
  .re-page .re-hero-live { padding: 56px 0 64px; }
  .re-hero-live .rx-frame-foot { flex-direction: column; }
  .re-hero-live .rx-frame-foot .land-note { text-align: left; max-width: none; }
}
@media (max-width: 700px) {
  .re-page .re-hero-live { padding: 40px 0 48px; }
  .rx-hero-copy { margin-bottom: 32px; text-align: left; }
  .re-page .rx-hero-copy p:not(.re-kicker) { margin-left: 0; }
  .re-page .rx-hero-copy .re-ctas { justify-content: stretch; }
  .re-page .rx-hero-viewer .land-frame.live { height: auto; aspect-ratio: 3 / 4; }
  .re-page .re-hero-live .rx-stats { margin-top: 40px; }
}

/* Request form: grid columns may shrink so "Year / variant" stays inside the card */
.form-grid > label { min-width: 0; }
.book-form-panel input:not([type=checkbox]):not([type=radio]):not([type=file]), .book-form-panel textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.book-form-panel input[type=checkbox], .book-form-panel input[type=radio] { width: auto; flex: 0 0 auto; }
@media (min-width: 600px) { .form-grid-3 { grid-template-columns: 1fr 1fr 0.8fr; } }

/* Hero: tighter headline so more of the live model shows on first screen */
.re-page .re-hero-live { padding-top: 48px; }
.re-page .re-hero-live h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.rx-hero-copy { margin-bottom: 36px; }
.re-page .rx-hero-copy p:not(.re-kicker) { margin-top: 16px; }
.re-page .rx-hero-copy .re-ctas { margin-top: 24px; }
@media (max-width: 700px) { .rx-hero-copy { margin-bottom: 28px; } }

/* =========================================================
   Site-wide premium layer. Every page carries body.re-page, so
   the header, type, buttons and spacing above apply everywhere.
   This block restyles the shared components (shop, forms,
   product page, policy pages, footer) on the same 8px scale.
   ========================================================= */
.re-page h3, .re-page h4 { font-family: "Archivo", "Manrope", sans-serif; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.re-page a { transition: color 0.15s; }
.re-page ::selection { background: var(--accent); color: #111; }

/* Shop intro */
.re-page .hero:not(.re-hero) {
  padding: 64px 0 56px; border-bottom: 1px solid var(--rx-line);
  background: radial-gradient(900px 420px at 85% 0%, rgba(255,122,26,.12), transparent 70%), var(--rx-bg);
}
.re-page .hero:not(.re-hero) h1 { font-size: clamp(1.9rem, 3.7vw, 3rem); max-width: none; margin: 0 0 24px; }
.re-page h1 .h-line { display: block; }
.re-page h1 .nb { color: inherit; white-space: nowrap; }
.re-page .hero:not(.re-hero) p:last-child { margin-bottom: 0; }
.re-page .hero:not(.re-hero) p { max-width: 40em; margin: 0 0 24px; font-size: 1.12rem; line-height: 1.65; color: #b4bac3; }
.re-page .intro-banner {
  display: inline-flex; align-items: center; margin: 0; padding: 10px 18px; border: 0; border-radius: 999px;
  background: rgba(255,122,26,.14); color: var(--accent) !important;
  font-family: inherit; font-size: .92rem !important; font-weight: 800; letter-spacing: .02em;
}

/* Search and filters: one slim toolbar, so the products start higher up the page.
   Make buttons on the left, a compact search on the right. The model buttons
   appear on a second line once a make is chosen. */
.re-page .browse {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 24px;
  margin: 40px 0 0; padding: 0; background: none; border: 0; border-radius: 0;
}
/* The buttons keep their natural width; the search gives way first (down to 200px) before they wrap */
.re-page .browse .filter-row { order: 1; flex: 0 1 auto; min-width: 0; margin: 0; gap: 0; }
.re-page .browse .search-box { order: 2; flex: 1 1 200px; min-width: 200px; max-width: 320px; margin-left: auto; }
.re-page .browse #model-row { order: 3; flex: 0 0 100%; }
.re-page .browse .chips { min-width: 0; }
/* "Make" and "Model" stay for screen readers; the buttons already say what they are */
.re-page .filter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.re-page .search-box {
  -webkit-appearance: none; appearance: none; min-height: 42px; padding: 0 16px 0 44px;
  font: inherit; font-size: .95rem; color: var(--text);
  background: var(--rx-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa1ab' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 16px center / 18px 18px no-repeat;
  border: 1px solid var(--rx-line); border-radius: 999px;
}
.re-page .search-box::placeholder { color: var(--text-dim); }
.re-page .search-box:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,26,.16); }
.re-page .chip { min-height: 42px; padding: 0 16px; font: inherit; font-size: .92rem; font-weight: 600; background: var(--rx-card); border: 1px solid var(--rx-line); border-radius: 999px; transition: border-color .15s, background .15s; }
.re-page .chip.active { background: var(--accent); border-color: var(--accent); color: #111; font-weight: 800; }
/* Model buttons are the second level: a little smaller, and tinted rather than solid when chosen */
.re-page #model-row .chip { min-height: 36px; padding: 0 14px; font-size: .86rem; }
.re-page #model-row .chip.active { background: rgba(255,122,26,.14); border-color: rgba(255,122,26,.55); color: var(--accent); }
.re-page .results-bar { margin: 20px 0 0; }
.re-page .result-count, .re-page .breadcrumb { font-size: .9rem; }

/* The shop grid: three cards across on a wide screen, two on a tablet, one on a phone */
.re-page .scan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 16px 0 64px; }
@media (max-width: 1000px) { .re-page .scan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .re-page .scan-grid { grid-template-columns: minmax(0, 1fr); } }

/* Cards */
.re-page .scan-card { background: var(--rx-card); border: 1px solid var(--rx-line); border-radius: var(--rx-r); transition: transform .2s, border-color .2s, box-shadow .2s; }
.re-page .scan-card:hover { transform: translateY(-4px); border-color: rgba(255,122,26,.45); box-shadow: 0 24px 56px rgba(0,0,0,.45); }
.re-page .scan-card img { border-bottom: 1px solid var(--rx-line); }
.re-page .scan-info { padding: 24px; }
.re-page .card-kicker { margin: 0 0 8px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.re-page .scan-info h3 { margin: 0 0 4px; font-size: 1.3rem; line-height: 1.2; }
.re-page .card-type { margin: 0 0 16px; font-size: .9rem; }
.re-page .description { margin: 0 0 16px; line-height: 1.6; color: #a9b0ba; }
.re-page .included { margin: 0 0 16px; }
.re-page .included li { padding: 4px 0 4px 32px; }
.re-page .included li::before {
  content: ""; top: 7px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,122,26,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a1a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}
.re-page .details-link { font-weight: 700; }
.re-page .scan-info .details-link { display: inline-block; margin: 0 0 16px; }
.re-page .buy-row { padding-top: 16px; border-top: 1px solid var(--rx-line); }
.re-page .price-amount { font-family: "Archivo", sans-serif; font-size: 1.6rem; font-weight: 800; }
.re-page .terms-tick { margin: 12px 0 16px; padding: 12px 16px; background: var(--rx-bg); border: 1px solid var(--rx-line); border-radius: 12px; line-height: 1.5; }
/* Shop cards: price on the left and one button to the scan's own page, where buying happens */
.re-page .card-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--rx-line); }
.re-page .card-buy .buy-button { width: auto; min-height: 48px; padding: 0 24px; text-decoration: none; white-space: nowrap; }

/* Buttons: every action button is a pill */
.re-page .buy-button, .re-page .submit-button, .re-page .download-button, .re-page .unsubscribe-form button, .re-page .newsletter-form button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px; background: var(--accent); color: #111; font: inherit; font-size: 1rem; font-weight: 800; line-height: 1;
  box-shadow: 0 10px 28px rgba(255,122,26,.24); transition: transform .15s, background .15s, box-shadow .15s; cursor: pointer;
}
.re-page .buy-button:hover, .re-page .submit-button:hover, .re-page .download-button:hover, .re-page .unsubscribe-form button:hover, .re-page .newsletter-form button:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 14px 32px rgba(255,122,26,.34); }
.re-page .buy-button:focus-visible, .re-page .chip:focus-visible, .re-page .search-box:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.re-page .download-button { text-decoration: none; }

/* "Can't find it" prompt and mailing list */
.re-page .request-prompt { margin: 0 0 64px; padding: 24px 32px; background: var(--rx-card); border: 1px solid var(--rx-line); border-radius: var(--rx-r); gap: 16px 32px; }
.re-page .request-prompt a { font-weight: 800; text-decoration: none; }
.re-page .request-prompt a:hover { text-decoration: underline; }
.re-page .home-newsletter { margin: 0 0 96px; padding: 48px; background: radial-gradient(700px 320px at 100% 0%, rgba(255,122,26,.12), transparent 70%), var(--rx-card); border: 1px solid var(--rx-line); border-radius: 24px; gap: 24px 48px; }
.re-page .home-newsletter h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.re-page .home-newsletter p { line-height: 1.6; color: #b4bac3; }
.re-page .newsletter-row input, .re-page .unsubscribe-form input { min-height: 52px; padding: 0 20px; font: inherit; background: var(--rx-bg); border: 1px solid var(--rx-line); border-radius: 999px; color: var(--text); }
.re-page .newsletter-row input:focus, .re-page .unsubscribe-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,26,.16); }
.re-page .home-newsletter .newsletter-note, .re-page .field-note { font-size: .82rem; line-height: 1.5; }

/* Forms (request, book) */
.re-page .book-page { grid-template-columns: minmax(0, 1fr); gap: 64px; padding-top: 72px; padding-bottom: 96px; }
.re-page .book-page > * { max-width: 720px; }
@media (min-width: 1000px) {
  .re-page .book-page { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .re-page .book-page > * { max-width: none; }
}
@media (min-width: 1000px) and (min-height: 760px) {
  .re-page .book-intro { position: sticky; top: 104px; }   /* the pitch stays in view beside a long form */
}
.re-page .book-intro h1 { margin: 0 0 24px; font-size: clamp(2rem, 3.6vw, 2.75rem); }
.re-page .book-lead { margin: 0 0 24px; font-size: 1.2rem; line-height: 1.55; color: #e6e8ec; }
.re-page .book-note { margin: 0 0 16px; line-height: 1.65; color: #b4bac3; }
.re-page .book-price { margin: 24px 0; }
.re-page .book-form-panel { padding: 40px; background: var(--rx-card); border: 1px solid var(--rx-line); border-radius: 24px; container-type: inline-size; }
/* In a narrow form, Make and Model share a row and Year takes the next one */
@container (min-width: 300px) and (max-width: 520px) {
  .re-page .form-grid-3 { grid-template-columns: 1fr 1fr; }
  .re-page .form-grid-3 > :last-child { grid-column: 1 / -1; }
}
.re-page .book-form-panel h2 { margin: 0 0 8px; font-size: 1.6rem; }
.re-page .form-hint { margin: 0 0 24px; font-size: .92rem; line-height: 1.5; }
.re-page .book-form-panel label { gap: 8px; font-size: .88rem; font-weight: 700; color: #cfd3d8; }
.re-page .book-form-panel input:not([type=checkbox]):not([type=radio]):not([type=file]), .re-page .book-form-panel textarea, .re-page .book-form-panel select {
  min-height: 52px; padding: 14px 16px; font: inherit; font-size: 1rem; font-weight: 500; color: var(--text); background: var(--rx-bg); border: 1px solid var(--rx-line); border-radius: 12px;
}
.re-page .book-form-panel textarea { min-height: 120px; }
.re-page .book-form-panel input:focus, .re-page .book-form-panel textarea:focus, .re-page .book-form-panel select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,26,.16); }
.re-page .form-grid { gap: 16px; }
.re-page .book-form-panel label.full-width { margin-bottom: 24px; }
.re-page .free-scan { margin: 8px 0 24px; padding: 24px; border: 1px solid var(--rx-line); border-radius: 16px; background: rgba(255,255,255,.015); }
.re-page .book-form-panel fieldset:not(.free-scan) { margin: 0 0 32px; }
.re-page .book-form-panel legend { margin-bottom: 16px; font-family: "Archivo", "Manrope", sans-serif; font-size: 1.05rem; font-weight: 800; color: #fff; }
.re-page .free-scan legend { margin-bottom: 8px; }
.re-page .free-scan .form-hint { margin: 0; }
.re-page .book-form-panel .terms-tick { margin: 16px 0 0; font-size: .92rem; font-weight: 600; color: #cfd3d8; }
.re-page .book-form-panel .terms-tick input { margin-top: 2px; }
.re-page #free-scan-fields { margin-top: 20px; }
.re-page .free-scan-email-note { display: block; margin: 12px 0 0; }
.re-page .book-form-panel .field-note { font-weight: 500; color: var(--text-dim); }
.re-page .book-form-panel input[type=file] { padding: 12px; font: inherit; font-size: .92rem; font-weight: 500; color: var(--text-dim); background: var(--rx-bg); border: 1px dashed #3a414c; border-radius: 12px; cursor: pointer; }
.re-page .book-form-panel input[type=file]::file-selector-button { margin-right: 16px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: #2a303a; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.re-page .book-form-panel input[type=file]:hover { border-color: var(--accent); }
.re-page .form-status { min-height: 0; margin: 0; }
.re-page .form-status:not(:empty) { margin-top: 16px; }

/* Product page */
.re-page .product-page { padding-top: 40px; padding-bottom: 96px; }
.re-page .product-top { gap: 48px; margin-top: 24px; }
.re-page .gallery-main { background: var(--rx-card); border: 1px solid var(--rx-line); border-radius: var(--rx-r); }
.re-page .product-info h1 { margin: 0 0 16px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.re-page .product-page > h1 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3rem); }
.re-page .product-page > .description { margin-bottom: 32px; }
.re-page .product-info .card-kicker { margin-bottom: 12px; }
.re-page .thumbnails { gap: 12px; margin-top: 16px; }
.re-page .thumb { border: 1px solid var(--rx-line); border-radius: 12px; background: var(--rx-card); transition: border-color .15s, box-shadow .15s; }
.re-page .thumb.active, .re-page .thumb:hover { border-color: var(--accent); }
.re-page .thumb.active { box-shadow: inset 0 0 0 1px var(--accent); }
.re-page .enlarge-hint { right: 12px; bottom: 12px; padding: 6px 12px; font-weight: 600; background: rgba(11,13,16,.72); backdrop-filter: blur(6px); }
.re-page .gallery-caption { margin: 12px 4px 0; }
.re-page .small-heading { margin: 24px 0 12px; font-family: inherit; font-size: .72rem; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: var(--text-dim); }
.re-page .spec-list { gap: 8px 24px; margin: 0 0 24px; align-items: baseline; }
.re-page .spec-list dt { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.re-page .viewer-section { margin-top: 64px; }
.re-page .viewer-section .section-title { margin: 0 0 24px; font-size: clamp(1.5rem, 3vw, 2rem); }
.re-page model-viewer, .re-page .viewer-placeholder { border-radius: var(--rx-r); border: 1px solid var(--rx-line); overflow: hidden; }
.re-page .viewer-hint { margin-top: 16px; font-size: .88rem; line-height: 1.6; }

/* Policy and thank-you pages */
.re-page .legal { max-width: 780px; padding-top: 72px; padding-bottom: 96px; }
.re-page .legal h1 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3rem); }
.re-page .legal h2 { margin: 48px 0 12px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.2; }
.re-page .legal p, .re-page .legal li { line-height: 1.75; color: #b4bac3; }
.re-page .legal a, .re-page .field-note a, .re-page .terms-tick a { color: var(--accent); }
.re-page .legal-summary { margin: 32px 0; padding: 24px; background: var(--rx-card); border: 1px solid var(--rx-line); border-left: 3px solid var(--accent); border-radius: 16px; }
.re-page .thank-you { padding: 72px 24px 96px; }
.re-page .thank-you h1 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3rem); }
.re-page .thank-you p { line-height: 1.65; color: #b4bac3; }
.re-page .back-link { font-weight: 700; }
.re-page .contact-email { font-size: clamp(1.05rem, 5.2vw, 1.3rem); overflow-wrap: anywhere; }

/* Footer */
.re-page .site-footer { margin-top: 0; padding: 48px 0 56px; background: var(--rx-alt); border-top: 1px solid var(--rx-line); font-size: .9rem; line-height: 1.6; }
.re-page .site-footer p { margin: 0 0 8px; }
.re-page .footer-disclaimer { max-width: 760px; margin-top: 16px; }
.re-page .footer-nav { gap: 8px 24px; margin-top: 24px; }
.re-page .footer-nav a { font-weight: 600; text-decoration: none; }
.re-page .footer-newsletter { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--rx-line); }
.re-page .site-footer .newsletter-heading { margin: 0 0 16px; }
.re-page .newsletter-row { gap: 12px; max-width: 480px; }
.re-page .newsletter-note, .re-page .site-footer .newsletter-note { margin: 12px 0 0; }
.re-page .site-footer .newsletter-status { margin: 12px 0 0; }
.re-page .unsubscribe-form { gap: 12px; margin-top: 24px; }

/* Short pages: the footer sits at the bottom of the window, never mid-screen */
body.re-page { min-height: 100vh; display: flex; flex-direction: column; }
.re-page > main { flex: 1 0 auto; width: 100%; }

/* Keyboard focus stays visible on the white header; no movement for people who ask for less motion */
.re-page .site-header a:focus-visible { outline: 2px solid #14181d; outline-offset: 3px; border-radius: 4px; }
.re-page .site-header .rx-btn:focus-visible { border-radius: 999px; }
@media (prefers-reduced-motion: reduce) {
  .re-page .scan-card, .re-page .buy-button, .re-page .rx-btn, .re-page .chip { transition: none; }
  .re-page .scan-card:hover, .re-page .buy-button:hover, .re-page .rx-btn:hover { transform: none; }
}

/* Real estate hero: the small label sits centred over its headline */
.re-page .rx-hero-copy .re-kicker { max-width: none; }

/* Tablet and phone */
@media (max-width: 1000px) {
  .re-page .hero:not(.re-hero) { padding: 48px 0 44px; }
  .re-page .book-page { gap: 48px; padding-top: 48px; padding-bottom: 72px; }
  .re-page .product-top { gap: 32px; }
}
@media (max-width: 700px) {
  .re-page .hero:not(.re-hero) { padding: 36px 0 36px; }
  .re-page .hero:not(.re-hero) p { font-size: 1rem; }
  .re-page .browse { margin-top: 28px; }
  .re-page .browse .search-box { order: 1; flex: 0 0 100%; max-width: none; }
  .re-page .browse .filter-row { order: 2; flex: 0 0 100%; }
  .re-page .browse #model-row { order: 3; }
  /* One line of buttons that scrolls sideways, instead of several stacked lines.
     The padding leaves room for the keyboard-focus ring; the margins cancel it out. */
  .re-page .browse .chips { flex-wrap: nowrap; overflow-x: auto; margin: -6px -20px -6px -6px; padding: 6px 20px 6px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .re-page .browse .chips::-webkit-scrollbar { display: none; }
  .re-page .browse .chip { flex: 0 0 auto; }
  .re-page .scan-info { padding: 20px; }
  .re-page .request-prompt { padding: 20px; }
  .re-page .home-newsletter { margin-bottom: 64px; padding: 24px 20px; }
  .re-page .book-page { padding-top: 32px; padding-bottom: 56px; }
  .re-page .book-form-panel { padding: 24px 20px; }
  .re-page .free-scan { padding: 16px; }
  .re-page .product-page { padding-top: 24px; padding-bottom: 64px; }
  .re-page .legal { padding-top: 40px; padding-bottom: 64px; }
  .re-page .legal h2 { margin-top: 32px; }
  .re-page .thank-you { padding: 40px 20px 64px; }
  .re-page .site-footer { padding: 40px 0 48px; }
}
@media (max-width: 480px) {
  /* Email box above its button, both full width, so there is room to type */
  .re-page .newsletter-row, .re-page .unsubscribe-form { flex-direction: column; }
  .re-page .newsletter-row input, .re-page .unsubscribe-form input { flex: none; width: 100%; }
  .re-page .newsletter-row button, .re-page .unsubscribe-form button { width: 100%; }
}
@media (max-width: 480px) {      /* phones: the two buttons one above the other, so longer labels fit */
  .re-page .re-ctas { grid-template-columns: 1fr; }
}

/* Shop listings in rows of two (one per row on a phone) */
.re-page .scan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .re-page .scan-grid { grid-template-columns: minmax(0, 1fr); } }

/* ----- Main menu: Automotive (Shop, Request a scan, Book a scan) and Real estate. Added 16 Nov 2026 ----- */
.re-page .site-nav .nav-group { position: relative; }
.re-page .site-nav .nav-trigger { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 0.94rem; font-weight: 700; line-height: inherit; color: #14181d; cursor: pointer; white-space: nowrap; }
.re-page .site-nav .nav-trigger svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.re-page .site-nav .nav-trigger:hover, .re-page .site-nav .nav-trigger.is-current, .re-page .site-nav .nav-group.open .nav-trigger { color: #e85f00; }
.re-page .site-nav .nav-group.open .nav-trigger svg { transform: rotate(180deg); }
.re-page .site-nav .nav-trigger:focus-visible { outline: 2px solid #14181d; outline-offset: 3px; border-radius: 4px; }
.re-page .site-nav .nav-menu { display: none; position: absolute; top: 100%; left: -14px; z-index: 60; min-width: 220px; margin-top: 10px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(0, 0, 0, 0.16); }
.re-page .site-nav .nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }   /* keeps the menu open while the pointer crosses the gap */
.re-page .site-nav .nav-group.open .nav-menu { display: block; animation: nav-in 0.16s ease-out; }
html:not(.js-nav) .re-page .site-nav .nav-group:focus-within .nav-menu { display: block; }   /* without scripts it still opens from the keyboard */
@keyframes nav-in { from { opacity: 0; transform: translateY(-4px); } }
.re-page .site-nav .nav-menu a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 0.94rem; font-weight: 700; color: #14181d; text-decoration: none; white-space: nowrap; }
.re-page .site-nav .nav-menu a:hover { background: #f3f4f6; color: #e85f00; }
.re-page .site-nav .nav-menu a[aria-current="page"] { color: #e85f00; border-bottom: 0; text-decoration: none; box-shadow: none; }
@media (max-width: 1000px) {
  .re-page .site-nav { overflow: visible; gap: 28px; }
  .re-page .site-nav .nav-menu { left: 0; }
}
@media (max-width: 700px) {
  .re-page .site-nav { justify-content: flex-start; gap: 28px; }
  .re-page .site-nav .nav-trigger { font-size: 0.84rem; }
}
@media (prefers-reduced-motion: reduce) { .re-page .site-nav .nav-group.open .nav-menu { animation: none; } .re-page .site-nav .nav-trigger svg { transition: none; } }

/* ----- 3D property model quote form (added 16 Nov 2026) ----- */
.book-form-panel .tick-grid { display: grid; grid-template-columns: 1fr; gap: 10px 24px; margin: 4px 0 18px; }
@media (min-width: 600px) { .book-form-panel .tick-grid { grid-template-columns: 1fr 1fr; } }
.book-form-panel .tick-grid .terms-tick { margin: 0; font-size: 0.94rem; }
.book-form-panel fieldset > .field-note { margin-top: 0; }
#quote-form .form-grid + label.full-width { margin-top: 12px; }   /* same gap as between the rows above */

/* Big play button over the flyover film */
.rx-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 88px; height: 88px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--accent); color: #111;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 0 10px rgba(255, 122, 26, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}
.rx-play:hover { background: var(--accent-hover); transform: translate(-50%, -50%) scale(1.06); }
.rx-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.rx-play svg { width: 34px; height: 34px; margin-left: 5px; fill: currentColor; }
.rx-play[hidden] { display: none; }
@media (max-width: 600px) { .rx-play { width: 68px; height: 68px; } .rx-play svg { width: 26px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .rx-play { transition: none; } }

/* "Price on request" is a link to the request form */
.re-price-link { text-decoration: none; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.re-price-link:hover, .re-price-link:focus-visible { background: var(--accent); color: #111 !important; }
.re-price-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Sample vendor report preview, and the centred buttons under the offices cards */
.re-page .land-frame.rx-report { display: block; aspect-ratio: 1 / 1; background: #f6f4f0; transition: border-color 0.2s, transform 0.2s; }
.re-page .land-frame.rx-report:hover { border-color: var(--accent); transform: translateY(-3px); }
.rx-report img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rx-report::after { content: ""; position: absolute; inset: auto 0 0 0; height: 18%; background: linear-gradient(to top, rgba(11, 13, 16, 0.55), transparent); pointer-events: none; }
.re-page .re-ctas.rx-ctas-center { justify-content: center; margin-top: 40px; }
@media (prefers-reduced-motion: reduce) { .re-page .land-frame.rx-report { transition: none; } }

/* The sample vendor report, opened in a large window over the page */
.rx-modal { width: min(1080px, calc(100vw - 32px)); height: min(92vh, 1200px); max-width: none; max-height: none; margin: auto; padding: 0;
  border: 1px solid var(--rx-line); border-radius: 18px; background: #f6f4f0; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); }
.rx-modal[open] { display: flex; flex-direction: column; }
.rx-modal::backdrop { background: rgba(5, 6, 8, 0.78); backdrop-filter: blur(4px); }
.rx-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; background: var(--rx-card); border-bottom: 1px solid var(--rx-line); color: #fff; font-weight: 700; font-size: 0.95rem; }
.rx-modal-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; }
.rx-modal-x:hover { background: var(--accent); color: #111; }
.rx-modal-x:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rx-modal-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.rx-modal iframe { flex: 1; width: 100%; border: 0; background: #f6f4f0; }
html.rx-modal-open { overflow: hidden; }
@media (max-width: 600px) { .rx-modal { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; border: 0; } }

/* Real estate page on phones: larger small print, so nothing is hard to read */
@media (max-width: 600px) {
  .re-page .re-kicker { font-size: 0.82rem !important; letter-spacing: 0.14em; }
  .re-page .rx-cards li, .re-page .rx-cards-sm li, .re-page .rx-steps li { font-size: 1rem; line-height: 1.6; }
  .re-page .rx-cards strong, .re-page .rx-steps strong { font-size: 1.12rem; }
  .re-page .rx-btn { font-size: 1rem; }
  .re-page .re-price { font-size: 1rem !important; }
  .re-page .rx-live-tag, .re-page .land-note { font-size: 0.95rem; }
  .re-page .site-banner-link .banner-short { font-size: 0.9rem; }
  .re-page .site-nav a, .re-page .site-nav .nav-trigger, .re-page .site-header .nav-trigger { font-size: 0.95rem; }
  .re-page .rx-head-cta { font-size: 0.95rem; }
  .re-page .footer-disclaimer, .re-page .newsletter-note { font-size: 0.9rem; line-height: 1.55; }
  .re-page .newsletter-heading, .re-page .footer-nav a, .re-page .site-footer p { font-size: 0.95rem; }
}

/* Phones turned sideways: the live viewer fits the screen, so its menus along the bottom stay in view */
@media (orientation: landscape) and (max-height: 520px) {
  .re-page .rx-hero-viewer .land-frame.live { height: calc(100svh - 24px); min-height: 280px; aspect-ratio: auto; }
}

/* ----- The live 3D model: simple view on phones, and full screen ----- */
.vw-cover { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding: 20px 16px;
  background: linear-gradient(to top, rgba(8, 10, 12, 0.55), rgba(8, 10, 12, 0) 38%); }
.vw-cover[hidden] { display: none; }
.vw-cta { display: flex; gap: 10px; width: 100%; max-width: 420px; }
.vw-cta .rx-btn { flex: 1; min-height: 52px; gap: 8px; }
.vw-cta .rx-btn-ghost { background: rgba(11, 13, 16, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vw-cta svg { width: 18px; height: 18px; fill: currentColor; }
.re-page .land-frame.vw-full { position: fixed !important; inset: 0; z-index: 2000; width: 100vw !important; height: 100vh !important; height: 100dvh !important;
  min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; margin: 0 !important; border: 0; border-radius: 0 !important; }
.vw-x { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(11, 13, 16, 0.85); color: #fff; cursor: pointer; }
.vw-x[hidden] { display: none; }
.vw-x:hover { background: var(--accent); color: #111; }
.vw-x:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.vw-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
html.vw-open { overflow: hidden; }
/* phones: a bigger window on the land while it is the simple view */
@media (max-width: 600px) and (orientation: portrait) {
  .re-page .rx-hero-viewer .land-frame.live.vw-simple { aspect-ratio: auto; height: clamp(440px, calc(100svh - 170px), 640px); }
}
/* wide or sideways screens: the model's menus sit top right, so the close button sits top centre */
@media (min-width: 700px) { .vw-x { right: auto; left: 50%; transform: translateX(-50%); } }

/* Phones: no call or email buttons under the offices and groups cards (the closing section has the call button) */
@media (max-width: 600px) { .re-page .re-ctas.rx-ctas-center { display: none; } }
.re-page .footer-disclaimer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.re-page .footer-disclaimer a:hover { color: var(--accent); }

/* ----- The quote form at the bottom of the real estate page ----- */
.re-page .rx-quote { scroll-margin-top: 96px; padding-top: 0; }
.rx-quote .rx-split { align-items: start; }
.rx-quote .rx-lead { max-width: 34em; }
@media (max-width: 600px) { .re-page .rx-quote { scroll-margin-top: 140px; } }
.re-page .vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ----- Product page: more vehicle scans, as a row you can swipe ----- */
.rec-section { margin: 48px 0 0; }
.rec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rec-head .section-title { margin: 0; }
.rec-arrows { display: flex; gap: 8px; }
.rec-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--rx-line, #2a2f37); background: var(--rx-card, #171a1f); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.rec-arrow:hover { border-color: var(--accent); color: var(--accent); }
.rec-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, calc((100% - 48px) / 3)); gap: 24px; margin: 20px 0 0; padding: 0 0 12px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain; }
.rec-card { scroll-snap-align: start; min-width: 0; }
.rec-link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--rx-r, 16px); border: 1px solid var(--rx-line, #2a2f37); background: var(--rx-card, #171a1f); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.rec-link:hover { border-color: #3a414c; transform: translateY(-2px); }
.rec-link img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--rx-line, #2a2f37); }
.rec-info { display: grid; gap: 4px; padding: 16px 18px 18px; }
.rec-info .card-kicker { margin: 0; }
.rec-title { font-weight: 800; font-size: 1.05rem; line-height: 1.3; color: #fff; }
.rec-price { margin-top: 4px; font-family: "Archivo", "Manrope", sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--accent); }
@media (max-width: 640px) { .rec-row { grid-auto-columns: 78%; gap: 14px; } .rec-arrows { display: none; } }
@media (prefers-reduced-motion: reduce) { .rec-link { transition: none; } }
