@import url("assets/tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ivory); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font: 700 .8rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }

/* Preview notice */
.notice { background: var(--ink); color: var(--ivory); font-size: .9rem; }
.notice .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center; }
.notice strong { color: var(--gold-soft); font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,240,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.18rem/1 var(--font-head); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: 600 .9rem var(--font-body); color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem/1 var(--font-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 .accent { color: var(--teal); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero .assure { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; color: var(--ink-2); font-size: .95rem; }
.hero .assure li { display: flex; align-items: center; gap: 8px; }
.tick { width: 18px; height: 18px; flex: none; }

/* Example call card */
.example { position: relative; margin: 0; }
.example-tag { position: absolute; top: -12px; left: 20px; background: var(--gold-soft); color: var(--ink); font: 700 .72rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; z-index: 2; }
.call { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px 22px 18px; }
.call-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.call-head .who { font-weight: 600; }
.call-head .meta { font-size: .85rem; color: var(--ink-3); }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; margin: 8px 0; font-size: .95rem; line-height: 1.45; }
.bubble.ai { background: var(--teal-soft); border-bottom-left-radius: 4px; }
.bubble.caller { background: var(--sand); margin-left: auto; border-bottom-right-radius: 4px; }
.bubble .speaker { display: block; font: 700 .72rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.summary { margin-top: 16px; background: var(--ink); color: var(--ivory); border-radius: var(--r-md); padding: 16px 18px; font-size: .92rem; }
.summary h3 { font-size: .95rem; color: var(--gold-soft); margin-bottom: 8px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.summary dt { color: #C9CED3; }
.summary dd { margin: 0; }

/* Sections */
section { padding: 80px 0; }
.tint { background: var(--sand); }
.section-head { max-width: 44em; margin-bottom: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }
.wont { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wont li { display: flex; gap: 10px; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); font: 800 1rem var(--font-head); margin-bottom: 14px; }

/* Demo */
.demo-status { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px dashed var(--gold); border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 28px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex: none; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 880px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--teal); }
.plan .price { font: 800 2.6rem/1 var(--font-head); letter-spacing: -0.03em; margin: 10px 0 4px; }
.plan .price span { font: 500 1rem var(--font-body); color: var(--ink-3); letter-spacing: 0; }
.plan ul { padding: 0; list-style: none; margin: 18px 0 24px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; }
.plan .btn { margin-top: auto; }
.badge { display: inline-block; font: 700 .72rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--ink); }
.fineprint { max-width: 880px; margin-top: 22px; font-size: .92rem; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 700 1.08rem/1.35 var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.6rem var(--font-body); color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-right: 36px; }

/* Footer */
.site-footer { background: var(--ink); color: #C9CED3; padding: 48px 0 36px; font-size: .95rem; }
.site-footer a { color: var(--ivory); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer .brand { color: var(--ivory); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .legal { border-top: 1px solid #2B3238; margin-top: 32px; padding-top: 18px; font-size: .85rem; }

/* Docs pages */
.doc { max-width: 760px; padding: 56px 0 80px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.draft { background: #FFF4E5; border: 1px solid #E8C48A; border-radius: var(--r-sm); padding: 14px 16px; margin: 18px 0 28px; }

/* Responsive */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding: 44px 0 40px; }
  .grid-3, .grid-2, .steps, .plans { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .hero .ctas .btn { flex: 1 1 100%; }
  .bubble { max-width: 94%; }
}

/* Comparison table (compare.html) */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .95rem; background: #fff; border: 1px solid var(--line, #E5DFD0); border-radius: 12px; }
.compare caption { text-align: left; padding: 0 0 10px; color: var(--ink-3); font-size: .9rem; caption-side: top; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line, #E5DFD0); }
.compare thead th { font: 700 .95rem/1.3 var(--font-head); background: var(--ivory); }
.compare tbody th { font-weight: 600; width: 16%; color: var(--ink); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .us { background: #F1F7F5; }
