/* ==========================================================================
   FASTERcx — v3
   Editorial dark system: ink, paper, brand blue (#6699CC), brand orange.
   ========================================================================== */

:root {
  --ink: #07080a;
  --ink-2: #0c0e12;
  --ink-3: #14171c;
  --ink-solid: #07080a;
  --paper: #f1ede3;
  --paper-2: #e6e1d5;
  --paper-3: #fbf8f0;

  --blue: #6699cc;
  --blue-soft: #a7c4e1;
  --orange: #ff6300;
  --orange-deep: #b23a00;
  --on-orange: #07080a;
  --graphite: #999999;

  --text: #f3f0e8;
  --muted: #a3a9b0;
  --muted-2: #8b9299;
  --on-paper: #07080a;
  --on-paper-muted: #4e5257;

  --line: rgba(243, 240, 232, 0.14);
  --line-strong: rgba(243, 240, 232, 0.32);
  --line-ink: rgba(7, 8, 10, 0.16);
  --line-ink-strong: rgba(7, 8, 10, 0.34);

  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo Black", "Arial Black", sans-serif;
  
  --max: 1400px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section: clamp(72px, 9vw, 128px);
  --head-h: 76px;

  --fs-display: clamp(3.4rem, 5.6vw, 5.4rem);
  --fs-h2: clamp(2.3rem, 4.3vw, 4rem);
  --fs-body: 1.0625rem;
}

/* Light edition: paper ground, ink type, same brand signal. */
[data-theme="light"] {
  color-scheme: light;
  --ink: #f2eee3;
  --ink-2: #e9e3d6;
  --ink-3: #dfd8ca;
  --ink-solid: #0b0d10;
  --paper: #fffdf7;
  --paper-2: #e7e1d4;
  --paper-3: #ffffff;

  --text: #121518;
  --muted: #565e66;
  --muted-2: #5e666e;
  --on-paper: #121518;
  --on-paper-muted: #565e66;

  --line: rgba(18, 21, 24, 0.14);
  --line-strong: rgba(18, 21, 24, 0.3);
  --line-ink: rgba(18, 21, 24, 0.14);
  --line-ink-strong: rgba(18, 21, 24, 0.3);

  --blue: #3e6f9e;
  --blue-soft: #2f5c86;
  --orange: #ff6300;
  --orange-deep: #b23a00;
  --on-orange: #07080a;
  --graphite: #6e757c;
}

/* The masthead and footer stay ink in both editions. */
[data-theme="light"] .site-head,
[data-theme="light"] .site-foot {
  --ink: #07080a;
  --ink-2: #0c0e12;
  --ink-3: #14171c;
  --ink-solid: #07080a;
  --paper: #f1ede3;
  --paper-2: #e6e1d5;
  --paper-3: #fbf8f0;

  --text: #f3f0e8;
  --muted: #a3a9b0;
  --muted-2: #8b9299;
  --on-paper: #07080a;
  --on-paper-muted: #4e5257;

  --line: rgba(243, 240, 232, 0.14);
  --line-strong: rgba(243, 240, 232, 0.32);
  --line-ink: rgba(7, 8, 10, 0.16);
  --line-ink-strong: rgba(7, 8, 10, 0.34);

  --blue: #6699cc;
  --blue-soft: #a7c4e1;
  --orange: #ff6300;
  --orange-deep: #b23a00;
  --on-orange: #07080a;
  --graphite: #999999;

  color: var(--text);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 24px);
  scrollbar-color: #2a2f36 var(--ink);
  color-scheme: dark;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  font-weight: 400;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1,
h2 {
  font-family: var(--display);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h1 {
  font-size: var(--fs-display);
  line-height: 0.93;
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-family: var(--sans);
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--orange);
  color: var(--on-orange);
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  background: #2a2f36;
  border: 2px solid var(--ink);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

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

.theme-paper :focus-visible {
  outline-color: var(--ink);
}

.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-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--orange);
  color: var(--on-orange);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

.theme-paper {
  background: var(--paper);
  color: var(--on-paper);
}

.theme-paper .lead {
  color: var(--on-paper-muted);
}

.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}

.noscript {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
}

.noscript a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn .icon {
  transition: transform 0.2s ease;
}

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

.btn--primary {
  background: var(--orange);
  color: var(--on-orange);
}

.btn--primary:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--paper);
  background: rgba(243, 240, 232, 0.05);
}

.btn--dark {
  background: var(--ink-solid);
  color: var(--paper);
}

.btn--dark:hover {
  background: var(--orange);
  color: var(--on-orange);
}

.btn--sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.theme-paper .btn--ghost {
  border-color: var(--line-ink-strong);
  color: var(--ink);
}

.theme-paper .btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(7, 8, 10, 0.05);
}

.theme-paper .btn--primary:hover {
  background: var(--ink);
  color: var(--paper);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.link:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

.theme-paper .link:hover {
  color: var(--orange-deep);
  text-decoration-color: var(--orange-deep);
}

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

.scroll-progress {
  position: fixed;
  top: var(--head-h);
  left: 0;
  right: 0;
  height: 2px;
  z-index: 61;
  background: var(--line);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 8, 10, 0.94);
  border-bottom: 1px solid transparent;
  color: var(--text);
  view-transition-name: site-header;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-head.is-scrolled {
  background: var(--ink);
  border-bottom-color: var(--line);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--max);
  height: var(--head-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.brand__mark {
  width: 30px;
  height: 30px;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand__mark {
  transform: rotate(120deg);
}

.brand__word {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand__word span {
  margin-left: 1px;
  font-family: var(--sans);
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--orange);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  font-size: 0.9rem;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding-block: 6px;
  transition: color 0.2s ease;
}

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

.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
}

.site-head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.theme-btn:hover {
  border-color: var(--paper);
  background: rgba(243, 240, 232, 0.05);
}

.theme-btn .icon {
  width: 18px;
  height: 18px;
}

.theme-btn__moon {
  display: none;
}

[data-theme="light"] .theme-btn__sun {
  display: none;
}

[data-theme="light"] .theme-btn__moon {
  display: block;
}

.menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  cursor: pointer;
}

.menu-btn span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-btn span:nth-child(1) {
  top: 17px;
}

.menu-btn span:nth-child(2) {
  top: 26px;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  padding: 10px var(--gutter) 22px;
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.mobile-nav a:not(.btn) {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 18px;
}

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

.hero {
  padding-block: clamp(56px, 8vw, 104px) clamp(72px, 9vw, 120px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

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

/* Hero typewriter: the full word stays in the DOM; only its reveal is clipped. */
.hero__typed {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.hero__typed-text {
  display: inline-block;
}

.hero__typed-caret {
  position: absolute;
  top: 0.04em;
  left: 0;
  width: 0.06em;
  height: 0.82em;
  background: var(--orange);
  opacity: 0;
  pointer-events: none;
  transform: translateX(var(--typed-w, 0px));
}

.hero__typed-measure {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.js .hero__typed-caret {
  opacity: 1;
}

.js .hero__typed-text {
  clip-path: inset(0 100% 0 0);
}

.js .hero__typed.is-typing .hero__typed-text {
  clip-path: inset(0 calc(100% - var(--typed-w, 0px)) 0 0);
}

.js .hero__typed.is-typing .hero__typed-caret {
  animation: caret-blink 0.9s steps(1) infinite;
}

.hero__typed.is-typed .hero__typed-text {
  clip-path: none;
}

.js .hero__typed.is-typed .hero__typed-caret {
  animation: caret-blink 0.9s steps(1) 3 forwards;
}

@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__typed-text {
    clip-path: none !important;
  }

  .hero__typed-caret {
    display: none;
  }
}

.hero__lead {
  max-width: 44ch;
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.55;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__meta {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__trust li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 4px;
  background: var(--graphite);
  border-radius: 50%;
}

.hero__trust a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hero__trust a:hover {
  color: var(--text);
  text-decoration-color: var(--orange);
}

.hero__demo {
  display: flex;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Conversation artifact
   -------------------------------------------------------------------------- */

.demo {
  width: 100%;
  max-width: 520px;
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-origin: 50% 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.demo__tabs {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.demo__tab {
  appearance: none;
  padding: 10px 14px 9px;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.demo__tab:hover {
  color: var(--text);
}

.demo__tab.is-active {
  position: relative;
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.demo__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--orange);
}

.demo__paper {
  position: relative;
  padding: 17px 20px 15px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper-2);
  box-shadow: 0 28px 70px -34px rgba(0, 0, 0, 0.9);
}

.demo__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line-ink-strong);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--on-paper-muted);
}

.demo__badge {
  padding: 3px 6px;
  border: 1px solid var(--line-ink-strong);
  letter-spacing: 0.06em;
}

.demo__panel {
  min-height: 392px;
  padding-top: 16px;
}

.demo__panel:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

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

.msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 88%;
  opacity: 0;
  animation: msg-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 80ms + 100ms);
}

.msg--out {
  align-self: flex-end;
  align-items: flex-end;
}

.msg__who {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-paper-muted);
}

.msg--out .msg__who {
  text-align: right;
}

.msg p {
  padding: 10px 12px;
  border: 1px solid var(--line-ink);
  background: var(--paper-3);
  font-size: 0.86rem;
  line-height: 1.5;
  border-radius: 2px;
  border-bottom-left-radius: 0;
}

.msg--out p {
  border-color: var(--ink-solid);
  background: var(--ink-solid);
  color: var(--paper);
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 0;
}

.demo__event {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-ink-strong);
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--on-paper-muted);
  opacity: 0;
  animation: msg-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 80ms + 100ms);
}

.demo__event span:first-child {
  padding: 3px 6px;
  background: var(--ink-solid);
  color: var(--paper);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo__sync {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-ink);
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--on-paper-muted);
}

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

.demo__note {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--on-paper-muted);
}

/* call + waveform */

.call {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 8px 10px;
  border: 1px solid var(--line-ink);
  background: rgba(7, 8, 10, 0.035);
}

.call__wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
}

.call__wave span {
  width: 2px;
  height: max(3px, var(--h));
  background: var(--blue);
}

.call__meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-paper-muted);
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */

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

.section__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section__head h2 {
  grid-column: 1 / 8;
  max-width: 16ch;
}

.section__head .lead {
  grid-column: 8 / 13;
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   Problem
   -------------------------------------------------------------------------- */

.problem__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.problem__head h2 {
  grid-column: 1 / 8;
  max-width: 13ch;
}

.problem__head .lead {
  grid-column: 8 / 13;
  max-width: 44ch;
}

.beforeafter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.beforeafter__col {
  padding: 28px 32px 6px 0;
}

.beforeafter__col + .beforeafter__col {
  padding-right: 0;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.beforeafter h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.beforeafter h3::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--graphite);
}

.beforeafter__col--after h3::before {
  background: var(--orange);
}

.beforeafter li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text);
}

.beforeafter li:first-of-type {
  border-top: 0;
}

.beforeafter__col:not(.beforeafter__col--after) li {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Capabilities (paper)
   -------------------------------------------------------------------------- */

.caps {
  border-top: 1px solid var(--line-ink);
}

.cap {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: 24px 20px;
  border-bottom: 1px solid var(--line-ink);
}

.cap__num {
  padding-top: 6px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--orange-deep);
}

.cap h3 {
  max-width: 22ch;
}

.cap p {
  max-width: 58ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--on-paper-muted);
}

.caps__foot {
  max-width: 54ch;
  margin-top: 32px;
  font-size: 1.08rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--on-paper);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

@media (min-width: 1001px) {
  .steps .step {
    padding-left: 28px;
  }

  .steps .step:first-child {
    padding-left: 0;
  }
}

.step {
  padding: 26px 28px 34px 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step__num {
  display: block;
  margin-bottom: 44px;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--orange);
}

.step h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.step p {
  max-width: 30ch;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Odoo / license
   -------------------------------------------------------------------------- */

.odoo__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.odoo__copy h2 {
  max-width: 15ch;
}

.odoo__copy .lead {
  margin-top: 24px;
  max-width: 52ch;
}

.modules {
  display: flex;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.modules li {
  display: flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.modules li + li::before {
  content: "/";
  margin: 0 12px;
  color: var(--muted-2);
}

.license {
  padding: 24px 24px 22px;
  background: var(--ink-2);
  border-top: 2px solid var(--blue);
}

.license__title {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.license__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.license__key {
  padding-top: 3px;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.license__key--community {
  color: var(--blue-soft);
}

.license__key--enterprise {
  color: var(--orange);
}

.license__row p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

.license__row strong {
  color: var(--text);
  font-weight: 600;
}

.license__foot {
  margin-top: 14px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted-2);
}

.license .link {
  margin-top: 16px;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Results
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.stat {
  padding: 28px 28px 28px 0;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
  padding-right: 0;
}

.stat__value {
  display: block;
  font-family: var(--display);
  font-size: clamp(3.2rem, 5.4vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.stat__label {
  display: block;
  max-width: 24ch;
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.stats__note {
  max-width: 72ch;
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Price menu (home preview)
   -------------------------------------------------------------------------- */

.price-menu {
  border-top: 1px solid var(--line-strong);
}

.price-menu__row {
  display: grid;
  grid-template-columns: 56px 1.1fr 1.4fr 1fr 40px;
  gap: 16px;
  align-items: center;
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.price-menu__row:hover {
  background: var(--ink-2);
}

.price-menu__row.is-featured {
  background: var(--paper);
  color: var(--ink);
}

.price-menu__row.is-featured:hover {
  background: var(--paper-3);
}

.price-menu__code {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--orange);
}

.price-menu__row.is-featured .price-menu__code {
  color: var(--ink);
}

.price-menu__name {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-menu__conv {
  font-size: 0.88rem;
  color: var(--muted);
}

.price-menu__row.is-featured .price-menu__conv {
  color: var(--on-paper-muted);
}

.price-menu__price {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.price-menu__price small {
  margin-left: 6px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.price-menu__row.is-featured .price-menu__price small {
  color: var(--on-paper-muted);
}

.price-menu__arrow {
  display: flex;
  justify-content: flex-end;
}

.price-menu__arrow .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.price-menu__row:hover .price-menu__arrow .icon {
  transform: translateX(4px);
}

.price-menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
}

.price-menu__foot p {
  max-width: 68ch;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-2);
}

.price-menu__note {
  max-width: 78ch;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-2);
}

.price-menu__note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
}

.price-menu__note a:hover {
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq__aside {
  position: sticky;
  top: calc(var(--head-h) + 36px);
}

.faq__aside h2 {
  max-width: 12ch;
}

.faq__aside .lead {
  max-width: 34ch;
  margin-top: 20px;
}

.faq__aside .link {
  margin-top: 24px;
}

.faq__item {
  border-top: 1px solid var(--line);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq__item h3 {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  line-height: inherit;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  transition: color 0.2s ease;
}

.faq__q:hover {
  color: var(--orange);
}

.faq__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  color: currentColor;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq__icon::before {
  top: 7.5px;
  left: 0;
  right: 0;
  height: 1px;
}

.faq__icon::after {
  top: 0;
  bottom: 0;
  left: 7.5px;
  width: 1px;
}

.faq__item.is-open .faq__icon::after {
  transform: scaleY(0);
}

.faq__item.is-open .faq__q {
  color: var(--orange);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a-inner {
  overflow: hidden;
}

.faq__a p {
  max-width: 60ch;
  padding: 0 40px 22px 0;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Final CTA (paper)
   -------------------------------------------------------------------------- */

.cta {
  padding-block: clamp(64px, 8vw, 112px);
}

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 32px;
  align-items: center;
}

.cta h2 {
  max-width: 15ch;
}

.cta p {
  max-width: 48ch;
  margin-top: 20px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--on-paper-muted);
}

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

.cta__mark {
  display: flex;
  justify-content: flex-end;
}

.cta__mark img {
  width: clamp(140px, 18vw, 230px);
  transform-origin: 50% 50%;
  will-change: transform;
}

/* One-shot: rev, five turns, brake with a small settle. */
.cta__mark img.is-revving {
  animation: mark-rev 2.6s linear both;
}

@keyframes mark-rev {
  0% {
    transform: rotate(0deg);
  }
  4% {
    transform: rotate(-14deg);
  }
  10% {
    transform: rotate(100deg);
  }
  18% {
    transform: rotate(360deg);
  }
  50% {
    transform: rotate(1320deg);
  }
  68% {
    transform: rotate(1550deg);
  }
  82% {
    transform: rotate(1690deg);
  }
  92% {
    transform: rotate(1776deg);
  }
  97% {
    transform: rotate(1808deg);
  }
  100% {
    transform: rotate(1800deg);
  }
}

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

.site-foot {
  padding-block: 56px 30px;
  background: var(--ink);
  color: var(--text);
  border-top: 1px solid var(--line);
}

.site-foot__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: clamp(24px, 5vw, 64px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.site-foot__brand img {
  width: 200px;
  opacity: 0.92;
}

.site-foot__brand p {
  max-width: 36ch;
  margin-top: 18px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

.site-foot__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  align-content: start;
}

.site-foot__nav a {
  padding: 3px 0;
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-foot__nav a:hover {
  color: var(--text);
}

.site-foot__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.site-foot__label {
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.site-foot__contact a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.site-foot__contact a:hover {
  color: var(--text);
  text-decoration-color: var(--orange);
}

.site-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.75rem;
  color: var(--muted-2);
}

/* ==========================================================================
   Pricing page
   ========================================================================== */

.pricing-hero {
  padding-block: clamp(56px, 8vw, 96px) clamp(36px, 5vw, 64px);
}

.pricing-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.pricing-hero h1 {
  max-width: 17ch;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
}

.pricing-hero__side {
  padding-bottom: 6px;
}

.pricing-hero__side .lead {
  max-width: 44ch;
}

.billing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.billing__opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  transition: color 0.2s ease;
}

.billing__opt.is-active {
  color: var(--text);
}

.billing__save {
  padding: 2px 5px;
  border: 1px solid rgba(255, 99, 0, 0.42);
  color: var(--orange);
  font-size: 0.75rem;
}

.switch {
  position: relative;
  width: 56px;
  height: 30px;
  padding: 3px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.switch__knob {
  display: block;
  width: 22px;
  height: 22px;
  background: var(--paper);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.switch.is-on {
  background: var(--orange);
  border-color: var(--orange);
}

.switch.is-on .switch__knob {
  transform: translateX(26px);
  background: var(--ink);
}

.billing__note {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-2);
}

/* Plans */

.section--plans {
  padding-top: 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border-top: 1px solid var(--line-strong);
  min-height: 700px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px clamp(20px, 2.6vw, 34px) 34px;
  background: var(--ink);
}

.plan:not(:last-child) {
  border-right: 1px solid var(--line);
}

.plan--enterprise {
  background: var(--ink-2);
}

.plan--featured {
  margin-block: -20px;
  padding-block: 52px 54px;
  background: var(--paper);
  color: var(--ink);
  border-right-color: var(--line-ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
}

.plan__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
}

.plan__code {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--orange);
}

.plan--featured .plan__code {
  color: var(--ink);
}

.plan__flag {
  padding: 4px 7px;
  background: var(--orange);
  color: var(--on-orange);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.plan__name {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}

.plan__engine {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  margin-top: 12px;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan__engine--ent {
  border-color: rgba(255, 99, 0, 0.46);
  color: var(--orange);
}

.plan--featured .plan__engine {
  border-color: var(--line-ink-strong);
  color: var(--on-paper-muted);
}

.plan__tagline {
  min-height: 2.8em;
  margin-top: 16px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

.plan--featured .plan__tagline {
  color: var(--on-paper-muted);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 20px;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plan__currency {
  font-size: 1.2rem;
  color: var(--muted);
}

.plan__amount {
  font-size: clamp(3rem, 4.4vw, 4.3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  animation: price-in 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.plan__period {
  margin-left: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

.plan--featured .plan__currency,
.plan--featured .plan__period {
  color: var(--on-paper-muted);
}

.plan__billing {
  min-height: 2.8em;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-2);
}

.plan--featured .plan__billing {
  color: var(--on-paper-muted);
}

.plan__conv {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.plan__conv-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.plan--featured .plan__conv {
  border-top-color: var(--line-ink);
}

.plan--featured .plan__conv-label {
  color: var(--on-paper-muted);
}

.plan__features {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 18px;
}

.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.87rem;
  line-height: 1.45;
}

.plan__features li + li {
  border-top: 1px solid var(--line);
}

.plan__features .icon {
  margin-top: 1px;
  color: var(--orange);
}

.plan--featured .plan__features li + li {
  border-top-color: var(--line-ink);
}

.plan--featured .plan__features .icon {
  color: var(--ink);
}

.plan__cta {
  width: 100%;
  margin-top: 26px;
}

.plan--featured .btn--dark:hover {
  background: var(--blue);
  color: var(--on-orange);
}

@keyframes price-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Included band */

.included {
  margin-top: clamp(48px, 6vw, 88px);
  padding-block: clamp(32px, 4vw, 48px);
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}

.included__title {
  margin-bottom: 24px;
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

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

.included__grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px 16px 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.included__grid .icon {
  color: var(--orange);
}

.included__note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.included__note-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.included__note-copy {
  max-width: 72ch;
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

.included__note-copy strong {
  color: var(--text);
  font-weight: 600;
}

.included__note .link {
  white-space: nowrap;
}

/* Cost comparison */

.cost {
  border-top: 1px solid var(--line-strong);
}

.cost__row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.cost__label {
  font-size: 0.98rem;
  font-weight: 600;
}

.cost__value {
  font-family: var(--sans);
  font-size: clamp(1.4rem, 2.4vw, 2.15rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.cost__value small {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.cost__detail {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.cost__row--us {
  padding-inline: 24px;
  background: var(--paper);
  color: var(--ink);
}

.cost__row--us .cost__detail {
  color: var(--on-paper-muted);
}

.cost__note {
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--muted-2);
}

/* Savings chart */

.section--savings {
  padding-top: clamp(56px, 7vw, 96px);
}

.savings__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.savings__copy h2 {
  max-width: 12ch;
}

.savings__copy .lead {
  max-width: 42ch;
  margin-top: 20px;
}

.savings__chart {
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--paper);
  color: var(--on-paper);
  border: 1px solid var(--line-ink);
}

.savings__title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.savings__rows {
  margin-top: 16px;
}

.savings__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding: 14px 0;
}

.savings__row + .savings__row {
  border-top: 1px solid var(--line-ink);
}

.savings__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.savings__name {
  font-size: 1.02rem;
  font-weight: 600;
}

.savings__detail {
  font-size: 0.75rem;
  color: var(--on-paper-muted);
}

.savings__value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
}

.savings__value strong {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.savings__value span {
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--on-paper-muted);
}

.savings__track {
  grid-column: 1 / -1;
  height: 8px;
  margin-top: 8px;
  background: var(--line-ink);
}

.savings__track svg {
  display: block;
  width: 100%;
  height: 100%;
}

.savings__fill {
  fill: var(--orange);
  transform-box: fill-box;
  transform-origin: left center;
}

.savings__note {
  max-width: 60ch;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-ink);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--on-paper-muted);
}

/* Flow diagram */

.flow {
  width: 100%;
  max-width: 900px;
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.flow__title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.flow__svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
}

.flow__svg text {
  font-family: var(--sans);
}

.flow__stage {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  fill: var(--muted-2);
}

.flow__label {
  font-size: 15px;
  font-weight: 500;
  fill: var(--text);
}

.flow__sub {
  font-size: 12.5px;
  fill: var(--muted);
}

.flow__agent-title {
  font-size: 17px;
  font-weight: 600;
  fill: var(--text);
}

.flow__box {
  fill: var(--ink-2);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.flow__path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.25;
}

.flow__dot {
  fill: var(--blue);
}

.flow__dot--agent {
  fill: var(--orange);
}

/* Comparison table */

.compare__scroll {
  overflow-x: auto;
  contain: paint;
  border-top: 1px solid var(--line-strong);
  scrollbar-width: thin;
}

.compare {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}

.compare th,
.compare td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.compare thead th {
  padding-top: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
  vertical-align: bottom;
}

.compare thead th:first-child {
  width: 34%;
}

.compare__plan {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.compare__head-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.compare__price {
  display: block;
  margin-top: 7px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}

.compare tbody th {
  width: 34%;
  font-weight: 500;
  color: var(--text);
}

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

.compare__group th {
  padding-top: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.compare__group td {
  border-bottom: 1px solid var(--line-strong);
}

.compare .is-pro {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-ink);
}

.compare thead .is-pro {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-ink);
}

.compare .is-pro .compare__price {
  color: var(--on-paper-muted);
}

.compare .icon {
  color: var(--orange);
}

.compare .is-pro .icon {
  color: var(--ink);
}

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

.compare tbody tr:hover td:not(.is-pro) {
  background: rgba(243, 240, 232, 0.03);
}

.compare__hint {
  display: none;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted-2);
}

.compare__hint .icon {
  width: 14px;
  height: 14px;
}

.pricing-notes {
  max-width: 48rem;
  margin: 40px auto 0;
  text-align: center;
}

.pricing-notes p {
  margin-bottom: 8px;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Light edition: component overrides
   -------------------------------------------------------------------------- */

[data-theme="light"] .demo__paper,
[data-theme="light"] .demo__tab.is-active,
[data-theme="light"] .demo__sync strong,
[data-theme="light"] .price-menu__row.is-featured,
[data-theme="light"] .plan--featured,
[data-theme="light"] .cost__row--us,
[data-theme="light"] .compare .is-pro,
[data-theme="light"] .compare thead .is-pro,
[data-theme="light"] .stat__value {
  color: var(--text);
}

[data-theme="light"] .plan--featured .plan__code,
[data-theme="light"] .price-menu__row.is-featured .price-menu__code,
[data-theme="light"] .plan--featured .plan__features .icon,
[data-theme="light"] .compare .is-pro .icon {
  color: var(--text);
}

[data-theme="light"] .step__num,
[data-theme="light"] .plan__code,
[data-theme="light"] .plan__engine--ent,
[data-theme="light"] .license__key--enterprise,
[data-theme="light"] .price-menu__code,
[data-theme="light"] .billing__save,
[data-theme="light"] .faq__q:hover,
[data-theme="light"] .faq__item.is-open .faq__q,
[data-theme="light"] .plan__features .icon,
[data-theme="light"] .included__grid .icon,
[data-theme="light"] .compare .icon,
[data-theme="light"] .link:hover,
[data-theme="light"] .hero__trust a:hover {
  color: var(--orange-deep);
}

[data-theme="light"] .btn--primary:hover,
[data-theme="light"] .theme-paper .btn--primary:hover {
  background: var(--ink-solid);
  color: var(--paper);
}

[data-theme="light"] .site-head .btn--primary:hover {
  background: var(--paper);
  color: var(--ink);
}

[data-theme="light"] .btn--ghost:hover,
[data-theme="light"] .theme-paper .btn--ghost:hover {
  border-color: var(--text);
  background: rgba(18, 21, 24, 0.05);
}

[data-theme="light"] .theme-paper .btn--ghost {
  color: var(--text);
}

[data-theme="light"] .plan--featured .btn--dark:hover {
  background: var(--orange);
  color: var(--on-orange);
}

[data-theme="light"] .billing__save {
  border-color: rgba(166, 63, 0, 0.42);
}

[data-theme="light"] .switch {
  background: var(--paper);
}

[data-theme="light"] .switch__knob {
  background: var(--ink-solid);
}

[data-theme="light"] .switch.is-on {
  background: var(--orange);
  border-color: var(--orange);
}

[data-theme="light"] .switch.is-on .switch__knob {
  background: var(--ink-solid);
}

[data-theme="light"] .demo__paper {
  box-shadow: 0 24px 60px -36px rgba(18, 21, 24, 0.35);
}

[data-theme="light"] .plan--featured {
  box-shadow: 0 30px 60px -34px rgba(18, 21, 24, 0.32);
}

[data-theme="light"] .compare tbody tr:hover td:not(.is-pro) {
  background: rgba(18, 21, 24, 0.035);
}

[data-theme="light"] .theme-paper :focus-visible {
  outline-color: var(--text);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .step {
    padding-right: 22px;
  }

  .plan__features li {
    font-size: 0.83rem;
  }
}

@media (max-width: 1080px) {
  .plans {
    grid-template-columns: 1fr;
    min-height: 0;
    max-width: 760px;
    margin-inline: auto;
  }

  .plan {
    padding: 28px 24px 32px;
  }

  .plan:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .plan--featured {
    margin-block: 0;
    padding-block: 30px 34px;
    border-bottom-color: var(--line-ink);
  }

  .plan__features li {
    font-size: 0.9rem;
  }

  .plan__cta {
    max-width: 420px;
  }
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    border-top: 0;
  }

  .step {
    padding: 24px 24px 32px 0;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .step:nth-child(even) {
    padding-left: 24px;
  }

  .step__num {
    margin-bottom: 28px;
  }
}

@media (max-width: 980px) {
  .hero__grid,
  .odoo__grid,
  .pricing-hero__grid,
  .cta__grid {
    grid-template-columns: 1fr;
  }

  .cta__mark {
    justify-content: center;
    margin-top: 8px;
  }

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

  .hero__demo {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .section__head,
  .problem__head {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .section__head h2,
  .section__head .lead,
  .problem__head h2,
  .problem__head .lead {
    grid-column: 1 / -1;
  }

  .section__head h2 {
    max-width: 18ch;
  }

  .faq__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq__aside {
    position: static;
  }

  .faq__aside h2,
  .faq__aside .lead {
    max-width: 40ch;
  }

  .cta__grid {
    grid-template-columns: 1fr;
  }

  .cta__mark {
    justify-content: center;
    margin-top: 8px;
  }

  .pricing-hero h1 {
    max-width: 13ch;
  }

  .pricing-hero__side {
    max-width: 52ch;
  }

  .included__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cost__row {
    grid-template-columns: 1fr 1fr;
  }

  .cost__detail {
    grid-column: 1 / -1;
  }

  .compare {
    min-width: 720px;
  }

  .compare th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--ink);
  }

  .compare thead th:first-child {
    z-index: 3;
  }

  .compare__hint {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  :root {
    --head-h: 66px;
  }

  .nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-nav {
    display: block;
  }

  .site-head__actions .btn {
    display: none;
  }

  .beforeafter {
    grid-template-columns: 1fr;
  }

  .beforeafter__col {
    padding: 24px 0 4px;
  }

  .beforeafter__col + .beforeafter__col {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }

  .stat {
    padding-right: 20px;
  }

  .site-foot__top {
    grid-template-columns: 1fr 1fr;
  }

  .site-foot__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .flow {
    display: none;
  }

  .price-menu__row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    grid-template-areas:
      "code name price"
      ". conv conv";
    row-gap: 4px;
    column-gap: 12px;
    padding: 18px 12px;
  }

  .price-menu__code {
    grid-area: code;
    align-self: start;
    padding-top: 8px;
  }

  .price-menu__name {
    grid-area: name;
  }

  .price-menu__conv {
    grid-area: conv;
    font-size: 0.8rem;
  }

  .price-menu__price {
    grid-area: price;
    align-self: start;
    font-size: 1.1rem;
  }

  .price-menu__price small {
    display: block;
    margin-left: 0;
    font-size: 0.75rem;
  }

  .price-menu__arrow {
    display: none;
  }

  .price-menu__foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .cost__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .cost__detail {
    grid-column: auto;
  }

  .cost__row--us {
    padding-inline: 18px;
  }

  .included__grid {
    grid-template-columns: 1fr;
  }

  .included__grid li {
    padding-right: 0;
  }

  .included__note {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .included__note .link {
    white-space: normal;
  }

  .savings__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --fs-display: clamp(2.2rem, 10.8vw, 3.8rem);
    --fs-h2: clamp(1.75rem, 8.6vw, 2.8rem);
    --section: 68px;
  }

  h1 {
    letter-spacing: -0.03em;
  }

  .hero {
    padding-top: 40px;
  }

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

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__trust {
    gap: 8px 14px;
  }

  .hero__trust li + li::before {
    display: none;
  }

  .demo__paper {
    padding: 15px 14px 14px;
  }

  .demo__tab {
    flex: 1;
    padding: 10px 8px 9px;
    font-size: 0.75rem;
  }

  .demo__panel {
    min-height: 330px;
  }

  .msg {
    max-width: 94%;
  }

  .msg p {
    font-size: 0.83rem;
  }

  .demo__sync {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .cap {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 20px 12px;
  }

  .cap p {
    grid-column: 2;
    font-size: 0.92rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 22px 0 28px;
  }

  .step:nth-child(even) {
    padding-left: 0;
  }

  .step p {
    max-width: 40ch;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .stat__value {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta__actions .btn {
    width: 100%;
  }

  .site-foot__top {
    grid-template-columns: 1fr;
  }

  .site-foot__nav {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-hero h1 {
    max-width: 12ch;
  }

  .billing {
    gap: 12px;
  }

  .plan__amount {
    font-size: 3rem;
  }

  .plan__tagline,
  .plan__billing {
    min-height: 0;
  }

  .plan__cta {
    max-width: none;
  }

  .cost__row--us {
    padding-inline: 14px;
  }

  .faq__q {
    gap: 16px;
    font-size: 0.97rem;
    padding: 18px 0;
  }

  .faq__a p {
    padding-right: 0;
    font-size: 0.92rem;
  }

  .compare {
    min-width: 620px;
    font-size: 0.8rem;
  }

  .compare th,
  .compare td {
    padding: 11px 12px;
  }

  .compare thead th:first-child,
  .compare tbody th {
    width: 30%;
  }

  .pricing-notes {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .brand__word {
    font-size: 1.12rem;
  }

  .billing__opt {
    font-size: 0.75rem;
  }

  .plan {
    padding-inline: 18px;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section__head,
    .problem__head,
    .savings__copy,
    .cta__copy {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 32%;
    }
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .savings__fill {
      transform: scaleX(0);
      animation: grow-x linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }

    .flow__path {
      stroke-dasharray: 1;
      stroke-dashoffset: 1;
      animation: draw-path linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@keyframes grow-x {
  to {
    transform: scaleX(1);
  }
}

@keyframes draw-path {
  to {
    stroke-dashoffset: 0;
  }
}

/* Cross-document transitions: the header persists, the sheet slides. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-out 0.32s cubic-bezier(0.65, 0, 0.35, 1) both;
}

::view-transition-new(root) {
  animation: page-in 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes page-out {
  to {
    opacity: 0.25;
    transform: translateX(-1.25%);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateX(1.75%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .msg,
  .demo__event {
    opacity: 1 !important;
    animation: none !important;
  }

  .demo {
    transform: none !important;
  }

  .cta__mark img {
    animation: none !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
