/* Teleno AI marketing site — barebones styles
   Tokens lifted from the Teleno AI design system. */

:root {
  --bg:             #f2f2f7;
  --bg-elevated:    #ffffff;
  --bg-rail:        #f7f7f9;
  --bg-rail-2:      #eef0f3;

  --ink:            #0a0a0f;
  --ink-2:          #3c3c43;
  --ink-3:          #6c6c74;
  --ink-4:          #a1a1a8;
  --ink-5:          #c7c7cc;

  --line:           rgba(60, 60, 67, 0.09);
  --line-2:         rgba(60, 60, 67, 0.18);

  --blue:           #635bff;
  --blue-2:         #4f46e5;
  --blue-bubble:    linear-gradient(180deg, #7a73ff 0%, #4f46e5 100%);
  --gray-bubble:    #e9e9eb;
  --green:          #34c759;
  --orange:         #ff9500;

  --soft-blue:      rgba(99, 91, 255, 0.12);
  --soft-green:     rgba(52, 199, 89, 0.14);
  --soft-orange:    rgba(255, 149, 0, 0.14);

  --radius-bubble:  20px;
  --radius-card:    22px;
  --radius-tile:    14px;
  --radius-btn:     10px;
  --radius-pill:    999px;

  --shadow-card:    0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-float:   0 8px 32px rgba(16, 24, 40, 0.12);
  --shadow-btn:     0 1px 2px rgba(99, 91, 255, 0.3);

  --font-sans:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
  --font-mono:    "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); }

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(242, 242, 247, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: var(--radius-btn);
}
.nav-link:hover { background: var(--bg-rail-2); color: var(--ink); }
.nav-link.active { color: var(--ink); }

/* Site logo — matches the app's .brand / .brand-mark exactly */
.site-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--blue-bubble);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 2px 6px rgba(99, 91, 255, 0.35);
  flex-shrink: 0;
}
.logo-mark svg { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--blue-2); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--bg-rail-2); color: var(--ink); }
.btn-lg { padding: 14px 22px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
h1, .h1 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 20px;
}
@media (max-width: 600px) { h1, .h1 { font-size: 40px; } }
h2, .h2 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 8px;
}
.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 28px;
  max-width: 520px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Phone / chat mockup ---------- */
.phone {
  background: var(--bg-elevated);
  border-radius: 32px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  max-width: 360px;
  margin: 0 auto;
}
.phone-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.bubble {
  max-width: 78%;
  padding: 10px 14px;
  font-size: 14.5px;
  line-height: 1.35;
  border-radius: var(--radius-bubble);
  margin-bottom: 6px;
  word-wrap: break-word;
}
.bubble-in {
  background: var(--gray-bubble);
  color: var(--ink);
  border-bottom-left-radius: 6px;
  margin-right: auto;
}
.bubble-out {
  background: var(--blue-bubble);
  color: #fff;
  border-bottom-right-radius: 6px;
  margin-left: auto;
}
.bubble-meta {
  font-size: 11px;
  color: var(--ink-4);
  margin: 14px 0 4px;
  text-align: center;
}

/* ---------- Section ---------- */
.section {
  padding: 72px 0;
}
.section-tight { padding: 48px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head .lede { margin: 8px auto 0; max-width: 560px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
}
.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.card .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--soft-blue);
  color: var(--blue);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.card p {
  color: var(--ink-2);
  margin: 0;
  font-size: 15px;
}

/* Feature row (alternating image + text) */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
}
.feature.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse > :first-child { order: 0; }
}
.feature h2 { font-size: 28px; }
.feature p { color: var(--ink-2); font-size: 16px; margin: 0 0 16px; }
.feature-visual {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 860px) {
  .price-grid { grid-template-columns: 1fr; }
}
.price-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-card);
  position: relative;
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.price-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.price-amount .per {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}
.price-note { color: var(--ink-3); font-size: 14px; margin: 6px 0 24px; }
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.price-features li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 8px 0 8px 26px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.price-features li:last-child { border-bottom: 0; }
.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px; height: 16px;
  background: var(--soft-blue);
  border-radius: 999px;
}
.price-features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--blue);
  border-bottom: 1.5px solid var(--blue);
  transform: rotate(-45deg);
}

/* Two companion blocks joined by a plus sign */
.price-parts {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 16px;
  align-items: stretch;
  max-width: 860px;
  margin: 40px auto 0;
}
.price-parts .price-card { margin: 0; }
.price-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  color: var(--ink-4);
  line-height: 1;
}
@media (max-width: 720px) {
  .price-parts { grid-template-columns: 1fr; gap: 12px; }
  .price-plus { padding: 4px 0; font-size: 28px; }
}

/* Example totals table */
.price-examples {
  width: 100%;
  max-width: 720px;
  margin: 32px auto 0;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  font-size: 15px;
}
.price-examples th {
  text-align: left;
  padding: 14px 24px;
  background: var(--bg-rail);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.price-examples td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.price-examples tr:last-child td { border-bottom: 0; }
.price-examples td:first-child { font-weight: 500; color: var(--ink); }
.price-examples td:last-child,
.price-examples th:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  padding: 18px 22px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--ink-4);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.cta-banner h2 { margin-bottom: 8px; }
.cta-banner p { color: var(--ink-2); margin: 0 0 24px; font-size: 17px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer p { color: var(--ink-3); font-size: 13px; margin: 0; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink-3); font-size: 13px; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Pill / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-rail-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.chip-blue { background: var(--soft-blue); color: var(--blue-2); }
.chip-green { background: var(--soft-green); color: #1f8b3d; }

/* ---------- Legal pages (Privacy, Terms) ---------- */
.legal-hero {
  padding: 64px 0 24px;
}
.legal-hero h1 {
  font-size: 44px;
  margin-bottom: 12px;
}
.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  background: var(--bg-rail);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.legal-meta strong { color: var(--ink); font-weight: 600; }

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding-bottom: 80px;
}
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
}
.legal-toc {
  position: sticky;
  top: 80px;
  align-self: start;
  font-size: 13px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.legal-toc h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 12px;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.legal-toc li {
  counter-increment: toc;
  margin-bottom: 6px;
}
.legal-toc a {
  color: var(--ink-2);
  display: block;
  padding: 4px 0;
  line-height: 1.35;
}
.legal-toc a::before {
  content: counter(toc) ". ";
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 12px;
}
.legal-toc a:hover { color: var(--blue); }
@media (max-width: 860px) {
  .legal-toc { position: static; border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
}

.legal-content {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 720px;
}
.legal-content > section + section { margin-top: 40px; }
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 12px;
  scroll-margin-top: 88px;
}
.legal-content h2 .num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-4);
  margin-right: 8px;
}
.legal-content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 8px;
}
.legal-content p { margin: 0 0 14px; }
.legal-content ul, .legal-content ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content a { text-decoration: underline; text-underline-offset: 2px; }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content code {
  background: var(--bg-rail-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}
.legal-content .placeholder {
  background: rgba(255, 149, 0, 0.16);
  color: #8a4a00;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}
.legal-callout {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-tile);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 15px;
}
.legal-callout strong { color: var(--ink); }
