/* =========================================================
   chrome.html page styles
   Scoped with the `cx-` prefix. main.min.css is a precompiled
   Tailwind build, so page-specific components live here.
========================================================= */
:root {
  --cx-in-oklab: ;
  --cx-blue: #3b7ef6;
  --cx-blue-soft: rgba(59, 126, 246, 0.14);
  --cx-emerald: #10b981;
  --cx-emerald-soft: rgba(16, 185, 129, 0.14);
  --cx-amber: #f59e0b;
  --cx-amber-soft: rgba(245, 158, 11, 0.16);
  --cx-rose: #f43f5e;
  --cx-rose-soft: rgba(244, 63, 94, 0.14);
  --cx-surface: #ffffff;
  --cx-surface-2: #f4f5f8;
  --cx-surface-3: #eceff4;
  --cx-border: #e3e7ed;
  --cx-text: #1a1a1c;
  --cx-muted: rgba(26, 26, 28, 0.62);
  --cx-faint: rgba(26, 26, 28, 0.42);
}
@supports (background: linear-gradient(in oklab, white, black)) {
  :root {
    --cx-in-oklab: in oklab;
  }
}
.dark {
  --cx-surface: #131313;
  --cx-surface-2: #1b1b1b;
  --cx-surface-3: #242424;
  --cx-border: #2a333e;
  --cx-text: #fcfcfc;
  --cx-muted: rgba(252, 252, 252, 0.66);
  --cx-faint: rgba(252, 252, 252, 0.42);
}

/* ---------- Shared bits ---------- */
.cx-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.cx-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  padding: 0.05em 0.4em;
  border-radius: 6px;
  border: 1px solid var(--cx-border);
  border-bottom-width: 2px;
  background: var(--cx-surface-2);
  color: var(--cx-text);
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.cx-var {
  display: inline-flex;
  align-items: center;
  padding: 0.1em 0.55em;
  border-radius: 999px;
  background: var(--cx-amber-soft);
  color: var(--cx-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  font-weight: 600;
  white-space: nowrap;
}
.cx-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.cx-pill-badge--emerald {
  background: var(--cx-emerald-soft);
  color: var(--cx-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.cx-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
}
.cx-hero-badge.badge {
  white-space: normal;
  text-wrap: balance;
}

/* ---------- Segmented toggle (OS switch) ---------- */
.cx-segment {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--cx-border);
  background: var(--cx-surface-2);
}
.cx-segment__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--cx-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.cx-segment__item:hover {
  color: var(--cx-text);
}
.cx-segment__item.is-active,
.cx-segment__item[aria-current="page"],
.cx-segment__item[aria-pressed="true"] {
  background: var(--cx-blue);
  color: #fff;
}
.cx-segment__item:focus-visible,
.cx-chip:focus-visible,
.cx-btn:focus-visible {
  outline: 2px solid var(--cx-blue);
  outline-offset: 2px;
}

/* ---------- Hero screenshot ---------- */
.cx-hero-shot {
  max-width: 1170px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px -20px rgba(59, 126, 246, 0.35);
}
.cx-shot {
  display: block;
  width: 100%;
  height: auto;
}

.cx-skeleton {
  height: 10px;
  border-radius: 6px;
  background: var(--cx-surface-3);
  margin-top: 10px;
}

/* ---------- Problem section & visual showcase ---------- */
.cx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  background: var(--cx-blue-soft);
  color: #60a5fa;
  border: 1px solid rgba(59, 126, 246, 0.28);
}
.cx-pain-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
}
.cx-pain-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg var(--cx-in-oklab),
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.015)
  );
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.cx-pain-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
}
.cx-pain-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  margin-top: 2px;
  border-radius: 11px;
}
.cx-pain-icon--rose {
  background: var(--cx-rose-soft);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.22);
}
.cx-pain-icon--amber {
  background: var(--cx-amber-soft);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.22);
}
.cx-pain-icon--slate {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.cx-pain-copy strong {
  display: block;
  margin: 0 0 4px;
  color: var(--cx-text);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}
.cx-pain-copy p {
  margin: 0;
  color: var(--cx-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.cx-problem__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.cx-problem__cta {
  width: auto;
  text-transform: none !important;
}
.cx-problem__cta span {
  text-transform: none !important;
}
@media (max-width: 480px) {
  .cx-problem__cta {
    width: 100%;
  }
}

.cx-showcase {
  position: relative;
  isolation: isolate;
  border-radius: 24px;
  padding: 20px 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(
      80% 60% at 50% 0% var(--cx-in-oklab),
      rgba(59, 126, 246, 0.18),
      transparent 72%
    ),
    linear-gradient(
      180deg var(--cx-in-oklab),
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.015)
    );
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 60px -24px rgba(0, 0, 0, 0.75),
    0 12px 32px -16px rgba(59, 126, 246, 0.22);
  overflow: hidden;
}
@media (min-width: 640px) {
  .cx-showcase {
    padding: 24px 28px 28px;
  }
}
.cx-showcase__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 500;
}
.cx-showcase__before {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cx-faint);
  text-decoration: line-through;
  text-decoration-color: rgba(244, 63, 94, 0.65);
}
.cx-showcase__arrow {
  color: var(--cx-faint);
  flex-shrink: 0;
}
.cx-showcase__after {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 5px;
  border-radius: 999px;
  background: var(--cx-blue-soft);
  border: 1px solid rgba(59, 126, 246, 0.32);
  color: #93c5fd;
  font-weight: 600;
}
.cx-showcase__after .cx-kbd {
  font-size: 0.74rem;
  padding: 0.02em 0.42em;
  border-color: rgba(59, 126, 246, 0.35);
  background: rgba(19, 19, 19, 0.65);
  color: #fcfcfc;
}
.cx-showcase__frame {
  max-width: 420px;
  margin-inline: auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0b0c;
  box-shadow:
    0 20px 44px -16px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}
.cx-showcase__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Feature / security / works cards ---------- */
.cx-grid-2,
.cx-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .cx-grid-2,
  .cx-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .cx-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.cx-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cx-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cx-blue-soft);
  color: var(--cx-blue);
}
.cx-card__icon--emerald { background: var(--cx-emerald-soft); color: var(--cx-emerald); }
.cx-card__icon--amber { background: var(--cx-amber-soft); color: var(--cx-amber); }
.cx-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--cx-text);
}
.cx-card p,
.cx-card li {
  margin: 0;
  color: var(--cx-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.cx-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cx-card li {
  position: relative;
  padding-left: 18px;
}
.cx-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cx-blue);
}

/* ---------- Live enhance demo ---------- */
.cx-demo {
  max-width: 920px;
  margin-inline: auto;
}
.cx-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.cx-chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--cx-border);
  background: var(--cx-surface);
  color: var(--cx-muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.cx-chip:hover { color: var(--cx-text); }
.cx-chip[aria-pressed="true"] {
  border-color: var(--cx-blue);
  background: var(--cx-blue-soft);
  color: var(--cx-text);
}
.cx-demo__input {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) {
  .cx-demo__input { flex-direction: row; align-items: center; }
}
.cx-demo__rough {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed var(--cx-border);
  background: var(--cx-surface-2);
  color: var(--cx-text);
  font-size: 0.95rem;
}
.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 0;
  background: var(--cx-blue);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.cx-btn:hover { box-shadow: 0 0 24px rgba(59, 126, 246, 0.5); }
.cx-btn:active { transform: scale(0.98); }
.cx-btn[disabled] { opacity: 0.6; cursor: progress; }
.cx-btn--ghost {
  background: var(--cx-surface-2);
  color: var(--cx-text);
  border: 1px solid var(--cx-border);
}
.cx-btn--ghost:hover { box-shadow: none; border-color: var(--cx-blue); }
.cx-output {
  min-height: 220px;
}
.cx-output__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: var(--cx-faint);
  font-size: 0.9rem;
  text-align: center;
}
.cx-output__section {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.cx-output__section.is-visible {
  opacity: 1;
  transform: none;
}
.cx-output__section + .cx-output__section { margin-top: 12px; }
.cx-output__section h4 {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cx-blue);
}
.cx-output__section p {
  margin: 0;
  color: var(--cx-text);
  font-size: 0.95rem;
  line-height: 1.65;
}
.cx-output__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--cx-border);
}
.cx-output__meta {
  color: var(--cx-faint);
  font-size: 0.8rem;
}

/* ---------- Shortcut cheat sheet ---------- */
.cx-keycard {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}
.cx-keycard p {
  margin: 0;
  color: var(--cx-text);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
}
.cx-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--cx-faint);
}
.cx-keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--cx-border);
  border-bottom-width: 4px;
  background: linear-gradient(180deg, var(--cx-surface-3), var(--cx-surface-2));
  color: var(--cx-text);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}

/* ---------- Ecosystem banner ---------- */
.cx-eco {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) {
  .cx-eco { grid-template-columns: 1.1fr 1fr; }
}
.cx-eco__nodes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  position: relative;
}
.cx-eco__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px;
  border-radius: 16px;
  border: 1px solid var(--cx-border);
  background: var(--cx-surface-2);
  color: var(--cx-text);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}
.cx-eco__node span:first-child { font-size: 1.6rem; }
a.cx-eco__node:hover { border-color: var(--cx-blue); }
.cx-eco__sync {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--cx-blue);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Pricing tweaks ---------- */
.cx-save {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cx-amber-soft);
  color: var(--cx-amber);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  .cx-output__section { transition: none; }
}

.cx-narrow {
  max-width: 720px;
  margin-inline: auto;
}

/* Small phones: keep the OS switch and hero badge on one line */
@media (max-width: 480px) {
  .cx-segment { flex-wrap: nowrap; }
  .cx-segment__item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  .cx-hero-badge.badge {
    padding-inline: 0.85rem;
    font-size: 0.72rem;
  }
}

/* ---------- Conversion helpers ---------- */
.cx-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--cx-muted);
  font-size: 0.9rem;
}
.cx-proof li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cx-proof li::before {
  content: "✓";
  color: var(--cx-emerald);
  font-weight: 700;
}
.cx-how {
  margin-top: auto !important;
  padding-top: 12px;
  border-top: 1px solid var(--cx-border);
  font-size: 0.88rem !important;
}
.cx-how strong { color: var(--cx-text); font-weight: 600; }
.cx-bridge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--cx-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}
.cx-bridge__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--cx-blue);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(59, 126, 246, 0.45);
}
.cx-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 40px;
}

/* ---------- How it works ---------- */
.cx-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-inline: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .cx-steps { grid-template-columns: repeat(3, 1fr); }
}
.cx-steps h3 {
  margin: 16px 0 8px;
  color: var(--cx-text);
  font-size: 1.2rem;
  font-weight: 600;
}
.cx-steps p {
  margin: 0;
  color: var(--cx-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.cx-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--cx-blue);
  color: #fff;
  font-weight: 700;
}
