/* Construction Feasibility Lab — landing. Art direction «Bautafel»: anthracite site board, red-and-white
   profile tape, profile poles beside real app screens, concrete-grey sections. Fonts self-hosted (SIL OFL). */

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --head: #20282d;
  --deep: #181e22;
  --ink: #1b2226;
  --soft: #4c585e;
  --concrete: #edeeeb;
  --sunk: #e2e4e0;
  --line: #cbd0cb;
  --white: #ffffff;
  --paper: #f3f4f2;
  --signal: #d2461b;
  --signal-dark: #a8370f;
  --signal-light: #ff8a5c;
  --steel: #9aa3a3;
  --ok: #2e6b4f;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --text: "Barlow", "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", "Consolas", monospace;
  --wrap: 1120px;
  --gutter: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
}

h1 {
  font-size: clamp(2.3rem, 7.2vw, 4.4rem);
}
h2 {
  font-size: clamp(1.9rem, 5vw, 3rem);
}
h3 {
  font-size: clamp(1.55rem, 3.6vw, 2.1rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--signal-dark);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  z-index: 10;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

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

.kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-dark);
  margin-bottom: 0.9em;
}
.kicker--light {
  color: var(--signal-light);
}

.lead {
  font-size: 1.18rem;
  color: var(--soft);
  max-width: 44em;
}

/* ---------- Profile tape and header ---------- */

.tape {
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--signal) 0 32px, var(--white) 32px 64px);
}
.tape--thin {
  height: 8px;
}

.site {
  background: var(--head);
  color: var(--paper);
  border-bottom: 1px solid #2f383e;
}
.site__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  flex: none;
}
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.brand:hover {
  color: var(--white);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--signal);
  color: var(--white);
}

/* ---------- Hero: the site board ---------- */

.board {
  background: var(--head);
  color: var(--paper);
  padding: 48px 0 0;
  overflow: hidden;
}
.board__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 40px;
}
.board__title {
  color: var(--white);
  max-width: 13em;
}
.board__title span {
  color: var(--signal-light);
  display: block;
}
.board__lead {
  font-size: 1.2rem;
  color: #c9d0d2;
  max-width: 36em;
}
.board__shot {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.plate {
  margin: 32px 0 48px;
  border: 2px solid var(--paper);
  max-width: 560px;
}
.plate__row {
  display: grid;
  grid-template-columns: minmax(84px, 30%) 1fr;
  border-bottom: 1px solid #46525a;
}
.plate__row:last-child {
  border-bottom: 0;
}
.plate dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 10px 12px;
  border-right: 1px solid #46525a;
}
.plate dd {
  margin: 0;
  padding: 8px 12px;
  color: var(--paper);
}

/* ---------- CTA ---------- */

.cta {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 22px 14px;
  background: var(--signal);
  color: var(--white);
  text-decoration: none;
  border-top: 4px solid var(--white);
  margin: 0;
  max-width: 100%;
}
.cta:hover {
  background: var(--signal-dark);
  color: var(--white);
}
.cta__small {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cta__big {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
}
.cta--soon {
  background: transparent;
  color: var(--paper);
  border: 2px dashed var(--steel);
  border-top: 4px solid var(--signal);
}
.cta--soon .cta__small {
  color: var(--steel);
}

/* ---------- Real screens with a profile pole ---------- */

.shot {
  position: relative;
  margin: 0;
  padding-left: 46px;
  width: min(100%, 410px);
}
.shot__pole {
  position: absolute;
  left: 0;
  top: -24px;
  bottom: 0;
  width: 16px;
  background: linear-gradient(var(--signal) 0 54px, var(--paper) 54px);
}
.shot__pole::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 52px;
  height: 3px;
  background: var(--steel);
  transform-origin: left center;
  transform: rotate(28deg);
}
.shot__frame {
  display: block;
  border: 6px solid var(--white);
  background: var(--white);
  aspect-ratio: 480 / 860;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.shot__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.shot__caption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--soft);
  margin-top: 8px;
}
.shot--hero {
  width: min(100%, 420px);
}
.shot--hero .shot__frame {
  border-bottom: 0;
}
.shot--left {
  padding-left: 0;
  padding-right: 46px;
}
.shot--left .shot__pole {
  left: auto;
  right: 0;
}
.shot--left .shot__pole::after {
  left: auto;
  right: 8px;
  transform-origin: right center;
  transform: rotate(-28deg);
}
.tools .shot__pole,
.split .shot__pole,
.more .shot__pole {
  background: linear-gradient(var(--signal) 0 54px, var(--ink) 54px);
}
.shot--pair {
  padding-left: 0;
}
.shot--pair .shot__pole {
  display: none;
}
.shot--small {
  width: min(100%, 300px);
  margin-top: 28px;
}

/* ---------- Tools ---------- */

.tools {
  padding: 72px 0 24px;
}
.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}
.tool {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-top: 2px solid var(--ink);
}
.tool__no {
  font-family: var(--display);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  color: var(--signal);
  margin-bottom: 8px;
}
.tool__text {
  max-width: 34em;
}
.tool .shot {
  justify-self: center;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ticks li {
  position: relative;
  padding: 6px 0 6px 26px;
  border-top: 1px solid var(--line);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 12px;
  height: 12px;
  background: var(--signal);
}

/* ---------- PDF and assumptions ---------- */

.split {
  background: var(--white);
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.split__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
.split__shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 620px;
}
.split__shots .shot {
  width: 100%;
}
.split__shots .shot__frame {
  border-color: var(--sunk);
}

/* ---------- Sequence ---------- */

.steps {
  padding: 72px 0;
}
.poles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-bottom: 6px solid var(--ink);
}
.poles__item {
  position: relative;
  padding: 18px 16px 22px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.poles__item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(var(--signal) 0 34px, var(--ink) 34px);
}
.poles__no {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--signal-dark);
}
.poles__item strong {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.1;
}
.poles__item span:last-child {
  color: var(--soft);
}

/* ---------- More ---------- */

.more {
  padding: 24px 0 72px;
}
.more__inner {
  display: grid;
  gap: 32px;
}
.grid {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 2px solid var(--ink);
  border-left: 1px solid var(--line);
}
.grid__cell {
  padding: 18px 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.grid dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.grid dd {
  margin: 0;
  color: var(--soft);
}

/* ---------- Limits ---------- */

.limits {
  padding: 0 0 72px;
}
.limits .wrap {
  border: 2px dashed var(--steel);
  padding-top: 28px;
  padding-bottom: 20px;
  max-width: calc(var(--wrap) - 2 * var(--gutter));
}
.limits__list {
  margin: 0;
  padding-left: 1.2em;
}
.limits__list li {
  margin-bottom: 8px;
}

/* ---------- Download ---------- */

.download {
  background: var(--head);
  color: var(--paper);
  padding: 56px 0;
}
.download h2 {
  color: var(--white);
}
.download a:not(.cta) {
  color: var(--signal-light);
}
.download__inner {
  display: grid;
  gap: 24px;
  align-items: center;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--deep);
  color: #c9d0d2;
}
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px var(--gutter) 44px;
  display: grid;
  gap: 24px;
}
.footer p {
  margin: 0 0 6px;
}
.footer a {
  color: var(--paper);
}
.footer__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  text-transform: uppercase;
}
.footer__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}
.footer__note {
  color: var(--steel);
  font-size: 0.95rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Text pages ---------- */

.doc {
  max-width: 820px;
  margin: 40px auto 72px;
  padding: 32px var(--gutter) 40px;
  background: var(--white);
  border-top: 6px solid var(--signal);
}
.doc h2 {
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  margin-top: 1.6em;
}
.doc ul {
  padding-left: 1.2em;
}
.doc li {
  margin-bottom: 6px;
}
.faq__item {
  border-top: 1px solid var(--line);
  padding-top: 4px;
}
.contact {
  margin-top: 32px;
  padding: 4px 18px 8px;
  background: var(--concrete);
  border-left: 6px solid var(--ink);
}
.contact__mail {
  font-family: var(--mono);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.checks {
  padding-left: 1.2em;
}

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  :root {
    --gutter: 28px;
  }
  .poles {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__inner {
    grid-template-columns: 1.4fr 1fr 0.8fr;
  }
  .doc {
    padding: 44px 48px 52px;
  }
}

@media (min-width: 960px) {
  .board {
    padding-top: 64px;
  }
  .board__inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
  }
  .board__text {
    padding-bottom: 8px;
  }
  .tool {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 56px 0;
  }
  .tool--flip .tool__text {
    order: 2;
  }
  .tool--flip .shot {
    order: 1;
  }
  .split__inner {
    grid-template-columns: 1fr 1fr;
  }
  .poles {
    grid-template-columns: repeat(5, 1fr);
  }
  .more__inner {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 72px;
  }
  .download__inner {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 380px) {
  .brand__name {
    font-size: 1.2rem;
  }
  .nav {
    gap: 2px 14px;
  }
  .nav a {
    font-size: 0.95rem;
  }
  .shot {
    padding-left: 34px;
  }
  .shot--left {
    padding-left: 0;
    padding-right: 34px;
  }
  .shot__pole {
    width: 12px;
  }
  .tool__no {
    font-size: 3.2rem;
  }
  .cta__big {
    font-size: 1.45rem;
  }
}

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

/* Long e-mail addresses and grid children must never widen the page on narrow phones. */
a[href^="mailto:"] {
  overflow-wrap: anywhere;
}
.footer__inner > *,
.download__inner > *,
.board__inner > *,
.tool > *,
.split__inner > *,
.more__inner > * {
  min-width: 0;
}
