/* WattDodger marketing site
   ---------------------------------------------------------------------------
   One stylesheet, no build step. The look is the platform dashboard's
   "night observatory": deep blue-black, hairline rules, brass-olive and
   observatory-cyan accents, serif headings over a quiet sans.
   Sections are ordered: tokens, reset, layout, type, components, pages, print. */

/* --- tokens --------------------------------------------------------------- */

:root {
  --ink: #070b12;
  --ink-2: #0c1220;
  --ink-3: #111a2c;
  --haze: #1d2840;
  --haze-2: #2a3a5c;
  --star: #e9eef7;
  --dim: #8a97ad;
  --dim-2: #5d6b82;
  --olive: #c2a85a;
  --olive-leaf: #7d8a45;
  --sky: #5fd0e0;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 8px;

  --rule: 1px solid var(--haze);
  --shadow: 0 24px 60px -30px rgb(0 0 0 / 0.9);

  --step: clamp(3.5rem, 8vw, 7rem); /* vertical rhythm between sections */
}

/* --- reset ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Anchored sections must clear the sticky header. */
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--star);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--sky);
  text-decoration-color: color-mix(in srgb, var(--sky) 40%, transparent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 3px;
}

hr {
  border: 0;
  border-top: var(--rule);
  margin: var(--step) 0;
}

/* --- layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--step);
}

.section--tint {
  background: linear-gradient(180deg, transparent, var(--ink-2) 18%, var(--ink-2) 82%, transparent);
}

.section--panel {
  background: var(--ink-2);
  border-block: var(--rule);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--ink-3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: var(--rule);
}

/* --- type ----------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  color: var(--dim);
  max-width: 62ch;
}

.prose {
  max-width: 68ch;
}

.prose > p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--dim);
}

.faint {
  color: var(--dim-2);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex: none;
}

.eyebrow--olive {
  color: var(--olive);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 3rem;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.footnote {
  font-size: 0.85rem;
  color: var(--dim-2);
  max-width: 70ch;
  line-height: 1.6;
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--star);
  --btn-bd: var(--haze-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--star);
}

.btn:active {
  transform: none;
}

.btn--primary {
  --btn-bg: var(--olive);
  --btn-fg: #1a1405;
  --btn-bd: var(--olive);
  font-weight: 600;
}

.btn--primary:hover {
  --btn-bg: #d3bb72;
  --btn-bd: #d3bb72;
}

.btn--sky {
  --btn-bg: transparent;
  --btn-fg: var(--sky);
  --btn-bd: color-mix(in srgb, var(--sky) 45%, transparent);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* --- header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--star);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  flex: none;
}

.brand img {
  width: 30px;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--star);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

/* Owner login opens a two-property chooser: the dashboards live at /city and /rural. */
.login {
  position: relative;
}

.login > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.55rem 1rem;
  border: 1px solid var(--haze-2);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--star);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.login > summary::-webkit-details-marker {
  display: none;
}

.login > summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid var(--dim);
  border-bottom: 1.5px solid var(--dim);
  transform: rotate(45deg) translateY(-2px);
}

.login[open] > summary {
  border-color: var(--star);
}

.login__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: 15rem;
  background: var(--ink-3);
  border: var(--rule);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.4rem;
}

.login__menu a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 6px;
  color: var(--star);
  text-decoration: none;
}

.login__menu a:hover {
  background: var(--haze);
}

.login__menu small {
  display: block;
  color: var(--dim-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-top: 0.1rem;
}

/* Burger. Hidden on desktop; becomes the menu control below 900px. 2.75rem square
   keeps it at the 44px minimum touch target. */
.nav-toggle {
  display: none;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--haze-2);
  border-radius: 10px;
  color: var(--star);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--star);
}

/* Two inline SVGs — bars and a cross — swapped on the button's own aria-expanded
   state. Deliberately plain: an earlier pseudo-element burger rendered as a single
   bar on a real phone, and drawn strokes cannot fail that way. If the swap rule is
   ever missed the button still shows a correct three-bar icon. */
/* Both icons share one grid cell. display is set only on the specific classes —
   a `.nav-toggle svg { display: block }` here would be specificity (0,1,1) and
   silently beat the (0,1,0) hide rule, leaving both icons drawn at once. */
.nav-toggle svg {
  grid-area: 1 / 1;
}

.nav-toggle__open {
  display: block;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  /* Row 1 is brand + burger, row 2 the actions. The vertical padding and row gap
     are what stop the buttons butting against the header's top and bottom edges
     once the bar wraps. */
  .site-header__inner {
    flex-wrap: wrap;
    align-content: center;
    padding-block: 0.8rem;
    row-gap: 0.8rem;
    column-gap: 1rem;
  }

  .brand {
    order: 1;
  }

  .nav-toggle {
    display: grid;
    order: 2;
    margin-left: auto;
  }

  .header-actions {
    order: 3;
    margin-left: auto;
  }

  /* Nav links open below the actions, so opening the menu never shifts the CTA. */
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    order: 4;
    width: 100%;
    gap: 0.25rem;
    margin-left: 0;
    padding-bottom: 0.25rem;
  }

  .site-nav.is-open a {
    padding: 0.7rem 0;
    border-bottom: var(--rule);
  }

  /* Where the owner-login chooser sits next to the CTA the pair needs the whole
     row, so split it evenly — two equal controls read as a deliberate pair rather
     than two pills crowded against the right edge. Pages whose header carries a
     lone CTA (404, the plaque tool) keep it compact and right-aligned. */
  /* A 2-column grid rather than flex: with flex-basis:0 the CTA's padding+border
     is clamped in as its base size while the bare <details> has none, so the two
     come out ~34px apart. Grid columns are exactly equal regardless.
     Driven by an explicit class, not :has() — the markup already knows whether it
     carries the pair, so there is no reason to depend on selector support. */
  .header-actions--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 0.6rem;
  }

  .header-actions--split .login > summary,
  .header-actions--split .btn {
    justify-content: center;
  }

  /* Anchor the chooser under its trigger's left edge and cap it to the viewport;
     right-anchored it would run off-screen now the trigger is half-width. */
  .login__menu {
    left: 0;
    right: auto;
    min-width: 0;
    width: max-content;
    max-width: calc(100vw - 2.5rem);
  }
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) var(--step);
  overflow: hidden;
}

/* A single soft cyan bloom, low opacity so it never bands on the near-black field. */
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto -20%;
  height: 70vh;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--sky) 9%, transparent), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 940px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.hero h1 {
  margin-bottom: 0.35em;
}

.hero__tagline {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  color: var(--star);
  max-width: 30ch;
  margin-bottom: 1.2em;
}

.hero__sub {
  color: var(--dim);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero__note {
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--dim-2);
}

/* --- load-shift figure ---------------------------------------------------- */

.figure {
  border: var(--rule);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.figure svg {
  width: 100%;
  height: auto;
}

.figure figcaption {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--dim-2);
  text-transform: uppercase;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dim);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legend i {
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.legend .k-sky {
  color: var(--sky);
}

.legend .k-dim {
  color: var(--dim-2);
}

.legend .k-leaf {
  color: var(--olive-leaf);
}

/* Draw the WattDodger trace on once, so the eye follows night -> solar -> coast. */
.trace-live {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: trace 2.6s 0.3s ease-out forwards;
}

@keyframes trace {
  to {
    stroke-dashoffset: 0;
  }
}

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

  .trace-live {
    animation: none;
    stroke-dashoffset: 0;
  }

}

/* --- cards & grids -------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.card {
  background: var(--ink-2);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card h3 {
  margin-bottom: 0.25rem;
}

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

.card--link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card--link:hover {
  border-color: var(--haze-2);
  transform: translateY(-2px);
}

.card__more {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--sky);
  font-size: 0.92rem;
  font-weight: 500;
}

.card__icon {
  color: var(--olive);
  margin-bottom: 0.6rem;
}

/* --- numbered steps ------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps > li {
  counter-increment: step;
  border-top: 2px solid var(--haze-2);
  padding-top: 1.1rem;
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--olive);
  display: block;
  margin-bottom: 0.6rem;
}

.steps h3 {
  font-size: 1.15rem;
}

.steps p {
  color: var(--dim);
  font-size: 0.96rem;
  margin: 0;
}

/* --- stats ---------------------------------------------------------------- */

.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  background: var(--haze);
  border: var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--ink-2);
  padding: 1.5rem;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 600;
  line-height: 1;
  color: var(--star);
  letter-spacing: -0.02em;
}

.stat__value span {
  font-size: 0.5em;
  color: var(--olive);
  margin-left: 0.15em;
}

.stat__label {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--dim);
}

/* --- feature list --------------------------------------------------------- */

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.ticks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--dim);
}

.ticks li strong {
  color: var(--star);
  font-weight: 600;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--olive);
  border-bottom: 2px solid var(--olive);
  transform: rotate(-45deg);
}

/* --- badges & pills ------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--haze-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.pill--soon {
  border-color: color-mix(in srgb, var(--olive) 50%, transparent);
  color: var(--olive);
}

.pill--live {
  border-color: color-mix(in srgb, var(--olive-leaf) 60%, transparent);
  color: #9fae5c;
}

.pill--live::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

/* --- forms ---------------------------------------------------------------- */

.form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  color: var(--dim);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--ink);
  border: 1px solid var(--haze-2);
  border-radius: var(--radius-sm);
  color: var(--star);
  font: inherit;
  font-size: 1rem;
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim-2);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sky);
  outline: none;
}

/* Honeypot: a real person never sees it, a bot fills it in. */
.field--trap {
  position: absolute;
  left: -9999px;
}

.form__status {
  font-size: 0.92rem;
  min-height: 1.4em;
}

.form__status[data-state="ok"] {
  color: #9fae5c;
}

.form__status[data-state="error"] {
  color: #e0876f;
}

.form__consent {
  font-size: 0.82rem;
  color: var(--dim-2);
  line-height: 1.55;
}

/* --- footer --------------------------------------------------------------- */

.site-footer {
  border-top: var(--rule);
  background: var(--ink-2);
  padding-block: 3.5rem 2.5rem;
  margin-top: var(--step);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  margin-bottom: 3rem;
}

.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim-2);
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.94rem;
}

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

.footer-grid a:hover {
  color: var(--star);
}

.footer-brand img {
  width: 150px;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: var(--rule);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--dim-2);
}

/* --- certified seal ------------------------------------------------------- */

.seal {
  --seal-size: 13rem;
  width: var(--seal-size);
  height: var(--seal-size);
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, var(--ink-3), var(--ink));
  border: 1px solid color-mix(in srgb, var(--olive) 55%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--olive) 8%, transparent), var(--shadow);
  text-align: center;
  /* One knob. Everything inside is sized in em off the circle's diameter, so the
     lockup fills the seal identically at every --seal-size. */
  font-size: calc(var(--seal-size) / 13);
}

/* Sized so the mark's corners — the furthest ink from the centre — still clear the
   rim. The mark's own corners are transparent, so the optical margin is larger. */
.seal__body {
  width: 78%;
}

.seal__mark {
  width: 66%;
  /* The img carries width/height attributes as a layout hint. Without this the
     attribute height wins over the percentage width and squashes the mark. */
  height: auto;
  margin: 0 auto 0.45em;
}

.seal__title {
  font-family: var(--font-display);
  font-size: 1.45em;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--olive);
  margin: 0;
}

.seal--lg {
  --seal-size: 16rem;
}

/* --- guest (QR landing) page ---------------------------------------------- */

.guest-hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

@media (min-width: 800px) {
  .guest-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.guest-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--dim-2);
  margin-top: 1.25rem;
}

.benefit {
  border: var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--ink-2);
}

.benefit__kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.9rem;
}

.qr-block {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.qr-card {
  background: #fff;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  width: 11rem;
  flex: none;
}

.qr-card svg {
  width: 100%;
  height: auto;
}

/* --- plaque tool ---------------------------------------------------------- */

.plaque-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .plaque-layout {
    grid-template-columns: 22rem minmax(0, 1fr);
  }
}

/* The plaque itself is printed on light card, so it inverts the site palette. */
.plaque {
  background: #fbf9f3;
  color: #14161c;
  border-radius: 6px;
  padding: 2.6rem 2.2rem;
  text-align: center;
  aspect-ratio: 1 / 1.414; /* A-series */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  border: 1px solid #ded9cb;
}

.plaque__logo {
  width: 9rem;
}

.plaque__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: #14161c;
}

.plaque__rule {
  width: 3.5rem;
  height: 2px;
  background: #b3993f;
  margin: 0.85rem auto;
}

.plaque__property {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
  color: #3c3116;
}

.plaque__location {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f6a5c;
  margin: 0.3rem 0 0;
}

.plaque__qr {
  width: 46%;
  margin: 0 auto;
}

.plaque__qr svg {
  width: 100%;
  height: auto;
}

.plaque__scan {
  font-size: 0.82rem;
  color: #4a4638;
  margin: 0.8rem 0 0;
  line-height: 1.45;
}

.plaque__foot {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #85806f;
  margin: 0;
  word-break: break-all;
}

/* --- misc ----------------------------------------------------------------- */

.callout {
  border: var(--rule);
  border-left: 3px solid var(--olive);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--ink-2);
  padding: 1.4rem 1.6rem;
}

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

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cta-band {
  border: var(--rule);
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--ink-3), var(--ink-2) 60%);
  padding: clamp(2rem, 4vw, 3.25rem);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: var(--rule);
  vertical-align: top;
}

.table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim-2);
  font-weight: 500;
}

.table-scroll {
  overflow-x: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- print ---------------------------------------------------------------- */

@media print {
  /* Only the plaque should reach the paper. */
  .site-header,
  .site-footer,
  .plaque-controls,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .plaque-layout {
    display: block;
  }

  .plaque {
    box-shadow: none;
    border: none;
    width: 100%;
    height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
    page-break-inside: avoid;
  }

  @page {
    size: A5 portrait;
    margin: 12mm;
  }
}
