/*
 * AgentticCRM public-site design layer
 *
 * Direction: the supplied Cal.com-derived system. The page stays white and
 * near-monochrome, primary actions stay black, feature claims live on soft
 * grey cards, and the product itself supplies the visual detail. Inter at
 * weight 600 is the documented public substitute for unavailable Cal Sans.
 */

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-sunken: #f8f9fa;
  --surface-muted: #f5f5f5;
  --surface-strong: #e5e7eb;
  --line-faint: #f3f4f6;
  --line-soft: #e5e7eb;
  --line-strong: #d1d5db;
  --line: #e5e7eb;

  --ink: #111111;
  --text: #374151;
  --muted: #6b7280;
  --quiet: #6b7280;
  --solid: #111111;
  --solid-ink: #ffffff;

  --purple: #111111;
  --purple-soft: #f5f5f5;
  --purple-ink: #ffffff;
  --pink: #ec4899;
  --link-blue: #111111;
  --focus-ring: #2563eb;
  --accent-wash: #eff6ff;
  --accent-edge: #dbeafe;
  --accent-edge-strong: #93c5fd;
  --select-bg: #dbeafe;

  --grad-from: #111111;
  --grad-to: #111111;
  --grad-text-from: #111111;
  --grad-text-to: #111111;
  --grad-text-from-blue: #111111;
  --grad-text-to-blue: #111111;
  --cta-from: #111111;
  --cta-to: #111111;
  --cta-ink: #ffffff;

  --band: #101010;
  --band-ink: #ffffff;
  --band-muted: #a1a1aa;
  --band-border: #3f3f46;
  --header-bg: rgb(255 255 255 / 96%);
  --nav-bg: #ffffff;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-soft: 0 1px 2px rgb(0 0 0 / 5%);
  --shadow-raised: 0 4px 12px rgb(0 0 0 / 8%);
}

html {
  scroll-padding-top: 80px;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a,
button,
input,
select,
textarea {
  touch-action: manipulation;
}

/* Motion is not part of the supplied system. Content therefore arrives in
   its final state instead of using a template-like scroll reveal. */
.will-reveal,
.will-reveal.is-revealed {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---------- typography ---------- */

.hero h1,
.demo-intro h1,
.section-title,
.split-title,
.faq-title,
.cta-title,
.legal-title,
.post-title,
.success-panel h2 {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

.hero h1,
.demo-intro h1 {
  letter-spacing: -0.04em;
}

.section-title,
.split-title,
.faq-title,
.cta-title,
.legal-title,
.post-title {
  letter-spacing: -0.03em;
}

.seg-title,
.timeline-title,
.cap-advantage,
.value-title,
.post-card__title,
.sibling-name,
.plan-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.eyebrow,
.eyebrow-blue {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.text-link,
.hero-links a,
.seg-more a,
.post-prose a,
.legal-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover,
.hero-links a:hover,
.seg-more a:hover,
.post-prose a:hover,
.legal-prose a:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

/* ---------- navigation ---------- */

.site-header {
  border-bottom: 1px solid var(--line-soft);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 64px;
  max-width: 1200px;
  gap: 20px;
  padding: 10px 24px;
}

.brand img {
  height: 27px;
}

.primary-nav {
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
}

.primary-nav a,
.nav-trigger,
.sign-in {
  color: var(--ink);
}

.nav-link,
.nav-trigger,
.sign-in {
  border-radius: var(--radius-sm);
}

.nav-link.is-active {
  font-weight: 600;
}

.primary-nav a:hover,
.nav-trigger:hover,
.sign-in:hover {
  color: var(--ink);
}

.language-toggle,
.switch-group {
  min-height: 44px;
  gap: 2px;
  padding: 4px;
  border: 0;
  border-radius: 9999px;
  background: var(--surface-sunken);
}

.language-toggle span,
.switch-group button {
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

[data-lang="es"] .language-toggle .es-active,
[data-lang="en"] .language-toggle .en-active,
.switch-group button.is-active {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

.sign-in {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.nav-cta,
.submit-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--solid);
  border-radius: var(--radius-md);
  background: var(--solid);
  color: var(--solid-ink);
  font-size: 14px;
  font-weight: 600;
  transition: background 150ms ease, border-color 150ms ease;
}

.nav-cta:hover,
.submit-button:hover:not(:disabled) {
  border-color: #242424;
  background: #242424;
  color: var(--solid-ink);
}

.menu-toggle {
  border-color: var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.mega-menu {
  padding: 8px;
  border-color: var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.mega-link {
  min-height: 56px;
  border-radius: var(--radius-md);
}

.mega-link:hover {
  background: var(--surface-sunken);
}

.mega-icon {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
}

/* ---------- controls ---------- */

.btn-primary,
.btn-secondary,
.btn-gradient,
.btn-ghost,
.secondary-button,
.plan-cta,
.help-band-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease,
    box-shadow 150ms ease;
}

.btn-primary,
.btn-gradient,
.plan-cta {
  border: 1px solid var(--solid);
  background: var(--solid);
  color: var(--solid-ink);
}

.btn-primary:hover,
.btn-gradient:hover,
.plan-cta:hover {
  border-color: #242424;
  background: #242424;
  color: var(--solid-ink);
  opacity: 1;
}

.btn-secondary,
.btn-ghost,
.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.btn-secondary:hover,
.btn-ghost:hover,
.secondary-button:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

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

.hero {
  max-width: 1200px;
  padding: 96px 24px 80px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
  align-items: start;
  column-gap: 80px;
  padding-top: 80px;
  padding-bottom: 64px;
  text-align: left;
}

.home-hero .hero-pill {
  grid-column: 1 / -1;
  margin-bottom: 32px;
}

.hero-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 0;
  border-radius: 9999px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.hero-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
}

.home-hero h1 {
  grid-column: 1;
  grid-row: 2;
  max-width: 720px;
  margin: 0;
  font-size: clamp(56px, 5.6vw, 72px);
  line-height: 1.02;
}

.home-hero .hero-lede {
  grid-column: 2;
  grid-row: 2;
  max-width: 420px;
  margin: 4px 0 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

.home-hero .hero-actions {
  grid-column: 1;
  grid-row: 3;
  justify-content: flex-start;
  margin-top: 32px;
}

.home-hero .hero-note {
  grid-column: 2;
  grid-row: 3;
  max-width: 420px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.home-hero .flow-chips {
  grid-column: 1 / -1;
  grid-row: 4;
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 48px 0 0;
  overflow: hidden;
  padding: 1px;
  border-radius: var(--radius-lg);
  background: var(--line-soft);
  counter-reset: home-flow;
}

.home-hero .chip-arrow {
  display: none;
}

.home-hero .chip {
  min-height: 72px;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  counter-increment: home-flow;
}

.home-hero .chip::before {
  content: "0" counter(home-flow);
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.home-hero .chip i {
  display: none;
}

.home-product-stage {
  padding: 64px 24px 96px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-muted);
}

.home-product-browser {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.home-product-browser .browser-bar {
  min-height: 60px;
  padding: 8px 12px 8px 20px;
}

.home-product-browser .browser-url {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-motion-toggle {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.demo-motion-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.demo-motion-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.demo-motion-toggle > .is-play,
.demo-motion-toggle.is-paused > .is-pause {
  display: none;
}

.demo-motion-toggle.is-paused > .is-play {
  display: block;
}

.demo-motion-toggle[hidden] {
  display: none;
}

.hero:not(.home-hero) {
  text-align: center;
}

.hero:not(.home-hero) h1 {
  max-width: 900px;
  margin: 24px auto 0;
  font-size: clamp(48px, 5.5vw, 64px);
  line-height: 1.05;
}

.hero:not(.home-hero) .hero-lede {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.hero:not(.home-hero) .hero-actions,
.hero:not(.home-hero) .hero-links {
  justify-content: center;
}

/* ---------- product evidence ---------- */

.browser {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.browser-bar {
  min-height: 40px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-sunken);
}

.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser-url {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
}

/* ---------- section rhythm ---------- */

.section {
  max-width: 1200px;
  padding: 96px 24px;
}

.section-alt {
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
  background: var(--surface-sunken);
}

.section-head {
  max-width: 760px;
}

.section-head.is-center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(40px, 4vw, 48px);
  line-height: 1.1;
}

.split-title {
  font-size: clamp(32px, 3.2vw, 36px);
  line-height: 1.15;
}

.section-lede,
.split-lede,
.seg-body {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* Claims live on soft grey. Product fragments stay white and carry a hairline. */
.flow-card,
.benefit-card,
.bento-card,
.audience-card,
.usecase-card,
.value-card,
.sibling-card,
.post-card,
.post-related__card,
.result-card {
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  box-shadow: none;
}

.flow-card,
.benefit-card,
.bento-card,
.audience-card,
.usecase-card,
.value-card {
  padding: 32px;
}

.flow-grid,
.benefit-grid,
.benefit-bento,
.audience-grid,
.usecase-grid,
.values-grid,
.siblings-row,
.post-grid,
.post-related__grid {
  gap: 24px;
}

.flow-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.benefit-grid,
.benefit-bento,
.usecase-grid,
.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-card:hover,
.bento-card:hover,
.usecase-card:hover,
.value-card:hover,
.sibling-card:hover {
  border-color: transparent;
  background: var(--surface-muted);
  box-shadow: none;
  transform: none;
}

a.post-card,
a.post-related__card {
  transition: box-shadow 150ms ease;
}

a.post-card:hover,
a.post-related__card:hover {
  background: var(--surface-muted);
  box-shadow: var(--shadow-raised);
  transform: none;
}

.flow-card h3,
.benefit-card h3,
.bento-card h3,
.audience-card h3,
.usecase-title,
.value-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.flow-card p,
.benefit-card p,
.bento-card p,
.audience-card p,
.usecase-body,
.value-body {
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

.benefit-bento {
  border: 0;
  background: transparent;
}

.bento-card,
.bento-card.is-lead,
.bento-card.is-wide {
  display: block;
  grid-column: auto;
  padding: 32px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  color: var(--ink);
}

.bento-card.is-lead:hover,
.bento-card.is-wide:hover {
  background: var(--surface-muted);
}

.bento-card.is-lead h3,
.bento-card.is-wide h3 {
  max-width: none;
  font-size: 18px;
}

.bento-card.is-lead p,
.bento-card.is-wide p {
  max-width: none;
  margin-top: 12px;
  color: var(--text);
  font-size: 16px;
}

.benefit-bar {
  width: 32px;
  height: 3px;
  border-radius: 9999px;
  background: var(--bar, var(--ink));
}

/* The before/after comparison becomes one calm soft surface with white rows. */
.shift {
  gap: 12px;
  padding: 24px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
}

.shift-head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.shift-head-now {
  color: var(--ink);
}

.shift-was,
.shift-now {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: none;
}

.shift-was {
  border-style: solid;
}

.shift-arrow {
  border-color: var(--line-soft);
  background: var(--surface);
  box-shadow: none;
  color: var(--ink);
}

.shift-dot {
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--solid-ink);
}

.tag,
.pill,
.seg-chip,
.role-pill,
.modmap-tag,
.post-card__cat,
.boundary-tag,
.stack-chip,
.plan-badge,
.save-badge {
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.tag,
.pill,
.seg-chip,
.role-pill,
.post-card__cat,
.boundary-tag,
.stack-chip {
  background: var(--surface-muted);
  color: var(--ink);
}

/* The journey is structural; color belongs in the embedded product UI. */
.journey-dot,
.timeline-num,
.approval-num,
.seg-check,
.managed-check {
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--solid-ink);
  font-family: var(--font-sans);
  font-weight: 600;
}

.journey-line,
.timeline-line,
.approval-line {
  background: var(--line-strong);
}

.journey-step h3,
.timeline-title {
  font-weight: 600;
}

/* Audience rows stay easy to scan without becoming another bento grid. */
.audience-index {
  gap: 64px;
}

.audience-row {
  border-top-color: var(--line-soft);
}

.audience-num {
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
}

.audience-row h3 {
  font-size: 18px;
  font-weight: 600;
}

.split {
  gap: 64px;
}

.portal-mock,
.step-card,
.board-card,
.boundary-card,
.seg-outcomes,
.who-callout,
.managed-band,
.cap-detail,
.versus-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
}

.portal-mock,
.cap-detail,
.versus-card {
  box-shadow: var(--shadow-soft);
}

.seg-outcomes,
.who-callout,
.managed-band {
  background: var(--surface-muted);
}

.seg-outcomes li + li,
.managed-item + .managed-item {
  border-color: var(--line-soft);
}

.usecase-icon,
.value-icon,
.help-cat-icon,
.area-icon,
.record-avatar,
.cap-num,
.pd-ava {
  border-radius: var(--radius-lg);
}

.usecase-icon,
.value-icon,
.help-cat-icon,
.area-icon {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--ink);
}

.who-callout::before {
  border-radius: 9999px;
  background: var(--ink);
}

.stat-number,
.modmap-count-number {
  background: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ---------- forms and FAQ ---------- */

.demo-layout {
  max-width: 1200px;
  gap: 64px;
  padding: 96px 24px;
}

.demo-intro h1 {
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.05;
}

.demo-intro .lede {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.form-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.field label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea,
.help-search input {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  box-shadow: none;
}

.field textarea {
  min-height: 132px;
}

.step-number,
.success-icon,
.secondary-button {
  border-radius: var(--radius-md);
}

.step-number,
.success-icon {
  background: var(--ink);
  color: var(--solid-ink);
}

.faq-wrap {
  max-width: 960px;
  padding: 96px 24px;
}

.faq-title {
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.1;
  text-align: center;
}

.faq-list {
  gap: 12px;
  margin-top: 48px;
}

.faq-list details {
  padding: 20px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.faq-list summary {
  min-height: 32px;
  align-items: center;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.faq-list summary::after {
  color: var(--ink);
}

.faq-list p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- pricing ---------- */

.pricing-hero {
  padding-bottom: 48px;
}

.billing-switch {
  margin-top: 32px;
}

.switch-group button {
  min-height: 44px;
  padding: 0 14px;
}

.save-badge,
.plan-badge {
  background: var(--surface-strong);
  color: var(--ink);
}

.switch-group button.is-active .save-badge {
  background: var(--surface-muted);
  color: var(--ink);
}

.plan-section {
  padding-top: 24px;
}

.plan-grid {
  gap: 24px;
  border: 0;
  background: transparent;
}

.plan-card {
  max-width: none;
  padding: 32px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.plan-card.is-featured {
  border-color: var(--band);
  background: var(--band);
  box-shadow: none;
  color: var(--band-ink);
}

.plan-name,
.plan-amount {
  font-weight: 600;
}

.plan-card.is-featured .plan-name,
.plan-card.is-featured .plan-amount,
.plan-card.is-featured .plan-unit,
.plan-card.is-featured .plan-feature,
.plan-card.is-featured .plan-note,
.plan-card.is-featured .plan-lead-label,
.plan-card.is-featured .plan-lead-value {
  color: var(--band-ink);
}

.plan-card.is-featured .plan-desc,
.plan-card.is-featured .plan-feature:not(.is-lead),
.plan-card.is-featured .plan-note {
  color: var(--band-muted);
}

.plan-lead {
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.plan-card.is-featured .plan-lead {
  border: 1px solid #27272a;
  background: #1a1a1a;
}

.plan-card.is-featured .plan-cta {
  border-color: var(--surface);
  background: var(--surface);
  color: var(--ink);
}

.plan-card.is-featured .plan-cta:hover {
  border-color: var(--surface-strong);
  background: var(--surface-strong);
  color: var(--ink);
}

.matrix-scroll,
.screen-shot,
.shot-browser {
  border-radius: var(--radius-xl);
}

.matrix-plan.is-featured,
.matrix-flag {
  background: var(--band);
  color: var(--band-ink);
}

.help-band {
  padding: 48px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
}

/* ---------- route components ---------- */

.solution-seg + .solution-seg {
  border-top-color: var(--line-soft);
}

.seg-kicker,
.who-callout-kicker,
.post-kicker,
.legal-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.seg-title {
  font-size: 36px;
  line-height: 1.15;
}

.seg-chip {
  padding: 4px 12px;
}

.usecase-card,
.value-card,
.sibling-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
}

.sibling-card.is-current,
.post-card.is-featured {
  border: 1px solid var(--line-soft);
  background: var(--surface-muted);
}

.timeline-num {
  width: 44px;
  height: 44px;
}

.timeline-step.tone-violet,
.timeline-step.tone-purple,
.timeline-step.tone-pink,
.timeline-step.tone-blue {
  --tl-line: var(--line-strong);
}

.step-card,
.board-card,
.result-card {
  box-shadow: none;
}

.cap-list {
  gap: 4px;
  padding: 6px;
  border-radius: var(--radius-xl);
  background: var(--surface-sunken);
}

.cap-tab {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted);
}

.cap-tab:hover {
  background: transparent;
  color: var(--ink);
}

.cap-tab.is-active {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

.cap-num {
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--ink);
}

.cap-detail,
.versus-card {
  border-color: var(--line-soft);
}

.cap-hint i {
  background: var(--line-strong);
}

.risk-row,
.area-item,
.approval-step {
  border-color: var(--line-soft);
}

.boundary-rule {
  background: var(--line-strong);
}

.help-search {
  max-width: 680px;
}

.post-card__title {
  font-size: 18px;
  line-height: 1.4;
}

.post-title,
.legal-title {
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.08;
}

.post-prose,
.legal-prose {
  color: var(--text);
}

.post-prose p,
.post-prose li,
.legal-prose p,
.legal-prose li {
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- pre-footer action ---------- */

.cta-band {
  padding: 96px 24px;
  background: var(--surface);
}

.cta-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  text-align: center;
}

.cta-title {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
}

.cta-lede {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.cta-actions {
  justify-content: center;
  margin-top: 32px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 0;
  background: var(--band);
  color: var(--band-muted);
}

.footer-wrap {
  max-width: 1200px;
  padding: 64px 24px 32px;
}

.footer-grid {
  gap: 48px;
}

.footer-logo {
  height: 26px;
}

.footer-tagline,
.footer-col a,
.footer-bottom span,
.footer-legal a {
  color: var(--band-muted);
}

.footer-head {
  color: var(--band-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.footer-col a {
  font-size: 14px;
}

.footer-col a:hover,
.footer-legal a:hover {
  color: var(--band-ink);
}

.footer-bottom {
  border-top-color: #27272a;
}

/* Small product-state accents; never primary marketing actions. */
.tone-violet {
  --chip: #8b5cf6;
  --dot: #8b5cf6;
  --rail: #ede9fe;
  --bar: #8b5cf6;
  --step: #5b21b6;
  --pill-ink: #5b21b6;
  --pill-bg: #ede9fe;
  --dot-text: #5b21b6;
}

.tone-purple {
  --chip: #ec4899;
  --dot: #ec4899;
  --rail: #fce7f3;
  --bar: #ec4899;
  --step: #9d174d;
  --pill-ink: #9d174d;
  --pill-bg: #fce7f3;
  --dot-text: #9d174d;
}

.tone-pink {
  --chip: #fb923c;
  --dot: #fb923c;
  --rail: #ffedd5;
  --bar: #fb923c;
  --step: #9a3412;
  --pill-ink: #9a3412;
  --pill-bg: #ffedd5;
  --dot-text: #9a3412;
}

.tone-blue {
  --chip: #3b82f6;
  --dot: #3b82f6;
  --rail: #dbeafe;
  --bar: #3b82f6;
  --step: #1d4ed8;
  --pill-ink: #1e40af;
  --pill-bg: #dbeafe;
  --dot-text: #1d4ed8;
}

.tone-sky {
  --chip: #34d399;
  --dot: #34d399;
  --rail: #d1fae5;
  --bar: #34d399;
  --step: #047857;
  --pill-ink: #065f46;
  --pill-bg: #d1fae5;
  --dot-text: #047857;
}

.tone-span {
  --bar: #111111;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    column-gap: 56px;
  }
}

@media (max-width: 1024px) {
  .home-hero {
    display: block;
    padding-top: 72px;
  }

  .home-hero .hero-pill {
    margin-bottom: 24px;
  }

  .home-hero h1,
  .home-hero .hero-lede,
  .home-hero .hero-note {
    max-width: 760px;
  }

  .home-hero .hero-lede {
    margin-top: 28px;
  }

  .home-hero .hero-actions {
    margin-top: 32px;
  }

  .home-hero .hero-note {
    margin-top: 20px;
  }

  .home-hero .flow-chips {
    margin-top: 48px;
  }

  .flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefit-grid,
  .benefit-bento,
  .audience-grid,
  .usecase-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .split-media-wide,
  .solution-seg,
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-title {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .sign-in {
    display: none;
  }

  .primary-nav {
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--surface);
    box-shadow: var(--shadow-raised);
  }

  .primary-nav > a,
  .nav-trigger {
    min-height: 44px;
    padding: 10px 4px;
  }

  .mega-menu {
    padding: 0 0 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mega-link {
    min-height: 56px;
  }

  .demo-layout {
    gap: 48px;
    padding-top: 72px;
  }
}

@media (max-width: 767px) {
  .nav-wrap,
  .hero,
  .section,
  .faq-wrap,
  .demo-layout,
  .footer-wrap {
    padding-right: 20px;
    padding-left: 20px;
  }

  .home-hero,
  .hero:not(.home-hero) {
    padding-top: 56px;
    padding-bottom: 64px;
    text-align: left;
  }

  .home-hero h1,
  .hero:not(.home-hero) h1,
  .demo-intro h1 {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    font-size: clamp(32px, 9vw, 40px);
    letter-spacing: -0.035em;
    line-height: 1.08;
  }

  .hero:not(.home-hero) .hero-lede {
    margin-right: 0;
    margin-left: 0;
  }

  .hero:not(.home-hero) .hero-actions,
  .hero:not(.home-hero) .hero-links {
    justify-content: flex-start;
    text-align: left;
  }

  .home-hero .hero-actions,
  .hero-actions,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero .flow-chips {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: var(--radius-lg);
  }

  .home-hero .chip:last-child {
    grid-column: 1 / -1;
  }

  .home-product-stage {
    padding: 32px 12px 64px;
  }

  .home-product-browser .browser-bar {
    padding: 8px 10px;
  }

  .home-product-browser .browser-url {
    max-width: none;
    margin-left: 8px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .demo-motion-toggle {
    position: relative;
    width: 44px;
    padding: 0;
  }

  .demo-motion-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .section,
  .faq-wrap,
  .demo-layout {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-title,
  .faq-title {
    font-size: 32px;
    line-height: 1.15;
  }

  .split-title,
  .seg-title {
    font-size: 28px;
  }

  .flow-grid,
  .benefit-grid,
  .benefit-bento,
  .audience-grid,
  .usecase-grid,
  .values-grid,
  .siblings-row,
  .post-grid,
  .post-related__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-card,
  .benefit-card,
  .bento-card,
  .bento-card.is-lead,
  .bento-card.is-wide,
  .audience-card,
  .usecase-card,
  .value-card,
  .plan-card {
    padding: 24px;
  }

  .shift {
    padding: 16px;
  }

  .audience-index {
    gap: 40px;
  }

  .faq-title {
    text-align: left;
  }

  .faq-list {
    margin-top: 32px;
  }

  .faq-list details {
    padding: 18px 20px;
  }

  .help-band,
  .cta-wrap {
    padding: 32px 24px;
  }

  .cta-band {
    padding: 64px 16px;
  }

  .cta-title,
  .cta-lede {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-wrap {
    padding-top: 48px;
  }
}

@media (max-width: 420px) {
  .nav-wrap {
    gap: 6px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand img {
    height: 21px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-cta {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 13px;
  }

  .language-toggle {
    display: none;
  }

  .primary-nav .language-toggle-mobile {
    display: flex;
    width: fit-content;
    align-self: flex-start;
    margin-top: 12px;
  }

  .home-hero .chip {
    flex: 1 1 calc(50% - 2px);
  }

  .browser-url {
    max-width: calc(100% - 64px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cap-explorer .mock-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .cap-explorer .mock-btn.is-push {
    margin-left: 0;
  }
}

/* Final Cal cleanup: legacy route styles use more specific selectors than the
   shared art-direction layer. Keep marketing structure monochrome while
   reserving restrained color for product state inside the demonstrations. */
.versus-divider span {
  border-radius: var(--radius-md);
  background: var(--ink);
  box-shadow: none;
  font-weight: 600;
}

.versus-card.is-scattered,
.versus-card.is-unified {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.versus-card.is-scattered .stack-chip {
  border: 1px solid var(--line-soft);
  background: var(--surface-muted);
  color: var(--ink);
  transform: none;
}

.versus-card.is-scattered .stack-chip:nth-child(odd),
.versus-card.is-scattered .stack-chip:nth-child(even),
.versus-card.is-scattered .stack-chip:nth-child(3n) {
  transform: none;
}

.stack-chip.is-unified {
  border-color: var(--line-soft);
}

.stack-chip.is-unified::before {
  background: var(--ink);
}

.cap-tab.is-active .cap-num {
  background: var(--ink);
  color: var(--solid-ink);
}

.cap-hint i {
  background: var(--line-strong);
}

.seg-title,
.usecase-title,
.seg-outcomes h3,
.area-item h3,
.plan-name,
.help-band h3,
.risk-q,
.risk-num,
.approval-body h3,
.managed-band h2,
.help-cat-title,
.cap-advantage,
.timeline-title,
.result-num,
.step-number {
  font-weight: 600;
}

.result-num {
  background: none;
  color: var(--ink);
}

.approval-num.is-final {
  background: var(--ink);
  color: var(--solid-ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .will-reveal {
    opacity: 1;
    transform: none;
  }
}
