/* ChatJar site. Brand kit v2 (coral): brand/chatjar-tokens.css. Mobile-first. System font, no web fonts.
   Coral buttons always carry NAVY text (6.4:1). Coral-coloured text uses coral ink #A8361C. */
:root {
  --navy: #0B1F3A; --coral: #FF7A59; --coral-hover: #F2603D; --coral-tint: #FFF1EC; --coral-ink: #A8361C;
  --error: #B3123A; --white: #fff; --fog: #F4F7FA; --slate: #46566B; --line: #DCE3EB;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --r: 12px;
  --wrap: 1120px; --gut: 16px;
}
*, *::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; } }
body { margin: 0; font: 400 16px/1.5 var(--font); color: var(--navy); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-ink); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 7vw, 48px); }
h2 { font-size: clamp(24px, 4.6vw, 34px); }
h3 { font-size: 18px; font-weight: 650; }
p, ul, ol { margin: 0 0 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.center { text-align: center; }
.mt { margin-top: 24px; } .mt-lg { margin-top: 48px; }

/* bars */
.ribbon { background: var(--navy); color: #fff; text-align: center; font-size: 13px; padding: 4px; letter-spacing: .02em; }
.ea-bar { background: var(--coral-tint); font-size: 14px; }
.ea-bar p { margin: 0; padding: 8px 0; text-align: center; }
.ea-bar a { font-weight: 600; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand img { width: 128px; height: auto; }
.nav { list-style: none; display: flex; align-items: center; gap: 4px 16px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 2px; display: inline-block; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--coral-ink); text-decoration: underline; }
@media (max-width: 639.98px) {
  .header-inner { padding-top: 8px; padding-bottom: 8px; }
  .nav { width: 100%; justify-content: space-between; }
  .nav li:last-child { margin-left: auto; }
  .site-header { position: static; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--r);
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn-primary { background: var(--coral); color: var(--navy); }
.btn-primary:hover { background: var(--coral-hover); color: var(--navy); }
.btn-primary:disabled { background: #FFC4B4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }

/* sections */
.section { padding: 56px 0; }
.section-tight { padding-top: 32px; }
.band { background: var(--fog); padding: 56px 0; }
.eyebrow { color: var(--coral-ink); font-weight: 650; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.lede { font-size: 18px; color: var(--slate); max-width: 62ch; }
.section-lede { color: var(--slate); max-width: 62ch; margin-bottom: 28px; }
.micro { font-size: 14px; color: var(--slate); }
.updated { font-size: 14px; color: var(--slate); }
.page-head { background: var(--fog); padding: 40px 0 32px; }
.page-head .lede { margin-bottom: 8px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--navy); background: var(--coral-tint); border: 1px solid #FFD3C5; border-radius: 999px; padding: 1px 8px; white-space: nowrap; vertical-align: 1px; }

/* hero */
.hero { background: linear-gradient(180deg, var(--fog), #fff); padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 80px; } .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.demo { margin: 0; position: relative; padding: 0 28px 0 0; }
@media (max-width: 479.98px) { .demo { padding-right: 0; } }
.widget { background: #fff; border: 1.5px solid var(--navy); border-radius: var(--r); overflow: hidden; box-shadow: 0 18px 40px -18px rgba(11,31,58,.35); max-width: 400px; margin: 0 auto; }
.w-head { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 600; font-size: 15px; }
.w-x { margin-left: auto; font-size: 20px; line-height: 1; }
.w-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bub { margin: 0; padding: 10px 12px; border-radius: var(--r); font-size: 14.5px; max-width: 88%; }
.bub-v { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.bub-b { align-self: flex-start; background: var(--fog); border-bottom-left-radius: 4px; }
.w-note { margin: 2px 0 0; font-size: 12px; color: var(--slate); }
.w-input { margin: 0 14px 14px; background: var(--fog); border-radius: var(--r); padding: 11px 12px; font-size: 14px; color: var(--slate); }
.launcher { position: absolute; right: 0; bottom: 64px; filter: drop-shadow(0 6px 12px rgba(11,31,58,.3)); }
@media (max-width: 479.98px) { .launcher { display: none; } }
.demo figcaption { text-align: center; font-size: 13px; color: var(--slate); margin-top: 14px; }

/* steps & cards */
.steps { list-style: none; padding: 0; display: grid; gap: 20px; margin: 24px 0 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: #fff; border-radius: var(--r); padding: 24px; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--coral); color: var(--navy); font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--slate); margin: 0; }
.cards { display: grid; gap: 20px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card ul { padding-left: 18px; color: var(--slate); margin-bottom: 8px; }
.card li { margin-bottom: 8px; }
.card p { color: var(--slate); }
.card p:last-child { margin-bottom: 0; }
.src-n { font-size: 32px; font-weight: 700; color: var(--coral-ink); margin-bottom: 4px; line-height: 1; }
.why { list-style: none; padding: 0; display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 768px) { .why { grid-template-columns: repeat(2, 1fr); gap: 20px 40px; } }
.why li { padding-left: 32px; position: relative; color: var(--slate); }
.why li strong { color: var(--navy); }
.why li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%230B1F3A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.two-col p { color: var(--slate); }
.flow { padding-left: 20px; color: var(--slate); }
.flow li { margin-bottom: 12px; }
.flow strong { color: var(--navy); }

/* pricing */
.plans { display: grid; gap: 16px; margin-bottom: 24px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; }
.plan--popular { border-top-color: var(--coral); background: linear-gradient(180deg, var(--coral-tint), #fff 120px); }
.plan-flag { position: absolute; top: -13px; left: 20px; margin: 0; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.price { margin: 4px 0 0; }
.amt { font-size: 34px; font-weight: 700; }
.per { color: var(--slate); font-size: 14px; margin-left: 4px; }
.alt { color: var(--slate); font-size: 14px; margin-bottom: 12px; }
.plan-blurb { font-weight: 500; }
.plan .ticks li { font-size: 15px; color: var(--slate); }
.plan .ticks strong { color: var(--navy); }
.section .plans + .center { margin-top: 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.compare { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 15px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--fog); font-size: 16px; }
.compare tbody th { font-weight: 600; width: 20%; background: #fff; position: sticky; left: 0; }
.compare .pop { background: #FFF8F5; }
.compare thead .pop { background: var(--coral-tint); box-shadow: inset 0 4px 0 var(--coral); }
.compare tr:last-child > * { border-bottom: 0; }
.notes { margin-top: 28px; max-width: 760px; color: var(--slate); }
.notes strong { color: var(--navy); }

/* dealjar */
.dealjar { padding: 40px 0; }
.dj-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; max-width: calc(var(--wrap) - 2 * var(--gut)); }
.dj-inner > div { max-width: 640px; }
.dj-inner p { color: var(--slate); margin: 0; }
@media (max-width: 1151.98px) { .dealjar .dj-inner { margin: 0 var(--gut); } }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; color: var(--coral-ink); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { display: inline; margin: 0; font-size: 18px; }
.faq .ans { color: var(--slate); padding-bottom: 8px; }

/* prose */
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p, .prose li { color: #2B3A4F; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

/* sign-up */
.signup { background: var(--navy); color: #fff; padding: 56px 0; }
.signup:focus { outline: none; }
.signup-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .signup-grid { grid-template-columns: 1fr 1fr; gap: 56px; } .signup { padding: 80px 0; } }
.signup h2 { color: #fff; }
.signup-copy p, .ticks-light li { color: #DCE3EB; }
.signup a { color: #FFB59F; }
.signup-box { background: #fff; color: var(--navy); border-radius: var(--r); padding: 24px; }
.signup-box a { color: var(--coral-ink); }
.ea-form .field { margin-bottom: 16px; }
.ea-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.ea-form .opt { font-weight: 400; color: var(--slate); }
.ea-form input, .ea-form select { width: 100%; font: 16px/1.4 var(--font); color: var(--navy); background: var(--fog); border: 1.5px solid #B9C4D1; border-radius: var(--r); padding: 12px; min-height: 48px; }
.ea-form input:focus, .ea-form select:focus { outline: 3px solid var(--coral); outline-offset: 0; border-color: var(--navy); background: #fff; }
.ea-form [aria-invalid="true"] { border-color: var(--error); }
.ea-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine-print { font-size: 13px; color: var(--slate); margin: 12px 0 0; }
.ea-status { font-size: 14px; margin: 8px 0 0; }
.ea-status:empty { display: none; }
.ea-status.err { color: var(--error); font-weight: 600; }
.ea-status.err::before { content: "⚠ "; }
.ea-placeholder { background: var(--coral-tint); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.ea-ok h3 { font-size: 22px; }
.ea-ok p { color: var(--slate); margin: 0; }

/* footer */
.site-footer { background: #081729; color: #C9D3DF; padding: 48px 0 24px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .btn-primary { color: var(--navy); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 2fr 1fr 1.4fr; } }
.foot-brand img { width: 128px; margin-bottom: 14px; }
.fine { border-top: 1px solid #1E3352; margin-top: 24px; padding-top: 20px; font-size: 13px; }
.fine p { margin: 0; }

/* consent (only when GA4_ID is set) */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; background: #fff; border: 1.5px solid var(--navy); border-radius: var(--r); padding: 16px; max-width: 520px; box-shadow: 0 10px 30px rgba(11,31,58,.25); font-size: 15px; }
.consent p { margin-bottom: 12px; }

.later { margin-top: 24px; border: 1px dashed #B9C4D1; border-radius: var(--r); padding: 20px 24px; background: var(--fog); }
.later h3 { margin-bottom: 6px; }
.later p { color: var(--slate); margin: 0; }

.ea-ok img { margin-bottom: 16px; }
.ea-ok:focus { outline: none; }
