/* ==========================================================================
   RingBack AI (working brand) — single landing page stylesheet.
   Self-contained: no frameworks, no build step. Works on any static host.
   ========================================================================== */

:root {
  --ink: #0e1726;
  --ink-soft: #3c4a63;
  --paper: #f6f8fb;
  --card: #ffffff;
  --brand: #0e7c86;        /* teal — swap for your brand color */
  --brand-dark: #0a5f68;
  --brand-soft: #e3f2f3;
  --accent: #f59e0b;
  --ok: #12915c;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(14, 23, 38, 0.08);
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.is-hidden { display: none !important; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6ebf2;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--brand); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
.nav .btn-small { color: #fff; }
@media (max-width: 640px) { .nav a:not(.btn-small) { display: none; } }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-small { padding: 9px 16px; font-size: 0.88rem; border-radius: 8px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #0b1524 0%, #10303d 55%, var(--brand-dark) 130%);
  color: #fff; padding: 88px 0 72px;
}
.hero-badge {
  display: inline-block; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 22px; letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.12;
  letter-spacing: -0.03em; max-width: 820px; font-weight: 800;
}
.hero h1 em { font-style: normal; color: #7fd6de; }
.hero p.sub {
  margin-top: 20px; font-size: 1.15rem; color: #c9d6e2; max-width: 700px;
}
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: #9fb3c6; }

/* ── Fact band ───────────────────────────────────────────────────────────── */
.facts { background: #fff; border-bottom: 1px solid #e6ebf2; }
.facts-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 26px 0; }
.fact { text-align: center; padding: 8px; }
.fact b { display: block; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--brand-dark); }
.fact span { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 720px) { .facts-inner { grid-template-columns: 1fr; } }

/* ── Sections ────────────────────────────────────────────────────────────── */
section { padding: 72px 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.section-sub { color: var(--ink-soft); max-width: 640px; margin-bottom: 40px; }
.alt { background: var(--paper); }

/* ── How it works ────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 56px; }
.step {
  background: var(--card); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); border: 1px solid #eef2f7;
}
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ── Chat mock ───────────────────────────────────────────────────────────── */
.chat-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .chat-wrap { grid-template-columns: 1fr; } }
.chat-copy h3 { margin-bottom: 10px; font-size: 1.15rem; }
.chat-copy p { color: var(--ink-soft); margin-bottom: 14px; }
.chat {
  background: #0b1524; border-radius: 20px; padding: 26px 22px;
  max-width: 400px; margin: 0 auto; box-shadow: var(--shadow);
}
.chat .head { color: #93a7bd; font-size: 0.78rem; text-align: center; margin-bottom: 16px; letter-spacing: 0.04em; }
.msg {
  max-width: 82%; padding: 10px 14px; border-radius: 16px;
  font-size: 0.88rem; margin-bottom: 10px; line-height: 1.45;
}
.msg.in { background: #1c2f45; color: #dbe7f3; margin-right: auto; border-bottom-left-radius: 4px; }
.msg.out { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.msg.sys { background: none; color: #7fd6de; font-size: 0.78rem; text-align: center; margin: 6px 0; max-width: 100%; }

/* ── Feature grid ────────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  border: 1px solid #eef2f7; box-shadow: var(--shadow);
}
.feature .ico { font-size: 1.6rem; margin-bottom: 10px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 0.93rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* ── Industries ──────────────────────────────────────────────────────────── */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.industry {
  background: var(--card); border-radius: var(--radius); padding: 26px;
  border-top: 3px solid var(--brand); box-shadow: var(--shadow);
}
.industry .ico { font-size: 1.7rem; margin-bottom: 10px; }
.industry h3 { margin-bottom: 6px; font-size: 1.05rem; }
.industry p { color: var(--ink-soft); font-size: 0.93rem; }
@media (max-width: 860px) { .industries { grid-template-columns: 1fr; } }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 860px; }
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr; } }
.price-card {
  background: var(--card); border-radius: var(--radius); padding: 30px;
  border: 1px solid #e6ebf2; box-shadow: var(--shadow); position: relative;
}
.price-card.featured { border: 2px solid var(--brand); }
.price-card .tag {
  position: absolute; top: -13px; left: 26px;
  background: var(--accent); color: #3c2b00; font-weight: 800; font-size: 0.75rem;
  padding: 5px 12px; border-radius: 999px; letter-spacing: 0.03em;
}
.price-card h3 { font-size: 1.05rem; }
.price-card .price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 2px; }
.price-card .price small { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.price-card .fine { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 16px; }
.price-card ul { list-style: none; margin-bottom: 20px; }
.price-card li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-soft); font-size: 0.94rem; }
.price-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 800; }
.pricing-note { margin-top: 26px; font-size: 0.9rem; color: var(--ink-soft); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 780px; }
.faq details {
  background: var(--card); border: 1px solid #e6ebf2; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(150deg, var(--brand-dark), var(--ink));
  color: #fff; text-align: center; padding: 72px 0; border-radius: 22px;
  margin: 0 20px;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em; }
.cta-band p { color: #c9d6e2; margin: 12px auto 28px; max-width: 560px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #9fb3c6; padding: 40px 0 46px; font-size: 0.88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: #c9d6e2; text-decoration: none; margin-left: 18px; }
.footer-links a:hover { text-decoration: underline; }
.sms-disclosure { margin-top: 18px; border-top: 1px solid #1f2f45; padding-top: 16px; color: #7f93aa; max-width: 760px; }

/* ── Legal pages ─────────────────────────────────────────────────────────── */
.legal h1 { margin-bottom: 6px; }
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 34px; }
.legal h2 { font-size: 1.15rem; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.97rem; }
.legal ul { margin: 8px 0 8px 22px; }
.legal .box {
  background: var(--brand-soft); border-radius: 12px; padding: 16px 20px;
  font-size: 0.93rem; color: var(--ink); margin: 18px 0;
}
.legal .container { max-width: 780px; }
