/* Revolution public website
 * Merge of Revolution app tokens + Hamilton brand palette (UK Robotics is a
 * Hamilton company — we keep Hamilton's palette but the product is branded UK Robotics).
 * - Hamilton Deep Blue #1C2D57 → dark sections, footer, body text
 * - Revolution Brand Blue #367feb → links, headline accent underline (.accent-mark)
 * - Enabling Green #00F091 → primary CTA, live dots, status accents
 * - Trusted Blue #4CC2EE → product-UI moments only
 */

@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-VariableFont_wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Cross-document fade between same-origin marketing pages. Browsers that
 * don't support it (Firefox, Safari today) just navigate as before; no
 * fallback is needed and no JS is involved. */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

:root {
  /* Hamilton */
  --h-deep-blue: #1c2d57;
  --h-deep-blue-90: #2a3a64;
  --h-deep-blue-80: #4a5575;
  --h-trusted-blue: #4cc2ee;
  --h-trusted-blue-30: #c9edfa;
  --h-trusted-blue-15: #e4f6fc;
  --h-enabling-green: #00f091;
  --h-enabling-green-hover: #00d680;
  --h-enabling-green-30: #b2fade;
  --h-shading: #eff0f0;

  /* Revolution */
  --r-blue: #367feb;
  --r-blue-hover: #2a6fd8;
  --r-blue-light: #eaf1fc;
  --r-navy: #243e5e;

  /* Neutrals */
  --white: #ffffff;
  --bg-soft: #f9fafb;
  --bg-mute: #f5f5f5;
  --line: #e5e7eb;
  --line-strong: #d9d9d9;

  /* Semantic */
  --text: var(--h-deep-blue);
  --text-muted: #5e7693;
  --text-subtle: #99a8ba;
  --link: var(--r-blue);
  /* Primary CTA tokens — Enabling Green, deep-blue text for AA contrast. */
  --primary: var(--h-enabling-green);
  --primary-hover: var(--h-enabling-green-hover);
  --primary-on: var(--h-deep-blue);

  /* Type scale (marketing — bigger than in-app) */
  --fs-display: clamp(40px, 6vw, 72px);
  --fs-h1: clamp(34px, 4.4vw, 52px);
  --fs-h2: clamp(28px, 3.2vw, 40px);
  --fs-h3: 24px;
  --fs-h4: 19px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-eyebrow: 13px;

  /* Layout
   * Marketing pages cap at 1400px — most visitors are on 16:9 displays where
   * a tighter cap left big empty side margins. Long-form text columns
   * (.container--narrow, --max-narrow) stay at 880px because narrower
   * line-lengths read better. */
  --max: 1400px;
  --max-narrow: 880px;
  --pad: clamp(20px, 4vw, 48px);

  /* Radii / shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(28, 45, 87, 0.04), 0 6px 20px rgba(28, 45, 87, 0.06);
  --shadow-deep: 0 10px 40px rgba(28, 45, 87, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--h-trusted-blue);
}

.lead {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 60ch;
}

.display {
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
}

/* Underline accent for highlighted phrases in marketing headlines.
 * Background-image gradient — independent of stacking context.
 * Was originally green; switched to Revolution Brand Blue so the green is
 * reserved for primary CTAs and live status. */
.accent-mark {
  display: inline;
  background-image: linear-gradient(transparent 72%, rgba(76, 194, 238, 0.7) 72%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.05em;
}

/* === LAYOUT === */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.container--narrow {
  max-width: var(--max-narrow);
}

.section {
  padding: clamp(60px, 8vw, 120px) 0;
}

.section--tight {
  padding: clamp(40px, 6vw, 80px) 0;
}

.section--dark {
  background: var(--h-deep-blue);
  color: #fff;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--dark .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.section--dark .lead {
  color: rgba(255, 255, 255, 0.78);
}

.section--soft {
  background: var(--bg-soft);
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav__brand-mark {
  width: 28px;
  height: 28px;
  display: block;
}

.nav__tm {
  font-size: 10px;
  font-weight: 500;
  vertical-align: top;
  margin-left: 1px;
  color: var(--text-muted);
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.nav__link {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s;
  cursor: pointer;
}

.nav__link:hover {
  background: var(--bg-mute);
  color: var(--text);
}

.nav__link.is-active,
body[data-page="home"] .nav__links .nav__link[href="/"],
body[data-page="product"] .nav__link[href="/whats-revolution.html"],
body[data-page="pricing"] .nav__link[href="/pricing.html"],
body[data-page="docs"] .nav__link[href="/docs.html"],
body[data-page="contact"] .nav__link[href="/contact.html"] {
  color: var(--link);
}

/* While an OAuth flow is in flight after 500ms — chrome.ts swaps the clicked
 * element's content for a .btn-spinner. The aria-busy attribute also disables
 * pointer events so a panicked user can't double-click. */
[data-action="signin"][aria-busy="true"] {
  pointer-events: none;
  cursor: progress;
}
.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 999px;
  animation: btn-spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.nav__spacer {
  flex: 1;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__status {
  font-size: 13px;
  color: var(--text-muted);
}

/* === BURGER BUTTON ===
 * Hidden on desktop. Becomes the only nav control on tablet/phone where
 * .nav__links and .nav__right are both hidden. */
.nav__burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--r-md);
  -webkit-tap-highlight-color: transparent;
}

.nav__burger:hover {
  background: var(--bg-mute);
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav__burger span+span {
  margin-top: 5px;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === MOBILE DRAWER ===
 * Drops down from the sticky nav at ≤900px. Hidden by the [hidden] attribute
 * which JS toggles. */
.nav__mobile {
  display: none;
}

.nav__mobile-link {
  padding: 12px 14px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--r-md);
}

.nav__mobile-link:hover {
  background: var(--bg-mute);
  color: var(--text);
}

.nav__mobile .btn {
  margin-top: 8px;
  align-self: stretch;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn--lg {
  padding: 15px 28px;
  font-size: 16px;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-on);
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--primary-on);
}

.btn--dark {
  background: var(--h-deep-blue);
  color: #fff;
}

.btn--dark:hover {
  background: var(--h-deep-blue-90);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--bg-mute);
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn--text {
  background: transparent;
  color: var(--primary);
  padding: 8px 0;
}

.btn--text:hover {
  background: transparent;
  color: var(--primary-hover);
}

.btn[disabled],
.btn.is-busy {
  opacity: 0.6;
  cursor: progress;
}

.btn .arrow {
  transition: transform 0.15s;
}

.btn:hover .arrow {
  transform: translateX(2px);
}

/* === CARDS === */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}

/* === LIVE DOT === */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--h-enabling-green);
  display: inline-block;
  position: relative;
  flex: none;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--h-enabling-green);
  opacity: 0.35;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.5;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* === IMAGE PLACEHOLDER === */
.placeholder {
  background:
    repeating-linear-gradient(135deg, transparent 0, transparent 11px, rgba(28, 45, 87, 0.04) 11px, rgba(28, 45, 87, 0.04) 12px),
    var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 16px;
}

.placeholder--dark {
  background:
    repeating-linear-gradient(135deg, transparent 0, transparent 11px, rgba(255, 255, 255, 0.05) 11px, rgba(255, 255, 255, 0.05) 12px),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
}

/* === FOOTER (Hamilton-style dark) === */
.footer {
  background: var(--h-deep-blue);
  color: rgba(255, 255, 255, 0.78);
  padding: 80px 0 32px;
  font-size: 15px;
}

.footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.footer__col a:hover {
  color: #fff;
}

.footer__rule {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer__hamilton {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 14px;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .nav__links {
    display: none;
  }

  .nav__right {
    display: none;
  }

  .nav__burger {
    display: flex;
    flex-direction: column;
  }

  .nav__mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px var(--pad);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--line);
  }

  .nav__mobile[hidden] {
    display: none;
  }
}

/* === UTILITIES === */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 880px) {

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-24 {
  gap: 24px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-48 {
  margin-top: 48px;
}

.mt-64 {
  margin-top: 64px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mb-48 {
  margin-bottom: 48px;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

/* === HOME HERO === */
.hero {
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 90% 20%, rgba(76, 194, 238, 0.12), transparent 60%),
    radial-gradient(ellipse 600px 400px at 10% 90%, rgba(0, 240, 145, 0.06), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero__copy {
  max-width: 560px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__product-frame {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  position: relative;
  /* scale(1.3) lets the screenshot dominate the right column. The hero is
   * overflow:hidden, so any bleed past the column edge is clipped cleanly.
   * margin-left nudges the scaled frame off the headline copy on the left;
   * it sits outside the transform so the scale doesn't amplify it. */
  margin-left: 0px;
  transform: perspective(1800px) rotateY(-3deg) rotateX(2deg) scale(1.1);
  transform-origin: center;
  transition: transform 0.6s ease;
}

.hero__product-frame:hover {
  transform: perspective(1800px) rotateY(-1deg) rotateX(1deg) scale(1.1);
}

.hero__product-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -3px;
}


/* === FEATURE GRID === */
.features {
  --gap: 24px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.feature:hover {
  border-color: var(--h-trusted-blue);
  transform: translateY(-2px);
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature__icon[data-tone="blue"] {
  background: var(--h-trusted-blue-15);
  color: var(--h-deep-blue);
}

.feature__icon[data-tone="green"] {
  background: var(--h-enabling-green-30);
  color: var(--h-deep-blue);
}

.feature h3 {
  margin-bottom: 8px;
}

/* === DARK STATS === */
.dark-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.dark-stats__value {
  font-size: 38px;
  font-weight: 600;
  color: var(--h-enabling-green);
  letter-spacing: -0.02em;
}

.dark-stats__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

/* === QUOTE === */
.quote__by {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.quote__pull {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-top: 24px;
  text-wrap: balance;
}

/* === HOME CTA CARD === */
.cta-card {
  background: var(--h-deep-blue);
  background-image: radial-gradient(ellipse 600px 400px at 100% 0%, rgba(76, 194, 238, 0.18), transparent 60%);
  border-radius: 24px;
  padding: 64px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 32px;
}

.cta-card h2 {
  color: #fff;
}

.cta-card .lead {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 16px;
}

.cta-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* === SPLIT GRIDS (responsive helpers) === */
.split-2-1 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.split-1-1\.4 {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.split-1\.4-1 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-1\.1-1 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* === WHATS-REVOLUTION === */
.narrative h2 {
  margin-bottom: 24px;
}

.narrative p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 24px;
}

.narrative p+p {
  margin-top: 0;
}

.pullquote {
  border-left: 3px solid var(--h-trusted-blue);
  padding: 8px 0 8px 24px;
  margin: 40px 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--h-deep-blue);
}

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.module {
  background: #fff;
  padding: 32px;
}

.module__num {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--h-trusted-blue);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.module h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 16px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--h-enabling-green-30);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--h-deep-blue);
  border-bottom: 2px solid var(--h-deep-blue);
  transform: rotate(-45deg);
}

.compliance-pill {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.compliance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.compliance-row__pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* === PRICING === */
.billing-toggle {
  display: inline-flex;
  background: var(--bg-mute);
  padding: 4px;
  border-radius: var(--r-pill);
  gap: 4px;
}

.billing-toggle button {
  font: inherit;
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
}

.billing-toggle button.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(28, 45, 87, 0.1);
}

.save {
  color: var(--h-enabling-green);
  font-size: 12px;
  font-weight: 600;
  margin-left: 4px;
  background: var(--h-deep-blue);
  padding: 2px 6px;
  border-radius: 4px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.tier {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.tier--featured {
  background: var(--h-deep-blue);
  color: #fff;
  border-color: var(--h-deep-blue);
  transform: translateY(-12px);
  box-shadow: var(--shadow-deep);
}

.tier--featured h3,
.tier--featured .tier__currency,
.tier--featured .tier__amount,
.tier--featured .tier__feat-label {
  color: #fff;
}

.tier--featured .text-muted {
  color: rgba(255, 255, 255, 0.7);
}

.tier--featured .tier__list li {
  color: rgba(255, 255, 255, 0.85);
}

.tier--featured .tier__list li::before {
  background: var(--h-enabling-green);
}

.tier--featured .tier__list li::after {
  border-color: var(--h-deep-blue);
}

.tier--featured .tier__per {
  color: rgba(255, 255, 255, 0.7);
}

.tier--featured .tier__per .tier__per-sub {
  color: rgba(255, 255, 255, 0.55);
}

.tier__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--h-enabling-green);
  color: var(--h-deep-blue);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tier h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.tier__head .text-muted {
  font-size: 14px;
}

.tier__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.tier__currency {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-muted);
}

.tier__amount {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tier__amount--text {
  font-size: 40px;
}

.tier__per {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 8px;
  line-height: 1.3;
}

.tier__per-sub {
  color: var(--text-subtle);
  font-size: 12px;
}

.tier__feat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tier--featured .tier__feat-label {
  border-top-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

.tier__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier__list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--text);
}

.tier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--h-enabling-green-30);
}

.tier__list li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--h-deep-blue);
  border-bottom: 2px solid var(--h-deep-blue);
  transform: rotate(-45deg);
}

.tier .btn {
  width: 100%;
}

.compare {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.compare__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 15px;
}

.compare__row:last-child {
  border-bottom: none;
}

.compare__row>div:first-child {
  color: var(--text);
  font-weight: 500;
}

.compare__row>div:not(:first-child) {
  color: var(--text-muted);
}

.compare__row--head {
  background: var(--bg-soft);
  font-weight: 600;
}

.compare__row--head>div:not(:first-child) {
  color: var(--text);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 16px;
}

/* === CONTACT === */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__channel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--h-trusted-blue-15);
  color: var(--h-deep-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact__channel-icon[data-tone="green"] {
  background: var(--h-enabling-green-30);
}

.contact__form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-card);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  font-family: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(54, 127, 235, 0.15);
}

.field__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.field__chips input {
  display: none;
}

.field__chips label span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.field__chips label input:checked+span {
  background: var(--h-deep-blue);
  color: #fff;
  border-color: var(--h-deep-blue);
}

.contact__form-status {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.contact__form-status[data-tone="error"] {
  color: #ca4040;
}

.contact__form-status[data-tone="ok"] {
  color: var(--h-deep-blue);
}

/* === DOCS === */
.docs-hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.docs-hero .lead {
  margin-left: auto;
  margin-right: auto;
}

.docs-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 12px 18px;
  max-width: 600px;
  margin: 32px auto 16px;
  box-shadow: var(--shadow-card);
  color: var(--text-muted);
}

.docs-search input {
  flex: 1;
  border: none;
  outline: none;
  font: inherit;
  font-size: 15px;
  background: transparent;
  color: var(--text);
}

.docs-search input::placeholder {
  color: var(--text-muted);
}

.docs-search kbd {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  background: var(--bg-mute);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-muted);
}

.docs-quick {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.doc-cat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.doc-cat:hover {
  border-color: var(--h-trusted-blue);
  box-shadow: var(--shadow-card);
}

.doc-cat__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.doc-cat__icon[data-tone="blue"] {
  background: var(--h-trusted-blue-15);
  color: var(--h-deep-blue);
}

.doc-cat__icon[data-tone="green"] {
  background: var(--h-enabling-green-30);
  color: var(--h-deep-blue);
}

.doc-cat h3 {
  margin-bottom: 6px;
  font-size: 19px;
}

.doc-cat p {
  font-size: 14px;
}

.doc-cat__list {
  list-style: none;
  padding: 16px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-cat__list a {
  font-size: 14px;
  color: var(--text);
}

.doc-cat__list a:hover {
  color: var(--primary);
}

.docs-help {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* === 404 === */
.not-found {
  text-align: center;
  padding: clamp(60px, 10vw, 140px) 0;
}

.not-found__code {
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--h-deep-blue);
}

.not-found__code span {
  background-image: linear-gradient(transparent 72%, rgba(54, 127, 235, 0.7) 72%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* === PHONE-ONLY: HIDE PLATFORM-ENTRY CTAS ===
 * The React app doesn't run on phones (the platform shows its own
 * "Mobile version not available" screen at small widths). So on phones we
 * hide every CTA that funnels into the OAuth/sign-up flow, plus the
 * "No sales call. Try it today." reassurance line whose verb assumes an
 * action that's been removed here. The Contact tab and Enterprise
 * "Talk to sales" remain reachable, so visitors who need to talk to us can.
 *
 * Breakpoint sits below the smallest iPad portrait width (iPad Mini = 744px),
 * so tablets keep the full marketing experience. */
@media (max-width: 740px) {

  [data-action="signin"],
  .hero__meta-item--cta {
    display: none !important;
  }
}

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__product-frame {
    transform: none;
    margin-left: 0;
  }

  .dark-stats {
    grid-template-columns: 1fr 1fr;
  }

  .cta-card {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .split-2-1,
  .split-1-1\.4,
  .split-1\.4-1,
  .split-1\.1-1 {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .modules {
    grid-template-columns: 1fr;
  }

  .docs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 880px) {
  .tiers {
    grid-template-columns: 1fr;
  }

  .tier--featured {
    transform: none;
  }

  .compare__row {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    padding: 14px 16px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }
}