/* Yourcall design system — shared across all pages */
:root {
  --paper: #F4F4F1; --paper-2: #ECECE5; --paper-3: #FFFFFF;
  --ink: #1A1A18; --ink-soft: #2C2C2A; --muted: #666662; --muted-2: #A2A29F;
  --line: #E4E4E2; --line-strong: #C9C9C5;
  --accent: #1E40DF; --accent-deep: #1E40DF; --accent-light: #5B7FFF;
  --accent-soft: rgba(30, 64, 223, 0.08); --accent-tint: #F1F5FF;
  --serif: 'Cormorant', 'Times New Roman', serif;
  --serif-italic: 'Instrument Serif', 'Playfair Display', 'Cormorant', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); background: var(--paper); color: var(--ink);
  font-size: 16px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01' 1, 'cv11' 1, 'kern' 1;
  overflow-x: hidden;
}
.foot-brand-blurb, .hero-foot, .lede, p, li { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
.proof-m .v, .stat .num, .hero-foot strong, .ts-metric { font-variant-numeric: tabular-nums; }
body::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1200px;
  background: radial-gradient(ellipse 900px 600px at 15% -5%, rgba(30, 64, 223, 0.05), transparent 60%), radial-gradient(ellipse 700px 500px at 88% 10%, rgba(30, 64, 223, 0.04), transparent 60%);
  pointer-events: none; z-index: 0;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
@media (max-width: 640px) { .container, .container-narrow { padding: 0 20px; } }

.eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); display: inline-block; }

h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(48px, 6.4vw, 84px); line-height: 1.03; font-weight: 700; }
h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.06; font-weight: 600; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 600; }
h4 { font-size: 22px; line-height: 1.3; font-weight: 600; }
.em-i { font-family: var(--serif-italic); font-style: italic; color: var(--accent); font-weight: 400; }
p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

[data-anim] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.25,.46,.45,.94), transform .9s cubic-bezier(.25,.46,.45,.94);
  will-change: opacity, transform;
}
[data-anim].in-view { opacity: 1; transform: translateY(0); }
[data-anim-delay="100"] { transition-delay: 100ms; }
[data-anim-delay="200"] { transition-delay: 200ms; }
[data-anim-delay="300"] { transition-delay: 300ms; }
[data-anim-delay="400"] { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
  [data-anim], [data-anim].in-view { opacity: 1; transform: none; transition: none; }
}

/* Brand */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo { height: 28px; width: auto; display: block; }
@media (max-width: 640px) { .brand-logo { height: 22px; } }

/* Scroll progress bar — sits above nav */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: transparent; z-index: 51; pointer-events: none;
}
.scroll-progress::before {
  content: ''; display: block; height: 100%;
  width: var(--scroll, 0%);
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width .1s linear;
}

/* NAV */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 244, 241, 0.84);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(228, 228, 226, 0.8);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; max-width: 1320px; margin: 0 auto;
}
@media (max-width: 640px) { .nav-inner { padding: 12px 20px; } }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  position: relative; font-size: 14px; color: var(--ink-soft); font-weight: 450;
  transition: color .2s; padding: 10px 14px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-link:hover, .nav-link.active { color: var(--accent); background: var(--accent-soft); }
.nav-link svg.chev { width: 12px; height: 12px; transition: transform .25s; }
.nav-item-drop:hover .nav-link svg.chev { transform: rotate(180deg); }
@media (max-width: 980px) { .nav-links { display: none; } }

/* Language-scoped visibility: [data-show-lang="en"] hidden when html[lang=fr], etc. */
html[lang="fr"] [data-show-lang="en"],
html[lang="en"] [data-show-lang="fr"] { display: none !important; }

/* Belt-and-suspenders: language switcher is browser-detected only — never show any UI for it */
.lang-switch { display: none !important; }

/* Nav right cluster: language switcher + book demo */
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; align-items: center; background: rgba(228,228,226,0.5); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 0; }
.lang-switch button { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; font-weight: 600; color: var(--muted); background: transparent; border: none; padding: 5px 11px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(26,26,24,0.08); }
@media (max-width: 640px) { .lang-switch button { padding: 4px 8px; font-size: 10px; } }

.nav-item-drop { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; min-width: 340px;
  box-shadow: 0 30px 60px -30px rgba(26, 26, 24, 0.18), 0 12px 24px -16px rgba(26, 26, 24, 0.08);
}
.nav-dropdown.wide { min-width: 400px; }
.nav-item-drop:hover .nav-dropdown,
.nav-item-drop:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown::before {
  content: ''; position: absolute; bottom: 100%; left: 0; right: 0; height: 12px;
}
.nd-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  transition: background .15s;
}
.nd-item:hover { background: var(--paper); }
.nd-item.active { background: var(--accent-soft); }
.nd-item.active .nd-title { color: var(--accent); }
.nd-ic {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.nd-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nd-text { display: flex; flex-direction: column; gap: 2px; }
.nd-title { font-size: 14px; color: var(--ink); font-weight: 500; }
.nd-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; font-family: var(--sans); font-size: 14px; font-weight: 500;
  border-radius: 8px; transition: all .2s ease;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn-accent { background: var(--accent); color: var(--paper); box-shadow: 0 1px 0 0 rgba(255,255,255,.12) inset, 0 8px 20px -8px rgba(30,64,223,.5); }
.btn-accent:hover { background: #1733B8; transform: translateY(-1px); box-shadow: 0 1px 0 0 rgba(255,255,255,.15) inset, 0 12px 28px -10px rgba(30,64,223,.65); }
.btn-accent:active { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible, a.btn:focus-visible { outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }
::selection { background: rgba(30, 64, 223, 0.18); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Section base */
section.block { padding: 120px 0; position: relative; }
section.block.tight { padding: 84px 0; }
@media (max-width: 860px) {
  section.block { padding: 80px 0; }
  section.block.tight { padding: 60px 0; }
}
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin: 0 auto 64px; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin: 18px 0 22px; }
.section-head p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 640px; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* Subpage hero (smaller than main hero) */
.subhero {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
}
@media (max-width: 860px) { .subhero { padding: 56px 0 32px; } }
.subhero .eyebrow { justify-content: center; margin-bottom: 24px; }
.subhero h1 {
  font-size: clamp(40px, 5vw, 72px); line-height: 1.05;
  max-width: 880px; margin: 0 auto 20px;
}
.subhero .lede {
  font-size: 19px; line-height: 1.55; color: var(--ink-soft);
  max-width: 640px; margin: 0 auto;
}

/* Compact trust strip — used right under subhero on sub-pages */
.trust-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
  padding: 18px 24px; margin: 0 auto;
  max-width: 880px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 30px -20px rgba(26, 26, 24, 0.12);
}
@media (max-width: 720px) { .trust-strip { border-radius: 18px; gap: 14px 22px; padding: 16px 20px; } }
.trust-strip .ts-label {
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.trust-strip .ts-logo {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--serif); font-size: 14.5px; color: var(--ink); font-weight: 600; line-height: 1;
}
.trust-strip .ts-logo img { width: 18px; height: 18px; border-radius: 4px; padding: 1px; background: #fff; border: 1px solid var(--line); }
.trust-strip .ts-logo .it { font-style: italic; color: var(--muted); font-weight: 500; }
.trust-strip .ts-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.trust-strip .ts-metric {
  font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--accent); font-weight: 600;
}
.trust-strip .ts-metric span { color: var(--muted); font-style: normal; font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-left: 4px; font-weight: 500; }
.trust-wrap { padding: 8px 32px 0; position: relative; z-index: 1; }
@media (max-width: 640px) { .trust-wrap { padding: 8px 20px 0; } }

/* Page CTA section */
.cta-page {
  padding: 120px 0; text-align: center;
  background: var(--paper-2); border-top: 1px solid var(--line);
}
@media (max-width: 860px) { .cta-page { padding: 80px 0; } }
.cta-page h2 { margin: 18px 0 22px; }
.cta-page p { color: var(--ink-soft); margin: 0 auto 36px; max-width: 580px; font-size: 18px; }
.cta-page .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-3px); border-color: var(--accent);
  box-shadow: 0 20px 40px -20px rgba(26, 26, 24, 0.12);
}

/* Footer */
footer.foot { padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h5 {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
  font-family: var(--sans); font-weight: 500;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col li a { font-size: 14px; color: var(--ink-soft); transition: color .2s; }
.foot-col li a:hover { color: var(--accent); }
.foot-brand-blurb { font-size: 13.5px; color: var(--muted); line-height: 1.55; max-width: 280px; margin-top: 16px; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a {
  width: 32px; height: 32px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); transition: color .2s, border-color .2s, transform .2s;
}
.foot-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.foot-social svg { width: 15px; height: 15px; fill: currentColor; }
.foot-col li a { position: relative; }
.foot-col li a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.foot-col li a:hover::after { transform: scaleX(1); }
.foot-bottom {
  padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted);
}
.foot-bottom .made {
  font-family: var(--serif-italic); font-style: italic; font-size: 13px; color: var(--accent); font-weight: 700;
}

/* === Playfair Display Bold Italic for all italic serif accents === */
.em-i,
h1 em, h2 em, h3 em, h4 em,
h1 .em-i, h2 .em-i, h3 .em-i, h4 .em-i,
h1 .em, h2 .em, h3 .em, h4 .em,
.pillar h3 .em, .pillar h3 .em-i,
.industry-tile h3 .em, .industry-tile h3 .it, .industry-tile h3 .em-i,
.lane-head h3 .em, .lane-head h3 .em-i,
.narr h2 .em, .narr h2 .em-i,
.uc-headline em, .uc-headline .em, .uc-headline .em-i,
.quote-body .em, .quote-body em,
.quote-mark,
.proof-m .v,
.demo-agent-name,
.hero-foot strong,
.hero-tag,
.usecase-card-link .uc-brand .nm .it,
.subhero h1 em, .subhero h1 .em, .subhero h1 .em-i,
.compare-card .num,
.flow-foot-num,
.mode-item .mode-title,
.chat-mockup-brand .nm em, .chat-mockup-brand .nm .em,
.stat .num,
.lane-head h3 .em,
.pull q,
.section-head h2 em, .section-head h2 .em, .section-head h2 .em-i {
  font-family: var(--serif-italic) !important;
  font-weight: 400 !important;
  font-style: italic !important;
}
