/* ============================================================
   Octomatica — component styles
   ============================================================ */

/* ---------- Navbar ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; transition: all .35s var(--ease); }

/* ---------- Logomark + wordmark ---------- */
.octomark { display: inline-grid; place-items: center; border-radius: 30%; flex-shrink: 0;
  background: linear-gradient(150deg, var(--accent-bright), var(--accent-deep));
  box-shadow: 0 4px 12px -2px var(--glow), inset 0 1px 0 rgba(255,255,255,.28); }
.wordmark-text { font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; color: var(--ink); line-height: 1; }
.wordmark-accent { color: var(--accent); }
:root[data-theme="dark"] .wordmark-accent { color: var(--accent-bright); }

/* ---------- Channel chips ---------- */
.channels { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.channels.center { justify-content: center; }
.channels-label { font-size: .82rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.channels-row { display: flex; gap: 8px; flex-wrap: wrap; }
.channel-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600;
  padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); transition: .2s; }
.channel-chip.now { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 32%, transparent); background: var(--accent-softer); }
.channel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.channel-soon { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3); background: var(--paper-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 99px; }
.nav-scrolled { height: 60px; background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-links { display: flex; gap: 4px; }
.nav-link { padding: 9px 15px; border-radius: var(--r-pill); font-size: .94rem; font-weight: 500; color: var(--ink-2); transition: all .2s; }
.nav-link:hover { color: var(--ink); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { padding: 11px 20px; font-size: .94rem; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-mobile { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { position: fixed; top: 60px; left: 0; right: 0; display: flex; flex-direction: column; gap: 4px;
    padding: 16px 20px 22px; background: var(--paper); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s var(--ease); z-index: 99; }
  .nav-mobile.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-mobile a:not(.btn) { padding: 12px 8px; font-weight: 600; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero shared ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + 54px); padding-bottom: 60px; overflow: hidden; }
.hero-orbs { position: absolute; inset: 0; z-index: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 600;
  padding: 8px 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-sm); color: var(--ink-2); }
.hero-accent { color: var(--accent); }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-cta-row.center { justify-content: center; }
.hero-micro { font-size: .85rem; margin-top: 18px; }
.hero-sec { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--ink-3); margin-top: 4px; }
.hero-sec svg { color: var(--accent); }

/* Hero A */
.hero-a-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-title { margin-top: 22px; }
.hero-sub { margin-top: 24px; max-width: 520px; }
.hero-a-demo { position: relative; }
.hero-float-octo { position: absolute; z-index: 4; filter: drop-shadow(0 12px 24px rgba(16,24,15,.16)); }
.hero-float-octo.o1 { top: -42px; right: -18px; }
.hero-float-octo.o2 { bottom: -34px; left: -34px; }

/* Hero B */
.hero-b { text-align: center; padding-bottom: 50px; }
.hero-b-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-b-stage { position: relative; width: 100%; max-width: 620px; height: 360px; margin: 18px auto 6px; }
.hero-b-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  filter: drop-shadow(0 20px 44px var(--glow)); z-index: 3; }
.hero-b-orbit { position: absolute; transform: translate(-50%,-50%); z-index: 2;
  filter: drop-shadow(0 10px 22px rgba(16,24,15,.14)); }
.hero-b-rings { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-b-rings span { position: absolute; border: 1.5px dashed var(--line-2); border-radius: 50%; }
.hero-b-rings span:nth-child(1){ width: 280px; height: 200px; }
.hero-b-rings span:nth-child(2){ width: 420px; height: 300px; opacity:.7; }
.hero-b-rings span:nth-child(3){ width: 560px; height: 400px; opacity:.4; }
.hero-b-title { margin-top: 10px; max-width: 14ch; }
.hero-b-sub { margin-top: 22px; max-width: 600px; }

/* Hero stats */
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  margin-top: 64px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.hero-stat { background: var(--surface); padding: 26px 24px; }
.hero-stat-val { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -.03em; color: var(--accent-deep); }
:root[data-theme="dark"] .hero-stat-val { color: var(--accent-bright); }
.hero-stat-lbl { font-size: .85rem; color: var(--ink-3); margin-top: 6px; line-height: 1.4; }

@media (max-width: 920px) {
  .hero-a-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-a-demo { max-width: 460px; margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .hero-b-stage { transform: scale(.74); height: 300px; margin: -10px auto -30px; }
}

/* ---------- Telegram thread ---------- */
.tg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden; position: relative; z-index: 2; }
.tg-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-bottom: 1px solid var(--line); }
.tg-head-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); display: grid; place-items: center; flex-shrink: 0; }
.tg-head-meta { display: flex; flex-direction: column; line-height: 1.3; }
.tg-head-meta strong { font-size: .96rem; }
.tg-head-meta span { font-size: .76rem; color: var(--accent-deep); }
:root[data-theme="dark"] .tg-head-meta span { color: var(--accent-bright); }
.tg-replay { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3); transition: .2s; }
.tg-replay:hover { color: var(--accent); border-color: var(--accent); }
.tg-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 360px; max-height: 440px;
  overflow: hidden; background:
    radial-gradient(var(--line) .8px, transparent .8px) 0 0/22px 22px,
    var(--surface-2); }
.tg-row { display: flex; gap: 9px; align-items: flex-end; max-width: 92%; animation: pop .4s var(--ease) both; }
.tg-row.user { margin-left: auto; flex-direction: row-reverse; }
.tg-av { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: .82rem; overflow: hidden; background: var(--accent-soft); }
.tg-bubble { background: var(--surface); border: 1px solid var(--line); padding: 9px 13px; border-radius: 16px;
  font-size: .9rem; line-height: 1.45; box-shadow: var(--sh-sm); border-bottom-left-radius: 5px; color: var(--ink); }
.tg-row.user .tg-bubble { background: var(--accent); color: var(--accent-on); border-color: transparent;
  border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.tg-row.user .tg-cmd { background: var(--accent-deep); }
.tg-name { font-size: .72rem; font-weight: 700; margin-bottom: 3px; }
.tg-name em { font-style: normal; opacity: .65; font-weight: 500; }
.tg-row.user .tg-name { color: rgba(255,255,255,.85) !important; }
.tg-mention { font-weight: 700; opacity: .95; }
.tg-typing { display: flex; gap: 4px; padding: 13px; }
.tg-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: typedots 1.2s infinite; }
.tg-typing span:nth-child(2){ animation-delay: .2s; } .tg-typing span:nth-child(3){ animation-delay: .4s; }
.tg-bot { background: var(--surface); width: 100%; }
.tg-bot-name { font-size: .72rem; font-weight: 700; color: var(--accent-deep); margin-bottom: 6px; }
:root[data-theme="dark"] .tg-bot-name { color: var(--accent-bright); }
.tg-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tg-check li { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--ink-3);
  opacity: .4; transform: translateX(-4px); transition: .4s var(--ease); }
.tg-check li.on { opacity: 1; transform: none; color: var(--ink); }
.tg-tick { width: 17px; height: 17px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.tg-check li.on .tg-tick { background: var(--accent); color: #fff; }
.tg-attach { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; animation: pop .45s var(--ease) both; }
.tg-attach-prev { height: 118px; background: linear-gradient(135deg, var(--accent-deep), var(--accent)); position: relative; }
.bnr { position: absolute; inset: 0; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 4px; color: #fff; }
.bnr-eyebrow { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .2em; opacity: .85; }
.bnr-title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: .95; letter-spacing: -.02em; }
.bnr-cta { align-self: flex-start; margin-top: 4px; font-size: .62rem; font-weight: 700; background: rgba(255,255,255,.92); color: var(--accent-deep); padding: 4px 10px; border-radius: 99px; }
.tg-attach-meta { padding: 8px 12px; display: flex; flex-direction: column; background: var(--surface); }
.tg-attach-meta strong { font-size: .8rem; } .tg-attach-meta span { font-size: .72rem; color: var(--ink-3); }

/* ---------- Trusted ---------- */
.trusted { padding: 30px 0 8px; }
.trusted-label { text-align: center; font-size: .82rem; color: var(--ink-3); margin: 0 0 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee-track { display: flex; gap: 52px; width: max-content; animation: marquee 30s linear infinite; }
.trusted-logo { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; opacity: .85; transition: opacity .2s; }
.trusted-logo:hover { opacity: 1; }
.trusted-logo-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink-2); }

/* ---------- Capabilities ---------- */
.cap-layout { display: grid; grid-template-columns: 360px 1fr; gap: 28px; margin-top: 52px; }
.cap-list { display: flex; flex-direction: column; gap: 8px; }
.cap-tab { display: flex; align-items: center; gap: 13px; text-align: left; padding: 16px 18px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); transition: all .22s var(--ease); }
.cap-tab:hover { border-color: var(--line-2); transform: translateX(2px); }
.cap-tab.on { border-color: var(--hue); background: color-mix(in srgb, var(--hue) 7%, var(--surface)); box-shadow: var(--sh-sm); }
.cap-tab-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--hue) 13%, transparent); color: var(--hue); flex-shrink: 0; transition: .22s; }
.cap-tab.on .cap-tab-ic { background: var(--hue); color: #fff; }
.cap-tab-title { font-weight: 600; font-size: 1rem; flex: 1; }
.cap-tab-chev { color: var(--ink-3); transform: rotate(-90deg); transition: .22s; opacity: 0; }
.cap-tab.on .cap-tab-chev { opacity: 1; color: var(--hue); }
.cap-panel { padding: 36px; position: relative; overflow: hidden; animation: pop .4s var(--ease); }
.cap-panel::before { content: ""; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hue) 18%, transparent), transparent 70%); }
.cap-panel-top { display: flex; align-items: center; gap: 14px; position: relative; }
.cap-panel-ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--hue); color: #fff; flex-shrink: 0; box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--hue) 60%, transparent); }
.cap-panel-title { font-size: 1.6rem; font-weight: 700; }
.cap-bullets { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.cap-bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; color: var(--ink-2); }
.cap-bdot { width: 19px; height: 19px; border-radius: 50%; background: color-mix(in srgb, var(--hue) 16%, transparent); color: var(--hue); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.cap-example { margin-top: 26px; padding: 18px 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); border-left: 3px solid var(--hue); }
.cap-example-metric { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--hue); letter-spacing: -.02em; }
.cap-example-desc { margin: 6px 0 0; font-size: .92rem; color: var(--ink-2); }
.cap-benefit { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; font-weight: 600; font-size: .96rem; color: var(--accent-deep); }
:root[data-theme="dark"] .cap-benefit { color: var(--accent-bright); }
.cap-benefit svg { color: var(--accent); }
@media (max-width: 900px) {
  .cap-layout { grid-template-columns: 1fr; }
  .cap-list { flex-direction: row; overflow-x: auto; padding-bottom: 6px; gap: 8px; }
  .cap-tab { flex-shrink: 0; }
  .cap-tab-title, .cap-tab-chev { display: none; }
  .cap-bullets { grid-template-columns: 1fr; }
  .cap-panel { padding: 26px; }
}

/* ---------- How it works ---------- */
.how-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 54px; }
.how-step { padding: 34px 28px; position: relative; }
.how-n { font-family: var(--font-mono); font-weight: 600; font-size: .9rem; color: var(--accent); letter-spacing: .1em; }
.how-step-title { font-size: 1.3rem; font-weight: 700; margin: 16px 0 10px; }
.how-step-desc { font-size: .96rem; }
.how-connector { position: absolute; right: -32px; top: 50%; transform: translateY(-50%); color: var(--line-2); z-index: 2; }
@media (max-width: 820px) { .how-steps { grid-template-columns: 1fr; } .how-connector { display: none; } }

/* ---------- Self-healing ---------- */
.selfheal { background: var(--paper-2); }
.selfheal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.selfheal-log { padding: 0; overflow: hidden; }
.log-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.log-dots { display: flex; gap: 6px; } .log-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.log-dots i:nth-child(1){ background: #f0714f; } .log-dots i:nth-child(2){ background: #eba033; } .log-dots i:nth-child(3){ background: var(--accent); }
.log-title { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-3); }
.log-body { padding: 12px; font-family: var(--font-mono); }
.log-row { display: flex; gap: 14px; padding: 12px 12px; border-radius: 10px; align-items: center; }
.log-row:hover { background: var(--surface-2); }
.log-t { font-size: .82rem; color: var(--ink-3); width: 48px; flex-shrink: 0; }
.log-line { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink); }
.log-badge { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.b-detect { background: #f0714f; } .b-diag { background: #eba033; } .b-fix { background: var(--c-blue); }
.b-done { background: var(--accent); box-shadow: 0 0 0 4px var(--glow-2); } .b-report { background: var(--c-purple); }
@media (max-width: 820px) { .selfheal-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Stories ---------- */
.stories-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 52px; }
.story { padding: 28px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.story::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--hue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.story:hover::after { transform: scaleX(1); }
.story-metric { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--hue); background: color-mix(in srgb, var(--hue) 10%, transparent); padding: 6px 12px; border-radius: 99px; }
.story-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hue); }
.story-title { font-size: 1.18rem; font-weight: 700; line-height: 1.2; margin: 16px 0 10px; letter-spacing: -.01em; }
.story-desc { font-size: .9rem; line-height: 1.55; flex: 1; }
.story-quote { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; line-height: 1.35; margin: 18px 0; color: var(--ink); letter-spacing: -.01em; }
.story-who { display: flex; align-items: center; gap: 11px; padding-top: 16px; border-top: 1px solid var(--line); }
.story-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex-shrink: 0; }
.story-who-meta { display: flex; flex-direction: column; line-height: 1.3; }
.story-who-meta strong { font-size: .9rem; } .story-who-meta span { font-size: .78rem; color: var(--ink-3); }
@media (max-width: 920px) { .stories-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .stories-grid { grid-template-columns: 1fr; } }

/* ---------- Comparison ---------- */
.compare-table { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; max-width: 920px; margin-left: auto; margin-right: auto; }
.compare-col-head { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; padding: 6px 4px; display: flex; align-items: center; gap: 10px; }
.compare-col-head.them { color: var(--ink-3); }
.compare-col-head.us { color: var(--accent-deep); }
:root[data-theme="dark"] .compare-col-head.us { color: var(--accent-bright); }
.compare-cell { display: flex; gap: 11px; align-items: flex-start; padding: 17px 19px; border-radius: var(--r-md); font-size: .96rem; line-height: 1.4; }
.compare-cell.them { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3); }
.compare-cell.us { background: var(--accent-softer); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); font-weight: 500; }
.compare-x { color: var(--ink-3); font-weight: 700; flex-shrink: 0; }
.compare-c { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.compare-punch { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.7rem); letter-spacing: -.02em; margin: 44px auto 0; max-width: 760px; line-height: 1.3; }
@media (max-width: 620px) { .compare-table { font-size: .9rem; } .compare-cell { padding: 14px; } }

/* ---------- Cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 52px; }
.case { padding: 26px; }
.case-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.case-emoji { font-size: 1.8rem; }
.case-tag { font-size: .72rem; font-weight: 600; color: var(--hue); background: color-mix(in srgb, var(--hue) 12%, transparent); padding: 5px 11px; border-radius: 99px; }
.case-title { font-size: 1.16rem; font-weight: 700; margin-bottom: 9px; }
.case-desc { font-size: .9rem; line-height: 1.5; }
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cases-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 22px; margin-top: 52px; align-items: start; }
.tier { padding: 32px; position: relative; display: flex; flex-direction: column; }
.tier-feat { border-color: var(--accent); box-shadow: var(--sh-glow); }
.tier-badge { position: absolute; top: -12px; left: 32px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 13px; border-radius: 99px; }
.tier-name { font-weight: 600; color: var(--ink-2); font-size: 1.02rem; }
.tier-price { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.03em; margin: 8px 0 0; }
.tier-price span { font-family: var(--font-sans); font-size: .92rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.tier-desc { font-size: .9rem; margin: 12px 0 22px; line-height: 1.5; min-height: 64px; }
.tier-feats { list-style: none; margin: 24px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.tier-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.tier-tick { width: 19px; height: 19px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
:root[data-theme="dark"] .tier-tick { color: var(--accent-bright); }
.tier-examples { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.tier-ex-label { margin-bottom: 18px; }
.tier-ex-list { display: flex; flex-direction: column; gap: 2px; }
.tier-ex { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px dashed var(--line-2); }
.tier-ex-meta { display: flex; flex-direction: column; gap: 3px; line-height: 1.3; }
.tier-ex-meta strong { font-size: .92rem; line-height: 1.25; } .tier-ex-meta span { font-size: .8rem; }
.tier-ex-price { font-family: var(--font-mono); font-weight: 600; font-size: .92rem; color: var(--accent-deep); white-space: nowrap; }
:root[data-theme="dark"] .tier-ex-price { color: var(--accent-bright); }
.tier-ex-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tier-ex-cta p { font-size: .88rem; margin: 0; }
.pricing-note { text-align: center; margin-top: 30px; font-size: .85rem; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } .tier-desc { min-height: 0; } }

/* ---------- Demo ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: center; }
.demo-points { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 30px; }
.demo-point { display: flex; gap: 11px; align-items: center; font-size: 1rem; font-weight: 500; }
.demo-point .cap-bdot { background: var(--accent-soft); color: var(--accent-deep); }
@media (max-width: 920px) { .demo-grid { grid-template-columns: 1fr; gap: 40px; } .demo-phone { max-width: 460px; margin: 0 auto; width: 100%; } }

/* ---------- Final CTA ---------- */
.cta-box { position: relative; text-align: center; background: var(--ink); color: #fff; border-radius: var(--r-xl);
  padding: 56px 40px 52px; overflow: hidden; }
:root[data-theme="dark"] .cta-box { background: var(--surface-2); border: 1px solid var(--line-2); }
.cta-box::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 55%); }
.cta-orbit { position: absolute; inset: 0; pointer-events: none; }
.cta-orbit > * { position: absolute; filter: drop-shadow(0 10px 20px rgba(0,0,0,.3)); }
.cta-orbit > *:nth-child(1){ top: 16%; left: 11%; } .cta-orbit > *:nth-child(2){ bottom: 18%; left: 17%; } .cta-orbit > *:nth-child(3){ top: 22%; right: 13%; }
.cta-hero-octo { margin: 0 auto; position: relative; filter: drop-shadow(0 16px 36px rgba(0,0,0,.4)); }
.cta-title { color: #fff; margin-top: 22px; position: relative; }
.cta-desc { color: rgba(255,255,255,.78); max-width: 480px; margin: 16px auto 30px; position: relative; }
.cta-box .btn-primary { position: relative; }
.cta-micro { color: rgba(255,255,255,.6) !important; margin-top: 18px; position: relative; font-size: .85rem; }
@media (max-width: 620px) { .cta-orbit { display: none; } .cta-box { padding: 56px 24px; } }

/* ---------- Footer ---------- */
.footer { padding: 52px 0 36px; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-tag { font-size: .92rem; margin: 16px 0 4px; max-width: 280px; }
.footer-h { font-size: .92rem; font-weight: 700; margin: 0 0 16px; }
.footer-link { display: block; font-size: .9rem; color: var(--ink-3); padding: 6px 0; transition: color .2s; }
.footer-link:hover { color: var(--accent-deep); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } .footer-bottom { flex-direction: column; gap: 8px; } }

/* center the section head when needed */
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ============================================================
   Subpages (Integrations + Blog)
   ============================================================ */
.subhero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 70px) 0 56px; }
.subhero-tight { padding-bottom: 40px; }
.subhero-inner { position: relative; z-index: 1; max-width: 820px; }
.subhero-title { margin-top: 20px; font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.subhero-sub { margin-top: 22px; max-width: 620px; }

/* Integrations */
.int-group { margin-top: 56px; }
.int-group:first-child { margin-top: 20px; }
.int-group-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.int-group-name { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.int-group-desc { font-size: .96rem; }
.int-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.int-card { padding: 24px; }
.int-card.is-soon { opacity: .82; }
.int-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.int-logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.int-status { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 99px; }
.int-status.now { color: var(--accent-deep); background: var(--accent-softer); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); }
:root[data-theme="dark"] .int-status.now { color: var(--accent-bright); }
.int-status.soon { color: var(--ink-3); background: var(--paper-2); border: 1px solid var(--line); }
.int-name { font-size: 1.16rem; font-weight: 700; margin-bottom: 7px; }
.int-desc { font-size: .9rem; line-height: 1.5; }
.int-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 38px; margin-top: 56px; background: var(--accent-softer); border-color: color-mix(in srgb, var(--accent) 20%, transparent); flex-wrap: wrap; }
@media (max-width: 900px) { .int-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .int-grid { grid-template-columns: 1fr; } .int-cta { padding: 28px; } }

/* Blog */
.post-featured { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; overflow: hidden; margin-bottom: 36px; }
.post-featured-art { position: relative; min-height: 280px; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent)); display: flex; align-items: center; padding: 36px; }
.post-featured-art .bnr { color: #fff; }
.post-featured-octo { position: absolute; bottom: -8px; right: 18px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.3)); }
.post-featured-body { padding: 40px; display: flex; flex-direction: column; }
.post-featured-title { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: 16px 0 14px; }
.post-featured-excerpt { font-size: 1rem; line-height: 1.6; flex: 1; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { display: flex; flex-direction: column; overflow: hidden; }
.post-art { height: 150px; position: relative; display: flex; align-items: flex-end; padding: 16px; }
.post-art-tag { font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: .78rem; }
.post-tag { font-size: .72rem; font-weight: 700; color: var(--hue); }
.post-title { font-size: 1.2rem; font-weight: 700; line-height: 1.22; letter-spacing: -.01em; margin: 12px 0 9px; }
.post-excerpt { font-size: .9rem; line-height: 1.55; flex: 1; }
.post-readmore { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 600; font-size: .9rem; color: var(--accent-deep); transition: gap .2s; }
:root[data-theme="dark"] .post-readmore { color: var(--accent-bright); }
.post:hover .post-readmore, .post-featured:hover .post-readmore { gap: 11px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } .post-featured { grid-template-columns: 1fr; } .post-featured-art { min-height: 200px; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } .post-featured-body { padding: 28px; } }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 920px; margin: 0 auto; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item[open] { border-color: var(--accent-deep); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 600; font-size: 1.02rem; line-height: 1.35; cursor: pointer; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-chev { display: inline-flex; transition: transform .2s ease; color: var(--accent-deep); }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 0 22px 20px; margin: 0; font-size: .96rem; line-height: 1.6; }

/* ---------- Compare section CTA ---------- */
.compare-cta { text-align: center; margin-top: 28px; }

/* ---------- Versus page (versus.html) ---------- */
.vs-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.vs-tabs-label { font-size: .9rem; margin-right: 4px; }
.vs-tab { padding: 9px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2);
  font-family: var(--font-sans); font-weight: 600; font-size: .95rem; color: var(--ink-2); background: var(--surface);
  transition: border-color .2s var(--ease), color .2s, background .2s, transform .15s; }
.vs-tab:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.vs-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
:root[data-theme="dark"] .vs-tab.on { background: var(--accent); border-color: var(--accent); }

.vs-table { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--sh-sm); animation: pop .4s var(--ease); }
.vs-row { display: grid; grid-template-columns: 190px 1fr 1fr; border-top: 1px solid var(--line); }
.vs-row:first-child { border-top: none; }
.vs-feature { padding: 16px 18px; font-weight: 600; font-size: .9rem; color: var(--ink-2);
  background: var(--surface-2); display: flex; align-items: center; }
.vs-cell { padding: 16px 18px; font-size: .92rem; line-height: 1.45; display: flex; gap: 9px; align-items: flex-start; border-left: 1px solid var(--line); }
.vs-cell.octo { background: var(--accent-softer); color: var(--ink); }
.vs-cell.them { color: var(--ink-3); }
.vs-head { background: var(--surface); }
.vs-head .vs-feature { background: var(--surface); }
.vs-head .vs-cell { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; align-items: center; gap: 8px; }
.vs-head .vs-cell.octo { color: var(--accent-deep); background: var(--accent-soft); }
:root[data-theme="dark"] .vs-head .vs-cell.octo { color: var(--accent-bright); }
.vs-head .vs-cell.them { color: var(--ink); }
.vs-head .vs-cell.them em { font-style: normal; font-weight: 500; font-size: .82rem; }
.vs-c { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }

.vs-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.vs-choose-card { padding: 26px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.vs-choose-card.us { background: var(--accent-softer); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.vs-choose-card.them { background: var(--surface-2); }
.vs-choose-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.vs-choose-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.vs-choose-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.4; color: var(--ink-2); }
.vs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex-shrink: 0; margin-top: 7px; }

.vs-narrative { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; margin-bottom: 40px; }
.vs-narr-item { padding: 28px 26px; }
.vs-narr-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; margin-bottom: 14px; }
:root[data-theme="dark"] .vs-narr-ic { color: var(--accent-bright); }
.vs-narr-h { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.vs-narr-p { font-size: .95rem; line-height: 1.5; }

@media (max-width: 820px) {
  .vs-narrative { grid-template-columns: 1fr; }
  .vs-choose { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .vs-row { grid-template-columns: 1fr; }
  .vs-cell { border-left: none; border-top: 1px solid var(--line); }
  .vs-feature { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
  .vs-head { display: none; }
}

.compare-cta .btn { white-space: normal; max-width: 92vw; text-align: center; }

/* ---------- AI stack (models) ---------- */
.aitools-models { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.aitools-model { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600;
  font-size: 1.02rem; padding: 12px 22px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); box-shadow: var(--sh-sm); }
