/* ---------------------------------------------------------------------------
   Printing Kiosk — landing page
   Plain CSS, no build step, no dependencies. Custom properties live at the top
   so the palette can be changed in one place.
   --------------------------------------------------------------------------- */

:root {
  /* Taken from the kiosk application so the two look like one product. */
  --blue: #0669b7;
  --blue-strong: #045b9f;
  --blue-light: #e7f4ff;
  --navy: #092f4f;
  --navy-dark: #05233c;

  --ink: #172235;
  --ink-soft: #4a5b70;
  --line: #dde7f1;
  --surface: #ffffff;
  --surface-tint: #f5f9fd;

  --radius: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(9, 47, 79, 0.06), 0 4px 12px rgba(9, 47, 79, 0.05);
  --shadow-md: 0 12px 32px rgba(9, 47, 79, 0.1);

  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* System fonts only: nothing to download, and it renders instantly. */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

/* Reset -------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue);
}

/* Focus is never removed, only made legible on both light and tinted areas. */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform 0.15s ease;
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

/* Layout ------------------------------------------------------------------- */

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

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--tinted {
  background: var(--surface-tint);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section__head h2,
.closing h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem);
}

.section__lede {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 1.075em;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Header ------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Set by main.js once the page is scrolled, so the bar only separates itself
   from the content when there is content behind it. */
.site-header[data-stuck="true"] {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* An ordinary image, deliberately.
 *
 * This started as a CSS mask so one white export could be tinted per use, but
 * the mark is the same blue in both places it appears — so the flexibility was
 * never spent, and it bought a mask-support question in exchange. A plain <img>
 * renders in every browser with nothing to check. `assets/logo.png` keeps the
 * untinted original; see the README for regenerating a colour variant. */
.brand__mark {
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
}

.brand__name {
  font-size: 1.0625rem;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* The two anchors are a convenience, not the only way down the page, so they
   step aside on small screens rather than becoming a menu nobody needs. */
@media (max-width: 33rem) {
  .site-nav {
    display: none;
  }
}

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.25rem);
  overflow: hidden;
}

/* A soft wash of brand colour behind the hero, so the white page has somewhere
   to begin. Purely decorative and cheap to paint. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 78%;
  background: radial-gradient(
    120% 100% at 78% 0%,
    var(--blue-light) 0%,
    rgba(231, 244, 255, 0) 62%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
}

.hero .lede {
  max-width: 34rem;
  margin-top: 1.15rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.hero__points li {
  position: relative;
  padding-left: 1.5rem;
}

.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* The product shot is a dark studio render, so it is given a dark stage rather
   than being dropped onto white where it would look like a cut-out. */
.stage {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 55%, #041b2e 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.stage::after {
  /* A faint blue glow behind the machine, matching the kiosk's own light. */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 70%;
  height: 42%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(6, 105, 183, 0.42), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}

.stage img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: calc(var(--radius-lg) - 12px);
}

@media (max-width: 60rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    order: -1;
    max-width: 21rem;
    margin-inline: auto;
  }

  .hero .lede {
    max-width: none;
  }
}

/* Buttons ------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.button--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.button--primary:hover {
  background: var(--blue-strong);
}

.button--quiet {
  color: var(--navy);
  background: transparent;
  border: 1.5px solid var(--line);
}

.button--quiet:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.button:active {
  transform: translateY(1px);
}

/* Steps -------------------------------------------------------------------- */

/* Explicit column counts rather than `auto-fit`: five steps against a flexible
   track leaves a single orphan on the second row, which reads as a mistake.
   Five across, then three (3 + 2), then one. */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.35rem);
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.step {
  position: relative;
  padding: 1.6rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.step:hover {
  border-color: #c3dcf2;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.1rem;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 700;
}

.step h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Benefit cards ------------------------------------------------------------ */

/* Four benefits: four across, then a clean two-by-two, then one. */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.1rem, 2vw, 1.5rem);
}

@media (min-width: 38rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  padding: 1.85rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card__icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.1rem;
  color: var(--blue);
}

.card h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Closing ------------------------------------------------------------------ */

.closing__inner {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  text-align: center;
}

.closing__inner p {
  margin-top: 1rem;
  color: #b9d3e8;
}

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

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__note {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Reveal on scroll --------------------------------------------------------- */

/* The class is added by main.js only when IntersectionObserver exists, so a
   browser without it — or with JavaScript off — simply shows the page. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggering is done with a variable set in CSS rather than per-element inline
   styles, so the markup stays clean. */
.js .steps .reveal:nth-child(2),
.js .cards .reveal:nth-child(2) {
  transition-delay: 60ms;
}

.js .steps .reveal:nth-child(3),
.js .cards .reveal:nth-child(3) {
  transition-delay: 120ms;
}

.js .steps .reveal:nth-child(4),
.js .cards .reveal:nth-child(4) {
  transition-delay: 180ms;
}

.js .steps .reveal:nth-child(5) {
  transition-delay: 240ms;
}

/* Motion preferences ------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Print -------------------------------------------------------------------- */

@media print {
  .site-header,
  .hero__actions,
  .skip-link {
    display: none;
  }

  body {
    color: #000;
  }

  /* Nothing below the fold has been scrolled into view when a page is printed,
     so without this every un-revealed section would print blank. */
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
