/* Klaar holding page (index.html, thanks.html only). The parked pages keep styles.css. */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-variable-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ground: #F1F3EF;
  --panel: #FFFFFF;
  --ink: #17201B;
  --ink-2: #4A5650;
  --line: #D5DCD5;
  --moss: #3E5A47;
  --moss-deep: #22362A;
  --moss-tint: #E3ECE5;
  --hivis: #F2A900;
  --hivis-ink: #2A1F00;
  --ok: #2E7D4F;
  --grid: rgba(62, 90, 71, .09);
  --shadow: 0 18px 40px -18px rgba(23, 32, 27, .35);
  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r: 14px;
  --max: 1180px;
  --gutter: max(16px, 4vw);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F1512;
    --panel: #18211C;
    --ink: #E8EEE9;
    --ink-2: #A5B3AA;
    --line: #2C3A32;
    --moss: #7FAE8C;
    --moss-deep: #C7DDCD;
    --moss-tint: #1E2C24;
    --hivis: #FFB81F;
    --hivis-ink: #211800;
    --ok: #6CC58E;
    --grid: rgba(127, 174, 140, .08);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--hivis);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.k-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.k-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.k-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.k-brand svg {
  flex: none;
  width: 30px;
  height: 35px;
}

.k-brand__name {
  display: block;
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
}

.k-brand__tag {
  display: block;
  margin-top: .15rem;
  font-size: .64rem;
  color: var(--ink-2);
}

.k-phone {
  font-family: var(--f-mono);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  text-underline-offset: 3px;
}

.k-phone:hover {
  text-decoration: underline;
}

/* ---------- Hero ---------- */
.k-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 8vw, 6.5rem);
}

/* Survey grid: 1px lines every 44px, fading out towards the bottom. */
.k-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
  pointer-events: none;
}

.k-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.k-eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.25rem;
  color: var(--ink-2);
}

.k-eyebrow::before {
  content: "";
  flex: none;
  width: 22px;
  height: 2px;
  background: var(--hivis);
}

.k-title {
  margin: 0 0 1.5rem;
  font-family: var(--f-display);
  font-size: clamp(2.7rem, 6.4vw, 5.3rem);
  font-weight: 900;
  font-variation-settings: "wdth" 74;
  font-stretch: 74%;
  line-height: 1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.k-title em {
  font-style: normal;
  color: var(--moss);
  text-decoration: underline;
  text-decoration-color: var(--hivis);
  text-decoration-thickness: .12em;
  text-underline-offset: .1em;
  text-decoration-skip-ink: none;
}

.k-lede {
  max-width: 60ch;
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink-2);
}

/* ---------- Form card ---------- */
.k-card {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.k-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.k-form__intro {
  margin: 0 0 .25rem;
  font-weight: 600;
}

.k-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.k-field label {
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.k-field input {
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.k-field input:focus-visible {
  outline-offset: 1px;
  border-color: var(--moss);
}

.k-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .8rem 1.75rem;
  font-family: var(--f-body);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.k-btn--hivis {
  color: var(--hivis-ink);
  background: var(--hivis);
  border: 0;
}

.k-btn--hivis:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.k-btn--ghost {
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
}

.k-btn--ghost:hover {
  background: var(--moss-tint);
}

.k-form .k-btn {
  margin-top: .4rem;
}

.k-form__small {
  margin: 0;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.k-form__small a {
  font-weight: 600;
  color: var(--ink);
  text-underline-offset: 3px;
}

/* ---------- "Klaar replaces" strip ---------- */
.k-replaces {
  color: var(--ground);
  background: var(--moss-deep);
}

.k-replaces__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem 2rem;
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
}

.k-replaces__label {
  opacity: .85;
}

.k-replaces__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.k-replaces__list li {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: line-through;
  text-decoration-color: var(--hivis);
  text-decoration-thickness: 3px;
}

/* ---------- Thanks page ---------- */
.k-thanks {
  max-width: 44rem;
}

.k-thanks .k-lede {
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.k-footer {
  padding-block: 2rem;
  font-size: .92rem;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}

.k-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
}

.k-footer address {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  font-style: normal;
}

.k-footer a {
  text-underline-offset: 3px;
}

.k-footer p {
  margin: 0;
}

/* Company details: its own full-width line under the contact row. */
.k-footer__legal {
  flex-basis: 100%;
  max-width: 72ch;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .k-hero__grid {
    grid-template-columns: 1fr;
  }

  .k-form .k-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .k-brand__tag {
    font-size: .58rem;
    letter-spacing: .04em;
  }

  .k-phone {
    font-size: .82rem;
  }

  .k-footer address {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
