/* DriveTrain product site — drivetrain.kanyantamubanga.com */

@font-face {
  font-family: "IBM Plex Sans Var";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url("/assets/ibm-plex-sans-latin-wght-normal.woff2") format("woff2-variations");
  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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Var";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url("/assets/ibm-plex-sans-cyrillic-wght-normal.woff2")
    format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --paper: #f4f7fb;
  --paper-deep: #e8eef6;
  --surface: #ffffff;
  --ink: #13202f;
  --ink-2: #3d5062;
  --ink-3: #5c6e80;
  --rule: #d7e0ea;
  --rule-soft: #e6ecf3;

  --blue: #1668c4;
  --blue-deep: #00377e;
  --blue-bright: #006ccb;
  --blue-wash: #e7f0fb;
  --green: #1e8449;
  --green-wash: #e3f5ea;
  --red: #c0392b;
  --red-wash: #fbe9e7;
  --amber: #8a6100;
  --amber-wash: #fdf3d9;

  --font: "IBM Plex Sans Var", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;

  --shell: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 16px;
  --radius-sm: 10px;

  --step--1: clamp(0.85rem, 0.83rem + 0.08vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.14vw, 1.08rem);
  --step-1: clamp(1.12rem, 1.05rem + 0.34vw, 1.32rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.25vw, 2.45rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.2vw, 3.5rem);
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
  /* Clears the sticky header when jumping to an in-page anchor. */
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.62;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-underline-offset: 0.2em;
  text-decoration-thickness: from-font;
}

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

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

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

h1 {
  font-size: var(--step-4);
  line-height: 1.05;
  letter-spacing: -0.032em;
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
  letter-spacing: -0.012em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

.masthead {
  position: static;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding-block: 0.7rem;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brandmark img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.masthead nav {
  margin-inline-start: auto;
}

.masthead nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 1.3rem;
  padding: 0;
  list-style: none;
}

.masthead nav a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--ink-2);
  font-size: var(--step--1);
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--blue-deep);
}

.masthead nav a.btn {
  padding-block: 0.5rem;
  color: #fff;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease;
}

.btn:hover {
  background: var(--blue-deep);
  color: #fff;
}

.btn--quiet {
  background: var(--surface);
  border-color: var(--rule);
  color: var(--ink);
}

.btn--quiet:hover {
  background: var(--blue-wash);
  border-color: var(--blue);
  color: var(--blue-deep);
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  width: 168px;
  height: 56px;
}

/* The Google Play badge artwork is wider than Apple's at the same height. */
.store-badge--play img {
  width: 188px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
}

/* ---------- rhythm ---------- */

section {
  padding-block: clamp(3.25rem, 7vw, 5.75rem);
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--rule-soft);
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--blue);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lede {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.5;
}

.prose {
  max-width: 62ch;
  color: var(--ink-2);
}

.prose + .prose {
  margin-top: 1rem;
}

.u-mt {
  margin-top: 1.05rem;
}

.u-mt-lg {
  margin-top: 1.75rem;
}

.u-measure {
  max-width: 22ch;
}

.tag {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.2em;
}

.tag--free {
  background: var(--green-wash);
  color: var(--green);
}

.tag--paid {
  background: var(--amber-wash);
  color: var(--amber);
}

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

.hero {
  padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(2.25rem, 4vw, 3.25rem);
  background:
    radial-gradient(
      110% 90% at 90% 0%,
      rgb(0 108 203 / 12%) 0%,
      rgb(0 108 203 / 0%) 62%
    ),
    var(--paper);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 1.3rem;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgb(0 55 126 / 22%);
}

.hero h1 {
  max-width: 16ch;
}

.hero .lede {
  max-width: 48ch;
  margin-top: 1.25rem;
}

.hero .actions {
  margin-top: 1.9rem;
}

.hero-note {
  margin-top: 1rem;
  max-width: 46ch;
  color: var(--ink-3);
  font-size: var(--step--1);
}

/* ---------- key figures ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--rule);
  overflow: hidden;
}

.figures div {
  padding: 1rem 1.15rem;
  background: var(--surface);
}

.figures dt {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--blue-deep);
}

.figures dd {
  margin: 0.2rem 0 0;
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.45;
}

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

.phone {
  margin: 0;
  max-width: 268px;
}

.phone img {
  /* A border rather than a wrapper element: the inner corner radius falls out
     of border-radius minus border-width, which is exactly the bezel we want. */
  display: block;
  width: 100%;
  border: 7px solid #1d2b3c;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 20px 44px rgb(19 32 47 / 24%);
}

.phone figcaption {
  margin-top: 0.85rem;
  color: var(--ink-3);
  font-size: var(--step--1);
  line-height: 1.5;
}

.phone-lang {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--blue-wash);
  color: var(--blue-deep);
  font-size: var(--step--1);
  font-weight: 600;
}

/* The two captures come from different device sizes, so they are matched on
   height rather than width — otherwise the pair looks accidentally ragged. */
.phone-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: end;
}

.phone-pair .phone {
  max-width: none;
}

/* Stacked, each capture uses the column width. Side by side, they are matched
   on height instead so the pair doesn't look accidentally ragged. */
@media (min-width: 30em) {
  .phone-pair {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }

  .phone-pair .phone img {
    height: clamp(260px, 34vw, 420px);
    width: auto;
    max-width: 100%;
  }
}

/* ---------- generic layouts ---------- */

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

.split-head h2 {
  max-width: 20ch;
}

/* A single phone as one half of a split reads as stranded when it is pinned to
   the left of a much wider column. */
.split > .phone {
  justify-self: center;
}

/* Likewise a heading with no supporting prose: aligned to the top it leaves a
   tall empty column beside a much longer list. */
@media (min-width: 56em) {
  .split-head:not(:has(p)) {
    align-self: center;
  }
}

.points {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  list-style: none;
  max-width: 58ch;
}

.points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-2);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}

.points strong {
  color: var(--ink);
  font-weight: 600;
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.card {
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.band .card {
  background: var(--paper);
}

.card h3 {
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* ---------- study loop ---------- */

.loop {
  display: grid;
  gap: 1px;
  margin-top: 2.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--rule);
  overflow: hidden;
  counter-reset: step;
}

.loop li {
  padding: 1.15rem 1.35rem;
  background: var(--surface);
  list-style: none;
}

.band .loop li {
  background: var(--paper);
}

.loop li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 0.6rem;
  border-radius: 8px;
  background: var(--blue-wash);
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 600;
}

.loop h3 {
  margin-bottom: 0.35rem;
  font-size: var(--step-0);
}

.loop p {
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.55;
}

/* ---------- terminology ---------- */

.terms {
  display: grid;
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--rule);
  overflow: hidden;
}

.terms div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  padding: 0.85rem 1.15rem;
  background: var(--surface);
}

.band .terms div {
  background: var(--paper);
}

.terms dt {
  min-width: 9rem;
  color: var(--ink);
  font-weight: 600;
}

.terms dd {
  margin: 0;
  color: var(--blue-deep);
  font-size: var(--step-1);
}

.terms .gloss {
  flex-basis: 100%;
  color: var(--ink-3);
  font-size: var(--step--1);
}

/* ---------- tables ---------- */

.table-wrap {
  margin-top: 2.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: var(--step--1);
}

th,
td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--paper-deep);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

tbody th {
  color: var(--ink);
  font-weight: 600;
}

tbody td {
  color: var(--ink-2);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.free {
  color: var(--green);
  font-weight: 600;
}

.paid {
  color: var(--amber);
  font-weight: 600;
}

/* ---------- notice ---------- */

.notice {
  margin-top: 2rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--blue-wash);
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.6;
  max-width: 66ch;
}

.notice strong {
  color: var(--ink);
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.plan {
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan h3 {
  font-size: var(--step-0);
  color: var(--ink-2);
  font-weight: 600;
}

/* Replaced the price figure: plan prices are set by the store, so the card
   states what kind of plan it is instead of a number that would go stale. */
.plan .plan-note {
  display: block;
  margin: 0.3rem 0 0.6rem;
  color: var(--blue-deep);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan p {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.plan--free {
  grid-column: 1 / -1;
  background: var(--blue-wash);
  border-color: #bcd6f2;
}

.plan--free p {
  max-width: 62ch;
}

/* ---------- availability ---------- */

.platforms {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.platform {
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.platform h3 {
  margin-bottom: 0.5rem;
}

.platform p {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1.15rem;
  margin: 1rem 0 0;
  font-size: var(--step--1);
}

.spec dt {
  color: var(--ink-3);
}

.spec dd {
  margin: 0;
  color: var(--ink-2);
}

.platform .actions {
  margin-top: 1.25rem;
}

/* ---------- faq ---------- */

.faq-list {
  margin-top: 1.9rem;
  border-top: 1px solid var(--rule);
  max-width: 62rem;
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
  color: var(--ink);
  font-size: var(--step-0);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list summary:hover {
  color: var(--blue-deep);
}

.faq-answer {
  max-width: 66ch;
  padding-bottom: 1.3rem;
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.65;
}

.faq-answer p + p {
  margin-top: 0.7rem;
}

.faq-group + .faq-group {
  margin-top: 2.75rem;
}

.faq-group h2 {
  font-size: var(--step-2);
}

/* ---------- inner page head ---------- */

.page-head {
  padding-block: clamp(2.75rem, 6vw, 4.25rem) clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.page-head .lede {
  margin-top: 1.1rem;
  max-width: 54ch;
}

.crumbs {
  margin-bottom: 1.3rem;
  color: var(--ink-3);
  font-size: var(--step--1);
}

.crumbs a {
  color: var(--ink-3);
}

.crumbs a:hover {
  color: var(--blue-deep);
}

/* ---------- support ---------- */

.support-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.support-block {
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.support-block h3 {
  margin-bottom: 0.55rem;
}

.support-block p,
.support-block li {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.support-block ol {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

/* ---------- closing ---------- */

.closing {
  background: linear-gradient(160deg, var(--blue-bright) 0%, var(--blue-deep) 100%);
  color: #fff;
  text-align: center;
}

.closing h2 {
  max-width: 22ch;
  margin-inline: auto;
}

.closing .lede {
  max-width: 48ch;
  margin: 1rem auto 0;
  color: #d8e7f8;
}

.closing .actions {
  justify-content: center;
  margin-top: 1.9rem;
}

.closing .btn--quiet {
  background: transparent;
  border-color: rgb(255 255 255 / 55%);
  color: #fff;
}

.closing .btn--quiet:hover {
  background: rgb(255 255 255 / 12%);
  border-color: #fff;
  color: #fff;
}

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

.site-footer {
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  background: var(--surface);
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
}

.footer-grid {
  display: grid;
  gap: 1.6rem;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
}

.footer-grid nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-grid nav a:hover {
  color: var(--blue-deep);
  text-decoration: underline;
}

.disclaimer {
  max-width: 70ch;
  color: var(--ink-3);
  line-height: 1.6;
}

.byline {
  color: var(--ink-2);
}

.byline a {
  color: var(--ink);
}

/* ---------- responsive ---------- */

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

  .card-grid,
  .platforms,
  .support-grid,
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 48em) {
  .masthead {
    position: sticky;
  }
}

@media (min-width: 56em) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 4.5rem);
  }

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

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

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

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

/* ---------- motion ---------- */

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

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