/* Kalle's landing page: a lime ground with off-black and cream cards set at a slight tilt, their text level;
   Unbounded for headings, Hanken Grotesk (the app's face) for text, Inter SemiBold for the menu's links (a free
   stand-in for Lay Grotesk, which is a paid font; the user, 2026-12-01). */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/Unbounded-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  src: url("fonts/Unbounded-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/HankenGrotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/HankenGrotesk-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-latin-ext.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --lime: #b6ec6c;
  --lime-ink: #2f4613; /* secondary text on lime */
  --ink: #121410;
  --ink-raised: #23281e;
  --ink-soft: rgba(255, 255, 255, 0.74); /* secondary text on ink */
  --ink-line: rgba(255, 255, 255, 0.14);
  --cream: #f3ede4;
  --cream-ink: #50483e; /* secondary text on cream and paper */
  --cream-line: rgba(18, 20, 16, 0.12);
  --paper: #fbf8f2;
  --white: #ffffff;

  --display: "Unbounded", "Hanken Grotesk", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --menu: "Inter", "Hanken Grotesk", system-ui, sans-serif; /* the menu's links only */
  --menu-ink: color-mix(in srgb, var(--ink) 78%, var(--lime)); /* the menu's links at rest: the ink a little lighter */

  --gutter: clamp(16px, 3vw, 44px); /* the reference keeps about 3% to the screen edges */
  --wrap: min(1360px, 100% - 2 * var(--gutter));
  --r-card: clamp(24px, 3vw, 42px);
  --r-sheet: clamp(28px, 3.4vw, 44px);
  --peek: clamp(36px, 5.5dvh, 56px); /* how much of the cream sheet rises into the first viewport */

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* what moves across the screen: the How it works pin */
  --shadow-card: 0 24px 48px -24px rgba(18, 20, 16, 0.6), 0 3px 8px -2px rgba(18, 20, 16, 0.18);
  --shadow-float: 0 18px 36px -14px rgba(18, 20, 16, 0.55), 0 2px 6px rgba(18, 20, 16, 0.16);
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--lime);
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--lime);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  caret-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* tilted cards never widen the page */
}

::selection { background: var(--ink); color: var(--lime); }
.on-ink ::selection { background: var(--lime); color: var(--ink); }

img, svg { display: block; }
img { max-width: 100%; height: auto; }
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.005em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--lime); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: var(--wrap); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: 16px; z-index: 10;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--white); text-decoration: none; font-weight: 600;
  transform: translateY(-180%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus-visible { transform: none; outline-color: var(--lime); }

/* ---------- pills ---------- */

.pill {
  --pill-h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--pill-h); padding: 0 22px;
  border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--text); text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.pill:active { transform: scale(0.97); }
.pill--ink { background: var(--ink); color: var(--white); }
.pill--lg { --pill-h: 58px; padding: 0 30px; font-size: 1.0625rem; }
.pill__arrow, .pill__icon { width: 20px; height: 20px; flex: none; }
.pill__arrow { transition: transform 220ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .pill--ink:hover { background: var(--ink-raised); }
  .pill:hover .pill__arrow { transform: translateX(3px); }
}

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

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: clamp(14px, 2.2vw, 26px);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 12px;
  font: 700 clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem)/1 var(--display);
  letter-spacing: -0.03em; text-decoration: none;
}
.brand img { width: 40px; height: 40px; }

.nav ul { display: flex; gap: clamp(14px, 2.4vw, 36px); }
/* the menu's links: a little lighter at rest, the full ink under the pointer, pressed or focused; no underline */
.nav ul a {
  display: inline-block; padding: 8px 2px;
  font-family: var(--menu); font-weight: 600; text-decoration: none;
  color: var(--menu-ink);
  transition: color 160ms ease;
}
.nav ul a:active, .nav ul a:focus-visible { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .nav ul a:hover { color: var(--ink); }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* the nav's end (the user, 2026-12-02): the language, Sign in as a link in the menu's face, and Get in touch, the black
   pill, last */
.nav__end { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); }
.lang__button, .nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 4px; white-space: nowrap;
  border: 0; background: none; cursor: pointer;
  font: 600 1rem/1 var(--menu); text-decoration: none;
  color: var(--menu-ink);
  transition: color 160ms ease;
}
.lang__button[aria-expanded="true"], .lang__button:focus-visible, .nav__link:active, .nav__link:focus-visible { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .lang__button:hover, .nav__link:hover { color: var(--ink); }
}
/* the language: a dropdown (the user's reference, 2026-12-02), each language in its own name, the one shown ticked, on
   the landing page's black */
.lang { position: relative; }
.lang__chevron { width: 18px; height: 18px; stroke-width: 2.2; transition: transform 200ms var(--ease-out); }
.lang__button[aria-expanded="true"] .lang__chevron { transform: rotate(180deg); }
/* `.nav` first, so the menu's own rules beat the page links' (.nav ul, .nav ul a), and `hidden` hides it */
.nav .lang__menu {
  display: block; position: absolute; top: calc(100% + 10px); right: 0; z-index: 30;
  min-width: 200px; margin: 0; padding: 8px; list-style: none;
  background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 16px; /* a step off the black, so it parts from the hero's card under it */
  box-shadow: 0 18px 40px rgba(18, 20, 16, 0.32);
  transform-origin: top right;
}
.nav .lang__menu[hidden] { display: none; }
.nav .lang__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; border-radius: 10px;
  font: 500 1.0625rem/1.2 var(--text); color: var(--white); text-decoration: none;
  transition: background-color 160ms ease;
}
.nav .lang__menu a:focus-visible { color: var(--white); background: rgba(255, 255, 255, 0.08); outline-offset: -2px; }
.nav .lang__menu svg { width: 18px; height: 18px; stroke-width: 2; }
@media (hover: hover) and (pointer: fine) {
  .nav .lang__menu a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
}
@media (max-width: 820px) {
  .nav .lang__menu { right: auto; left: 0; transform-origin: top left; } /* a phone's language sits by the logo: its menu opens rightwards */
}
/* a phone: the wordmark gives its room to the logo alone, so the language, Sign in and Get in touch fit beside it */
@media (max-width: 520px) {
  .nav { gap: 12px; }
  .nav .brand span { display: none; }
  .nav__end { gap: 10px; }
  .lang__button, .nav__link { font-size: 0.9375rem; padding-inline: 2px; }
  .nav__cta { --pill-h: 42px; padding: 0 14px; font-size: 0.9375rem; }
}
@media (max-width: 380px) {
  .nav__end { gap: 8px; }
  .lang__button, .nav__link, .nav__cta { font-size: 0.875rem; }
  .nav__cta { padding: 0 12px; }
}

/* ---------- hero: two cards of one size, turned toward each other as in the reference, their words level ---------- */

.top { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.top main { flex: 1; display: grid; }

.hero {
  display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center;
  row-gap: clamp(12px, 2dvh, 20px);
  padding-block: clamp(16px, 3dvh, 32px) calc(var(--peek) + clamp(18px, 3.2dvh, 30px));
}

/* the cards meet with almost no gap: each shape is pulled toward the other by the room its turn takes away */
.hero__stage { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.hero__words, .hero__photo { width: 100%; aspect-ratio: 1.18; max-height: 62dvh; }

/* the black card: its shape turns away to the right, its words stay level and centred, higher than the middle */
.hero__words {
  position: relative; isolation: isolate;
  container-type: inline-size;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: clamp(14px, 1.8vw, 24px);
  padding: 6% 9% 16%;
  color: var(--white);
}
.hero__words::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: var(--r-card);
  background: var(--ink);
  transform: translate(4%, 0) perspective(1100px) rotateY(18deg) rotate(-2deg);
}
/* the longest line fills about 72% of the card, as the reference's does; short screens scale it by height */
.hero__words h1 { color: var(--lime); font-size: clamp(1.6rem, min(var(--h1-cqi), 6.5dvh), 4.4rem); line-height: 1.13; letter-spacing: 0; }
.hero__words { --h1-cqi: 10.4cqi; }
.hero__words h1 span { display: block; }
.hero__words p { max-width: 40ch; color: rgba(255, 255, 255, 0.94); font-size: clamp(1rem, min(3.6cqi, 2.4dvh), 1.35rem); line-height: 1.5; }

/* the photo card: turned the other way */
.hero__photo { position: relative; margin: 0; }
.hero__frame {
  --shift: -4%; --turn: -18deg; --tilt: -2.5deg;
  width: 100%; height: 100%;
  border-radius: var(--r-card);
  background: #2c3a22;
  transform: translate(var(--shift), 0) perspective(1100px) rotateY(var(--turn)) rotate(var(--tilt));
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 45%; border-radius: inherit; }

/* the wide pill tucked into the notch where the two cards' lower edges meet */
.hero__cta { margin-top: -18px; color: var(--lime); }

/* ---------- the example work order: its stops tick off as the driver goes (main.js); in the photo's lower right,
   over the trees, so the truck and the dock stay in view (the user, 2026-12-01) ---------- */

.job {
  --tilt: -2deg; --size: 1;
  position: absolute; right: 7%; bottom: 3%;
  width: clamp(236px, 46%, 300px);
  padding: 15px 16px 13px;
  border-radius: 20px;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-float);
  transform: rotate(var(--tilt)) scale(var(--size)); transform-origin: right bottom;
  font-size: 0.9375rem; line-height: 1.35; font-variant-numeric: tabular-nums;
}
.job__top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--cream-ink); font-size: 0.8125rem; font-weight: 500;
}
.job__when { display: inline-flex; align-items: center; gap: 8px; }
.job__when::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--lime); box-shadow: inset 0 0 0 1.5px var(--ink);
}
.job__tag { padding: 3px 9px; border-radius: 999px; background: var(--cream); font-size: 0.75rem; }
.job__title { margin-top: 8px; font: 600 1.0625rem/1.2 var(--display); }
.job__stops { display: grid; gap: 8px; margin-top: 12px; }
.job__stop { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; }
.job__stop > span:last-child { transition: color 260ms ease; }
.job__stop b { margin-right: 4px; font-weight: 650; }
.job__check {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.75px var(--ink);
  transition: background-color 220ms var(--ease-out);
}
.job__check svg {
  width: 16px; height: 16px; stroke-width: 2.4;
  stroke-dasharray: 20; stroke-dashoffset: 20;
  transition: stroke-dashoffset 320ms var(--ease-out) 60ms;
}
.job__stop.is-done .job__check { background: var(--lime); }
.job__stop.is-done .job__check svg { stroke-dashoffset: 0; }
.job__stop.is-done > span:last-child { color: var(--cream-ink); }
.job__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--cream-line);
  color: var(--cream-ink); font-size: 0.8125rem;
}
.job__progress {
  padding: 4px 10px; border-radius: 999px;
  background: var(--cream); color: var(--ink); font-weight: 650;
  transition: background-color 260ms ease, color 260ms ease;
}
.job.is-done .job__progress { background: var(--ink); color: var(--lime); }

/* the cards land into their turn; everything is visible from the first frame */
@media (prefers-reduced-motion: no-preference) {
  .hero__words { animation: land-words 1000ms var(--ease-out) both; }
  .hero__frame { animation: land-photo 1000ms var(--ease-out) 90ms both; }
  .job { animation: land-job 900ms var(--ease-out) 380ms both; }
}
@keyframes land-words { from { transform: translate(-14px, 26px) rotate(-1.6deg); } to { transform: none; } }
@keyframes land-photo {
  from { transform: translate(calc(var(--shift) + 18px), 28px) perspective(1100px) rotateY(calc(var(--turn) * 1.4)) rotate(calc(var(--tilt) * 2.4)); }
  to { transform: translate(var(--shift), 0) perspective(1100px) rotateY(var(--turn)) rotate(var(--tilt)); }
}
@keyframes land-job { from { transform: translate(-10px, -24px) rotate(calc(var(--tilt) * 3.5)) scale(var(--size)); } to { transform: rotate(var(--tilt)) scale(var(--size)); } }

/* a short window squeezes the photo but not the card: there it shrinks toward its corner, keeping the truck in view */
@media (min-width: 901px) and (max-height: 820px) { .job { --size: 0.86; } }
@media (min-width: 901px) and (max-height: 700px) { .job { --size: 0.76; } }

@media (max-width: 900px) {
  .hero { padding-top: 4px; }
  .hero__stage { grid-template-columns: 1fr; row-gap: 22px; }
  .hero__words, .hero__photo { aspect-ratio: auto; max-height: none; }
  .hero__words { padding: 26px 22px 28px; }
  .hero__words::before { inset: 0 6px; transform: translate(0, 0) perspective(900px) rotateY(9deg) rotate(-1.4deg); }
  .hero__frame { --shift: 0%; --turn: -9deg; --tilt: 1.2deg; height: auto; aspect-ratio: 16 / 10; }
  .hero__frame img { object-position: 70% 45%; }
  .job { --tilt: -1.8deg; position: relative; right: auto; bottom: auto; width: min(320px, 90%); margin: -78px 4% 0 auto; }
  .hero__cta { width: 100%; margin-top: 0; }
}

/* ---------- sections: one rhythm, more space above a heading than below it ---------- */

.sheet {
  --sheet-x: clamp(22px, 5.6vw, 84px); /* its sides, which the sideways strips run out to */
  position: relative;
  padding: clamp(36px, 6vw, 88px) var(--sheet-x);
  border-radius: var(--r-sheet);
}
.sheet--cream { background: var(--cream); }
.sheet--ink { background: var(--ink); color: var(--white); }

.section-head { display: grid; gap: 14px; max-width: 46rem; }
.section-head h2, .about h2, .contact h2 {
  font-size: clamp(1.75rem, 1.15rem + 2.3vw, 3.1rem); line-height: 1.12;
}
.section-head p { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); max-width: 60ch; }

/* ---------- about: the cream sheet that rises into the first viewport ---------- */

.about { margin-top: calc(-1 * var(--peek)); box-shadow: 0 -10px 30px -22px rgba(18, 20, 16, 0.5); }
.about__intro {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px); align-items: start;
}
.about__copy { display: grid; gap: 18px; color: var(--cream-ink); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); max-width: 60ch; }
.about__how {
  margin-top: clamp(48px, 7vw, 96px);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); letter-spacing: -0.02em;
}
/* How it works as a journey (the user, 2026-12-02: "the line is connected and we have a tracking pin moving from one step
   to another, illustrating the journey"): one road along the steps' top with a map pin on it, the road drawn in behind
   the pin and each step it reaches turning lime (main.js) */
.journey { --road: 44px; margin-top: 10px; }
.journey__track { position: relative; padding-top: var(--road); } /* room above the road for the pin */
.route { position: absolute; inset: 0; pointer-events: none; }
.route__line, .route__done { position: absolute; left: 0; right: 0; top: var(--road); height: 1.5px; margin-top: -0.75px; }
.route__line { background: color-mix(in srgb, var(--ink) 22%, transparent); }
.route__done { background: var(--ink); transform: scaleX(0); transform-origin: left center; }
.route__pin {
  position: absolute; left: 17px; top: var(--road); z-index: 2; /* over the first step's circle, its tip on the road */
  width: 28px; height: 36px; margin: -36px 0 0 -14px; will-change: transform;
}
.route__pin svg { display: block; width: 100%; height: 100%; fill: var(--ink); stroke: none; filter: drop-shadow(0 3px 4px rgba(18, 20, 16, 0.25)); }
.route__pin circle { fill: var(--lime); }
.route__done, .route__pin { transition: transform 800ms var(--ease-in-out); } /* main.js's DRIVE */
.journey.is-still .route__done, .journey.is-still .route__pin { transition: none; }
.journey.is-waiting .route__pin { opacity: 0; } /* until the steps come into view, when it drops in */
.steps {
  counter-reset: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}
.step {
  position: relative; display: grid; align-content: start; gap: 10px;
  padding-top: 22px;
}
.step__n {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--lime);
  font: 700 0.9375rem/1 var(--display);
  transition: background-color 300ms ease, color 300ms ease;
}
.step.is-on .step__n { background: var(--lime); color: var(--ink); }
.step h4 { margin-top: 6px; font-size: 1.375rem; }
.step p { color: var(--cream-ink); }

/* ---------- features: a bento of the app's real parts ---------- */

.features { padding-block: clamp(80px, 11vw, 150px) clamp(64px, 9vw, 120px); }
.features .section-head p { color: var(--lime-ink); }

.bento {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(32px, 4.5vw, 56px);
}
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--r-card);
}
.tile--ink { background: var(--ink); color: var(--white); }
.tile--cream { background: var(--cream); }
.tile__text { display: grid; gap: 10px; }
.tile h3 { font-size: clamp(1.15rem, 1rem + 0.55vw, 1.45rem); line-height: 1.2; }
.tile p { max-width: 52ch; }
.tile--ink p { color: var(--ink-soft); }
.tile--cream p { color: var(--cream-ink); }

.tile--wo { grid-column: span 7; grid-row: span 2; }
.tile--roles, .tile--offline { grid-column: span 5; }
.tile--summary, .tile--desk { grid-column: span 6; }

/* work order: as the app draws it */
.wo {
  padding: 18px 20px; border-radius: 20px;
  background: var(--ink-raised); box-shadow: inset 0 0 0 1px var(--ink-line);
  font-variant-numeric: tabular-nums;
}
.wo__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wo__title { font: 600 1.125rem/1.2 var(--display); color: var(--white); }
.wo__chips { display: inline-flex; align-items: center; gap: 6px; }
.wo__chip, .tag { white-space: nowrap; }
.wo__chip { padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--ink-soft); font-size: 0.8125rem; font-weight: 600; }
.wo__meta { margin-top: 6px; color: var(--ink-soft); font-size: 0.9375rem; }
.wo__stops { display: grid; gap: 14px; margin-top: 18px; }
.wo__stops li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.wo__n {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--lime); color: var(--ink); font: 700 0.875rem/1 var(--display);
}
.wo__stops div { display: grid; gap: 2px; }
.wo__stops b { font-weight: 650; color: var(--white); }
.wo__stops span { color: var(--ink-soft); font-size: 0.9375rem; }
.wo__links { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--lime) !important; font-weight: 600; }
.wo__links svg { width: 16px; height: 16px; }
.wo__task {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ink-line);
  color: var(--white); font-size: 0.9375rem;
}
.wo__task svg { width: 20px; height: 20px; color: var(--lime); }
.wo__req { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }

/* roles: the two the app offers */
.roles { display: grid; gap: 8px; }
.roles li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 12px 16px; border-radius: 14px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--cream-line); font-weight: 500;
}
.roles li.is-on { background: var(--ink); color: var(--white); box-shadow: none; }
.roles svg { width: 20px; height: 20px; color: var(--lime); stroke-width: 2.2; }

/* offline: saved on the phone, sent when the signal is back */
.sync { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sync__chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--cream-line); font-weight: 600; font-size: 0.9375rem;
}
.sync__chip svg { width: 18px; height: 18px; }
.sync__chip--sent { background: var(--ink); color: var(--lime); box-shadow: none; }
.sync__arrow { width: 20px; height: 20px; color: var(--cream-ink); }

/* summary: an example week */
.summary-wrap { position: relative; }
.summary {
  display: grid; margin: 0; padding: 8px 22px; border-radius: 18px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--cream-line);
  font-variant-numeric: tabular-nums;
}
.summary div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 8px; }
.summary div + div { border-top: 1px solid var(--cream-line); }
.summary dt { color: var(--cream-ink); font-size: 0.9375rem; font-weight: 600; }
.summary dd { margin: 0; font: 600 clamp(1.3rem, 1rem + 1vw, 2rem)/1.1 var(--display); white-space: nowrap; }
.summary__tag { position: absolute; right: 16px; top: -11px; z-index: 1; }

/* labels the demonstration data */
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font: 600 0.75rem/1.4 var(--text); white-space: nowrap; }
.tag--ink { background: var(--ink); color: var(--lime); }
.tag--lime { background: var(--lime); color: var(--ink); }

/* desk: a week as the web app lays it out */
.week {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto repeat(6, 18px);
  gap: 4px 6px; padding: 14px; border-radius: 16px;
  background: var(--ink-raised); box-shadow: inset 0 0 0 1px var(--ink-line);
}
.week__day { color: var(--ink-soft); font-size: 0.75rem; font-weight: 600; text-align: center; padding-bottom: 6px; }
.week__job {
  grid-column: var(--c); grid-row: var(--r);
  overflow: hidden; padding: 4px 7px; border-radius: 8px;
  background: var(--lime); color: var(--ink); font-size: 0.6875rem; font-weight: 600; line-height: 1.2;
}
.week__job--cream { background: var(--cream); }
.week__tag { position: absolute; right: 12px; top: -11px; }

/* ---------- value statement ---------- */

.value { display: grid; gap: clamp(18px, 2.4vw, 28px); padding-top: clamp(56px, 9vw, 128px); padding-bottom: clamp(56px, 9vw, 128px); }
.value h2 {
  max-width: 18ch; color: var(--lime);
  font-size: clamp(2rem, 1.1rem + 3.9vw, 4.9rem); line-height: 1.08;
}
.value p { max-width: 58ch; color: var(--ink-soft); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }

/* ---------- integrations ---------- */

.integrations { margin-top: clamp(64px, 9vw, 120px); }
.integrations .section-head p { color: var(--cream-ink); }
.links {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 64px); margin-top: clamp(28px, 4vw, 48px);
}
.link {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: start;
  padding-block: 20px; border-top: 1px solid var(--cream-line);
}
.link__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--lime); }
.link__icon svg { width: 22px; height: 22px; }
.link h3 { font-size: 1.375rem; line-height: 1.2; }
.link p { margin-top: 4px; color: var(--cream-ink); }
.state {
  align-self: center; padding: 5px 12px; border-radius: 999px;
  background: var(--ink); color: var(--lime); font-size: 0.8125rem; font-weight: 650;
}
.state--soon { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.link--soon .link__icon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- contact ---------- */

.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px); align-items: end;
  padding-block: clamp(88px, 12vw, 168px) clamp(72px, 10vw, 136px);
}
.contact__text { display: grid; gap: 14px; }
.contact__text p { color: var(--lime-ink); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); max-width: 40ch; }
.contact__reach { display: grid; gap: 20px; justify-items: start; }
.contact__mail {
  font: 600 clamp(1.35rem, 0.8rem + 2.4vw, 2.6rem)/1.1 var(--display); letter-spacing: -0.005em;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pill--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.75px var(--ink); }
.pill--line[data-state="done"] { background: var(--ink); color: var(--lime); }
.pill--line[data-state="error"] { white-space: normal; text-align: left; }
@media (hover: hover) and (pointer: fine) {
  .contact__mail:hover { text-decoration-thickness: 5px; }
  .pill--line:hover { background: rgba(18, 20, 16, 0.08); }
}

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

.foot { background: var(--ink); color: var(--white); padding-block: clamp(48px, 6vw, 80px) 28px; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.foot__brand { display: grid; gap: 14px; }
.foot__brand p { color: var(--ink-soft); max-width: 30ch; }
.brand--light { color: var(--white); }
.foot__nav ul { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 40px; }
.foot__nav a { color: var(--ink-soft); text-decoration: none; }
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--ink-line);
  color: var(--ink-soft); font-size: 0.875rem;
}
@media (hover: hover) and (pointer: fine) {
  .foot__nav a:hover { color: var(--lime); text-decoration: underline; }
}

/* the bento's tiles rise in as they scroll into view, where the browser ties animation to scrolling */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tile { animation: tile-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .tile:nth-child(2) { animation-range: entry 8% entry 78%; }
    .tile:nth-child(3) { animation-range: entry 14% entry 84%; }
    .tile:nth-child(5) { animation-range: entry 8% entry 78%; }
  }
}
@keyframes tile-rise {
  from { opacity: 0.55; transform: translateY(28px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* ---------- smaller screens ---------- */

/* the sideways strips (How it works, the integrations; styles below): their focus ring inside them, at the sheet's sides */
.journey:focus-visible, .links-strip:focus-visible { outline-offset: -3px; }
@media (hover: none) {
  .journey, .links-strip { scrollbar-width: none; }
  .journey::-webkit-scrollbar, .links-strip::-webkit-scrollbar { display: none; }
}
@media (hover: hover) {
  .journey, .links-strip { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 25%, transparent) transparent; }
}

@media (max-width: 980px) {
  .tile--wo { grid-column: span 12; grid-row: auto; }
  .tile--roles, .tile--offline { grid-column: span 6; }
  /* How it works scrolls sideways (the user, 2026-12-02: "do that for the steps (how it works) as well on mobile"): the
     steps run out to the sheet's sides, the next one peeking, each coming to rest at the text's edge; the road runs along
     them all and the pin drives to the step swiped to (main.js) */
  .journey {
    --card: min(320px, 100vw - 2 * var(--gutter) - 2 * var(--sheet-x) - 56px); /* 56: the gap and the next one's peek */
    margin-inline: calc(-1 * var(--sheet-x));
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--sheet-x);
  }
  .journey__track { width: max-content; padding-inline: var(--sheet-x); } /* inside it, so the last step ends at the text's edge too */
  .route { left: var(--sheet-x); right: var(--sheet-x); }
  .steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: var(--card); gap: 16px; }
  .step { scroll-snap-align: start; }
}

@media (max-width: 760px) {
  .about__intro, .contact { grid-template-columns: 1fr; }
  .bento > .tile { grid-column: span 12; }
  /* the integrations scroll sideways too (the user, 2026-12-02: "make the integrations scroll horizontally so that they
     dont consume that much space"), each a card, as How it works does */
  .links-strip {
    --card: min(300px, 100vw - 2 * var(--gutter) - 2 * var(--sheet-x) - 52px); /* 52: the gap and the next one's peek */
    margin-inline: calc(-1 * var(--sheet-x));
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--sheet-x);
  }
  .links {
    width: max-content; padding-inline: var(--sheet-x);
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: var(--card); gap: 12px;
  }
  .link {
    grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "icon state" "words words";
    align-content: start; row-gap: 18px; padding: 18px 18px 20px;
    background: var(--paper); border: 1px solid var(--cream-line); border-radius: 22px;
    scroll-snap-align: start;
  }
  .link__icon { grid-area: icon; width: 40px; height: 40px; }
  .link__icon svg { width: 20px; height: 20px; }
  .link > div { grid-area: words; }
  .link h3 { font-size: 1.1875rem; }
  .state { grid-area: state; justify-self: end; }
  .foot__inner { flex-direction: column; }
  .sync { gap: 8px; }
  .sync__chip { padding: 0 12px; font-size: 0.875rem; }
}

@media (max-width: 560px) {
  .wo__head { flex-wrap: wrap; row-gap: 8px; }
  .week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .week__late { display: none; }
}
