/*
 * OTOMATE website.
 *
 * Type: Inter (self-hosted variable subset) for everything, JetBrains Mono for addresses and
 * codes, Montserrat 800 only for the wordmark (a five-letter subset). Each has a metric-matched
 * local fallback so text does not move when the web font swaps in. Licences: assets/fonts/OFL-*.txt.
 * Light only, on purpose: the cardboard illustrations are made for a light page.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2027, U+2030-203A, U+20AC, U+20B9, U+2122, U+2190-2193, U+2212, U+2248, U+2264-2265, U+2713, U+FEFF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-800-wordmark.woff2') format('woff2');
  unicode-range: U+0020, U+0041, U+0045, U+004D, U+004F, U+0054;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0, U+00B7, U+2026, U+2192;
}
/* Metric-matched fallbacks (computed against Arial, Menlo and Arial Bold). */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('ArialMT'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 107.34%;
  ascent-override: 90.25%;
  descent-override: 22.47%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Menlo'), local('Consolas'), local('Courier New');
  size-adjust: 99.66%;
  ascent-override: 102.35%;
  descent-override: 30.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Montserrat Fallback';
  font-weight: 800;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 107.49%;
  ascent-override: 90.05%;
  descent-override: 23.35%;
  line-gap-override: 0%;
}

:root {
  --font: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-logo: 'Montserrat', 'Montserrat Fallback', 'Inter', sans-serif;

  --navy: #0b2a4f;
  --navy-deep: #071d38;
  --blue: #1673ff;
  --blue-text: #0b5ad6;
  --blue-wash: #e8f0ff;

  --bg: #ffffff;
  --paper: #f7f5f0;
  --paper-2: #efebe2;
  --ink: #17202c;
  --ink-2: #3c4654;
  --muted: #646d7a;
  --line: #e4dfd4;
  --line-cool: #e3e6eb;

  --ok: #1d7a41;
  --ok-wash: #e4f3e9;

  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1160px;
  --gutter: 24px;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--blue-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

b,
strong {
  font-weight: 600;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink);
  white-space: nowrap;
}

kbd {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fff;
  line-height: 1.5;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
}

.skip:focus {
  top: 12px;
}

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

.small {
  font-size: 14px;
  line-height: 1.55;
}

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

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 600 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 150ms,
    border-color 150ms,
    color 150ms;
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

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

.btn-secondary {
  border-color: #c9cfd8;
  background: #fff;
  color: var(--navy);
}

.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* ---- Moving notice bar ---- */

.notice {
  overflow: hidden;
  background: var(--navy);
  color: #d9e3f1;
  font-size: 14px;
}

.notice-track,
.brands-track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-time, 48s) linear infinite;
}

.notice:hover .notice-track,
.notice:focus-within .notice-track,
.brands-track:hover {
  animation-play-state: paused;
}

.notice-run,
.brands-run {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-run li {
  padding: 9px 0;
  white-space: nowrap;
}

.notice-run li::after {
  display: inline-block;
  margin: 0 22px;
  vertical-align: 2px;
  color: #5d7fae;
  content: '◆';
  font-size: 8px;
}

.notice b {
  color: #fff;
}

.notice a {
  color: #fff;
  font-weight: 600;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: border-color 150ms;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-cool);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 66px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font: 800 23px/1 var(--font-logo);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--navy);
}

.wm-gear {
  flex-shrink: 0;
  width: 0.86em;
  height: 0.86em;
  margin: 0 0.04em;
  fill: currentColor;
  --key: var(--blue);
}

.wm-a {
  color: var(--blue);
}

.wordmark-sm {
  font-size: 19px;
}

/* "OTOMATE" inside a heading, drawn like the logo: Montserrat, and the second O painted as the gear.
   The letter stays in the text (search engines and screen readers read "OTOMATE"). */
.wm-inline {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 0.94em;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.wm-o {
  -webkit-text-fill-color: transparent;
  background-color: currentColor;
  -webkit-mask: url('/assets/img/wordmark-gear.svg') center / 0.84em 0.84em no-repeat;
  mask: url('/assets/img/wordmark-gear.svg') center / 0.84em 0.84em no-repeat;
}

.nav {
  flex: 1;
}

.nav-list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--paper);
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--navy);
  content: '';
  transition: transform 200ms;
}

.menu-bars::before {
  transform: translateY(-6px);
}

.menu-bars::after {
  transform: translateY(4px);
}

.menu-btn[aria-expanded='true'] .menu-bars {
  background: transparent;
}

.menu-btn[aria-expanded='true'] .menu-bars::before {
  transform: translateY(0) rotate(45deg);
}

.menu-btn[aria-expanded='true'] .menu-bars::after {
  transform: translateY(-2px) rotate(-45deg);
}

/* ---- Hero ---- */

.kicker {
  margin-bottom: 16px;
  color: var(--blue-text);
  font-size: 15px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.07;
  letter-spacing: -0.025em;
}

.lede {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-price {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
}

.hero-price strong {
  color: var(--navy);
}

/* ---- Frames for recordings ---- */

.watch {
  padding: 24px 0 88px;
  background: var(--paper);
}

.frame {
  margin: 0;
}

.frame-browser {
  overflow: hidden;
  border: 1px solid #d9dde3;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 28px 60px -40px rgb(11 42 79 / 0.55);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid #e6e8ec;
  background: #f4f5f7;
}

.frame-dots {
  display: flex;
  gap: 6px;
}

.frame-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5d8de;
}

.frame-url {
  flex: 0 1 380px;
  margin: 0 auto;
  padding: 3px 12px;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  font: 12.5px/1.5 var(--font-mono);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame-screen {
  position: relative;
  /* Same shape as the recordings (1920 × 1084), so nothing is cropped. */
  aspect-ratio: 1920 / 1084;
  background: #f5f5f7;
}

.frame-screen video,
.story-screen video,
.phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.frame-phone {
  justify-self: center;
  width: min(100%, 320px);
  padding: 11px;
  border-radius: 46px;
  background: #1b1d22;
  box-shadow:
    inset 0 0 0 1px #3a3d44,
    0 36px 60px -36px rgb(11 42 79 / 0.6);
}

.phone-screen {
  overflow: hidden;
  aspect-ratio: 390 / 844;
  border-radius: 36px;
  background: #000;
}

/* Cardboard animations */
.story {
  margin: 0;
}

.story-screen {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #e9dfcc;
  box-shadow: 0 26px 50px -34px rgb(43 32 12 / 0.55);
}

.play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.play-btn span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgb(11 42 79 / 0.85);
  color: #fff;
}

.play-btn svg {
  width: 24px;
  height: 24px;
}

.story-screen,
.frame-screen,
.phone-screen {
  position: relative;
}

/* ---- Sections ---- */

.section {
  padding: 96px 0;
}

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

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2,
.split-copy h2,
.mobile-copy h2,
.closing h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
}

.section-head p,
.split-copy p,
.mobile-copy > p,
.closing p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 18px;
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
  margin-top: 56px;
}

.device-body {
  position: relative;
  padding: 26px 26px 70px;
  border-radius: 22px;
  background: linear-gradient(160deg, #2b2f36, #15171b);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 30px 50px -34px rgb(0 0 0 / 0.6);
}

.device-screen {
  padding: 14px 16px 16px;
  border-radius: 8px;
  background: #0b1d33;
  color: #cfe0f7;
  font: 13px/1.5 var(--font-mono);
}

.lcd-title {
  margin: -14px -16px 10px;
  padding: 8px 16px;
  border-radius: 8px 8px 0 0;
  background: #163a66;
  color: #fff;
  font-weight: 500;
}

.lcd-rows {
  margin: 0;
}

.lcd-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 8px;
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
}

.lcd-row dt {
  color: #93acc9;
}

.lcd-row dd {
  margin: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lcd-active {
  border-radius: 4px;
  background: #1673ff;
}

.lcd-active dt,
.lcd-active dd {
  color: #fff;
}

.device-sensor {
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 70px;
  height: 34px;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 40%, #4a5260, #23262c 70%);
  transform: translateX(-50%);
}

.device-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 48px;
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #c9cfd8;
  border-radius: 50%;
  color: var(--navy);
  font: 600 14px/1 var(--font);
  content: counter(step);
}

.steps h3 {
  font-size: 19px;
}

.steps p {
  margin-top: 6px;
  color: var(--ink-2);
}

/* Product tour */
.tour {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.tour-tabs {
  display: grid;
  gap: 4px;
}

.tour-tab {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tour-tab:hover {
  background: rgb(255 255 255 / 0.6);
}

.tour-tab[aria-selected='true'] {
  border-left-color: var(--blue);
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.tour-tab-title {
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
}

.tour-tab-text {
  font-size: 14.5px;
  line-height: 1.5;
}

/* Mobile */
.mobile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: center;
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
}

.ticks svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--ok);
}

/* Split rows: copy beside an illustration */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.split + .split {
  margin-top: 88px;
}

.split-flip .split-copy {
  order: 2;
}

/* Features */
.spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin: 0;
  border-top: 1px solid var(--line-cool);
}

.spec > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-cool);
}

.spec-tight {
  margin-top: 40px;
}

.spec dt {
  color: var(--navy);
  font-weight: 600;
}

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

/* Security */
.section-navy {
  background: var(--navy);
  color: #cdd8e7;
}

.section-navy h2 {
  color: #fff;
}

.section-navy .split-copy p {
  color: #cdd8e7;
}

.sec-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.sec-list li {
  padding-left: 18px;
  border-left: 2px solid #2d5a92;
}

.sec-list b {
  color: #fff;
}

.sec-art {
  margin: 0;
}

.sec-art img,
.closing-art img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* Machines */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
}

.compat,
.road {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.compat th,
.compat td,
.road th,
.road td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-cool);
  text-align: left;
  vertical-align: top;
}

.compat thead th {
  background: #f6f7f9;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compat tbody th,
.road th {
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}

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

.compat tr:last-child th,
.compat tr:last-child td,
.compat .td-note {
  border-bottom: 0;
}

.compat .td-note {
  border-left: 1px solid var(--line-cool);
  vertical-align: middle;
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef0f3;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

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

.tag-blue {
  background: var(--blue-wash);
  color: var(--blue-text);
}

.check {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 8px 40px;
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--paper);
}

.check h3 {
  grid-row: span 2;
  font-size: 19px;
}

.check ol {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-2);
}

.check li + li {
  margin-top: 4px;
}

.check p {
  color: var(--muted);
  font-size: 15px;
}

/* Pricing */
.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card,
.calc {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.seg {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 26px;
  padding: 3px;
  border-radius: 8px;
  background: var(--paper-2);
}

.seg button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  font: 500 14.5px var(--font);
  cursor: pointer;
}

.seg button[aria-checked='true'] {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.seg-save {
  color: var(--ok);
  font-size: 12.5px;
  font-weight: 600;
}

.price-figure b {
  font-weight: inherit;
}

.price-figure {
  color: var(--navy);
  font-size: 88px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-figure span {
  margin-right: 4px;
  font-size: 0.5em;
  vertical-align: 0.55em;
}

.price-unit {
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
}

.calc {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.calc-label {
  color: var(--navy);
  font-size: 19px;
  font-weight: 600;
}

.calc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 24px;
  color: var(--ink-2);
}

.calc-input {
  width: 140px;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #c9cfd8;
  border-radius: 6px;
  color: var(--navy);
  font: 600 22px var(--font);
  font-variant-numeric: tabular-nums;
}

.calc-input:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px var(--blue-wash);
}

.calc-table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.calc-table th,
.calc-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-cool);
  color: var(--ink-2);
  font-weight: 400;
  text-align: left;
}

.calc-table td {
  text-align: right;
}

.calc-total th,
.calc-total td {
  border-bottom: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 600;
}

.calc .small {
  margin-top: auto;
}

/* Roadmap */
.road {
  border-top: 1px solid var(--line-cool);
}

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

.road td:last-child {
  text-align: right;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: start;
}

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

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

/* Closing */
.closing {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.closing-art {
  margin: 0;
}

/* ---- Footer ---- */

.site-footer {
  padding: 64px 0 28px;
  background: var(--navy-deep);
  color: #a9b8cc;
  font-size: 15px;
}

.site-footer .wordmark {
  color: #fff;
}

.site-footer .wm-gear {
  --key: #4c93ff;
}

.site-footer .wm-a {
  color: #4c93ff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-tag {
  margin-top: 8px;
  color: #7f93ad;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-about {
  max-width: 300px;
  margin-top: 18px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h2 {
  margin-bottom: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.site-footer a {
  color: #c8d4e4;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .btn-light {
  color: var(--navy);
}

.site-footer .btn-light:hover {
  color: #fff;
  text-decoration: none;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: #7f93ad;
  font-size: 13.5px;
}

/* ---- Legal pages and 404 ---- */

.page-plain main {
  min-height: 60vh;
}

.legal {
  max-width: calc(760px + var(--gutter) * 2);
  padding-top: 64px;
  padding-bottom: 96px;
}

.legal-head {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-cool);
}

.legal-head .eyebrow {
  margin-bottom: 10px;
  color: var(--blue-text);
  font-size: 14px;
  font-weight: 600;
}

.legal-head .eyebrow span {
  display: none;
}

.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
}

.updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 22px;
}

.legal p,
.legal li {
  color: var(--ink-2);
}

.legal p + p {
  margin-top: 14px;
}

.legal ul {
  margin: 14px 0;
  padding-left: 22px;
}

.legal li + li {
  margin-top: 8px;
}

.notfound {
  padding-top: 96px;
  padding-bottom: 120px;
  text-align: center;
}

.nf-code {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: 96px;
  font-weight: 600;
  line-height: 1;
}

.nf-code svg {
  width: 84px;
  height: 84px;
  fill: currentColor;
  --key: var(--blue);
}

.notfound h1 {
  font-size: 34px;
}

.notfound p {
  margin: 12px 0 28px;
  color: var(--ink-2);
}

/* ---- Navigation states ---- */

.nav-link[aria-current='page'] {
  color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--blue);
  border-radius: 0;
}

.nav-only-menu {
  display: none;
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

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

/* Reveal on scroll: defined once, in the v8 block below. */

/* ---- Hero: the cardboard banner fills the width; the copy sits on its empty left side ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #efe7d8;
}

.hero-bg {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 60%;
  transform-origin: 75% 60%;
  animation: drift 26s ease-in-out infinite alternate;
}

/* A slow push-in, like a camera on a set. */
@keyframes drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05) translateX(-0.6%);
  }
}

/* Keeps the copy readable where the art reaches under it on narrower screens. */
.hero-bg::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(239 231 216 / 0.92), rgb(239 231 216 / 0.6) 36%, transparent 52%);
  content: '';
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(76vh, 700px);
  padding-top: 64px;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 470px;
}

.hero .lede {
  color: #3a3428;
}

.hero .hero-price {
  color: #5b5446;
}

/* ---- Brand strip ---- */

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

.brands-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brands-row > p {
  flex: none;
  color: var(--muted);
  font-size: 14px;
}

.brands-window {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brands-run li {
  padding: 0 28px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---- Inner page header ---- */

.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--bg), var(--paper));
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.page-hero .lede {
  max-width: 760px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.toc a {
  padding: 7px 14px;
  border: 1px solid #d6dbe2;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--navy);
}

.section-tight {
  padding-top: 64px;
}

.feature .kicker,
.section-head .kicker {
  margin-bottom: 10px;
}

.more {
  margin-top: 36px;
}

.more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}

.more a:hover .btn-icon {
  transform: translateX(3px);
}

.more .btn-icon {
  transition: transform 150ms;
}

/* Steps laid out in a row */
.steps-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}

/* Plain numbered lists */
.plain-steps {
  margin: 20px 0;
  padding-left: 22px;
  color: var(--ink-2);
}

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

.note-under {
  margin-top: 14px;
}

/* Comparison table on navy */
.table-dark {
  border-color: rgb(255 255 255 / 0.12);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.compare th,
.compare td {
  padding: 16px 20px;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  color: #8fa6c4;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare thead th:nth-child(2) {
  color: #fff;
}

.compare tbody th {
  color: #fff;
  font-weight: 600;
}

.compare td:nth-child(2) {
  color: #fff;
}

.compare td:nth-child(3) {
  color: #8fa6c4;
}

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

/* Phone and console side by side (door access) */
.access-pair {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.access-pair .frame-phone {
  width: 100%;
}

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

  .access-pair .frame-phone {
    width: min(100%, 300px);
  }
}

/* Price summary on the home page */
.price-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.price-mini > div {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.price-mini-best {
  border-color: var(--navy) !important;
  box-shadow: 0 20px 40px -30px rgb(11 42 79 / 0.6);
}

.price-mini-k {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-2);
  font-weight: 500;
}

.price-mini-v {
  margin-top: 10px;
  color: var(--navy);
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price-mini-v span {
  font-size: 0.5em;
  vertical-align: 0.5em;
}

.price-mini-u {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14.5px;
}

.compat.num {
  min-width: 620px;
}

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

/* Machine setup guides */
.guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.guide {
  padding: 28px 30px;
  border: 1px solid var(--line-cool);
  border-radius: 14px;
  background: #fff;
  scroll-margin-top: 90px;
}

.guide h3 {
  font-size: 22px;
}

.guide ol {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--ink-2);
}

.guide li + li {
  margin-top: 8px;
}

.guide .small {
  margin-top: 16px;
}

.guide-wide {
  grid-column: 1 / -1;
}

.guide-note {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 15.5px;
}

.guide-note b {
  color: var(--navy);
}

/* Company */
.company-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.company-card h2 {
  margin-bottom: 18px;
  font-size: 22px;
}

.company-card dl {
  margin: 0;
}

.company-card dl > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.company-card dt {
  color: var(--muted);
  font-size: 15px;
}

.company-card dd {
  margin: 0;
  color: var(--ink);
}

.split-copy p + p {
  margin-top: 14px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.principles > div {
  padding-top: 18px;
  border-top: 2px solid var(--navy);
}

.principles h3 {
  font-size: 19px;
}

.principles p {
  margin-top: 8px;
  color: var(--ink-2);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.field {
  display: grid;
  gap: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field label {
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #c9cfd8;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: 16px var(--font);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px var(--blue-wash);
}

.contact-form .btn {
  justify-self: start;
}

.contact-side {
  display: grid;
  gap: 28px;
}

.contact-block h2 {
  margin-bottom: 8px;
  font-size: 19px;
}

.contact-big {
  font-size: 22px;
  font-weight: 600;
}

.contact-big a {
  color: var(--navy);
  text-decoration: none;
}

.contact-block address {
  color: var(--ink-2);
  font-style: normal;
}

.closing-simple {
  max-width: 760px;
  text-align: center;
}

.closing-simple .hero-ctas {
  justify-content: center;
}

/* Footer company details */
.footer-brand .btn {
  margin-top: 20px;
}

.footer-company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.footer-company h2 {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-gst {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.footer-company address {
  font-style: normal;
  line-height: 1.7;
}

.footer-base {
  margin-top: 32px;
}

/* Hover lift on cards */
.guide,
.price-mini > div,
.principles > div {
  transition:
    transform 250ms var(--ease),
    box-shadow 250ms var(--ease);
}

.guide:hover,
.price-mini > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -30px rgb(11 42 79 / 0.55);
}

/* Typing caret on the machine screen */
[data-type].is-typing::after {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 1px;
  background: currentColor;
  content: '';
  vertical-align: -2px;
  animation: blink 900ms steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

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

@media (max-width: 980px) {
  .how-grid,
  .split,
  .closing-grid,
  .faq-grid,
  .mobile-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .split-flip .split-copy {
    order: 0;
  }

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

  .tour-tabs {
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 1fr);
    overflow-x: auto;
  }

  .tour-tab {
    border-left: 0;
    border-top: 3px solid transparent;
    border-radius: 0 0 8px 8px;
  }

  .tour-tab[aria-selected='true'] {
    border-top-color: var(--blue);
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .faq-grid .section-head {
    margin-bottom: 0;
  }

  .contact-grid,
  .guides {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .footer-company {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .hero {
    display: flex;
    flex-direction: column-reverse;
  }

  .hero-bg {
    position: relative;
    height: 300px;
  }

  .hero-bg::after {
    background: linear-gradient(rgb(239 231 216 / 0.9), transparent 30%);
  }

  .hero-bg img {
    object-position: 88% 62%;
  }

  .hero-inner {
    min-height: 0;
  }

  .menu-btn {
    display: block;
  }

  .nav {
    flex: 0;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 8px var(--gutter) 16px;
    border-bottom: 1px solid var(--line-cool);
    background: #fff;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 8px;
    font-size: 17px;
  }

  .nav-link[aria-current='page'] {
    box-shadow: inset 3px 0 0 var(--blue);
    padding-left: 14px;
  }

  .nav-only-menu {
    display: block;
  }

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

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

  body {
    font-size: 16px;
  }

  .notice {
    font-size: 13px;
  }

  .hero-inner {
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .lede {
    font-size: 17px;
  }

  .hero-ctas .btn {
    flex: 1 1 auto;
  }

  .section,
  .closing {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head p,
  .split-copy p,
  .mobile-copy > p,
  .closing p {
    font-size: 16.5px;
  }

  .frame-bar {
    height: 30px;
  }

  .frame-dots {
    display: none;
  }

  .device-body {
    padding: 16px 16px 60px;
  }

  .device-screen {
    font-size: 11.5px;
  }

  .spec > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .check {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 20px;
  }

  .compat:not(.num):not(.plan-matrix) thead {
    display: none;
  }

  .compat:not(.num):not(.plan-matrix) tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-bottom: 1px solid var(--line-cool);
  }

  .compat:not(.num):not(.plan-matrix) th,
  .compat:not(.num):not(.plan-matrix) td {
    border: 0;
    padding: 12px 16px;
  }

  .compat:not(.num):not(.plan-matrix) td:last-child:not(:nth-child(2)) {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .compat:not(.num):not(.plan-matrix) .td-note {
    border-left: 0;
  }

  .compat:not(.num):not(.plan-matrix) tbody th {
    white-space: normal;
  }

  .road tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-bottom: 1px solid var(--line-cool);
  }

  .road th,
  .road td {
    border: 0;
    padding: 14px 0 4px;
  }

  .road td:nth-child(2) {
    grid-row: 2;
    grid-column: 1 / -1;
    padding: 0 0 14px;
  }

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

  .price-card,
  .calc {
    padding: 26px 22px;
  }

  .faq summary {
    font-size: 16.5px;
  }

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

  .footer-company {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row,
  .price-mini,
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form,
  .guide,
  .company-card {
    padding: 22px 20px;
  }

  .company-card dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .brands-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brands-window {
    width: 100%;
  }

  .page-hero {
    padding: 44px 0 40px;
  }

  .compare thead {
    display: none;
  }

  .compare tr {
    display: grid;
    padding: 12px 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
  }

  .compare th,
  .compare td {
    padding: 2px 16px;
    border: 0;
  }

  .compare td:nth-child(2)::before {
    content: 'OTOMATE: ';
    color: #8fa6c4;
  }

  .compare td:nth-child(3)::before {
    content: 'Desktop software: ';
  }
}

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

  .notice-track,
  .brands-track,
  .hero-bg img,
  [data-type].is-typing::after {
    animation: none;
  }

  .notice-track,
  .brands-track {
    flex-wrap: wrap;
    width: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   v8 — Bold black & white (matches the OTOMATE app): heavy Inter headings,
   ink-black buttons, larger type and smoother motion. Overrides above.
   ========================================================================== */
:root {
  --navy: #0a0a0a;
  --navy-deep: #000000;
  --blue: #0a0a0a;
  --blue-text: #0a0a0a;
  --blue-wash: #f1efe9;
  --ink: #111111;
  --ink-2: #2b2b2b;
  --muted: #555555;
  --line: #e2ded4;
  --line-cool: #e4e4e4;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
}

body {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 450;
  font-feature-settings: 'cv11', 'ss01';
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(44px, 7.2vw, 92px) !important;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(32px, 4.8vw, 60px) !important;
}

h3 {
  font-size: clamp(20px, 1.6vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

b,
strong {
  font-weight: 700;
}

a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover {
  color: #000;
}

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* Buttons: bold pills with a lift on hover and a press. */
.btn {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 700 16px/1 var(--font);
  letter-spacing: -0.01em;
  transition:
    background-color 200ms var(--ease),
    border-color 200ms var(--ease),
    color 200ms var(--ease),
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}
.btn-primary {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
  box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.55);
}
.btn-primary:hover {
  background: #262626;
  border-color: #262626;
  color: #fff;
  box-shadow: 0 16px 30px -14px rgb(0 0 0 / 0.6);
}
.btn-secondary {
  background: #fff;
  border: 2px solid #0a0a0a;
  color: #0a0a0a;
}
.btn-secondary:hover {
  background: #0a0a0a;
  color: #fff;
}

/* Header: blurred, bolder links. */
.site-header {
  background: rgb(255 255 255 / 0.82) !important;
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.nav-link {
  font-weight: 600 !important;
  font-size: 16px !important;
  color: #111 !important;
}
.nav-link[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
.notice {
  background: #0a0a0a !important;
  color: #fff;
  font-weight: 600;
}

/* Footer and dark bands: true black. */
.site-footer,
.band-dark,
.cta-band {
  background: #000 !important;
}

/* Cards and media: softer, rounder, with a hover lift. */
.card,
.feature,
.price-card,
.media,
.shot {
  border-radius: var(--radius);
}
.card,
.feature,
.price-card {
  transition:
    transform 260ms var(--ease),
    box-shadow 260ms var(--ease),
    border-color 260ms var(--ease);
}
.card:hover,
.feature:hover,
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.35);
}

/* Smoother, safer reveal: content is visible by default; motion only when JS marks it. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.no-reveal [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

/* Section rhythm: more air. */
section {
  scroll-margin-top: 90px;
}

/* FAQ (AEO): clear question-and-answer blocks. */
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 4px 22px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.faq details[open] {
  border-color: #0a0a0a;
  box-shadow: 0 18px 40px -30px rgb(0 0 0 / 0.5);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
/* A drawn plus (two bars, so it never depends on the font) that turns into × when open. */
.faq summary::after {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: -1px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  content: '';
  transition: transform 250ms var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div,
.faq details > p {
  padding: 0 0 20px;
  color: var(--ink-2);
}

/* Breadcrumbs (SEO). */
.crumbs {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: #000;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .card:hover,
  .feature:hover,
  .price-card:hover {
    transform: none;
  }
}

/* v8 home: hero fit, trust strip, watch link. */
.hero h1 {
  font-size: clamp(40px, 5.4vw, 74px) !important;
  line-height: 1.02 !important;
}
.hero-copy {
  max-width: 560px;
}
.hero .lede {
  font-size: 18px !important;
}
.hero-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 6px;
  font-weight: 700;
  text-decoration: none;
}
.hero-watch:hover {
  text-decoration: underline;
}
.hero-price {
  font-size: 16px !important;
  color: var(--ink-2) !important;
}
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-block: 28px;
}
.trust-row p {
  display: grid;
  gap: 4px;
  font-size: 15px;
}
.trust-row b {
  font-size: 16px;
}
.trust-row span {
  color: var(--muted);
}
@media (max-width: 860px) {
  .trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* v8: footer with four link columns, Sign in link, floating WhatsApp. */
.footer-grid {
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)) !important;
}
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.nav-signin {
  margin-right: 8px;
}
@media (max-width: 900px) {
  .nav-signin {
    display: none;
  }
}
.wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 36px -14px rgb(0 0 0 / 0.6);
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}
.wa-float svg {
  width: 26px;
  height: 26px;
  color: #25d366;
}
.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -16px rgb(0 0 0 / 0.65);
}
@media (max-width: 600px) {
  .wa-float span {
    display: none;
  }
  .wa-float {
    padding: 0;
    width: 56px;
    justify-content: center;
  }
}
@media print {
  .wa-float {
    display: none;
  }
}

/* v8 pricing: employee slider. */
.calc-range {
  width: 100%;
  margin: 18px 0 6px;
  accent-color: #0a0a0a;
  height: 28px;
  cursor: pointer;
}

/* ---- v9: brand logo strip (bigger, real logos) ---- */
.brands {
  padding-block: 40px 30px;
  background: var(--bg, #fff);
}
.brands-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 26px;
}
.brands-head p {
  margin: 0;
  color: var(--ink, #000);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brands-head a {
  color: var(--ink, #000);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.brands > .brands-window {
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.brands-logos {
  align-items: center;
}
.brands-logos li {
  display: flex;
  align-items: center;
  height: 96px;
  padding: 0 52px;
}
.brands-logos a {
  display: flex;
  align-items: center;
  border-radius: 12px;
  outline-offset: 8px;
}
.brands-logos img {
  max-width: none;
  filter: brightness(0);
  opacity: 0.82;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.brands-logos a:hover img,
.brands-logos a:focus-visible img {
  opacity: 1;
  transform: scale(1.06);
}
.brands-track-rev {
  animation-direction: reverse;
}
.brands-window-ways {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.brands-ways li {
  padding: 0 26px;
  color: var(--ink, #000);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brands-ways li::after {
  display: inline-block;
  margin-left: 52px;
  vertical-align: 0.2em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}
@media (max-width: 720px) {
  .brands {
    padding-block: 28px 22px;
  }
  .brands-logos li {
    height: 72px;
    padding: 0 30px;
  }
  .brands-logos img {
    zoom: 0.72;
  }
}

/* ---- v10: plan cards and plan matrix ---- */
.plans-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg, #fff);
}
.plan-card-pop {
  border: 2px solid var(--ink, #000);
  box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.45);
}
.plan-card-custom {
  background: var(--paper);
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plan-top h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.plan-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink, #000);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.plan-tag {
  min-height: 44px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.plan-price {
  margin: 14px 0 0;
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price span {
  margin-right: 2px;
  font-size: 28px;
  vertical-align: 0.6em;
}
.plan-price-word {
  font-size: 44px;
  line-height: 56px;
}
.plan-unit {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.plan-min {
  min-height: 40px;
  margin: 8px 0 18px;
}
.plan-plus {
  margin: 22px 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-card .ticks {
  gap: 8px;
  font-size: 14.5px;
}
.calc-head {
  margin: 0 0 16px;
  font-size: 26px !important;
  font-weight: 900;
}
.seg-plans {
  margin-bottom: 10px;
}
.plan-matrix th[scope='col']:not(:first-child),
.plan-matrix td {
  text-align: center;
}
.plan-matrix .yes {
  font-weight: 900;
}
.plan-matrix .no {
  color: var(--muted);
}
@media (max-width: 1100px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .plans-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan-tag,
  .plan-min {
    min-height: 0;
  }
}

.price-mini-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.price-mini-3 > div {
  padding: 22px;
}
@media (max-width: 640px) {
  .price-mini-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.plans-grid .plan-card .plan-top h2 {
  font-size: 24px !important;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.plans-grid .plan-card .plan-price {
  font-size: 52px;
}
.plans-grid .plan-card .plan-price-word {
  font-size: 40px;
  line-height: 52px;
}

/* ---- v11: small headings keep their own size (the global h2 rule above is !important) ---- */
.footer-col h2 {
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  line-height: 1.3 !important;
}
.footer-company h2 {
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
}
.contact-block h2 {
  font-size: 19px !important;
  line-height: 1.3 !important;
}
.company-card h2,
.legal h2 {
  font-size: 22px !important;
  line-height: 1.25 !important;
}
.faq-grid .section-head h2 {
  font-size: clamp(28px, 2.8vw, 40px) !important;
  line-height: 1.1 !important;
}

/* ---- v12: audit fixes (hero layout, phones, tables, WhatsApp, notice, code wrapping) ---- */

/* Hero. Under 1280px the copy sits above the picture; from 1280px the picture has its own box to
   the right of the copy, so text never lies over the art at any width. The picture is cropped
   from its left side (the art starts at x≈1040 of 2400) and the motion layer uses the same
   offset (--lx; see motion.css). */
.hero-bg {
  container-type: size;
  overflow: hidden;
}
.hero-bg img {
  --s: max(100cqw / 2400, 100cqh / 1200);
}
@media (min-width: 861px) and (max-width: 1279px) {
  .hero {
    display: flex;
    flex-direction: column-reverse;
  }
  .hero-bg {
    position: relative;
    height: clamp(340px, 46vw, 560px);
  }
  .hero-bg::after {
    background: linear-gradient(rgb(239 231 216 / 0.85), transparent 22%);
  }
  .hero-inner {
    min-height: 0;
    padding-top: 56px;
    padding-bottom: 40px;
  }
  .hero-copy {
    max-width: 720px;
  }
}
@media (min-width: 1280px) {
  .hero {
    --hero-copy: min(540px, 40vw);
    --hero-cl: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  }
  .hero-bg {
    left: calc(var(--hero-cl) + var(--hero-copy) + 40px);
  }
  .hero-bg img,
  .hero-fx,
  .hero-board {
    --lx: max(calc(100cqw - 2400 * var(--s)), calc(-1040 * var(--s)));
  }
  .hero-bg img {
    object-position: var(--lx) 60%;
  }
  /* Only a soft edge where the picture meets the paper; no scrim over the copy is needed. */
  .hero-bg::after {
    background: linear-gradient(90deg, #efe7d8, rgb(239 231 216 / 0) 9%);
  }
  .hero-inner {
    min-height: min(74vh, 680px);
    padding-top: 56px;
    padding-bottom: 64px;
  }
  .hero-copy {
    max-width: var(--hero-copy);
  }
  .hero h1 {
    font-size: clamp(44px, 4.5vw, 66px) !important;
  }
}

/* Header: room for the logo, the demo button and the menu on 360px phones. */
@media (max-width: 480px) {
  .header-row {
    gap: 12px;
  }
  .nav-actions {
    gap: 4px;
  }
  .header-row .btn-sm {
    padding: 0 14px;
  }
}

/* Long buttons (for example "Next lesson: …") wrap instead of pushing the page sideways. */
.hero-ctas .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

/* Tables that scroll sideways can be focused and scrolled from the keyboard. */
.table-wrap:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* Plan matrix on phones: stays a table, plan names stay visible, the module column sticks. */
.plan-matrix th[scope='row'] {
  white-space: normal;
}
@media (max-width: 640px) {
  .plan-matrix {
    min-width: 0;
    table-layout: fixed;
  }
  .plan-matrix th,
  .plan-matrix td {
    padding: 12px 4px;
  }
  .plan-matrix thead th {
    font-size: 12.5px;
    letter-spacing: 0;
    text-transform: none;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
  .plan-matrix thead th:first-child {
    width: 38%;
    padding-left: 14px;
    text-align: left;
  }
  .plan-matrix tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    padding-left: 14px;
    background: #fff;
    font-size: 14.5px;
    line-height: 1.35;
  }
}

/* Addresses and codes inside steps, notes and guides wrap rather than overflow. */
.pg-steps > li,
.pg-steps > li > div,
.pg-body,
.prose,
.pg-note {
  min-width: 0;
}
.pg-steps code,
.pg-body code,
.prose code,
.pg-note code,
.pg-answer code,
.steps code,
.guide code {
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .pg-steps > li,
  .prose .pg-steps > li {
    padding: 62px 14px 16px;
  }
  .pg-note,
  .pg-formula {
    padding: 16px;
  }
}

/* Notice bar: a pause button (hover pauses on desktop; touch needs a button). */
.notice {
  position: relative;
}
.notice.is-paused .notice-track {
  animation-play-state: paused;
}
.notice-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.35) inset, -14px 0 14px #0a0a0a;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}
.notice-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.notice-toggle .i-play,
.notice.is-paused .notice-toggle .i-pause {
  display: none;
}
.notice.is-paused .notice-toggle .i-play {
  display: block;
}
.notice-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
/* Reduced motion: one still copy of the news that can be scrolled sideways. */
@media (prefers-reduced-motion: reduce) {
  .notice {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .notice-track {
    flex-wrap: nowrap !important;
    width: max-content !important;
  }
  .notice-track > [aria-hidden='true'],
  .notice-toggle {
    display: none;
  }
}

/* WhatsApp button: a white ring so it shows on black bands and the footer; it steps aside
   while the footer is on screen (site.js), and the footer leaves room for it on phones. */
.wa-float {
  box-shadow:
    0 0 0 2px #fff,
    0 16px 36px -14px rgb(0 0 0 / 0.6);
  transition:
    transform 220ms var(--ease),
    opacity 220ms var(--ease),
    visibility 220ms,
    box-shadow 220ms var(--ease);
}
.wa-float:hover {
  box-shadow:
    0 0 0 2px #fff,
    0 22px 44px -16px rgb(0 0 0 / 0.65);
}
.wa-float.is-away {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  pointer-events: none;
}
@media (max-width: 860px) {
  .site-footer {
    padding-bottom: 96px;
  }
}

/* Pictures fill their box whatever source the browser picks. */
picture {
  display: block;
}
picture img {
  width: 100%;
  height: auto;
}
.hero-bg picture,
.hero-bg picture img {
  height: 100%;
}

/* Breadcrumbs on every inner page (generated pages have the same in pages.css). */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.crumbs li {
  display: inline-flex;
  align-items: center;
}
.crumbs li + li::before {
  margin: 0 10px;
  color: #b3ada0;
  content: '/';
}
.crumbs li[aria-current='page'] {
  color: var(--ink);
}
.pg-hero .crumbs ol {
  margin-bottom: 0;
}
.nf-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 28px;
  font-weight: 600;
}

/* Home: four plan tiles, two by two (one column on small phones). */
.price-mini-4 > div {
  padding: 22px;
}
.price-mini-word {
  font-size: 0.72em;
  line-height: 1.39;
}
@media (max-width: 400px) {
  .price-mini-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Training lesson cards (poster, play mark, running time) -------------------------------- */
.lesson-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}
.lesson-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.lesson-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(11, 22, 48, 0.45);
}
.lesson-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.lesson-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #0b1630;
  overflow: hidden;
}
.lesson-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.lesson-card:hover .lesson-thumb img {
  transform: scale(1.03);
}
.lesson-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.78);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22);
}
.lesson-play::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 17px;
  border-style: solid;
  border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent #fff;
}
.lesson-dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.8);
  color: #fff;
  font: 600 12px/1.6 var(--font-mono);
}
.lesson-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 18px;
}
.lesson-n {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.lesson-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.lesson-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.lesson-more {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
@media (max-width: 640px) {
  #training .lesson-grid > li:nth-child(n + 5) {
    display: none;
  }
}

/* Header on tablets and small laptops: nine links, Sign in and Book a demo don't fit one row
   below about 1120px, so the menu button takes over there (as on phones), and the row is tighter
   up to 1280px. Kept at the end so it wins over the bolder link sizes above. */
@media (min-width: 861px) and (max-width: 1119px) {
  .menu-btn {
    display: block;
  }
  .nav {
    flex: 0;
  }
  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 8px var(--gutter) 16px;
    border-bottom: 1px solid var(--line-cool);
    background: #fff;
  }
  .nav-list.is-open {
    display: flex;
  }
  .nav-link {
    padding: 12px 8px;
    font-size: 17px !important;
  }
  .nav-link[aria-current='page'] {
    box-shadow: inset 3px 0 0 var(--blue);
    padding-left: 14px;
    text-decoration: none;
  }
  .nav-only-menu {
    display: block;
  }
}
@media (min-width: 1120px) and (max-width: 1279px) {
  .header-row {
    gap: 14px;
  }
  .nav-list {
    gap: 0;
  }
  .nav-link {
    padding: 8px 7px;
    font-size: 15px !important;
  }
  .nav-actions {
    gap: 4px;
  }
}

/* Currency: rupees in India, US dollars elsewhere (set on <html> by the head script; switch in site.js). */
html:not(.cur-usd) [data-cur='usd'],
html.cur-usd [data-cur='inr'] {
  display: none !important;
}
html.cur-usd #outside-india {
  background: var(--paper);
}
.cur-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 20px;
}
