/* Door & Window Inspector landing.
   "Anthracite & glass": a pale glass-blue wall, anthracite frames standing on sills,
   concrete grey floors. Squared corners, hairlines and frames; no shadows, no gradients.
   Colour other than these is reserved for severity, as in the app. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --anth: #2f353a;
  --anth-deep: #22272b;
  --graphite: #4b545a;
  --concrete: #e9ecec;
  --concrete-deep: #dce1e2;
  --surface: #ffffff;
  --line: #c9d1d3;
  --glass: #cde5ee;
  --glass-soft: #e6f2f6;
  --glass-dark: #b4d5e1;
  --glass-deep: #22708a;
  --ink: #1d2225;
  --ink-soft: #566067;
  --on-dark: #f4f7f7;
  --on-dark-soft: #b5c0c5;
  --attention: #a35f00;
  --urgent: #b3261e;
  --frame: 14px;
  --gutter: clamp(20px, 4vw, 48px);
  --band: clamp(64px, 9vw, 128px);
  /* Height of the caption plate under the hero window; the ground strip is tied to it. */
  --plate: 118px;
  --ground: calc(var(--plate) + 12px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.04;
  text-wrap: balance;
  /* Long Estonian compounds: break rather than overflow on narrow screens. */
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(2.35rem, 5vw, 4.125rem);
}
h2 {
  font-size: clamp(1.85rem, 3.6vw, 3rem);
}
h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 32px 0 12px;
}

a {
  color: var(--glass-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--glass-deep);
  outline-offset: 3px;
}
.band--dark :focus-visible,
.band--deep :focus-visible,
.threshold :focus-visible {
  outline-color: var(--glass);
}

b {
  font-weight: 600;
}
code {
  font-family: inherit;
  font-weight: 600;
  overflow-wrap: anywhere;
}

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

.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--anth);
  color: var(--on-dark);
  font-weight: 600;
}
.skip:focus {
  top: 8px;
}

/* ---------- Header: the lintel ---------- */

.lintel {
  background: var(--surface);
  border-bottom: 2px solid var(--anth);
}
.lintel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.brand img {
  flex: none;
}
.brand__name {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.lang {
  display: inline-flex;
  flex: none;
  border: 2px solid var(--anth);
  border-radius: 4px;
}
.lang__item {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 44px;
  padding: 0 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}
.lang__item.is-current {
  background: var(--anth);
  color: var(--on-dark);
}
a.lang__item:hover {
  background: var(--glass);
}

.sections {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.sections__list {
  display: flex;
  gap: 4px 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sections__list::-webkit-scrollbar {
  display: none;
}
.sections__gap {
  flex: 1;
}
.sections a {
  display: block;
  padding: 13px 0;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.sections a:hover,
.sections a[aria-current="page"] {
  border-bottom-color: var(--glass-deep);
}

/* ---------- Shared pieces ---------- */

.kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--glass-deep);
  margin-bottom: 18px;
}

/* The square "pane" with a sheet number, as on the store graphics. */
.tag {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.tag__no {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  background: var(--anth);
  color: var(--on-dark);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.tag__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--glass-deep);
}

.band {
  padding-block: var(--band);
}
.band--concrete {
  background: var(--concrete);
}
.band--white {
  background: var(--surface);
}
.band--glass {
  background: var(--glass-soft);
}
.band--dark {
  background: var(--anth);
  color: var(--on-dark);
}
.band--deep {
  background: var(--anth-deep);
  color: var(--on-dark);
}
.band--dark h3,
.band--deep h3 {
  color: var(--on-dark-soft);
}
.band--dark .tag__no,
.band--deep .tag__no {
  background: var(--glass);
  color: var(--anth);
}
.band--dark .tag__label,
.band--deep .tag__label {
  color: var(--glass);
}
.band--dark a,
.band--deep a {
  color: var(--glass);
}
.band--dark a:hover,
.band--deep a:hover {
  color: var(--surface);
}

.band__head {
  max-width: 820px;
}
.band__lead {
  margin-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.5;
  max-width: 62ch;
}

.plain li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.plain li:last-child {
  border-bottom: 1px solid var(--line);
}
.band--dark .plain li,
.band--deep .plain li {
  border-color: var(--graphite);
}
.plain--cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  margin-top: 14px;
}
.plain--cols li:nth-last-child(2) {
  border-bottom: 1px solid var(--line);
}
.band--dark .plain--cols li:nth-last-child(2) {
  border-color: var(--graphite);
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

/* A square tick box, as on a checklist. */
.ticks {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 34px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 2px;
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.2em + 5px);
  width: 10px;
  height: 6px;
  border-left: 2.5px solid var(--glass-deep);
  border-bottom: 2.5px solid var(--glass-deep);
  transform: rotate(-45deg);
}
.band--dark .ticks li::after,
.band--deep .ticks li::after {
  border-color: var(--glass);
}

.arrow-link {
  font-weight: 600;
}
.arrow-link::after {
  content: " →";
  white-space: nowrap;
}

/* ---------- Google Play call to action ---------- */

.cta {
  margin-top: 32px;
}
.cta__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 24px;
  background: var(--anth);
  border: 2px solid var(--anth);
  border-radius: 4px;
  color: var(--on-dark);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
}
a.cta__button:hover {
  background: var(--glass-deep);
  border-color: var(--glass-deep);
  color: var(--surface);
}
.cta__button svg {
  flex: none;
}
/* Not published yet: an outlined, non-interactive plate. */
.cta__button.is-soon {
  background: transparent;
  color: var(--anth);
  border-style: dashed;
}
.cta__note {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 44ch;
}

/* ---------- Window: a real screenshot behind a frame, on a sill ---------- */

.window {
  position: relative;
  width: 100%;
}
.window__frame {
  position: relative;
  display: grid;
  gap: var(--frame);
  padding: var(--frame);
  background: var(--anth);
}
.window--double .window__frame {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.window__sash {
  background: var(--concrete);
  overflow: hidden;
  aspect-ratio: 720 / 1330;
}
.window__sash img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.window--single .window__sash {
  aspect-ratio: 720 / var(--crop, 1300);
}
/* The handle sits on the frame edge, as in the store graphics. */
.window__handle {
  position: absolute;
  right: -9px;
  top: 46%;
  width: 9px;
  height: 64px;
  background: var(--anth);
}
.window--double .window__handle {
  right: auto;
  left: calc(50% - 3px);
  width: 6px;
  top: 44%;
  height: 56px;
  background: var(--on-dark);
}
.window__sill {
  height: 18px;
  margin-inline: -18px;
  background: var(--anth);
  border-bottom: 4px solid var(--anth-deep);
}
.window__plate {
  margin-top: 18px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.window--dark .window__frame,
.window--dark .window__handle {
  background: var(--glass);
}
.window--dark .window__sill {
  background: var(--glass);
  border-bottom-color: var(--glass-dark);
}

/* ---------- Hero: the wall ---------- */

.hero,
.get {
  position: relative;
  background: var(--glass);
  overflow: hidden;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding-top: clamp(48px, 6vw, 88px);
}
.hero__text {
  padding-bottom: calc(var(--ground) + 56px);
}
.hero__lead {
  margin-top: 24px;
  font-size: 1.1875rem;
  line-height: 1.5;
  max-width: 56ch;
}
.hero__facts {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.2;
}
.hero__facts li::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--anth);
}
.hero__view {
  padding-inline: 18px;
}
/* The darker strip of ground below the sill. */
.hero__ground {
  position: absolute;
  inset: auto 0 0 0;
  height: var(--ground);
  background: var(--glass-dark);
}
.hero .window__plate {
  height: var(--plate);
  margin-top: 0;
  padding-top: 20px;
  color: var(--ink);
}

.notice {
  background: var(--anth);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.9375rem;
}
.notice .wrap {
  display: block;
  padding-block: 14px;
}

/* ---------- 01 Opening types: the schedule ---------- */

.schedule {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 2px solid var(--anth);
  background: var(--surface);
}
.schedule__item {
  padding: 28px 16px 22px;
  border-left: 1px solid var(--line);
  text-align: center;
  min-width: 0;
}
.schedule__item:first-child {
  border-left: 0;
}
.schedule__of {
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.schedule__name {
  font-weight: 600;
  line-height: 1.25;
  hyphens: auto;
}

.drawing {
  width: 100%;
  max-width: 132px;
  margin-inline: auto;
}
.d-frame {
  fill: var(--surface);
  stroke: var(--anth);
  stroke-width: 4;
}
.d-glass {
  fill: var(--glass);
  stroke: var(--anth);
  stroke-width: 2;
}
.d-leaf {
  fill: var(--concrete);
  stroke: var(--anth);
  stroke-width: 2;
}
.d-swing {
  fill: none;
  stroke: var(--anth);
  stroke-width: 1.6;
  stroke-dasharray: 5 4;
}
.d-arrow {
  fill: none;
  stroke: var(--anth);
  stroke-width: 2.4;
}
.d-handle {
  fill: var(--anth);
}
.d-ground {
  stroke: var(--anth);
  stroke-width: 2;
}

.record {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 12px 48px;
  align-items: start;
}
.record h3 {
  margin: 4px 0 0;
}
.record__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.record__list li {
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.record__note {
  grid-column: 2;
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Split sections: window + text ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  grid-template-areas: "view head" "view body";
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.split--flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  grid-template-areas: "head view" "body view";
}
.split__head {
  grid-area: head;
}
.split__body {
  grid-area: body;
}
.split__body > h3:first-child {
  margin-top: 36px;
}
.split__view {
  grid-area: view;
  padding-inline: 18px;
  max-width: 500px;
  width: 100%;
  justify-self: center;
  position: sticky;
  top: 32px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  column-gap: 28px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
  line-height: 1.25;
}
.steps li:nth-child(4n) {
  border-bottom: 1px solid var(--line);
}
.steps__no {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 2px solid var(--anth);
  font-weight: 800;
  font-size: 0.9375rem;
}

.severity {
  display: grid;
  gap: 8px;
}
.severity__row {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 12px 16px;
  border-left: 6px solid;
  background: var(--concrete);
}
.severity__row dt {
  font-weight: 800;
}
.severity__row--watch {
  border-color: var(--glass-deep);
}
.severity__row--watch dt {
  color: var(--glass-deep);
}
.severity__row--attention {
  border-color: var(--attention);
}
.severity__row--attention dt {
  color: var(--attention);
}
.severity__row--urgent {
  border-color: var(--urgent);
}
.severity__row--urgent dt {
  color: var(--urgent);
}

/* ---------- 04 Calendar: no notifications ---------- */

.quiet {
  margin-top: 36px;
  padding: 28px;
  border: 2px solid var(--glass);
}
.quiet__statement {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--glass);
}
.quiet h3 {
  margin-top: 22px;
}
.quiet__note {
  margin-top: 16px;
  color: var(--on-dark-soft);
}

/* ---------- 05 Repair work ---------- */

.figures {
  display: grid;
  gap: 0;
  border: 2px solid var(--anth);
  background: var(--surface);
}
.figures div {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.figures div:first-child {
  border-top: 0;
  background: var(--anth);
  color: var(--on-dark);
}
.figures dd {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.figures div:first-child dd {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}
.figures dt {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.figures div:first-child dt {
  color: var(--on-dark-soft);
}

/* ---------- 06 Advice library ---------- */

.library {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--anth);
}
.library__group {
  padding: 22px 24px 8px 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  min-width: 0;
}
.library__group:first-child {
  border-left: 0;
  padding-left: 0;
}
.library__group h3 {
  margin: 0 0 14px;
  color: var(--glass-deep);
}
.library__group li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
  line-height: 1.3;
}
.caveat {
  margin-top: 40px;
  padding: 24px 28px;
  border: 2px solid var(--anth);
  border-left-width: 14px;
  max-width: 900px;
}
.caveat h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

/* ---------- 07 PDF report ---------- */

.report {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.report__sheet {
  background: var(--surface);
  border: 2px solid var(--anth);
  padding: clamp(22px, 3vw, 40px);
}
.report__sheet h3 {
  margin-top: 0;
}
.report__quote {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid var(--anth);
}
.report__quote figcaption {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.report__quote blockquote {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- 08 Privacy: four panes of one window ---------- */

.panes {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--frame);
  padding: var(--frame);
  background: var(--graphite);
}
.panes li {
  padding: clamp(22px, 3vw, 40px);
  background: var(--glass);
  color: var(--ink);
  min-height: 190px;
}
.panes h3 {
  margin: 0 0 10px;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.1;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.panes p {
  max-width: 40ch;
}
.panes__more {
  margin-top: 28px;
}

/* ---------- Get the app: the door ---------- */

.get__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  padding-top: var(--band);
}
.get__text {
  padding-bottom: calc(var(--ground) + 64px);
}
.get__door {
  max-width: 300px;
  width: 100%;
  justify-self: center;
  margin-bottom: var(--ground);
}
.door-frame {
  fill: var(--anth);
}
.door-leaf {
  fill: var(--on-dark);
}
.door-glass {
  fill: var(--glass);
  stroke: var(--anth);
  stroke-width: 6;
}
.door-bar {
  stroke: var(--anth);
  stroke-width: 6;
  fill: none;
}
.door-swing {
  fill: none;
  stroke: var(--anth);
  stroke-width: 2;
  stroke-dasharray: 9 7;
}
.door-handle {
  fill: var(--anth);
}

/* ---------- Footer: the threshold ---------- */

.threshold {
  background: var(--anth);
  color: var(--on-dark);
  border-top: 6px solid var(--anth-deep);
  padding-top: 56px;
  font-size: 0.9375rem;
}
.threshold a {
  color: var(--on-dark);
}
.threshold a:hover {
  color: var(--glass);
}
.threshold__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 40px;
}
.threshold__name {
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.threshold__tag {
  color: var(--glass);
  font-weight: 600;
}
.threshold__note {
  margin-top: 14px;
  color: var(--on-dark-soft);
  max-width: 46ch;
}
.threshold__col h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 8px;
}
.threshold__col li {
  padding: 2px 0;
}
.threshold__col a {
  display: inline-block;
  padding: 9px 0;
  overflow-wrap: anywhere;
}
.threshold__col li:not(:has(a)) {
  padding: 11px 0;
}
.threshold__lang {
  display: flex;
  gap: 16px;
  align-items: center;
}
.threshold__lang span {
  font-weight: 600;
  color: var(--glass);
}
.threshold__base {
  margin-top: 48px;
  padding-block: 20px;
  border-top: 1px solid var(--graphite);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  color: var(--on-dark-soft);
  font-size: 0.875rem;
}

/* ---------- Inner pages ---------- */

.pagehead {
  background: var(--glass);
  border-bottom: 18px solid var(--glass-dark);
}
.pagehead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 40px;
  align-items: end;
  padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px);
}
.pagehead h1,
.lost h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
}
.pagehead__lead {
  margin-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.5;
  max-width: 62ch;
}
.pagehead__meta {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.pagehead .drawing {
  margin: 0;
}

.doc {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding-block: clamp(40px, 6vw, 80px) var(--band);
}
.doc--narrow {
  grid-template-columns: minmax(0, 760px);
}
.doc__toc {
  position: sticky;
  top: 24px;
  border-top: 2px solid var(--anth);
  padding-top: 16px;
}
.doc__toc h2,
.contact h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  line-height: 1.4;
}
.doc__toc ol {
  counter-reset: toc;
}
.doc__toc li {
  counter-increment: toc;
  border-top: 1px solid var(--line);
}
.doc__toc li:first-child {
  border-top: 0;
}
.doc__toc a {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.doc__toc a::before {
  content: counter(toc);
  flex: none;
  width: 1.4em;
  color: var(--glass-deep);
  font-weight: 800;
}
.doc__toc a:hover {
  color: var(--glass-deep);
}

.doc__body {
  max-width: 760px;
  min-width: 0;
}
.doc__summary {
  background: var(--surface);
  border: 2px solid var(--anth);
  padding: clamp(20px, 3vw, 32px);
}
.doc__summary h2 {
  font-size: 1.5rem;
}
.doc__summary .ticks {
  margin-top: 16px;
}
.doc__section {
  margin-top: 44px;
  scroll-margin-top: 24px;
}
.doc__section h2 {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.15;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--anth);
  margin-bottom: 16px;
}
.doc__no {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  background: var(--anth);
  color: var(--on-dark);
  font-size: 0.9375rem;
  letter-spacing: 0;
}
.doc__section p + p,
.doc__section ul + p,
.doc__section p + ul {
  margin-top: 14px;
}
.doc__section ul {
  display: grid;
  gap: 6px;
}
.doc__section li {
  position: relative;
  padding-left: 22px;
}
.doc__section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--glass-deep);
}

.contact {
  position: sticky;
  top: 24px;
  background: var(--surface);
  border: 2px solid var(--anth);
  padding: 24px;
}
.contact p + p {
  margin-top: 14px;
}
.contact__mail {
  font-size: 1.125rem;
  font-weight: 600;
}
.contact__mail a {
  overflow-wrap: anywhere;
}
.doc--support {
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
}

.faq__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 20px;
}
.faq {
  border-top: 2px solid var(--anth);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--anth);
  font-weight: 800;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
  background: var(--anth);
  color: var(--on-dark);
}
.faq details > p {
  padding: 0 46px 20px 0;
  color: var(--ink);
}

.release h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--anth);
}
.release__current {
  display: inline-block;
  margin: 16px 0 12px;
  padding: 4px 12px;
  background: var(--anth);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.875rem;
}
.release .ticks {
  margin-top: 18px;
}

.lost {
  background: var(--glass);
  border-bottom: 18px solid var(--glass-dark);
}
.lost__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 40px;
  align-items: center;
  padding-block: clamp(56px, 10vw, 140px);
}
.lost__code {
  display: inline-grid;
  place-items: center;
  padding: 6px 14px;
  background: var(--anth);
  color: var(--on-dark);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.lost .cta__button {
  margin-top: 28px;
}
.lost .drawing {
  max-width: 200px;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1020px) {
  .schedule {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .schedule__item:nth-child(4) {
    border-left: 0;
  }
  .schedule__item:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
  .library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library__group:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .library__group:nth-child(n + 3) {
    border-top: 2px solid var(--anth);
  }
  .record {
    grid-template-columns: minmax(0, 1fr);
  }
  .record__note {
    grid-column: 1;
  }
}

@media (max-width: 860px) {
  :root {
    --frame: 10px;
  }
  .hero__grid,
  .split,
  .split--flip,
  .report,
  .get__grid,
  .doc,
  .doc--support,
  .threshold__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .split,
  .split--flip {
    grid-template-areas: "head" "view" "body";
    grid-template-rows: auto;
  }
  .split__view {
    margin-top: 36px;
  }
  .split__view,
  .doc__toc,
  .contact {
    position: static;
  }
  .split__view {
    max-width: 420px;
  }
  .hero__view {
    max-width: 560px;
    width: 100%;
    justify-self: center;
  }
  .hero__text {
    padding-bottom: 0;
  }
  .get__text {
    padding-bottom: 0;
  }
  .get__door {
    max-width: 200px;
  }
  .pagehead__grid {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 20px;
  }
  .lost__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .lost .drawing {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --plate: 132px;
  }
  body {
    font-size: 1rem;
  }
  .brand__name {
    font-size: 1rem;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .brand {
    gap: 10px;
  }
  .sections__gap {
    display: none;
  }
  .sections__list {
    gap: 0 22px;
  }
  .band__lead,
  .hero__lead,
  .pagehead__lead {
    font-size: 1.0625rem;
  }
  .cta__button {
    width: 100%;
    justify-content: center;
  }
  .window__sill {
    margin-inline: -12px;
    height: 14px;
  }
  .hero__view,
  .split__view {
    padding-inline: 12px;
  }
  .schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
  }
  .schedule__item:nth-child(4) {
    border-left: 1px solid var(--line);
  }
  .schedule__item:nth-child(odd) {
    border-left: 0;
  }
  .schedule__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .drawing {
    max-width: 104px;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    grid-template-rows: none;
  }
  .steps li:nth-child(4n) {
    border-bottom: 0;
  }
  .steps li:last-child {
    border-bottom: 1px solid var(--line);
  }
  .severity__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .pair,
  .plain--cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .pair > div + div h3 {
    margin-top: 28px;
  }
  .plain--cols li:nth-last-child(2) {
    border-bottom: 0;
  }
  .quiet {
    padding: 20px;
  }
  .library {
    grid-template-columns: minmax(0, 1fr);
  }
  .library__group {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
    border-top: 2px solid var(--anth);
  }
  .library__group:first-child {
    border-top: 0;
  }
  .caveat {
    padding: 20px;
    border-left-width: 10px;
  }
  .panes {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 36px;
  }
  .panes li {
    min-height: 0;
  }
  .pagehead__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pagehead .drawing {
    display: none;
  }
  .faq details > p {
    padding-right: 0;
  }
  .threshold__base {
    flex-direction: column;
  }
}

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

@media print {
  .lintel,
  .threshold,
  .cta {
    display: none;
  }
}
