/* Jedziemy landing. Colours mirror packages/shared/src/theme/tokens.ts (palette.light, brand). */
:root {
  --bg: #f1efea;
  --surface: #ffffff;
  --surface-muted: #e8e5de;
  --ink: #111215;
  --secondary: #4a4d55;
  --muted: #8a8c92;
  --line: rgba(17, 18, 21, 0.08);
  --line-strong: rgba(17, 18, 21, 0.14);
  --accent: #2346ff;
  --accent-edge: #1c38cc;
  --accent-soft: #e5e9ff;
  --success: #087f59;
  --success-soft: #e5f4ed;
  --warning: #926014;
  --warning-soft: #fff2d6;
  --school: #0f6b5c;
  --plan-grey: #b4b5ba;

  --r-small: 12px;
  --r-input: 16px;
  --r-card: 24px;
  --r-hero: 30px;

  --gutter: clamp(20px, 4vw, 48px);
  --wrap: 1120px;
  --wrap-wide: 1240px;
  --section: clamp(96px, 13vw, 176px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The app's paper glow: warm top-left, blue top-right. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(50% 60% at 4% 0%, rgba(255, 186, 120, 0.2), transparent 70%),
    radial-gradient(60% 70% at 92% 0%, rgba(35, 70, 255, 0.11), transparent 70%);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
img,
svg {
  display: block;
}
i,
em {
  font-style: normal;
}
button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-small);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

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

.soft {
  color: var(--muted);
}

/* Buttons: a face standing on a darker edge, like the app's tactile button. */
.button {
  --face: var(--ink);
  --edge: #000;
  --text: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--r-input);
  background: var(--face);
  color: var(--text);
  box-shadow: 0 3px 0 var(--edge);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.2s ease;
}
.button:hover {
  --face: #24252b;
}
.button:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--edge);
}
.button-quiet {
  --face: var(--surface-muted);
  --edge: #c9c5bb;
  --text: var(--ink);
}
.button-quiet:hover {
  --face: #dfdbd2;
}
.button-light {
  --face: #fff;
  --edge: #c8d0ff;
  --text: var(--ink);
}
.button-light:hover {
  --face: #f3f5ff;
}
.button-small {
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-small);
  font-size: 15px;
  box-shadow: 0 2px 0 var(--edge);
}
.button-small:active {
  transform: translateY(2px);
}

/* Navigation: a floating bar that gains a surface once the page scrolls. */
.nav {
  position: fixed;
  inset: 12px 0 auto;
  z-index: 50;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  max-width: var(--wrap-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
  padding: 0 10px 0 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.nav.is-scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(17, 18, 21, 0.3);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--secondary);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(17, 18, 21, 0.05);
}

/* Hero */
.hero {
  padding-top: clamp(96px, min(11vw, 16vh), 148px);
}
.hero-copy {
  text-align: center;
}
.eyebrow {
  color: var(--secondary);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 16px;
}
.hero-title {
  font-weight: 600;
  font-size: clamp(2.5rem, min(5.6vw, 9vh), 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-inline: auto;
}
.hero-title span {
  display: block;
}
@media (min-width: 681px) {
  .hero-title span {
    white-space: nowrap;
  }
}
.hero-lede {
  max-width: 34rem;
  margin: 22px auto 0;
  color: var(--secondary);
  font-size: clamp(17px, 1.4vw, 19px);
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  margin-top: 14px;
  color: var(--success);
  font-weight: 500;
  font-size: 15px;
}
.sample {
  margin-top: 18px;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
}

/* Product stage: office calendar plus the student's phone. */
.stage {
  position: relative;
  margin-top: clamp(28px, min(5vw, 6vh), 64px);
}
.panel {
  margin-right: 270px;
}
.panel {
  display: grid;
  grid-template-columns: 196px 1fr;
  background: var(--surface);
  border-radius: var(--r-hero);
  box-shadow:
    0 1px 0 var(--line),
    0 40px 80px -40px rgba(17, 18, 21, 0.28),
    0 0 0 1px var(--line);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
}
.panel-side {
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: #fbfaf8;
}
.panel-school,
.app-school {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.panel-school small,
.app-school small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}
.panel-school > span,
.app-school > span {
  display: grid;
  gap: 2px;
}
.school-badge {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--school);
  color: #fff;
  font-weight: 600;
  font-size: 19px;
}
.school-badge::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4c430;
}
.panel-side ul {
  margin-top: 28px;
  display: grid;
  gap: 2px;
}
.panel-side li {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--secondary);
  font-weight: 500;
}
.panel-side li.is-active {
  background: var(--surface-muted);
  color: var(--ink);
}
.panel-main {
  padding: 22px 24px 26px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.panel-head strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.panel-head span {
  color: var(--muted);
}
.seg {
  display: flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-muted);
}
.seg span {
  padding: 6px 12px;
  border-radius: 9px;
  color: var(--secondary);
  font-weight: 500;
}
.seg .is-on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(17, 18, 21, 0.1);
}

.cal {
  --row: 22px;
}
.cal-days,
.cal-grid {
  display: grid;
  grid-template-columns: 44px repeat(5, minmax(0, 1fr));
  column-gap: 8px;
}
.cal-days {
  padding-bottom: 10px;
  color: var(--muted);
  font-weight: 500;
}
.cal-days b {
  color: var(--ink);
  font-weight: 600;
  margin-left: 2px;
}
.cal-grid {
  grid-template-rows: repeat(20, var(--row));
  row-gap: 0;
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 100% calc(var(--row) * 2);
}
.t {
  grid-column: 1;
  color: var(--muted);
  font-size: 11px;
  transform: translateY(-6px);
}
.t1 { grid-row: 1; }
.t2 { grid-row: 5; }
.t3 { grid-row: 9; }
.t4 { grid-row: 13; }
.t5 { grid-row: 17; }
.d1 { grid-column: 2; }
.d2 { grid-column: 3; }
.d3 { grid-column: 4; }
.d4 { grid-column: 5; }
.d5 { grid-column: 6; }
.r1-5 { grid-row: 1 / 5; }
.r3-7 { grid-row: 3 / 7; }
.r5-8 { grid-row: 5 / 8; }
.r9-13 { grid-row: 9 / 13; }
.r11-15 { grid-row: 11 / 15; }
.r13-16 { grid-row: 13 / 16; }
.r15-19 { grid-row: 15 / 19; }
.r17-21 { grid-row: 17 / 21; }

.ev {
  margin: 3px 0;
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}
.ev b,
.ev span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev b {
  font-weight: 600;
}
.ev span {
  color: var(--secondary);
  font-size: 12px;
}
.ev-alt {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.ev-alt span {
  color: rgba(255, 255, 255, 0.78);
}

/* The proposal slot: dashed blue outline until the student accepts. */
.ev-live {
  border: 1.5px dashed var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transition:
    background-color 0.5s var(--ease),
    border-color 0.5s var(--ease),
    color 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.ev-live span {
  color: inherit;
  opacity: 0.8;
}
.ev-state {
  position: relative;
  margin-top: auto;
  height: 18px;
  font-size: 11px;
  font-weight: 600;
}
.ev-state i,
.chip-flip i,
.app-accept > span {
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.ev-state i {
  position: absolute;
  inset: 0 auto auto 0;
}
.state-done {
  opacity: 0;
  transform: translateY(6px);
}
.is-accepted .ev-live {
  background: var(--accent);
  border-style: solid;
  color: #fff;
  transform: scale(1.03);
}
.is-accepted .state-wait {
  opacity: 0;
  transform: translateY(-6px);
}
.is-accepted .state-done {
  opacity: 1;
  transform: none;
}

/* Phone */
/* Phone: titanium band, black bezel, Dynamic Island, side keys. */
.phone {
  position: absolute;
  right: var(--gutter);
  bottom: -72px;
  width: 300px;
}
.device {
  padding: 4px;
  border-radius: 54px;
  background: linear-gradient(135deg, #d9d8d4 0%, #8f8e8b 18%, #4a4a4c 48%, #8d8c89 82%, #d4d3cf 100%);
  box-shadow:
    0 60px 100px -45px rgba(17, 18, 21, 0.6),
    0 24px 40px -24px rgba(17, 18, 21, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
/* Black glass bezel inside the metal band. */
.device::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50px;
  background: #050506;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
/* A soft reflection across the glass. */
.device::after {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 3;
  border-radius: 50px;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 24%, transparent 38%);
}
.phone-key {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5d5c5a, #a9a8a4 60%, #6b6a67);
}
.key-action,
.key-up,
.key-down {
  left: -3px;
  border-radius: 2px 0 0 2px;
}
.key-action { top: 108px; height: 30px; }
.key-up { top: 158px; height: 52px; }
.key-down { top: 222px; height: 52px; }
.key-side {
  right: -3px;
  top: 178px;
  height: 84px;
  border-radius: 0 2px 2px 0;
}
.phone-screen {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 600px;
  margin: 8px;
  padding: 0 16px;
  border-radius: 44px;
  background:
    radial-gradient(60% 40% at 90% 0%, rgba(35, 70, 255, 0.1), transparent 70%),
    radial-gradient(55% 35% at 0% 0%, rgba(255, 186, 120, 0.16), transparent 70%),
    var(--bg);
  font-size: 13px;
  line-height: 1.3;
}
.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 74px;
  height: 22px;
  margin-left: -37px;
  border-radius: 999px;
  background: #000;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  padding: 0 14px 0 20px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.status-icons svg {
  fill: var(--ink);
}
.i-signal { width: 15px; height: 10px; }
.i-wifi { width: 14px; height: 11px; }
.i-battery {
  position: relative;
  width: 21px;
  height: 10px;
  padding: 1.5px;
  border-radius: 3.5px;
  border: 1px solid rgba(17, 18, 21, 0.4);
}
.i-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 1.5px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: rgba(17, 18, 21, 0.4);
}
.i-battery i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--ink);
}
.home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 110px;
  height: 4px;
  margin-left: -55px;
  border-radius: 99px;
  background: var(--ink);
}
.app-school {
  margin-top: 10px;
}
.app-school small em {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
}
.app-school .avatar-sm {
  margin-left: auto;
}
.app-section {
  margin: 24px 2px 12px;
  font-weight: 600;
  font-size: 16px;
}
.app-card {
  padding: 16px;
  border-radius: 20px;
  background: var(--surface);
}
.app-date {
  font-size: 14px;
  font-weight: 500;
}
.app-time {
  margin-top: 4px;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.app-meta {
  margin-top: 8px;
  color: var(--secondary);
}
.app-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.app-person small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.app-accept {
  position: relative;
  display: block;
  height: 44px;
  border-radius: 13px;
  background: var(--accent);
  box-shadow: 0 3px 0 var(--accent-edge);
  color: #fff;
  font-weight: 600;
  transition:
    background-color 0.4s var(--ease),
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.app-accept > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.app-accept svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.accept-done {
  opacity: 0;
  transform: translateY(6px);
}
.is-pressing .app-accept {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--accent-edge);
}
.is-accepted .app-accept {
  background: var(--success);
  box-shadow: 0 3px 0 #066647;
}
.is-accepted .accept-idle {
  opacity: 0;
  transform: translateY(-6px);
}
.is-accepted .accept-done {
  opacity: 1;
  transform: none;
}
.app-other {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-top: 10px;
  border-radius: 13px;
  background: var(--surface-muted);
  box-shadow: 0 2px 0 #d3cfc5;
  font-weight: 500;
}
.app-reject {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: var(--secondary);
}
.tap {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 0;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  background: rgba(17, 18, 21, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: scale(1.6);
  pointer-events: none;
}
.is-pressing .tap {
  animation: tap 0.7s var(--ease);
}
@keyframes tap {
  0% { opacity: 0; transform: scale(1.6); }
  40% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.9); }
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.avatar-sm {
  width: 34px;
  height: 34px;
}
.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 24px;
}

/* Sections */
.section {
  padding-top: var(--section);
}
.hero + .section {
  padding-top: calc(var(--section) + 40px);
}
.section-title {
  font-weight: 600;
  font-size: clamp(2rem, 3.9vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 22ch;
}
.section-title-wide {
  max-width: 26ch;
}
.label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

/* Three situations: copy sticks while its screen scrolls past. */
.situations {
  margin-top: clamp(48px, 7vw, 96px);
}
.situation-list {
  display: grid;
  gap: clamp(72px, 10vw, 140px);
}
.situation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.situation-copy {
  position: sticky;
  top: 30vh;
  max-width: 26rem;
  transition: opacity 0.5s var(--ease);
}
.js .situation:not(.is-current) .situation-copy {
  opacity: 0.4;
}
.situation h3 {
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.situation p {
  margin-top: 14px;
  color: var(--secondary);
}

.shot {
  position: relative;
  width: 100%;
  max-width: 480px;
  justify-self: end;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: 0 30px 60px -36px rgba(17, 18, 21, 0.3);
  font-size: 15px;
  line-height: 1.35;
}

/* Arrangement thread */
.thread-old {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.thread-old s {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.thread-old p {
  margin-top: 10px;
  color: var(--secondary);
}
.thread-new {
  padding-top: 20px;
}
.thread-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.thread-day {
  margin-top: 6px;
  font-weight: 500;
  font-size: 17px;
}
.thread-time {
  font-weight: 600;
  font-size: clamp(34px, 3.6vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.thread-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.chip-flip {
  position: relative;
  min-width: 152px;
  justify-content: center;
  background: var(--warning-soft);
  color: var(--warning);
  transition:
    background-color 0.5s var(--ease),
    color 0.5s var(--ease);
}
.chip-flip i {
  position: absolute;
}
.chip-flip.is-accepted {
  background: var(--success-soft);
  color: var(--success);
}

/* Course balance */
.course-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.course-head span {
  display: grid;
}
.course-head small {
  color: var(--muted);
  font-size: 13px;
}
.course-hours {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 20px;
}
.big {
  font-weight: 600;
  font-size: 72px;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.big span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.of {
  display: grid;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
}
.of b {
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.bars {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 3px;
  height: 46px;
  margin-top: 20px;
}
.bars i {
  border-radius: 99px;
  background: var(--surface-muted);
  transform-origin: bottom;
}
.bars .k-done {
  background: var(--ink);
}
.bars .k-plan {
  background: var(--accent);
}
.course-legend {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.course-legend dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.course-legend dt i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--surface-muted);
}
.course-legend .k-done { background: var(--ink); }
.course-legend .k-plan { background: var(--accent); }
.course-legend dd {
  margin-top: 2px;
  font-weight: 600;
  font-size: 18px;
}
.course-money {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.money-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.money-row span {
  color: var(--secondary);
}
.money-row small {
  color: var(--muted);
  font-weight: 500;
}
.money-track {
  height: 8px;
  margin: 10px 0 14px;
  border-radius: 99px;
  background: var(--surface-muted);
  overflow: hidden;
}
.money-track i {
  display: block;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: var(--success);
  transform-origin: left;
}
.money-next span {
  color: var(--muted);
  font-size: 14px;
}

/* Today list */
.today-title {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.shot-today li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.shot-today li:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}
.count {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.count-warn {
  background: var(--warning-soft);
  color: var(--warning);
}

/* One ride, three perspectives */
.views {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  margin-top: clamp(48px, 7vw, 88px);
}
.view figcaption {
  margin-top: 20px;
  padding-right: 12px;
  color: var(--secondary);
}
.view figcaption b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 4px;
}
.view-shot {
  height: 232px;
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: 0 24px 50px -36px rgba(17, 18, 21, 0.3);
  font-size: 14px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
}
.mini-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.mini-day {
  margin-top: 14px;
  font-weight: 500;
  font-size: 15px;
}
.mini-time {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 36px;
  letter-spacing: -0.04em;
}
.mini-time b {
  font-weight: 600;
}
.mini-time .end {
  color: var(--muted);
}
/* The app's time route: open ring, line, filled dot. */
.route {
  position: relative;
  flex: 1;
  height: 1.5px;
  background: var(--line-strong);
}
.route::before,
.route::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
}
.route::before {
  left: -2px;
  border: 2px solid var(--ink);
  background: var(--surface);
}
.route::after {
  right: -2px;
  background: var(--muted);
}
.mini-place {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--secondary);
}
.mini-place svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mini-day-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.mini-day-list div {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
}
.mini-day-list span {
  color: var(--muted);
  font-weight: 500;
}
.mini-cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.mini-cols div {
  position: relative;
  border-radius: 12px;
  background: linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 22px / 100% 28px;
}
.mini-cols span {
  display: block;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
  padding-bottom: 6px;
}
.mini-cols i {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 8px;
  background: var(--surface-muted);
}
.mini-cols .b1 { top: 26px; height: 40px; }
.mini-cols .b2 { top: 108px; height: 44px; }
.mini-cols .b3 { top: 44px; height: 52px; }
.mini-cols .b4 { top: 112px; height: 30px; }
.mini-cols .b5 { top: 64px; height: 56px; }

/* The shared ride lights up in each view in turn. */
.is-live {
  transition:
    background-color 0.5s var(--ease),
    border-color 0.5s var(--ease),
    color 0.5s var(--ease);
}
.mini-day-list .is-live,
.mini-cols .is-live {
  transition-delay: 0.35s;
}
.mini-cols .is-live {
  transition-delay: 0.7s;
}
.views.is-lit .mini-day-list .is-live {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.views.is-lit .mini-day-list .is-live span {
  color: rgba(255, 255, 255, 0.78);
}
.views.is-lit .mini-cols .is-live {
  background: var(--accent);
}
.no-js .mini-day-list .is-live,
.reduced .mini-day-list .is-live {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.no-js .mini-day-list .is-live span,
.reduced .mini-day-list .is-live span {
  color: rgba(255, 255, 255, 0.78);
}
.no-js .mini-cols .is-live,
.reduced .mini-cols .is-live {
  background: var(--accent);
}

/* Theory: real app screens in the same phone frame. */
.theory-lede {
  max-width: 38rem;
  margin-top: 24px;
  color: var(--secondary);
  font-size: clamp(17px, 1.4vw, 19px);
}
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 270px));
  justify-content: space-between;
  gap: 32px;
  max-width: calc(1040px + 2 * var(--gutter));
  margin-top: clamp(56px, 7vw, 96px);
}
.shot-item:nth-child(2) {
  margin-top: 56px;
}
.shot-item .device {
  position: relative;
  border-radius: 50px;
}
.shot-item .device::before,
.shot-item .device::after {
  border-radius: 46px;
}
.device-screen {
  position: relative;
  z-index: 1;
  margin: 8px;
  overflow: hidden;
  border-radius: 40px;
  background: var(--bg);
}
.device-screen img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-item figcaption {
  margin-top: 28px;
  padding-right: 8px;
  color: var(--secondary);
}
.shot-item figcaption b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 600;
  font-size: 19px;
}
.theory-note {
  margin-top: clamp(40px, 5vw, 64px);
  color: var(--muted);
  font-size: 14px;
}
.js:not(.reduced) .shots .reveal:nth-child(2) { transition-delay: 0.1s; }
.js:not(.reduced) .shots .reveal:nth-child(3) { transition-delay: 0.2s; }

/* People and onboarding */
.people-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.people-layout {
  margin-top: clamp(48px, 6vw, 80px);
}
.people-list {
  display: grid;
  gap: 28px;
}
.person {
  display: flex;
  align-items: center;
  gap: 20px;
}
.person img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.person div {
  display: grid;
  gap: 2px;
}
.person b {
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 2px;
}
.person a {
  color: var(--secondary);
  text-decoration: none;
  width: fit-content;
}
.person a:hover,
.faq a:hover,
.footer a:hover,
.closing-alt a:hover {
  color: var(--accent);
}
.start {
  padding-top: 0;
}
.start h3 {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
  line-height: 1.3;
  max-width: 24ch;
}
/* A road: dashed lane marking with the app's route rings at each stop. */
.road {
  position: relative;
  margin-top: 32px;
  display: grid;
  gap: 30px;
  padding-left: 40px;
}
.road::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 10px, transparent 10px 18px);
}
.road li {
  position: relative;
}
.road li::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--bg);
}
.road li:last-child::before {
  border-color: var(--accent);
  background: var(--accent);
}
.road b {
  font-weight: 600;
  font-size: 17px;
}
.road p {
  margin-top: 4px;
  color: var(--secondary);
  max-width: 34rem;
}

/* Pricing: one card, the monthly bill on the left and what is included on the right. */
.price-title {
  max-width: none;
  text-align: center;
}
.price-title span {
  display: block;
}
.price {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  max-width: 980px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  border-radius: var(--r-hero);
  background: var(--surface);
  box-shadow: 0 40px 80px -48px rgba(17, 18, 21, 0.35);
}
.price-main {
  padding: clamp(28px, 4vw, 44px);
}
.price-side {
  padding: clamp(28px, 4vw, 44px);
  border-left: 1px solid var(--line);
}
.price-side h3 {
  font-weight: 600;
  font-size: 15px;
  color: var(--secondary);
}
.price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.price-free {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 600;
  font-size: 14px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  color: var(--secondary);
}
.stepper-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.stepper button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.12s ease;
}
.stepper button:hover {
  background: var(--bg);
}
.stepper button:active {
  transform: scale(0.94);
}
.stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}
.stepper svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.stepper output {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.bill {
  margin: 28px 0 0;
}
.bill > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.bill dt {
  color: var(--secondary);
}
.bill dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bill > div.is-empty dt,
.bill > div.is-empty dd {
  color: var(--muted);
  font-weight: 400;
}
.bill .bill-total {
  align-items: center;
  padding: 20px 0 0;
  border-bottom: 0;
}
.bill-total dt {
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
}
.bill-total small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}
.bill-total dd {
  font-size: clamp(44px, 5vw, 60px);
  letter-spacing: -0.05em;
  line-height: 1;
}
.price-cta {
  width: 100%;
  margin-top: 28px;
}
.price-terms {
  margin-top: 14px;
  color: var(--secondary);
  font-size: 14px;
  text-align: center;
}
.included {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.included li {
  position: relative;
  padding-left: 34px;
  font-weight: 500;
}
.included li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087F59' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-8.5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.no-js .js-only {
  display: none;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}
.faq-layout .section-title {
  position: sticky;
  top: 120px;
  max-width: 12ch;
}
.faq details {
  border-bottom: 1px solid var(--line-strong);
}
.faq details:first-child {
  border-top: 1px solid var(--line-strong);
}
.faq summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.faq summary::after {
  transform: rotate(90deg);
}
.faq details[open] summary::after {
  transform: rotate(0deg);
}
.faq details p {
  padding: 0 48px 24px 0;
  color: var(--secondary);
  max-width: 40rem;
}
.faq a {
  color: var(--ink);
}

/* Closing call to action */
.closing {
  padding-top: var(--section);
}
.closing-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 112px) clamp(24px, 6vw, 96px);
  border-radius: clamp(24px, 3vw, 40px);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(10, 25, 160, 0.5), transparent 70%),
    var(--accent);
  color: #fff;
  text-align: center;
}
.closing-inner h2 {
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 18ch;
  margin-inline: auto;
}
.closing-inner > p {
  max-width: 34rem;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}
.closing-inner .button {
  margin-top: 36px;
}
.closing-alt {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 15px !important;
}
.closing-alt a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.closing-alt a:hover {
  color: #fff;
  border-color: #fff;
}

/* Footer */
.footer {
  padding: 56px 0 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-left: auto;
}
.footer-links a {
  color: var(--secondary);
  font-size: 15px;
  text-decoration: none;
}
.footer-copy {
  width: 100%;
  color: var(--muted);
  font-size: 14px;
}

/* Scroll reveals: only when JS runs and the visitor allows motion. */
.js:not(.reduced) .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.js:not(.reduced) .reveal.is-in {
  opacity: 1;
  transform: none;
}
.js:not(.reduced) .hero-copy .reveal {
  opacity: 1;
  transform: none;
  transition: none;
  animation: rise 0.8s var(--ease) both;
}
.js:not(.reduced) .hero-copy .reveal:nth-child(2) { animation-delay: 0.05s; }
.js:not(.reduced) .hero-copy .reveal:nth-child(3) { animation-delay: 0.1s; }
.js:not(.reduced) .hero-copy .reveal:nth-child(4) { animation-delay: 0.15s; }
.js:not(.reduced) .hero-copy .reveal:nth-child(5) { animation-delay: 0.2s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}
.js:not(.reduced) .stage.reveal {
  transform: translateY(48px) scale(0.97);
  transition-duration: 1.2s;
  transition-delay: 0.25s;
}
.js:not(.reduced) .stage.reveal.is-in {
  transform: none;
}
.js:not(.reduced) .shot {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.js:not(.reduced) .situation.is-seen .shot {
  opacity: 1;
  transform: none;
}
.js:not(.reduced) .bars i {
  transform: scaleY(0.2);
  transition: transform 0.6s var(--ease);
}
.js:not(.reduced) .is-seen .bars i {
  transform: none;
}
.js:not(.reduced) .money-track i {
  transform: scaleX(0);
  transition: transform 1s var(--ease) 0.4s;
}
.js:not(.reduced) .is-seen .money-track i {
  transform: none;
}
.js:not(.reduced) .view {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.js:not(.reduced) .views.is-in .view {
  opacity: 1;
  transform: none;
}
.js:not(.reduced) .views.is-in .view:nth-child(2) { transition-delay: 0.1s; }
.js:not(.reduced) .views.is-in .view:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 1180px) {
  .panel {
    grid-template-columns: 1fr;
  }
  .panel-side {
    display: none;
  }
}

/* Tablet */
@media (max-width: 1020px) {
  .views {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .people-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-layout .section-title {
    position: static;
    max-width: none;
  }
  .price {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .price-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-inner {
    justify-content: space-between;
  }
  .situation {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .situation-copy {
    position: static;
  }
  .js .situation:not(.is-current) .situation-copy {
    opacity: 1;
  }
  .shot {
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(240px, 68vw);
    justify-content: start;
    gap: 20px;
    max-width: none;
    padding-bottom: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar {
    display: none;
  }
  .shot-item {
    scroll-snap-align: start;
  }
  .shot-item:nth-child(2) {
    margin-top: 0;
  }
  .shot-item .device {
    border-radius: 44px;
  }
  .shot-item .device::before,
  .shot-item .device::after {
    border-radius: 40px;
  }
  .device-screen {
    border-radius: 35px;
  }
}

/* Phone: the calendar becomes a close-up of two days with the phone below. */
@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .hero-title {
    font-size: clamp(1.5rem, 8.7vw, 3.2rem);
  }
  .hero-actions .button {
    flex: 1 1 100%;
  }
  .hero-actions {
    margin-top: 26px;
  }
  .stage {
    padding-bottom: 0;
  }
  .panel {
    margin-right: 0;
  }
  .panel-main {
    padding: 18px 16px 20px;
  }
  .seg {
    display: none;
  }
  .cal-days,
  .cal-grid {
    grid-template-columns: 38px repeat(2, minmax(0, 1fr));
  }
  .cal-days span:nth-child(2),
  .cal-days span:nth-child(3),
  .cal-days span:nth-child(4),
  .cal-grid .d1,
  .cal-grid .d2,
  .cal-grid .d3 {
    display: none;
  }
  .d4 { grid-column: 2; }
  .d5 { grid-column: 3; }
  .stage {
    display: flex;
    flex-direction: column;
  }
  .phone {
    order: -1;
    position: relative;
    z-index: 2;
    right: auto;
    bottom: auto;
    width: min(300px, 86%);
    margin: 0 auto -56px;
  }
  .panel-main {
    padding-top: 76px;
  }
  .phone-screen {
    height: 486px;
  }
  .sample {
    text-align: center;
  }
  .shot {
    padding: 20px;
  }
  .big {
    font-size: 60px;
  }
  .course-legend dd {
    font-size: 16px;
  }
  .footer-links {
    margin-left: 0;
  }
}

.price-conversation { margin-top: 16px; font-size: 15px; text-align: center; }
.price-conversation a, .start a { text-underline-offset: 3px; }
/* Not found: the mascot idles on a road that keeps rolling towards you. */
.lost-page {
  min-height: 100vh;
  min-height: 100svh;
}
.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vh, 40px);
  padding: 96px var(--gutter) 56px;
  text-align: center;
}
.lost-copy {
  max-width: 34rem;
}
.lost-title {
  font-weight: 600;
  font-size: clamp(2.4rem, min(6vw, 8vh), 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.lost-lede {
  margin-top: 16px;
  color: var(--secondary);
  font-size: clamp(17px, 1.4vw, 19px);
}

.lost-scene {
  position: relative;
  width: min(640px, 100%);
  height: clamp(220px, 34vh, 320px);
}

/* A real 3D strip: the lane recedes to a vanishing point and its dashes stream towards you. */
.lost-road {
  position: absolute;
  inset: 0 -20%;
  perspective: 240px;
  perspective-origin: 50% 0%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 72%, transparent 100%);
}
.lost-lane {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 300px;
  height: 1400px;
  margin-left: -150px;
  transform-origin: 50% 100%;
  transform: rotateX(78deg);
  border-radius: 40px 40px 0 0;
  background: var(--surface-muted);
  box-shadow:
    inset 10px 0 0 #fff,
    inset -10px 0 0 #fff;
}
.lost-lane::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 10px;
  margin-left: -5px;
  background: repeating-linear-gradient(to bottom, #fff 0 46px, transparent 46px 100px);
  animation: lost-dash 0.55s linear infinite;
}
@keyframes lost-dash {
  to {
    background-position: 0 100px;
  }
}

.lost-car {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: clamp(150px, 30vh, 220px);
  transform: translateX(-50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lost-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.lost-svg * {
  transform-box: fill-box;
}
.lost-shadow {
  fill: rgba(17, 18, 21, 0.14);
  transform-origin: center;
  animation: lost-shadow 0.46s ease-in-out infinite alternate;
}
.lost-wheels {
  fill: var(--ink);
}
.lost-body {
  transform-origin: 50% 100%;
  animation: lost-idle 0.46s ease-in-out infinite alternate;
}
.lost-paint,
.lost-plate path:first-child,
.lost-plate rect {
  fill: var(--accent);
}
.lost-plate {
  transform-origin: 50% 100%;
  animation: lost-plate 2.8s ease-in-out infinite;
}
.lost-l,
.lost-mouth,
.lost-smile {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lost-l {
  stroke-width: 3.2;
}
.lost-mouth,
.lost-smile {
  stroke-width: 4.5;
  transition: opacity 0.2s ease;
}
.lost-smile {
  opacity: 0;
}
.lost-glass,
.lost-lamp,
.lost-glint {
  fill: #fff;
}
.lost-lamp {
  transform-origin: center;
  animation: lost-lamp 5.6s ease-in-out infinite;
}
.lost-cheek {
  fill: rgba(255, 255, 255, 0.28);
}
.lost-look ellipse {
  fill: var(--ink);
}
.lost-eyes {
  transform-origin: center;
  animation: lost-blink 4.2s ease-in-out infinite;
}
.lost-look {
  transform-origin: center;
  transform: translate(var(--lx, 0px), var(--ly, 0px));
  transition: transform 0.18s var(--ease);
  animation: lost-search 5.6s ease-in-out infinite;
}
.lost-car.is-tracking .lost-look {
  animation: none;
}

.lost-sign {
  position: absolute;
  left: calc(50% + clamp(84px, 17vh, 124px));
  bottom: 30%;
  width: clamp(30px, 5.5vh, 42px);
  height: auto;
  transform-origin: 50% 100%;
  animation: lost-sign 3.4s ease-in-out infinite;
}
@keyframes lost-sign {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(2.5deg);
  }
}

/* A question bubble pops up while it searches. */
.lost-bubble {
  position: absolute;
  top: -14%;
  right: -6%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  color: var(--accent);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 10px 24px -12px rgba(17, 18, 21, 0.35);
  transform-origin: 0% 100%;
  animation: lost-bubble 5.6s var(--ease) infinite;
}

/* Hover or tap: it spots you, smiles and hops. */
.lost-car:hover .lost-mouth,
.lost-car.is-happy .lost-mouth {
  opacity: 0;
}
.lost-car:hover .lost-smile,
.lost-car.is-happy .lost-smile {
  opacity: 1;
}
.lost-car:hover .lost-bubble,
.lost-car.is-happy .lost-bubble {
  animation: none;
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.lost-car.is-hopping .lost-svg {
  animation: lost-hop 0.62s var(--ease);
}

@keyframes lost-idle {
  from {
    transform: translateY(0) scaleY(1);
  }
  to {
    transform: translateY(-1.6px) scaleY(1.012);
  }
}
@keyframes lost-shadow {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0.96);
  }
}
@keyframes lost-plate {
  0%,
  100% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-4deg);
  }
  60% {
    transform: rotate(3deg);
  }
}
@keyframes lost-blink {
  0%,
  44%,
  48%,
  100% {
    transform: scaleY(1);
  }
  46% {
    transform: scaleY(0.08);
  }
}
@keyframes lost-search {
  0%,
  10% {
    transform: translate(0, 0);
  }
  18%,
  34% {
    transform: translate(-6px, 1px);
  }
  44%,
  60% {
    transform: translate(6px, 1px);
  }
  70%,
  84% {
    transform: translate(0, -3px);
  }
  92%,
  100% {
    transform: translate(0, 0);
  }
}
@keyframes lost-lamp {
  0%,
  62%,
  70%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  66% {
    transform: scale(1.25);
    opacity: 0.75;
  }
}
@keyframes lost-bubble {
  0%,
  8% {
    opacity: 0;
    transform: scale(0.3) rotate(-12deg);
  }
  16%,
  80% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  48% {
    transform: scale(1.06) rotate(6deg);
  }
  90%,
  100% {
    opacity: 0;
    transform: scale(0.3) rotate(-12deg);
  }
}
@keyframes lost-hop {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  18% {
    transform: translateY(4px) scale(1.06, 0.92);
  }
  48% {
    transform: translateY(-34px) scale(0.96, 1.05);
  }
  78% {
    transform: translateY(0) scale(1.05, 0.94);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

.lost .hero-actions .button-quiet {
  display: inline-flex;
}

@media (prefers-reduced-motion: reduce) {
  .lost-lane::before,
  .lost-shadow,
  .lost-body,
  .lost-plate,
  .lost-lamp,
  .lost-eyes,
  .lost-look,
  .lost-bubble,
  .lost-sign,
  .lost-car.is-hopping .lost-svg {
    animation: none;
  }
}
