@import url('tokens.css');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--s-9) 0; }
@media (max-width: 720px){ .section { padding: var(--s-8) 0; } }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  border-radius: var(--r-input); padding: 12px 20px;
  border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--d-fast) var(--ease), transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary { background: transparent; color: var(--ink-1); border-color: var(--rule-2); }
.btn-secondary:hover { background: var(--bg-1); border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink-1); }
.btn-ghost:hover { background: var(--bg-1); }
.btn-deep { background: var(--deep); color: var(--deep-ink); }
.btn-deep:hover { background: var(--deep-1); }
.btn-onDeep { background: var(--accent); color: var(--on-accent); }
.btn-onDeep:hover { background: var(--accent-hover); }
.btn-lg { font-size: 17px; padding: 15px 26px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; padding: 6px 13px;
  border-radius: var(--r-pill); border: 1px solid transparent;
}
.chip-soft { background: var(--accent-soft); color: var(--accent-press); }
.chip-line { background: var(--paper); border-color: var(--rule-2); color: var(--ink-2); }
.chip-ok { background: var(--ok-soft); color: #2f6440; }
.dot { width: 7px; height: 7px; border-radius: 50%; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(247,244,238,0.82); backdrop-filter: blur(10px);
  transition: box-shadow var(--d-base) var(--ease), border-color var(--d-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--rule); box-shadow: 0 1px 12px rgba(33,28,22,0.04); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color var(--d-fast) var(--ease); }
.nav-link:hover { color: var(--ink-1); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.logo span { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; color: var(--ink-1); }
@media (max-width: 720px){ .nav-links .nav-link { display:none; } }

/* ---------- eyebrow ---------- */
.eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--accent);
}

/* ---------- soundwave ---------- */
.wave { display: flex; align-items: center; gap: 5px; }
.wave span { width: 6px; border-radius: 3px; background: var(--accent); height: 14px; }
.wave.speaking span { animation: wv 900ms var(--ease) infinite; }
.wave span:nth-child(1){ animation-delay: 0ms } .wave span:nth-child(2){ animation-delay: 90ms }
.wave span:nth-child(3){ animation-delay: 180ms } .wave span:nth-child(4){ animation-delay: 270ms }
.wave span:nth-child(5){ animation-delay: 360ms } .wave span:nth-child(6){ animation-delay: 150ms }
.wave span:nth-child(7){ animation-delay: 240ms } .wave span:nth-child(8){ animation-delay: 60ms }
.wave span:nth-child(9){ animation-delay: 330ms }
@keyframes wv { 0%,100%{ transform: scaleY(0.4) } 50%{ transform: scaleY(1.6) } }

/* dial ring */
.dial { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity var(--d-slow) var(--ease), transform var(--d-slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-card); padding: 24px;
  box-shadow: var(--shadow-1);
}
.card-hover { transition: box-shadow var(--d-base) var(--ease), border-color var(--d-base) var(--ease), transform var(--d-base) var(--ease); }
.card-hover:hover { box-shadow: var(--shadow-2); border-color: var(--rule-2); transform: translateY(-2px); }

.icon-tile { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; color: var(--accent); }

/* image slot placeholder */
.slot {
  background: var(--bg-1); border: 1px dashed var(--rule-2); border-radius: var(--r-card);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  color: var(--ink-3); font-size: 13px; text-align: center; padding: 16px;
}

/* ---------- try-call widget ---------- */
.try {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-sheet); box-shadow: var(--shadow-3);
  padding: 24px; display: flex; flex-direction: column; gap: 18px;
}
.try-head { display:flex; align-items:center; gap:12px; }
.try-head img { width: 46px; height: 46px; border-radius: 13px; }
.try-stage { background: var(--bg); border-radius: var(--r-card); min-height: 84px; display:flex; align-items:center; justify-content:center; padding: 18px; }
.transcript { font-style: italic; color: var(--ink-2); text-align: center; line-height: 1.5; }
.field-row { display: flex; gap: 8px; }
.field-row input {
  flex: 1; font-family: var(--font-ui); font-size: 15px; padding: 13px 14px;
  border-radius: var(--r-input); border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink-1);
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.field-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.progress-track { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width var(--d-slow) var(--ease); }
.build-line { display:flex; align-items:center; gap:10px; font-size:14px; color: var(--ink-2); }

/* footer / deep */
.deep-section { background: var(--deep); color: var(--deep-ink); }
.deep-section h2, .deep-section .t-hero, .deep-section .t-display { color: var(--deep-ink); }
.deep-section .muted { color: var(--deep-ink-2); }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px){ .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-link { display:block; color: var(--deep-ink-2); text-decoration: none; font-size: 14px; padding: 5px 0; transition: color var(--d-fast) var(--ease); }
.footer-link:hover { color: var(--deep-ink); }

/* step connector */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 720px){ .steps { grid-template-columns: 1fr; } }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  display:flex; align-items:center; justify-content:center;
}

.grid-2 { display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 880px){ .grid-2 { grid-template-columns: 1fr; gap: 32px; } }
.features-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 880px){ .features-grid { grid-template-columns: 1fr; } }

/* what-you-get list rows */
.get-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; }
@media (max-width: 720px){ .get-grid { grid-template-columns: 1fr; gap: 28px; } }
.get-row { display:flex; gap: 16px; align-items: flex-start; }

/* ============================================================
   Offsider widget — the site dogfoods its own receptionist
   ============================================================ */
.ow-launch {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink-1); color: var(--bg);
  border: 0; border-radius: var(--r-pill); padding: 11px 18px 11px 13px;
  box-shadow: var(--shadow-3); cursor: pointer;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  transition: transform var(--d-fast) var(--ease);
}
.ow-launch:hover { transform: translateY(-2px); }
.ow-launch img { width: 26px; height: 26px; }
.ow-launch .ow-ping { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: owping 2s infinite; }
@keyframes owping { 0% { box-shadow: 0 0 0 0 rgba(63,125,84,.5); } 70% { box-shadow: 0 0 0 7px rgba(63,125,84,0); } 100% { box-shadow: 0 0 0 0 rgba(63,125,84,0); } }

.ow-panel {
  position: fixed; bottom: 22px; right: 22px; z-index: 61;
  width: 384px; max-width: calc(100vw - 28px);
  height: 580px; max-height: calc(100vh - 44px);
  background: var(--paper); border-radius: var(--r-sheet);
  box-shadow: var(--shadow-3); border: 1px solid var(--rule);
  display: flex; flex-direction: column; overflow: hidden;
}
.ow-head { background: var(--deep); color: var(--deep-ink); padding: 15px 16px; display: flex; align-items: center; gap: 11px; }
.ow-head img { width: 30px; height: 30px; }
.ow-head .oh-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.ow-head .oh-status { font-size: 11.5px; color: var(--deep-ink-2); display: flex; align-items: center; gap: 5px; }
.ow-head .oh-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.ow-x { margin-left: auto; background: transparent; border: 0; color: var(--deep-ink-2); cursor: pointer; padding: 4px; border-radius: 6px; display: grid; place-items: center; }
.ow-x:hover { color: var(--deep-ink); background: rgba(255,255,255,.1); }

.ow-meta { background: var(--accent-soft); color: var(--accent-press); font-size: 12px; font-weight: 600; padding: 8px 16px; display: flex; align-items: center; gap: 7px; }

.ow-tabs { display: flex; gap: 4px; padding: 10px 12px 0; }
.ow-tab { flex: 1; padding: 8px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; font-family: var(--font-ui); font-weight: 600; font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; justify-content: center; gap: 6px; }
.ow-tab.on { background: var(--bg-1); color: var(--ink-1); }

.ow-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ow-bub { max-width: 84%; padding: 9px 13px; border-radius: 15px; font-size: 14px; line-height: 1.5; }
.ow-bub.them { background: var(--bg-1); align-self: flex-start; border-top-left-radius: 4px; }
.ow-bub.me { background: var(--accent); color: var(--on-accent); align-self: flex-end; border-top-right-radius: 4px; }
.ow-chips { display: flex; gap: 6px; padding: 0 12px 10px; flex-wrap: wrap; }
.ow-chip { font-size: 12px; padding: 6px 11px; border-radius: var(--r-pill); border: 1px solid var(--rule-2); background: var(--paper); cursor: pointer; color: var(--ink-2); }
.ow-chip:hover { background: var(--bg-1); }
.ow-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--rule); }
.ow-input input { flex: 1; border: 1px solid var(--rule-2); border-radius: var(--r-pill); padding: 10px 15px; font-family: var(--font-ui); font-size: 14px; outline: none; }
.ow-input input:focus { border-color: var(--accent-ring); box-shadow: 0 0 0 3px var(--accent-soft); }
.ow-send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }

/* voice mode inside widget */
.ow-voice { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
.ow-orb { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: all .25s var(--ease); }
.ow-orb.listening { background: var(--info-soft); color: var(--info); }
.ow-orb.speaking { background: var(--ok-soft); color: var(--ok); }
.ow-vstatus { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.ow-vscript { background: var(--bg-1); border-radius: 14px; padding: 13px 15px; width: 100%; font-size: 14px; line-height: 1.5; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ow-vscript .vq { color: var(--ink-3); font-size: 12.5px; }
.ow-mic { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-2); }
.ow-mic.stop { background: var(--bad); }
@media (max-width: 640px){ .pricing-grid { grid-template-columns: 1fr !important; } .pricing-grid > div:first-child { border-right: none !important; border-bottom: 1px solid var(--rule); } }
