/* Callivo Voice public website. Same palette and rounded, clean look as the app.
   System fonts only: no web-font requests, nothing third-party. */

:root {
  --brand-blue: #2453ea;
  --brand-teal: #14c48c;
  --brand-navy: #0b0f19;
  --brand-gray: #5b6472;
  --brand-gradient: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));

  --bg: #f6f8fb;
  --surface: #ffffff;
  --border: #e3e8f0;
  --tint: linear-gradient(135deg, rgba(36, 83, 234, 0.08), rgba(20, 196, 140, 0.1));

  --radius: 16px;
  --max: 1080px;

  font: 16px/1.65 system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--brand-navy);
  background: var(--bg);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-blue);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

/* ── Header ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.4) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand img {
  display: block;
  height: 38px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a:not(.btn) {
  color: var(--brand-navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:not(.btn):hover {
  color: var(--brand-blue);
}

/* ── Buttons ────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  opacity: 0.92;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-small {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-ghost {
  background: var(--surface);
  color: var(--brand-blue);
  border: 1.5px solid var(--brand-blue);
}

/* ── Sections ───────────────────────────────────────── */

.hero {
  background: var(--tint);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  padding: 84px 24px 88px;
  max-width: 820px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 auto 30px;
  max-width: 680px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--brand-gray);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.section {
  padding: 72px 0;
}

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

h2 {
  margin: 0 0 12px;
  font-size: clamp(25px, 3.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section-intro {
  margin: 0 0 36px;
  max-width: 640px;
  color: var(--brand-gray);
  font-size: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.section-alt .card {
  background: var(--bg);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.card p {
  margin: 0;
  color: var(--brand-gray);
}

.step-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 700;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 32px;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

.checklist li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: calc(0.45em + 3px);
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.panel p {
  margin: 0 0 10px;
}

.panel p:last-child {
  margin-bottom: 0;
}

.keyword {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 6px;
  background: rgba(36, 83, 234, 0.1);
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.92em;
}

/* ── Legal pages ────────────────────────────────────── */

.page-hero {
  background: var(--tint);
  border-bottom: 1px solid var(--border);
}

.page-hero .container {
  padding-top: 56px;
  padding-bottom: 48px;
}

.page-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4.6vw, 42px);
}

.meta {
  margin: 0;
  color: var(--brand-gray);
  font-size: 15px;
}

.legal {
  max-width: 780px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.legal h2 {
  margin: 44px 0 12px;
  font-size: 24px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal h3 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.legal p,
.legal li {
  color: #243044;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

.callout {
  margin: 22px 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(36, 83, 234, 0.25);
  background: var(--tint);
}

.callout p {
  margin: 0;
  font-weight: 600;
  color: var(--brand-navy);
}

.toc {
  margin: 0 0 36px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toc p {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-gray);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  margin-bottom: 4px;
  break-inside: avoid;
}

/* ── Contact ────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-grid + .section-intro {
  margin: 32px 0 0;
}

.contact-grid .panel h3 {
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-gray);
}

.contact-grid .panel p {
  font-size: 18px;
  font-weight: 500;
}

/* ── Footer ─────────────────────────────────────────── */

.site-footer {
  background: var(--brand-navy);
  color: #c9d1de;
  padding-top: 48px;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-grid p {
  margin: 0 0 8px;
  max-width: 420px;
  font-size: 15px;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 18px !important;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: #9aa6b8;
}

/* ── Small screens ──────────────────────────────────── */

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .header-inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .brand img {
    height: 32px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .site-nav a:not(.btn) {
    font-size: 14px;
  }

  .hero-inner {
    padding: 56px 18px 60px;
  }

  .section {
    padding: 52px 0;
  }

  .legal {
    padding-top: 32px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .btn-small {
    width: auto;
  }

  .cta-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
