/* =========================================================
   VOXELY — Design System
   AI Voice SDR · Editorial · Swiss-inspired · Flat · No shadows
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Palette — single warm paper background used everywhere */
  --bg: #F2EFE7;
  --bg-alt: #F2EFE7;
  --ink: #0B0B0B;
  --ink-2: #1A1A1A;
  --muted: #6B6960;
  --subtle: #9A9689;
  --line: #D9D3C3;
  --line-strong: #BBB4A1;
  --accent: #FF4A1C;
  --accent-ink: #B8330F;
  --ok: #1F7A3A;
  --warn: #B47A00;
  --err: #B12A2A;

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "EB Garamond", "Times New Roman", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 17px;
  --fs-lg: 22px;
  --fs-xl: 30px;
  --fs-2xl: 44px;
  --fs-3xl: 64px;
  --fs-4xl: 88px;

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-base: 1.55;

  /* Spacing — 4px scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 56px; --s-10: 72px; --s-11: 96px; --s-12: 128px;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --container: 1200px;
  --container-narrow: 880px;

  --bw: 1px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
hr { border: 0; border-top: var(--bw) solid var(--line); margin: 0; }
::selection { background: var(--ink); color: var(--bg); }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: var(--lh-tight); }
h1 { font-size: clamp(40px, 6.4vw, var(--fs-3xl)); }
h2 { font-size: clamp(28px, 3.6vw, var(--fs-2xl)); }
h3 { font-size: clamp(20px, 2vw, var(--fs-xl)); letter-spacing: -0.015em; }
h4 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
p  { margin: 0; }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; font-style: italic; }
.mono  { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.5; max-width: 64ch; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding: var(--s-11) 0; border-top: var(--bw) solid var(--line); background: var(--bg); }
.section.first { border-top: 0; }
.section.tight { padding: var(--s-9) 0; }
.row { display: flex; gap: var(--s-6); flex-wrap: wrap; }
.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); }
.stack { display: flex; flex-direction: column; }
.gap-2{gap:var(--s-2)} .gap-3{gap:var(--s-3)} .gap-4{gap:var(--s-4)} .gap-6{gap:var(--s-6)} .gap-8{gap:var(--s-8)}
.mt-2{margin-top:var(--s-2)} .mt-3{margin-top:var(--s-3)} .mt-4{margin-top:var(--s-4)} .mt-6{margin-top:var(--s-6)} .mt-8{margin-top:var(--s-8)} .mt-10{margin-top:var(--s-10)}
.center { text-align: center; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.accent { color: var(--accent); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: var(--bw) solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 18px; }
.brand-mark {
  width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 6px;
  display: inline-grid; place-items: center; position: relative;
}
.brand-mark::before {
  content: ""; width: 8px; height: 8px; background: var(--ink); border-radius: 2px;
}
.nav-links { display: flex; gap: var(--s-7); align-items: center; }
.nav-links a { font-size: 14px; color: var(--ink-2); }
.nav-links a.active, .nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: var(--s-3); align-items: center; }
.nav-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); align-items: center; justify-content: center; }
.nav-toggle span { width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content:""; position: absolute; left:0; width:16px; height:1.5px; background: var(--ink); }
.nav-toggle span::before { top:-5px; } .nav-toggle span::after { top:5px; }
.nav-mobile { display: none; border-top: var(--bw) solid var(--line); padding: var(--s-4) var(--s-6); flex-direction: column; gap: var(--s-3); background: var(--bg); }
.nav-mobile a { padding: var(--s-2) 0; border-bottom: 1px dashed var(--line); }
.nav.open .nav-mobile { display: flex; }

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid var(--ink); color: var(--bg); background: var(--ink);
  transition: transform .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
}
.btn:hover { background: var(--ink-2); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-link { padding: 0; border: 0; color: var(--ink); background: transparent; border-bottom: 1px solid var(--ink); border-radius: 0; }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn-lg { padding: 14px 20px; font-size: 15px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- Tags / Badges ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); background: var(--bg);
}
.tag .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.badge { display:inline-block; padding: 2px 8px; border-radius: var(--radius-xs); border: 1px solid var(--line-strong); font-size: 12px; }
.badge-ok { color: var(--ok); border-color: var(--ok); }
.badge-warn { color: var(--warn); border-color: var(--warn); }
.badge-new { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Card ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--s-6);
}
.card.flush { padding: 0; overflow: hidden; }
.card h3 { margin-bottom: 8px; }
.card .meta { color: var(--muted); font-size: 13px; }
.card-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card-ink .muted, .card-ink .subtle { color: #B8B6AE; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(72px, 11vw, 144px) 0 clamp(56px, 9vw, 112px);
  border-bottom: var(--bw) solid var(--line);
}
.hero h1 { max-width: 18ch; }
.hero .lede { margin-top: var(--s-6); }
.hero-actions { display: flex; gap: var(--s-3); margin-top: var(--s-8); flex-wrap: wrap; }
.hero-meta { display: flex; gap: var(--s-7); flex-wrap: wrap; margin-top: var(--s-9); color: var(--muted); font-size: 13px; }
.hero-meta span strong { color: var(--ink); font-weight: 600; }

/* ---------- Bento / feature grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-4); }
.bento .cell { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--s-6); background: var(--bg); }
.bento .cell.x2 { grid-column: span 2; }
.bento .cell.x3 { grid-column: span 3; }
.bento .cell.x4 { grid-column: span 4; }
.bento .cell.x6 { grid-column: span 6; }
.bento .cell h3 { font-size: 20px; }

@media (max-width: 880px) {
  .bento { grid-template-columns: 1fr; }
  .bento .cell, .bento .cell.x2, .bento .cell.x3, .bento .cell.x4, .bento .cell.x6 { grid-column: span 1; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Logo strip ---------- */
.logos {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-6);
  align-items: center; padding: var(--s-7) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.logos .logo {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: -0.01em;
  text-align: center; padding: var(--s-3) 0;
}
@media (max-width: 880px) { .logos { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Section header ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-6); margin-bottom: var(--s-9); flex-wrap: wrap; }
.section-head .left { max-width: 56ch; }
.section-head h2 { margin-top: var(--s-3); }

/* ---------- Numbers / metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.metric { padding: var(--s-7); border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric .num { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; font-weight: 500; }
.metric .label { color: var(--muted); font-size: 13px; margin-top: 6px; }
@media (max-width: 880px) { .metrics { grid-template-columns: 1fr 1fr; } .metric:nth-child(2) { border-right: 0; } .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.step { border-top: 1px solid var(--ink); padding-top: var(--s-4); }
.step .n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.step h4 { margin-top: var(--s-3); }
.step p { margin-top: var(--s-2); color: var(--muted); font-size: 14px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.plan { padding: var(--s-8); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s-5); }
.plan:last-child { border-right: 0; }
.plan.featured { background: var(--ink); color: var(--bg); }
.plan.featured .muted { color: #B8B6AE; }
.plan h3 { font-size: 22px; }
.plan .price { font-size: 40px; letter-spacing: -0.03em; font-weight: 500; }
.plan .price .per { font-size: 14px; color: var(--muted); margin-left: 6px; }
.plan.featured .price .per { color: #B8B6AE; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.plan li { font-size: 14px; padding-left: 22px; position: relative; color: inherit; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 1.5px; background: currentColor;
}
.plan .btn { width: 100%; justify-content: center; }
@media (max-width: 880px) { .pricing { grid-template-columns: 1fr; } .plan { border-right: 0; border-bottom: 1px solid var(--line); } .plan:last-child { border-bottom: 0; } }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: var(--s-4); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { font-weight: 500; color: var(--muted); font-size: 13px; }
.compare td.yes::before { content: "●"; color: var(--ink); margin-right: 8px; }
.compare td.no  { color: var(--subtle); }
.compare td.no::before  { content: "—"; margin-right: 8px; color: var(--subtle); }

/* ---------- Testimonials ---------- */
.quote { border-left: 2px solid var(--ink); padding-left: var(--s-6); }
.quote p { font-family: var(--font-serif); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.35; }
.quote .who { margin-top: var(--s-5); color: var(--muted); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; padding: var(--s-6) 0; font-size: 17px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
}
.faq-q .plus { font-family: var(--font-mono); color: var(--muted); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--muted); }
.faq-a > div { padding: 0 0 var(--s-6); max-width: 70ch; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); display: inline-block; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: var(--s-10) 0 var(--s-7); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s-7); }
.footer h5 { font-size: 13px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; margin-bottom: var(--s-4); }
.footer a { display: block; padding: 4px 0; font-size: 14px; color: var(--ink-2); }
.footer .legal { display: flex; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-9); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong);
  background: var(--bg); border-radius: var(--radius-sm); font: inherit; color: var(--ink);
}
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--ink); }
.textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: var(--s-2); border-bottom: 1px solid var(--line); margin-bottom: var(--s-7); flex-wrap: wrap; }
.tab { padding: 10px 14px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--ink); border-color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Code blocks ---------- */
.code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--s-5); white-space: pre; overflow-x: auto; color: var(--ink-2);
}
.code .k { color: var(--accent-ink); }
.code .s { color: var(--ok); }
.code .c { color: var(--subtle); }

/* ---------- Waveform decoration ---------- */
.wave { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
.wave i { display: block; width: 3px; background: var(--ink); border-radius: 1px; animation: wv 1.2s ease-in-out infinite; }
.wave i:nth-child(1){height:30%; animation-delay:0s}
.wave i:nth-child(2){height:60%; animation-delay:.1s}
.wave i:nth-child(3){height:90%; animation-delay:.2s}
.wave i:nth-child(4){height:55%; animation-delay:.3s}
.wave i:nth-child(5){height:75%; animation-delay:.4s}
.wave i:nth-child(6){height:35%; animation-delay:.5s}
.wave i:nth-child(7){height:65%; animation-delay:.6s}
@keyframes wv { 0%,100%{transform:scaleY(.6)} 50%{transform:scaleY(1.1)} }
@media (prefers-reduced-motion: reduce){ .wave i{ animation: none; } }

/* ---------- Call demo widget ---------- */
.call {
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--s-6); background: var(--bg);
}
.call-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.call-id { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.call-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.call-status .live { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.transcript { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); }
.msg { padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; line-height: 1.45; max-width: 86%; }
.msg.agent { background: var(--ink); color: var(--bg); border-color: var(--ink); align-self: flex-start; }
.msg.prospect { align-self: flex-end; background: var(--bg); }
.msg .who { font-family: var(--font-mono); font-size: 11px; opacity: .7; display: block; margin-bottom: 4px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Dashboard preview ---------- */
.dash { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.dash-top { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.dash-body { display: grid; grid-template-columns: 220px 1fr; min-height: 320px; }
.dash-side { border-right: 1px solid var(--line); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.dash-side a { font-size: 13px; color: var(--muted); padding: 6px 8px; border-radius: var(--radius-xs); }
.dash-side a.active { background: var(--ink); color: var(--bg); }
.dash-main { padding: var(--s-6); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.dash-stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s-4); }
.dash-stat .lbl { font-size: 12px; color: var(--muted); }
.dash-stat .v { font-size: 26px; letter-spacing: -0.02em; margin-top: 4px; }
.dash-chart { grid-column: span 3; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s-5); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bars i { display: block; width: 18px; background: var(--ink); }
@media (max-width: 880px) { .dash-body { grid-template-columns: 1fr; } .dash-side { display: none; } .dash-main { grid-template-columns: 1fr 1fr; } .dash-chart { grid-column: span 2; } }

/* ---------- Page header ---------- */
.page-head { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 22ch; }
.page-head .lede { margin-top: var(--s-5); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); margin: var(--s-9) 0; }
.kbd { font-family: var(--font-mono); font-size: 12px; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 4px; }
.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.list li { padding-left: 18px; position: relative; color: var(--ink-2); font-size: 14px; }
.list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 1.5px; background: var(--ink); }

/* Skip link */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 100; }

/* Focus */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
