/* keen.bike website, in the Talys family: Poppins headings, Roboto text,
   flat light surfaces with small radii, uppercase Poppins buttons and
   eyebrows. keen.bike green is the accent, Talys navy the heading colour.
   Layout: sections alternate between two light greys (--page, --fill);
   white is for the header, cards, the map and the drawings. Light only. */

:root {
  --navy: #112944;
  --green: #1f8f5b;
  --green-dark: #187a4d;
  --green-text: #17804f;
  --green-hi: #43c083;
  --text: #58606c;
  --text-dark: #363c45;
  --page: #f1f5f3;
  --fill: #e2ebe6;
  --line: #d2ddd7;
  --white: #ffffff;
  --map: #f7faf8;
  --topo: #d9e5de;
  --topo-index: #b9cec2;
  --shade: rgba(31, 143, 91, 0.1);
  --signal: #e0722a;

  --heading: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 4px;
  --gutter: 20px;
  --section: clamp(64px, 8vw, 104px);
  --header: 76px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  font: 400 16px/27px var(--body);
  color: var(--text);
  background: var(--page);
  overflow-wrap: break-word;
}

/* Paints the phone's status-bar band above the sticky header */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 101;
  background: var(--white);
}

img,
svg,
canvas {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

[id] {
  scroll-margin-top: calc(var(--header) + 24px);
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 700;
  color: var(--navy);
  text-wrap: balance;
}

h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.2;
}

h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.3;
}

h3 {
  font-size: 19px;
  line-height: 27px;
  font-weight: 600;
}

.wrap {
  width: 100%;
  max-width: calc(1170px + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.eyebrow {
  margin-bottom: 8px;
  font: 500 15px/24px var(--heading);
  text-transform: uppercase;
  color: var(--green-text);
}

.num {
  font-variant-numeric: tabular-nums;
}

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

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand svg {
  width: 25px;
  height: 30px;
  flex: none;
}

.wordmark {
  font-family: var(--heading);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #0f5b3a;
}

.wordmark b {
  font-weight: 700;
}

.wordmark span {
  font-weight: 500;
  color: var(--green);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav .links {
  display: flex;
  gap: 4px;
}

.nav .links a {
  padding: 8px 11px;
  font: 500 14px/20px var(--heading);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav .links a:hover {
  color: var(--green-text);
}

@media (max-width: 900px) {
  .nav .links {
    display: none;
  }
}

.lang {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font: 500 13px/1 var(--heading);
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--navy);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang:hover {
  border-color: var(--green);
  color: var(--green-text);
}

@media (max-width: 420px) {
  .nav {
    gap: 10px;
  }
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 29px;
  border: 0;
  border-radius: 3px;
  font: 500 15px/24px var(--heading);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green-dark);
}

.btn-ghost {
  box-shadow: inset 0 0 0 2px var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.nav .btn {
  padding: 10px 20px;
  font-size: 14px;
}

@media (max-width: 420px) {
  .nav .btn {
    padding: 9px 14px;
    font-size: 13px;
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding-block: clamp(40px, 6vw, 80px);
  background: var(--page);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-copy .lead {
  margin-top: 20px;
  max-width: 40ch;
}

.lead {
  font-size: 18px;
  line-height: 30px;
  color: var(--text-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.facts {
  list-style: none;
  margin: 36px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-dark);
}

.facts li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.facts svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.facts .check {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.origin {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font: 500 14px/20px var(--heading);
  color: var(--navy);
}

.origin svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.origin .pin {
  fill: var(--green);
}

.origin .pin-dot {
  fill: var(--white);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* Map card */

.map {
  position: relative;
  aspect-ratio: 5 / 4;
  max-width: 100%;
  background: var(--map);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(17, 41, 68, 0.08);
  overflow: hidden;
}

.map canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-chrome {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font: 400 12px/1.35 var(--body);
  color: var(--text);
}

.map-title {
  position: absolute;
  left: 14px;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  background: var(--white);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(17, 41, 68, 0.1);
}

.map-title b {
  font: 600 13px/18px var(--heading);
  color: var(--navy);
}

.north {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 22px;
  height: 36px;
}

.scale {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scale-bar {
  height: 6px;
  width: 80px;
  border: 1.5px solid var(--text);
  border-top: 0;
}

.fix {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 10px;
  background: var(--white);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(17, 41, 68, 0.14);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fix b {
  font: 600 12.5px/17px var(--heading);
  color: var(--navy);
}

.fix[data-side="right"] {
  transform: translate(14px, -50%);
}

.fix[data-side="left"] {
  transform: translate(calc(-100% - 14px), -50%);
}

.fix[data-side="below"] {
  transform: translate(-50%, 14px);
}

@media (max-width: 520px) {
  .fix {
    padding: 4px 8px;
  }
  .fix .sub {
    display: none;
  }
  .map-title span {
    display: none;
  }
}

/* -------------------------------------------------------------- sections */

.section {
  padding-block: var(--section);
}

.section--fill {
  background: var(--fill);
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px 60px;
  align-items: end;
  margin-bottom: 40px;
}

.sec-head > * {
  min-width: 0;
}

@media (max-width: 860px) {
  .sec-head {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 28px 22px;
}

@media (max-width: 560px) {
  .panel {
    padding: 20px 16px 16px;
  }
}

figcaption {
  margin-top: 14px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text);
}

.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Cards (wake-up reasons, app features) */

.cards {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.cards li {
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: var(--white);
  min-width: 0;
}

.cards p {
  margin-top: 8px;
}

.cards svg {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}

.ico {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-fill {
  fill: var(--green);
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* Position steps */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 30px;
}

.steps li {
  counter-increment: step;
  padding-top: 18px;
  border-top: 3px solid var(--green);
  min-width: 0;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 6px;
  font: 600 15px/24px var(--heading);
  color: var(--green-text);
}

.steps p {
  margin-top: 8px;
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

.steps--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .steps--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .cards--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Modes */

.modes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mode {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 12px 40px;
  align-items: center;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
}

.mode h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 24px;
}

.badge {
  font: 500 11px/18px var(--heading);
  text-transform: uppercase;
  color: var(--white);
  background: var(--green);
  border-radius: 3px;
  padding: 1px 7px;
}

.track svg {
  display: block;
  width: 100%;
  height: 34px;
}

.track .ride {
  fill: var(--shade);
}

.track .base {
  stroke: var(--line);
}

.track .pt {
  fill: var(--green);
}

.track .up {
  stroke: var(--navy);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.track .none {
  font-family: var(--body);
  font-size: 12px;
  fill: var(--text);
}

.modes-foot {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 12px 40px;
  padding: 10px 24px 0;
}

.modes-foot .axis svg {
  display: block;
  width: 100%;
  height: 22px;
}

.modes-foot text {
  font-family: var(--body);
  font-size: 12px;
  fill: var(--text);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.key-pt {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.key-up {
  width: 2.5px;
  height: 16px;
  border-radius: 2px;
  background: var(--navy);
}

.key-ride {
  width: 22px;
  height: 12px;
  background: var(--shade);
}

@media (max-width: 760px) {
  .mode,
  .modes-foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .mode {
    padding: 18px 16px;
  }
  .modes-foot {
    padding-inline: 16px;
  }
}

/* Mounting: the case drawn from the prototype, alone and on the bike */

.mount-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 30px;
  align-items: stretch;
}

.mount-grid .panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mount-grid svg {
  display: block;
  width: 100%;
  height: auto;
}

.mount-front svg {
  margin-block: auto;
}

@media (max-width: 900px) {
  .mount-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.case {
  fill: #222529;
}

.case-face {
  fill: #2e3236;
}

.case-recess {
  fill: #26292d;
  stroke: #41464b;
  stroke-width: 0.4;
}

.case-logo {
  font-family: var(--heading);
  font-size: 7.4px;
  font-weight: 600;
  letter-spacing: 0.15px;
  fill: #959ca3;
  text-anchor: middle;
}

.case-hole {
  fill: #111315;
  stroke: #474c51;
  stroke-width: 0.4;
}

.case-window {
  stroke: #15181b;
  stroke-width: 0.5;
}

.win-a .case-window {
  fill: url(#cellsA);
}

.win-b .case-window {
  fill: url(#cellsB);
}

.tube {
  fill: url(#tube);
}

.tube-line {
  stroke: #9fada6;
  stroke-width: 0.5;
}

.cage path,
.cage circle {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.bolt {
  fill: #d8dedb;
  stroke: #87928c;
  stroke-width: 0.5;
}

.bolt-hex {
  fill: #59625d;
}

.bottle {
  fill: rgba(17, 41, 68, 0.04);
  stroke: var(--navy);
  stroke-width: 0.7;
  stroke-dasharray: 3 2;
}

.scene-label {
  font-family: var(--body);
  font-size: 5.5px;
  fill: var(--text);
}

.mount-front .dim {
  stroke: var(--text);
  stroke-width: 0.3;
  fill: none;
}

.mount-front .dim-bg {
  fill: var(--white);
}

.mount-front .dim-text {
  font-family: var(--body);
  font-size: 3.4px;
  font-weight: 500;
  fill: var(--text-dark);
  text-anchor: middle;
}

.mount-front .leader {
  stroke: var(--navy);
  stroke-width: 0.3;
  fill: none;
}

.mount-front .tip {
  fill: var(--white);
  stroke: var(--navy);
  stroke-width: 0.3;
}

.mount-front .marker circle {
  fill: var(--green);
}

.mount-front .marker text {
  font-family: var(--heading);
  font-size: 3.8px;
  font-weight: 600;
  fill: var(--white);
  text-anchor: middle;
  dominant-baseline: central;
}

.mount-notes {
  list-style: none;
  counter-reset: note;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.mount-notes li {
  counter-increment: note;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.mount-notes li::before {
  content: counter(note);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font: 600 13px/1 var(--heading);
}

.mount-notes b {
  font-family: var(--heading);
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 640px) {
  .mount-notes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Specs */

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

.spec {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.spec dt {
  font: 500 14px/27px var(--heading);
  text-transform: uppercase;
  color: var(--navy);
}

.spec dd {
  margin: 0;
  min-width: 0;
  color: var(--text-dark);
}

.spec dd small {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 22px;
}

@media (max-width: 860px) {
  .specs {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .spec {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* Waitlist */

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 32px 60px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  background: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--green);
}

.cta-panel .lead {
  margin-top: 12px;
  max-width: 46ch;
}

.signup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.signup label {
  font: 500 14px/20px var(--heading);
  text-transform: uppercase;
  color: var(--navy);
}

.signup .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signup input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--text-dark);
  font: 400 16px/24px var(--body);
}

.signup input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}

.signup .status {
  min-height: 1.5em;
  font-size: 15px;
  color: var(--text-dark);
}

@media (max-width: 860px) {
  .cta-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-footer .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px;
  font-size: 15px;
}

.made-in {
  font-family: var(--heading);
  font-weight: 500;
  color: var(--navy);
}

.maker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.maker svg {
  height: 24px;
  width: auto;
  color: #052f55;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .nav .links a {
    transition: none;
  }
}
