@font-face {
  font-family: 'Sofia Sans';
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/sofia-sans-latin-400-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Sofia Sans';
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/sofia-sans-latin-600-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Sofia Sans Condensed';
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/sofia-sans-condensed-latin-600-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Sofia Sans Condensed';
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/sofia-sans-condensed-latin-700-normal.woff2) format('woff2');
}

:root {
  --ink: #14181f;
  --paper: #ffffff;
  --bg: #f1f2f4;
  --line: #d9dce0;
  --mute: #5c636b;
  --yellow: #ffd60a;
  --red: #b3141d;
  --ref: #1f6fd1;
  --you: #e2571c;
  --ok: #1d7a3a;
  --kerb-light: #ffffff;
  --font-body: 'Sofia Sans', system-ui, sans-serif;
  --font-display: 'Sofia Sans Condensed', 'Arial Narrow', sans-serif;
  --gutter: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0f3;
    --paper: #1b1f26;
    --bg: #12151a;
    --line: #343a44;
    --mute: #a3abb5;
    --red: #ff7a80;
    --ref: #62a8ff;
    --you: #ff8a4c;
    --ok: #5fd08a;
    --kerb-light: #eef0f3;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--yellow);
}

a:hover {
  text-decoration-color: currentColor;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.4em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(30px, 4vw, 42px);
}

h3 {
  font-size: 26px;
}

p {
  margin: 0 0 1em;
  max-width: 68ch;
}

code {
  font-size: 0.9em;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: 48px;
}

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

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 20px;
}

.brand::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  background: var(--yellow);
  vertical-align: -1px;
}

h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.lede {
  font-size: 21px;
  color: var(--mute);
  max-width: 54ch;
}

.hero h1 {
  max-width: none;
}

.hero h1 span {
  display: block;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.try-demo {
  margin-top: 18px;
  max-width: 54ch;
}

.try-demo a {
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  border-radius: 4px;
}

.button.quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.button:hover {
  background: var(--yellow);
  color: #14181f;
}

.phone img {
  border-radius: 28px;
  border: 8px solid #14181f;
  box-shadow: 0 24px 48px -24px rgb(20 24 31 / 0.45);
}

.phone {
  margin: 0;
}

.roadbook {
  padding-top: 56px;
  padding-bottom: 36px;
}

.roadbook-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--mute);
  margin-bottom: 18px;
}

.strip {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 152px;
}

.strip::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 69px;
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--red) 0 28px, var(--kerb-light) 28px 56px);
  box-shadow: inset 0 0 0 1px var(--line);
}

.strip li {
  position: absolute;
  left: var(--at);
  transform: translateX(calc(-1 * var(--anchor, var(--at))));
  display: flex;
  flex-direction: column;
  padding: 5px 8px 6px;
  border-radius: 3px;
  white-space: nowrap;
  font-family: var(--font-display);
  line-height: 1.1;
}

.strip li::before {
  content: '';
  position: absolute;
  left: var(--anchor, var(--at));
  width: 3px;
  margin-left: -1px;
  background: var(--ink);
}

.strip li.throttle {
  top: 0;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.strip li.throttle::before {
  top: 100%;
  height: 33px;
}

.strip li.brake {
  top: 102px;
  background: var(--yellow);
  color: #14181f;
}

.strip li.brake::before {
  bottom: 100%;
  height: 33px;
  background: #14181f;
}

.strip li.apex {
  top: 62px;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: #14181f;
  box-shadow: 0 0 0 2px #14181f;
  z-index: 1;
}

.strip li.apex::before {
  content: none;
}

.strip li.apex b {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.strip li.apex span {
  font-size: 13px;
}

.strip li b {
  font-weight: 600;
  font-size: 14px;
  opacity: 0.8;
}

.strip li span {
  font-weight: 700;
  font-size: 17px;
}

.strip em {
  font-style: normal;
  font-size: 1.15em;
  margin-left: 2px;
}

.strip-note {
  margin-top: 28px;
  font-size: 15px;
  color: var(--mute);
}

.block {
  padding-top: 72px;
  padding-bottom: 16px;
}

.intro {
  font-size: 20px;
  color: var(--mute);
}

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 56px;
}

.steps li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}

.steps img,
.wide-shot {
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px -24px rgb(20 24 31 / 0.4);
}

.wide-shot {
  margin-top: 24px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: 14px;
  background: var(--yellow);
  color: #14181f;
  border-radius: 50%;
  font-size: 24px;
  vertical-align: 3px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
}

.split > div {
  min-width: 0;
}

.plain {
  margin: 0;
  padding-left: 1.2em;
}

.plain li + li {
  margin-top: 10px;
}

.small {
  font-size: 15px;
  color: var(--mute);
}

.support {
  padding-bottom: 32px;
}

.footer {
  margin-top: 72px;
  padding: 40px 0 56px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--mute);
}

@media (max-width: 899px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 17px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-grid,
  .steps li,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .phone {
    max-width: 260px;
    justify-self: center;
    width: 100%;
  }

  .actions .button {
    flex: 1 1 100%;
    justify-content: center;
  }

  .lede {
    font-size: 19px;
  }

  .strip {
    height: auto;
    display: grid;
    gap: 10px;
    padding-left: 30px;
  }

  .strip::before {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 12px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--red) 0 22px, var(--kerb-light) 22px 44px);
  }

  .strip li,
  .strip li.throttle,
  .strip li.brake,
  .strip li.apex {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    justify-self: start;
  }

  .strip li.apex {
    margin-left: -38px;
  }

  .strip li::before,
  .strip li.throttle::before,
  .strip li.brake::before {
    top: 50%;
    bottom: auto;
    left: -18px;
    width: 18px;
    height: 3px;
    margin: -1px 0 0;
  }

}

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