/* catalex.co home: the app's Astryx "relay" theme over the gateway page.
   Tokens match catalex-relay/dashboard/web/src/themes/relay/design-tokens.css:
   Figtree, an off-white ground, 1px lines instead of shadows, one indigo
   accent and lean 36px buttons. Loaded after gateway.css, which it overrides. */

/* Figtree is self-hosted (fonts/OFL.txt). It is also registered under the
   name Geist, so every rule in gateway.css that names Geist renders Figtree. */
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 300 900; src: url('fonts/figtree-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 300 900; src: url('fonts/figtree-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 300 900; src: url('fonts/figtree-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 300 900; src: url('fonts/figtree-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --cx-bg: #FAFBF9;
  --cx-surface: #FFFFFF;
  --cx-border: rgba(20, 33, 46, .09);
  --cx-border-strong: rgba(20, 33, 46, .2);
  --cx-ink: #14212E;
  --cx-ink-2: #525C6B;
  --cx-ink-3: #65717C;
  --cx-muted: #8A93A0;
  --cx-accent: #4F46E5;
  --cx-accent-soft: rgba(129, 140, 248, .1);
  --cx-gradient: linear-gradient(110deg, #38BDF8, #818CF8, #F472B6);
  --cx-radius-sm: 10px;
  --cx-radius: 14px;
  --cx-radius-lg: 20px;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --paper: var(--cx-bg);
  --ink: var(--cx-ink);
  --muted: var(--cx-ink-3);
  --line: var(--cx-border);
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-y: auto; }
body { font-family: 'Figtree', system-ui, sans-serif; background: var(--cx-bg); color: var(--cx-ink); overflow-y: auto; height: auto; }
.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; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cx-accent); outline-offset: 3px; }
code { font-family: var(--mono); }

/* Header: sticky, white with a 1px line, like the app's rail. */
.header {
  max-width: none !important;
  position: sticky; top: 0; z-index: 50;
  height: 64px;
  background: rgba(250, 251, 249, .86) !important;
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--cx-border) !important;
  color: var(--cx-ink) !important;
}
.header .brand { font-size: 19px; letter-spacing: -.02em; color: var(--cx-ink); }
.header .brand img { width: 28px; height: 28px; }
.header nav { font-size: 14px; gap: 26px; color: var(--cx-ink-2) !important; }
.header nav a { color: var(--cx-ink-2) !important; }
.header nav a:hover { color: var(--cx-ink) !important; }

/* Buttons: Astryx's lean button. 36px, 10px corners, no lift, no glow. */
.button {
  display: inline-flex !important; align-items: center !important; justify-content: center;
  gap: 8px !important;
  height: 38px; padding: 0 16px !important; margin: 0 !important;
  border: 0 !important; border-radius: var(--cx-radius-sm) !important;
  background: var(--cx-ink) !important; color: #fff !important;
  font: 500 14px/1 'Figtree', system-ui, sans-serif !important; letter-spacing: 0 !important;
  box-shadow: none !important; transform: none !important;
  transition: background-color .15s, box-shadow .15s !important;
  white-space: nowrap;
}
.button:hover { background: #24364a !important; transform: none !important; box-shadow: none !important; }
.button.secondary, .button.small {
  background: var(--cx-surface) !important; color: var(--cx-ink) !important;
  box-shadow: 0 0 0 1px var(--cx-border-strong) !important;
}
.button.secondary:hover, .button.small:hover { background: #f3f4f2 !important; box-shadow: 0 0 0 1px var(--cx-border-strong) !important; }
.button.small { height: 34px; padding: 0 12px !important; font-size: 13px !important; }
.button .apple { width: 15px; height: 15px; margin-top: -2px; }
.button > span { font-size: inherit !important; }

/* Type */
h1, h2, h3 { font-family: 'Figtree', system-ui, sans-serif; letter-spacing: -.03em !important; font-weight: 600 !important; }
h2 span { color: var(--cx-muted) !important; }
p { color: var(--cx-ink-3); }
.eyebrow { color: var(--cx-ink-2) !important; }
.win-heading .eyebrow { font: 600 clamp(26px, 3vw, 36px)/1.1 'Figtree', system-ui, sans-serif !important; letter-spacing: -.03em !important; color: var(--cx-ink) !important; }
.text-link { color: var(--cx-accent) !important; font-weight: 500; font-size: 14px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.dark-hero { background: var(--cx-bg) !important; }
.hero { padding-top: 64px !important; padding-bottom: 72px !important; align-items: start !important; }
.hero .eyebrow { font: 500 11px/1.6 var(--mono) !important; letter-spacing: .14em !important; color: var(--cx-ink-2) !important; max-width: none !important; }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px) !important; line-height: 1.02 !important; margin-top: 18px !important; color: var(--cx-ink) !important; letter-spacing: -.04em !important; }
.hero h1 em { font-style: normal; background: var(--cx-gradient); -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent !important; }
.hero-copy { max-width: 540px !important; }
.hero-copy > p { font-size: 17px !important; line-height: 1.6; max-width: 480px !important; margin-top: 18px !important; color: var(--cx-ink-2) !important; }
.hero-copy .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }

/* The registration counter, beside the download button. */
.signup-count { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 14px !important; font-size: 13px !important; color: var(--cx-ink-3) !important; }
.signup-count[hidden] { display: none; }
.signup-count::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); align-self: center; }
.signup-count .odo { font: 600 14px/1 var(--mono); color: var(--cx-ink); display: inline-flex; }
.odo .cell { display: inline-block; width: 1ch; height: 1em; overflow: hidden; }
.odo .reel { display: flex; flex-direction: column; transition: transform .6s cubic-bezier(.2, .75, .15, 1); }
.odo.instant .reel { transition: none; }
.odo .reel > span { display: block; height: 1em; line-height: 1; text-align: center; }

/* The starter prompt, set like a terminal line you hand to your agent. */
.starter { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--cx-border); }
.starter-head { display: grid; gap: 2px; margin-bottom: 10px; }
.starter-head b { font-size: 14px; font-weight: 600; color: var(--cx-ink); }
.starter-head span { font-size: 13px; color: var(--cx-ink-3); }
.starter-box, .cmd {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--cx-surface); border-radius: var(--cx-radius-sm);
  box-shadow: 0 0 0 1px var(--cx-border-strong);
  padding: 12px 10px 12px 14px;
}
.starter-box code, .cmd code { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.6; color: var(--cx-ink); word-break: break-word; }
.starter-box code::before { content: '›'; color: var(--cx-accent); margin-right: 8px; font-weight: 600; }
.cmd code::before { content: '$'; color: var(--cx-muted); margin-right: 8px; }
.starter-note { display: block; margin-top: 10px; font-size: 12px; color: var(--cx-muted); }
.copy {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 9px; border: 0; border-radius: 7px;
  background: var(--cx-surface); color: var(--cx-ink-2);
  box-shadow: 0 0 0 1px var(--cx-border); font: 500 12px/1 'Figtree', sans-serif;
  transition: background-color .15s, color .15s;
}
.copy:hover { background: #f3f4f2; color: var(--cx-ink); }
.copy svg { width: 14px; height: 14px; }
.copy.done { color: #15803D; }

/* Demo cards: 1px lines, quiet depth. */
.hero-product .conversation-shell { border: 1px solid var(--cx-border) !important; box-shadow: 0 12px 40px rgba(16, 35, 47, .06) !important; border-radius: var(--cx-radius-lg) !important; }
.hero-product .channel-tabs { background: var(--cx-surface) !important; border: 1px solid var(--cx-border) !important; }
.hero-product .channel-tabs button { color: var(--cx-ink-3) !important; }
.hero-product .channel-tabs button[aria-selected=true] { color: var(--cx-ink) !important; }

/* Channels not shipped yet carry a quiet tag. */
.soon-tag { font: 500 8.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cx-muted); margin-top: -4px; display: block; text-align: center; font-style: normal; }
.network-channels .network-item:has(.soon-tag) .icon { opacity: .55; }

/* Get started */
.get-started, .sides { padding-block: 96px; }
.gs-head { max-width: 640px; }
.gs-head h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
.gs-head p { margin-top: 16px; font-size: 16px; line-height: 1.6; max-width: 520px; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--cx-border); }
.steps li { padding: 28px 28px 8px 0; display: grid; align-content: start; gap: 10px; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--cx-border); }
.step-n { font: 500 12px/1 var(--mono); color: var(--cx-accent); }
.steps h3 { font-size: 20px; }
.steps p { font-size: 15px; line-height: 1.6; }
.steps p code { font-size: 13px; background: var(--cx-accent-soft); padding: 1px 5px; border-radius: 5px; color: var(--cx-ink); }
.steps .cmd { margin-top: 4px; }
.steps .cmd .copy { padding: 0 7px; }

/* Two co-founders */
.sides-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sides-grid article { background: var(--cx-surface); border-radius: var(--cx-radius); box-shadow: 0 0 0 1px var(--cx-border); padding: 28px 30px 30px; }
.side-label { font: 500 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cx-accent); }
.sides-grid h3 { margin-top: 10px; font-size: 24px; }
.sides-grid ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; }
.sides-grid li { padding: 14px 0; border-top: 1px solid var(--cx-border); font-size: 15px; line-height: 1.6; color: var(--cx-ink-3); }
.sides-grid li b { color: var(--cx-ink); font-weight: 600; }
.sides-grid code { font-size: 13px; }

/* Sections the gateway page already had: calmer surfaces. */
.diy-card, .gateway-win, .analytics-shell, .closing-card { border-radius: var(--cx-radius-lg) !important; }
.faq details { border-color: var(--cx-border) !important; }
.faq summary { font-weight: 500; color: var(--cx-ink); }
.faq details p a { color: var(--cx-accent); }

/* Closing card: neutral, one row of actions. */
.closing-card { background: var(--cx-surface) !important; box-shadow: 0 0 0 1px var(--cx-border) !important; border: 0 !important; }
.closing-card h2 { color: var(--cx-ink) !important; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.footer { border-top: 1px solid var(--cx-border); }
.footer div { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer a:hover { color: var(--cx-ink); }

@media (max-width: 900px) {
  .header nav { display: none !important; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--cx-border); }
  .sides-grid { grid-template-columns: 1fr; }
  .get-started, .sides { padding-block: 64px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px !important; }
  .header .button.small { height: 32px; font-size: 12.5px !important; }
  .hero { padding-top: 36px !important; }
  .hero h1 { font-size: 40px !important; }
  .hero-copy .actions .button { flex: 1 1 auto; }
  .sides-grid article { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .odo .reel { transition: none; }
}

/* The category phrase is part of the H1, set as its kicker. */
.hero h1 .eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; margin: 0 0 18px; }
.hero h1 .h1-main { display: block; }
.hero h1 { margin-top: 0 !important; }
.faq details p a { text-decoration: underline; text-underline-offset: 3px; }
