/* Callunio website. One self-hosted typeface (Bricolage Grotesque, SIL OFL), brand indigo from the app icon. */
@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2-variations");
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f5f6fc;
  --surface: #ffffff;
  --ink: #1c1a3d;
  --ink-soft: #55547a;
  --line: #dfe0ef;
  --indigo: #5048e5;
  --indigo-deep: #221d63;
  --indigo-tint: #ecebfd;
  --signal: #0f9f74;       /* call connected */
  --wa: #1f8a5b;
  --mail: #b35a12;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --font: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
  --step-3: clamp(2.5rem, 1.6rem + 4vw, 4.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: var(--step-3); font-weight: 750; letter-spacing: -0.035em; line-height: 1; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.muted { color: var(--ink-soft); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: #4038cf; }
.btn-ghost { border: 1.5px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-quiet { min-height: 40px; padding: 0 18px; border: 1.5px solid var(--line); }
.btn-quiet:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 5; background: rgb(245 246 252 / .85); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.top .btn-quiet { margin-left: auto; }
@media (min-width: 820px) {
  .nav { display: flex; }
  .top .btn-quiet { margin-left: 8px; }
}

/* Small screens: the section links open from a menu button (shown by site.js) */
.menu {
  display: inline-grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-left: -12px;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer;
}
.menu[hidden] { display: none; }
.menu span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 819px) {
  .top-inner { gap: 16px; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 68px;
    padding: 8px 16px 16px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgb(34 29 99 / .25);
  }
  .nav.open a { display: flex; align-items: center; min-height: 52px; font-size: 1.15rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav.open a:last-child { border-bottom: 0; }
}
@media (min-width: 820px) { .menu { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 72px; overflow: hidden; overflow: clip; }  /* clip: not scrollable by scrollIntoView or focus */
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 88px 0 64px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}
.hero-copy h1 { max-width: 11ch; }
.lede { margin-top: 24px; font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 18px; font-size: var(--step--1); color: var(--ink-soft); }

/* The timeline: the one memorable thing on the page */
.timeline {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 10px;
  box-shadow: 0 30px 60px -30px rgb(34 29 99 / .35), 0 2px 0 rgb(34 29 99 / .04);
}
.timeline::before {             /* soft indigo halo behind the card */
  content: ""; position: absolute; inset: -40px -60px auto auto; width: 280px; height: 280px; z-index: -1;
  background: radial-gradient(circle, rgb(80 72 229 / .22), transparent 65%);
}
.tl-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tl-head strong { display: block; font-size: 1.05rem; }
.tl-head .muted { font-size: var(--step--1); }
.avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--indigo-tint); color: var(--indigo); font-weight: 700; }
.clock { margin-left: auto; font-size: var(--step--1); color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 379px) { .clock { display: none; } .timeline { padding: 18px 16px 6px; } }

.tl { list-style: none; margin: 0; padding: 18px 0 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 7px; top: 26px; bottom: 30px; width: 2px; background: var(--line); }
.tl-item { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 16px; padding-bottom: 18px; }
.tl-dot { position: relative; z-index: 1; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); }
.tl-call .tl-dot { border-color: var(--signal); }
.tl-ai .tl-dot { border-color: var(--indigo); background: var(--indigo); }
.tl-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--step--1); }
.tl-body > p { margin-top: 8px; font-size: .98rem; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: .8125rem; }
.tag-call { background: #e3f6ef; color: var(--signal); }
.tag-wa { background: #e5f4ec; color: var(--wa); }
.tag-mail { background: #fbefe4; color: var(--mail); }
.tag-ai { background: var(--indigo-tint); color: var(--indigo); }
.bubble { display: inline-block; background: #e7f6ee; padding: 8px 14px; border-radius: 4px 16px 16px 16px; }
.subject { font-weight: 600; }
.tl-ai .tl-body { background: var(--indigo-tint); margin-left: -8px; padding: 12px 14px; border-radius: 14px; }

.live { display: inline-flex; align-items: center; gap: 8px; color: var(--signal); font-weight: 600; font-variant-numeric: tabular-nums; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgb(15 159 116 / .5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(15 159 116 / 0); } 100% { box-shadow: 0 0 0 0 rgb(15 159 116 / 0); } }

.wave { display: flex; align-items: center; gap: 4px; height: 38px; margin-top: 10px; }
.wave i { flex: 1; max-width: 6px; height: 30%; border-radius: 3px; background: var(--signal); opacity: .8; animation: wave 1.1s ease-in-out infinite alternate; }
.wave i:nth-child(3n) { animation-duration: .8s; }
.wave i:nth-child(3n+1) { animation-duration: 1.3s; animation-delay: -.4s; }
.wave i:nth-child(4n) { animation-duration: .95s; animation-delay: -.7s; }
.wave i:nth-child(5n) { animation-delay: -.2s; }
@keyframes wave { from { height: 18%; } to { height: 100%; } }

/* Page-load sequence: the conversation writes itself, one channel after another */
.tl-item { opacity: 0; transform: translateY(12px); animation: enter .6s cubic-bezier(.2, .7, .2, 1) forwards; }
.tl-item:nth-child(1) { animation-delay: .25s; }
.tl-item:nth-child(2) { animation-delay: 1.05s; }
.tl-item:nth-child(3) { animation-delay: 1.85s; }
.tl-item:nth-child(4) { animation-delay: 2.65s; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; scroll-margin-top: 68px; }
@media (min-width: 960px) { .section { padding: 120px 0; } }
.section-tint { background: var(--surface); border-block: 1px solid var(--line); }
.narrow { max-width: 16ch; }

.split { display: grid; gap: 40px; }
.split-head p { margin-top: 18px; color: var(--ink-soft); max-width: 30em; }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; gap: 80px; }
  .split-head { position: sticky; top: 120px; align-self: start; }
}
.channels { display: grid; }
.channel { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.channel:last-child { border-bottom: 1px solid var(--line); }
.channel p { margin-top: 8px; color: var(--ink-soft); max-width: 38em; }
.ico { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--indigo-tint); fill: none; stroke: var(--indigo); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* AI band */
.band { background: var(--indigo-deep); color: #eceaff; position: relative; overflow: hidden; overflow: clip; }
.band::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; pointer-events: none;
  background: radial-gradient(circle, rgb(120 112 255 / .35), transparent 65%);
}
.band h2 { color: #fff; max-width: 18ch; }
.band-lede { margin-top: 20px; color: #bdb9f2; max-width: 36em; font-size: 1.15rem; }
.ai-grid { position: relative; z-index: 1; display: grid; gap: 40px; margin-top: 56px; }
.ai-col h3 { color: #fff; }
.ai-col p { margin-top: 12px; color: #c9c6f5; }
@media (min-width: 960px) {
  .ai-grid { grid-template-columns: 1fr 1fr 1.1fr; gap: 48px; align-items: start; }
}
.typer {
  margin: 0; padding: 20px 22px; border-radius: var(--radius-lg);
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14);
}
.typer-head { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; font-size: var(--step--1); }
.typer-text { margin-top: 12px; color: #fff; font-size: 1.1rem; line-height: 1.5; min-height: 4.5em; }
.typer-text.typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: #a9a4ff; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Borders */
.facts { display: grid; gap: 0; margin: 48px 0 0; }
.facts > div { padding: 24px 0; border-top: 2px solid var(--ink); }
.facts dt { font-weight: 700; font-size: var(--step-1); letter-spacing: -0.01em; }
.facts dd { margin: 10px 0 0; color: var(--ink-soft); max-width: 32em; }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (min-width: 1080px) { .facts { grid-template-columns: repeat(4, 1fr); column-gap: 32px; } }

/* Teams */
.teams { display: grid; gap: 56px; }
@media (min-width: 960px) { .teams { grid-template-columns: 1fr 1fr; gap: 80px; } }
.team h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); max-width: 18ch; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--indigo-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%235048e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

/* CTA */
.cta-inner { text-align: center; max-width: 720px; }
.cta-inner h2 { font-size: var(--step-2); }
.cta-inner p { margin: 18px auto 0; color: var(--ink-soft); max-width: 34em; }
.cta .actions { justify-content: center; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: var(--step--1); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot .brand { font-size: 1rem; }
.foot-nav { display: flex; gap: 20px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
.copy { margin-left: auto; }

/* Legal and 404 pages */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: var(--step-2); letter-spacing: -0.025em; }
.doc h2 { font-size: var(--step-1); margin-top: 44px; }
.doc p, .doc ul { margin-top: 14px; color: var(--ink-soft); }
.doc address { font-style: normal; margin-top: 14px; color: var(--ink-soft); }
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost p { margin-top: 16px; color: var(--ink-soft); }
.lost .actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tl-item { opacity: 1; transform: none; animation: none; }
  .wave i { animation: none; height: 55%; }
  .wave i:nth-child(2n) { height: 30%; }
  .wave i:nth-child(3n) { height: 85%; }
  .pulse { animation: none; }
  .typer-text.typing::after { animation: none; }
}
