/* ===========================================================================
   Conduit website — v2 landing components (home + use-case pages)
   Added 2026-09 for the redesign. Same tokens as the app (tokens.css), loaded
   after site.css. Nothing in site.css was changed: every page and locale not
   yet redesigned still renders with it.
   =========================================================================== */

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

.nav-cta {
  flex-shrink: 0;
}

@media (max-width: 420px) {
  .nav-cta {
    display: none;
  }
}

/* --- Shared section furniture --------------------------------------------- */

.sec {
  padding-block: 104px;
}

.sec--tint {
  background: var(--bg-side);
  border-block: 1px solid var(--line-soft);
}

.sec--tight {
  padding-block: 72px;
}

.sec-head {
  max-width: 700px;
  margin-bottom: 52px;
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.sec-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sec-head .lede {
  font-size: 18px;
  margin-top: 16px;
}

.wrap--wide {
  max-width: 1240px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.link-arrow::after {
  content: "\2192";
  transition: transform var(--transition);
}

.link-arrow:hover {
  text-decoration: none;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

.btn--lg {
  padding: 14px 24px;
  font-size: 16px;
  border-radius: var(--r);
}

@media (max-width: 860px) {
  .sec {
    padding-block: 72px;
  }
  .sec-head {
    margin-bottom: 36px;
  }
}

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

.hx {
  position: relative;
  overflow: hidden;
  padding-block: 72px 0;
  text-align: center;
}

/* Two soft washes of the provider hue: one behind the headline, one pooled
   under the product shot. The hue rotates (site.js), so these do too. */
.hx::before,
.hx::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transition: background 600ms ease;
}

.hx::before {
  inset: -260px -10% auto;
  height: 620px;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, var(--hue-wash), transparent 70%);
}

.hx::after {
  left: 50%;
  bottom: -120px;
  width: 1100px;
  max-width: 100%;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--hue-wash), transparent 66%);
}

.hx > .wrap {
  position: relative;
  z-index: 1;
}

.hx__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), color var(--transition);
}

.hx__pill:hover {
  border-color: var(--line-hi);
  color: var(--ink);
  text-decoration: none;
}

.hx__pill-tag {
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--hue-wash);
  color: var(--hue-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hx__title {
  margin: 26px auto 0;
  max-width: 960px;
  font-size: clamp(42px, 7.2vw, 84px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

/* A category headline whose last word rotates (site.js §4b). */
.hx__title--long {
  max-width: 1100px;
  font-size: clamp(36px, 5.6vw, 68px);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

/* The full list behind the rotating word: hidden on screen, but read by screen
   readers and kept in the Markdown twin (unlike .visually-hidden, which the twin
   generator skips; it skips .hx__rotate instead). */
.hx__full {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hx__rotate {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  white-space: nowrap;
  text-align: left;
  transition: width 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Off-screen copy used to measure each word's width (site.js §4b). */
.hx__measure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}

/* Typing caret: solid while a word is typed or deleted, blinking between. */
.hx__caret {
  display: inline-block;
  width: 0.08em;
  height: 0.82em;
  margin-left: 0.06em;
  vertical-align: -0.04em;
  border-radius: 1px;
  background: currentColor;
  animation: hx-caret 1s steps(1) infinite;
}

.hx__rotate.is-typing .hx__caret {
  animation: none;
}

@keyframes hx-caret {
  50% { opacity: 0; }
}

.hx__title em {
  font-style: normal;
  color: var(--hue-text);
  transition: color 400ms ease;
}

.hx__sub {
  margin: 26px auto 0;
  max-width: 700px;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
}

.hx__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.ticks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-3);
}

.ticks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ticks li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hx__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
}

.hx__note a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-hi);
}

/* --- Stage: the product shot with annotations ------------------------------ */

.stage {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  padding-bottom: 88px;
}

.stage .shot {
  margin: 0;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.45), var(--shadow-lg);
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  line-height: 1.35;
}

.float-chip small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
}

.float-chip__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--hue-wash);
  color: var(--hue-text);
}

.float-chip__icon svg {
  width: 16px;
  height: 16px;
}

.float-chip--a { left: -28px; top: 22%; }
.float-chip--b { right: -28px; top: 46%; }
.float-chip--c { left: 7%; bottom: 128px; }

@media (prefers-reduced-motion: no-preference) {
  .float-chip {
    animation: chip-float 7s ease-in-out infinite;
  }
  .float-chip--b { animation-delay: -2.3s; }
  .float-chip--c { animation-delay: -4.6s; }
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 1300px) {
  .float-chip--a { left: 12px; }
  .float-chip--b { right: 12px; }
}

@media (max-width: 760px) {
  .hx {
    padding-top: 40px;
  }
  .float-chip {
    display: none;
  }
  .stage {
    margin-top: 40px;
    padding-bottom: 56px;
  }
}

/* --- Provider groups (home "Models" section) ------------------------------ */
/* The chips keep #providerChips, so the hero accent still cycles through them
   (site.js §4). */

.provider-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.provider-group {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.provider-group h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.provider-group p {
  margin: 0 0 18px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.5;
}

.provider-group .chips {
  justify-content: flex-start;
}

.provider-group .chip {
  font-size: 15px;
  padding: 8px 15px;
}

.provider-group .chip small {
  color: var(--ink-3);
  font-size: 0.86em;
}

@media (max-width: 900px) {
  .provider-groups { grid-template-columns: 1fr; }
}

/* --- Model marquee --------------------------------------------------------- */

.models-band {
  padding-block: 40px 44px;
  border-block: 1px solid var(--line-soft);
  background: var(--bg-side);
  text-align: center;
}

.models-band__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 40s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.marquee__item span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-3);
}

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

/* Reduced motion and no-JS: a static, wrapped row, and the duplicate half
   (there only to make the loop seamless) goes away. */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee__track [aria-hidden="true"] { display: none; }
}

.models-band__foot {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-3);
}

.models-band__foot a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-hi);
}

/* --- Path cards (use-case router) ------------------------------------------ */

.paths {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.path {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  color: var(--ink);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.path:hover {
  text-decoration: none;
  border-color: var(--hue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.path__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--hue-wash);
  color: var(--hue-text);
  margin-bottom: 18px;
}

.path__icon svg {
  width: 20px;
  height: 20px;
}

.path__for {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.path h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.path p {
  color: var(--ink-2);
  font-size: 15px;
  flex: 1;
}

.path__go {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--hue-text);
}

.path__go::after {
  content: " \2192";
  display: inline-block;
  margin-left: 4px;
  transition: transform var(--transition);
}

.path:hover .path__go::after {
  transform: translateX(3px);
}

.path--feature {
  background:
    radial-gradient(ellipse at 100% 0%, var(--hue-wash), transparent 60%),
    var(--card);
  border-color: var(--line-hi);
}

@media (max-width: 960px) {
  .paths { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .paths { grid-template-columns: 1fr; }
}

/* --- Tour (tabbed showcase) ------------------------------------------------ */

.tour__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 40px;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
}

.tour__tab {
  padding: 8px 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.tour__tab:hover {
  color: var(--ink);
  background: var(--card-hi);
}

.tour__tab[aria-selected="true"] {
  background: var(--hue-solid);
  color: #fff;
}

.tour__panel {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 52px;
  align-items: center;
}

.tour__panel > * {
  min-width: 0;
}

.tour__panel[hidden] {
  display: none;
}

.tour__panel .shot {
  margin: 0;
}

.tour__copy h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.tour__copy > p {
  color: var(--ink-2);
}

/* Home tour: the feature name is the heading (it echoes the headline's
   rotating word, in the same accent), the benefit is a lead line under it. */
.tour__copy .tour__name {
  font-size: clamp(36px, 3.8vw, 50px);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 12px;
  color: var(--hue-text);
  transition: color 400ms ease;
}

.tour__copy > .tour__lede {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.tour__copy > p + p {
  margin-top: 12px;
}

.tour__copy .link-arrow {
  margin-top: 22px;
}

/* Without JS every panel shows, stacked, and the tab strip (which would do
   nothing) is hidden. */
.no-js .tour__tabs {
  display: none;
}

.no-js .tour__panel[hidden] {
  display: grid;
}

.no-js .tour__panel + .tour__panel {
  margin-top: 72px;
}

@media (prefers-reduced-motion: no-preference) {
  .tour__panel:not([hidden]) {
    animation: tour-in 320ms ease;
  }
}

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

@media (max-width: 860px) {
  .tour__panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tour__tabs {
    border-radius: var(--r);
  }
}

/* Stacked tour: every panel shows, one after another, and the screenshot
   alternates sides so a long scroll doesn't read as a single column. */
.tour--stacked .tour__panel + .tour__panel {
  margin-top: 112px;
}

@media (min-width: 861px) {
  .tour--stacked .tour__panel:nth-child(even) {
    grid-template-columns: 7fr 5fr;
  }
  .tour--stacked .tour__panel:nth-child(even) .tour__copy {
    order: 2;
  }
}

@media (max-width: 860px) {
  .tour--stacked .tour__panel + .tour__panel {
    margin-top: 72px;
  }
}

/* --- Stats row ------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
}

.stats li {
  padding: 26px 24px;
}

.stats li + li {
  border-left: 1px solid var(--line-soft);
}

.stats b {
  display: block;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stats span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
}

/* --- Price band ------------------------------------------------------------ */

.price {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 56px;
  align-items: center;
}

.price > * {
  min-width: 0;
}

.price__big {
  font-size: clamp(104px, 15vw, 184px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--hue-text);
  transition: color 400ms ease;
}

.price__big-cap {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.price h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.price__body > p {
  margin-top: 14px;
  color: var(--ink-2);
}

.price__rows {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.price__rows li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}

.price__rows b {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.price__body .link-arrow {
  margin-top: 22px;
}

@media (max-width: 860px) {
  .price { grid-template-columns: 1fr; gap: 28px; }
}

/* --- Bento ------------------------------------------------------------------ */

.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, 1fr);
}

.bento__cell {
  grid-column: span 2;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
}

.bento__cell--wide { grid-column: span 3; }

.bento__cell h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.bento__cell p {
  color: var(--ink-2);
  font-size: 15px;
}

.bento__viz {
  margin-bottom: 22px;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.kbd-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bento kbd {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line-hi);
  border-bottom-width: 2px;
  border-radius: var(--r-xs);
  background: var(--bg-side);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.5;
}

.gauge {
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--bg-side);
  border: 1px solid var(--line);
  overflow: hidden;
}

.gauge span {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: inherit;
  background: var(--hue-solid);
}

.gauge-cap {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
}

.mini-bars span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--hue-wash);
  border: 1px solid var(--hue);
  border-bottom: 0;
}

.pending {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--line-hi);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--ink-2);
}

.pending b {
  margin-left: auto;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--hue-wash);
  color: var(--hue-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cite-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cite-row span {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg-side);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
}

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell,
  .bento__cell--wide { grid-column: span 1; }
}

@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
}

/* --- Versus table ---------------------------------------------------------- */

.versus {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
}

.versus table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.versus th,
.versus td {
  padding: 16px 22px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

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

.versus thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-side);
}

.versus tbody th {
  width: 24%;
  font-weight: 600;
  color: var(--ink);
}

.versus td {
  color: var(--ink-2);
  width: 38%;
}

.versus .is-us {
  background: var(--hue-wash);
  color: var(--ink);
}

.versus thead .is-us {
  color: var(--hue-text);
}

.yes,
.no,
.meh {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}

.yes::before,
.no::before,
.meh::before {
  flex-shrink: 0;
  font-weight: 700;
  font-family: var(--font-mono);
}

.yes::before { content: "\2713"; color: var(--ok); }
.no::before { content: "\2715"; color: var(--err); }
.meh::before { content: "\2013"; color: var(--warn); }

@media (max-width: 700px) {
  .versus table,
  .versus tbody,
  .versus tr,
  .versus th,
  .versus td {
    display: block;
    width: auto;
  }
  .versus thead { display: none; }
  .versus tbody tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .versus tbody tr:last-child { border-bottom: 0; }
  .versus tbody th,
  .versus td { padding: 0; border: 0; }
  .versus tbody th { margin-bottom: 4px; }
  .versus td { padding: 8px 0 0; font-size: 14px; }
  .versus td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .versus .is-us { background: none; }
}

/* Two-column "if you… / start here" variant. */
.versus--pick tbody th {
  width: 58%;
  font-weight: 500;
  color: var(--ink-2);
}

.versus--pick td {
  width: auto;
  font-weight: 500;
}

/* --- Code-card colouring (brand.md, config snippets) ----------------------- */

.code .c-key { color: var(--link); }
.code .c-str { color: var(--code); }
.code .c-sec { color: var(--ink); font-weight: 500; }

.swatches {
  display: flex;
  gap: 6px;
  padding: 0 16px 16px;
}

.swatches span {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--line-hi);
}

/* --- CTA band -------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 72px 40px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, var(--hue-wash), transparent 70%),
    var(--card);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 760px;
  margin-inline: auto;
}

.cta-band p {
  max-width: 600px;
  margin: 16px auto 0;
  color: var(--ink-2);
  font-size: 17px;
}

.cta-band .hx__note {
  font-size: 13px;
}

@media (max-width: 600px) {
  .cta-band { padding: 44px 20px; }
  .hx__cta .btn { width: 100%; justify-content: center; }
}

/* --- Landing pages (use cases, white-label) -------------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--ink-3);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-hi);
}

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

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

.lp-hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 96px;
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: -240px -20% auto 30%;
  height: 640px;
  background: radial-gradient(ellipse at center, var(--hue-wash), transparent 66%);
  pointer-events: none;
  transition: background 600ms ease;
}

.lp-hero > .wrap {
  position: relative;
}

.lp-hero__grid {
  display: grid;
  grid-template-columns: 11fr 10fr;
  gap: 56px;
  align-items: center;
}

.lp-hero__grid > * {
  min-width: 0;
}

.lp-hero h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.lp-hero h1 em {
  font-style: normal;
  color: var(--hue-text);
  transition: color 400ms ease;
}

.lp-hero__sub {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 620px;
}

.lp-hero .hx__cta,
.lp-hero .ticks {
  justify-content: flex-start;
}

.lp-hero .shot,
.lp-hero .code,
.lp-hero .diagram {
  margin: 0;
}

.split-media.shot {
  margin: 0;
}

.lp-hero .shot,
.lp-hero .code {
  box-shadow: var(--shadow-lg);
}

@media (max-width: 960px) {
  .lp-hero__grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 600px) {
  .lp-hero { padding-block: 40px 64px; }
}

/* Problem statement: large, quiet type. */
.pull {
  max-width: 900px;
  font-size: clamp(22px, 2.7vw, 32px);
  line-height: 1.38;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.pull span {
  color: var(--ink-3);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.benefit {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.benefit h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.benefit p {
  color: var(--ink-2);
  font-size: 15px;
}

.benefit p + p {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .benefits { grid-template-columns: 1fr; }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 24px 22px 8px 0;
  border-top: 2px solid var(--line-hi);
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--hue-text);
}

.steps li:first-child {
  border-top-color: var(--hue);
}

.steps h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.steps p {
  color: var(--ink-2);
  font-size: 15px;
}

.steps code {
  font-size: 0.88em;
  color: var(--code);
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

/* Honest limits: what it does / what it doesn't. */
.limits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
}

.limits > div {
  padding: 30px 28px;
}

.limits > div + div {
  border-left: 1px solid var(--line);
  background: var(--bg-side);
}

.limits h3 {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.limits > div:first-child h3 { color: var(--ok); }
.limits > div + div h3 { color: var(--warn); }

.limits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.limits li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-2);
  font-size: 15px;
}

.limits li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-weight: 700;
}

.limits > div:first-child li::before { content: "\2713"; color: var(--ok); }
.limits > div + div li::before { content: "\2013"; color: var(--warn); }

@media (max-width: 760px) {
  .limits { grid-template-columns: 1fr; }
  .limits > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* Landing-page FAQ: the shared faq_page partial inside a centred column. */
.lp-faq {
  max-width: 820px;
  margin-inline: auto;
}

.lp-faq h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  text-align: center;
}

/* Status table inside a landing page (white-label). */
.lp-table {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
}

.lp-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.lp-table th,
.lp-table td {
  padding: 13px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
}

.lp-table tr:last-child td {
  border-bottom: 0;
}

.lp-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-side);
}

.lp-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.lp-table code {
  font-size: 0.88em;
  color: var(--code);
}

@media (max-width: 600px) {
  .lp-table td:last-child { white-space: normal; }
  .lp-table th, .lp-table td { padding: 12px 14px; }
}

/* Source / fine-print note under a landing page. */
.fine {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.65;
}

.fine a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-hi);
}

.center {
  text-align: center;
}

.mt-l {
  margin-top: 48px;
}

/* --- Contrast guards ---------------------------------------------------------
   The provider hue rotates (site.js), and several provider colours sit just
   under 4.5:1 as small text on dark card surfaces. Small hue text on cards is
   lifted toward white in dark mode so every hue in the rotation clears AA; the
   brand colour itself (dots, borders, fills) is untouched. */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .path__go,
  :root:not([data-theme="light"]) .pending b,
  :root:not([data-theme="light"]) .hx__pill-tag,
  :root:not([data-theme="light"]) .versus thead .is-us,
  :root:not([data-theme="light"]) .steps li::before,
  :root:not([data-theme="light"]) .platform-dl__link:first-child {
    color: color-mix(in srgb, var(--hue-text) 76%, #fff);
  }
}

:root[data-theme="dark"] .path__go,
:root[data-theme="dark"] .pending b,
:root[data-theme="dark"] .hx__pill-tag,
:root[data-theme="dark"] .versus thead .is-us,
:root[data-theme="dark"] .steps li::before,
:root[data-theme="dark"] .platform-dl__link:first-child {
  color: color-mix(in srgb, var(--hue-text) 76%, #fff);
}

/* Links inside running text are underlined, so they don't rely on colour. */
.sec p a:not([class]),
.sec li a:not([class]),
.lp-hero p a:not([class]),
.faq .answer a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* --- Header fit ---------------------------------------------------------------
   Seven nav items + language + theme + the Download CTA overflow at desktop
   widths in German and CJK. The header gets a wider container, labels never
   wrap mid-word, and the hamburger menu takes over below 1200px (site.js
   MOBILE matches this) instead of site.css's 860px. */

.site-header .wrap {
  max-width: 1280px;
}

.brand,
.nav-links a {
  white-space: nowrap;
}

.brand {
  flex-shrink: 0;
}

.nav {
  gap: 14px;
}

@media (max-width: 1280px) {
  .nav-links a {
    padding: 7px 9px;
    font-size: 14.5px;
  }
}

@media (max-width: 1200px) {
  .nav-toggle {
    display: inline-grid;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links[hidden] {
    display: none;
  }

  .nav-links a {
    padding: 11px 12px;
    font-size: 15px;
  }
}

/* --- CJK headings ---------------------------------------------------------------
   Break Japanese at phrase boundaries (auto-phrase, where supported) and never
   mid-word in Korean; CJK display type also runs a touch smaller, because the
   glyphs are wider than Latin at the same size. */

:lang(ja) :is(h1, h2, h3, .lede, .hx__sub, .lp-hero__sub, .pull) {
  word-break: auto-phrase;
}

:lang(ko) :is(h1, h2, h3, .lede, .hx__sub, .lp-hero__sub, .pull) {
  word-break: keep-all;
}

:is(:lang(ja), :lang(ko), :lang(zh)) .hx__title {
  font-size: clamp(36px, 6.2vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

/* The long category headline: CJK glyphs are wider, so it needs a smaller size
   than the slogan rule above to keep "…AI アプリ" on one line. */
:is(:lang(ja), :lang(ko), :lang(zh)) .hx__title--long {
  font-size: clamp(30px, 4.3vw, 56px);
}

:is(:lang(ja), :lang(ko), :lang(zh)) .lp-hero h1 {
  letter-spacing: -0.02em;
  line-height: 1.15;
}
