/* Landing page (home#index, layouts/landing). Self-contained; does not load Bootstrap. */

:root {
  --brand: #e84c3d;
  --brand-dark: #c93a2c;
  --brand-tint: #fdeeec;
  --ink: #1d2230;
  --ink-2: #4a5163;
  --ink-3: #7a8193;
  --line: #e6e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f7fa;
  --dark: #171b26;
  --ok: #1f9d63;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 38, .06), 0 8px 24px rgba(20, 24, 38, .08);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section[id] { scroll-margin-top: 72px; }   /* keep anchored sections clear of the sticky header */
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .7em 1.25em; border-radius: 10px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .9em 1.5em; font-size: 1rem; }
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-outline { color: var(--brand-dark); border-color: var(--brand); background: #fff; }
.btn-outline:hover { background: var(--brand-tint); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { border-color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 42px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav-login { padding-left: 28px; border-left: 1px solid var(--line); }
.nav-toggle, .nav-burger { display: none; }

/* Hero (dark, with glow and a live call flow) */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 88px 0 104px; color: #fff;
  background: #0f1320;
}
.hero::before {            /* drifting colour glows */
  content: ""; position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(38% 42% at 78% 28%, rgba(232, 76, 61, .55), transparent 70%),
    radial-gradient(34% 40% at 12% 85%, rgba(255, 138, 76, .28), transparent 70%),
    radial-gradient(40% 45% at 55% 110%, rgba(92, 108, 255, .30), transparent 70%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero::after {             /* faint grid, fading out toward the edges */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 20px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .85);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.grad {
  background: linear-gradient(100deg, #ff8a5c, #ff5a4a 45%, #ffb199);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.2rem; color: rgba(255, 255, 255, .74); max-width: 34em; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero .btn-primary { box-shadow: 0 8px 28px rgba(232, 76, 61, .45); }
.hero .btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .25); }
.hero .btn-ghost:hover { border-color: #fff; }
.hero-price { color: rgba(255, 255, 255, .7); font-size: .98rem; margin-bottom: 24px; }
.hero-price b { color: #fff; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: #4ade80; font-weight: 700; margin-right: 8px; }

/* Call-flow card: the call walks through the steps on an 8s loop */
.flow-stage { position: relative; }
.flow-card {
  position: relative; color: var(--ink);
  background: #fff; border-radius: 20px; padding: 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 80px rgba(232, 76, 61, .28), 0 12px 32px rgba(0, 0, 0, .35);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.flow-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 700; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.flow-meta { margin-left: auto; font-weight: 500; color: var(--ink-3); font-size: .9rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.dot.live { box-shadow: 0 0 0 0 rgba(31, 157, 99, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(31, 157, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 99, 0); } }

.flow { list-style: none; margin: 0; padding: 8px 0 0; position: relative; }
.flow::before, .flow::after { content: ""; position: absolute; left: 21px; top: 38px; bottom: 38px; }
.flow::before { border-left: 2px dashed var(--line); }
.flow::after {             /* progress line that follows the call */
  width: 2px; background: linear-gradient(var(--brand), #ff8a5c);
  transform-origin: top; transform: scaleY(0);
  animation: flow-line 8s linear infinite;
}
@keyframes flow-line { 0% { transform: scaleY(0); } 75% { transform: scaleY(1); opacity: 1; } 96% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.flow li {
  position: relative; display: flex; gap: 16px;
  margin: 0 -10px; padding: 12px 10px; border-radius: 12px;
  animation: flow-step 8s infinite;
}
.flow li b { display: block; font-size: .98rem; }
.flow li span:not(.flow-icon):not(.chip) { color: var(--ink-2); font-size: .92rem; }
.flow-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--ink-2); position: relative; z-index: 1; border: 1px solid var(--line);
  animation: flow-icon 8s infinite;
}
.flow li:nth-child(2), .flow li:nth-child(2) .flow-icon { animation-delay: 2s; }
.flow li:nth-child(3), .flow li:nth-child(3) .flow-icon, .flow li:nth-child(3) .chip { animation-delay: 4s; }
.flow li:nth-child(4), .flow li:nth-child(4) .flow-icon { animation-delay: 6s; }
@keyframes flow-step { 0%, 23% { background: var(--brand-tint); } 27%, 100% { background: transparent; } }
@keyframes flow-icon {
  0%, 23% { background: var(--brand); color: #fff; border-color: var(--brand); transform: scale(1.06); }
  27%, 100% { background: var(--bg-soft); color: var(--ink-2); border-color: var(--line); transform: none; }
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: #fff; border: 1px solid #f3c9c4; color: var(--brand-dark);
  animation: chip-ring 8s infinite;
}
.chip:nth-child(2) { animation-name: chip-ring-b; }
@keyframes chip-ring {     /* phones "ringing" while the ring-group step is live */
  0%, 8%, 16% { box-shadow: 0 0 0 0 rgba(232, 76, 61, .45); }
  7%, 15%, 23% { box-shadow: 0 0 0 7px rgba(232, 76, 61, 0); }
  24%, 100% { box-shadow: none; }
}
@keyframes chip-ring-b {
  0%, 3%, 11%, 19% { box-shadow: 0 0 0 0 rgba(232, 76, 61, .45); }
  10%, 18%, 23% { box-shadow: 0 0 0 7px rgba(232, 76, 61, 0); }
  24%, 100% { box-shadow: none; }
}

/* Voicemail notification that pops in on the last step */
.toast {
  position: absolute; left: -28px; bottom: -50px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgba(23, 27, 38, .92); color: #fff; font-size: .82rem;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(12px) scale(.96);
  animation: toast 8s infinite;
}
.toast b { display: block; font-size: .88rem; }
.toast span:last-child { color: rgba(255, 255, 255, .7); }
.toast-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; }
@keyframes toast {
  0%, 76% { opacity: 0; transform: translateY(12px) scale(.96); }
  80%, 96% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { padding: 28px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.step, .feature, .quote { transition: transform .25s, box-shadow .25s, border-color .25s; }
.step:hover, .feature:hover, .quote:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(232, 76, 61, .12), 0 4px 12px rgba(20, 24, 38, .06); border-color: #f3c9c4; }
.feature-icon { transition: background .25s, color .25s, transform .25s; }
.feature:hover .feature-icon { background: var(--brand); color: #fff; transform: rotate(-6deg) scale(1.06); }
.step p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 16px;
  background: linear-gradient(135deg, #ff7a5c, var(--brand)); color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: 0 6px 16px rgba(232, 76, 61, .35);
}

/* Features */
.features { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-dark); margin-bottom: 16px; }
.feature ul { list-style: none; padding: 0; margin: 0; }
.feature li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: .93rem; margin-bottom: 8px; }
.feature li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* CRM integration callout */
.integrate {
  display: flex; align-items: center; gap: 24px; margin-top: 28px; padding: 28px 32px;
  border-radius: var(--radius); color: #fff;
  background:
    radial-gradient(60% 160% at 100% 0%, rgba(232, 76, 61, .5), transparent 65%),
    #0f1320;
  box-shadow: var(--shadow);
}
.integrate-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.integrate h3 { font-size: 1.25rem; margin-bottom: .3em; }
.integrate p { margin: 0; color: rgba(255, 255, 255, .75); font-size: .98rem; max-width: 46em; }
.integrate .btn { margin-left: auto; flex: none; }

/* Why */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.why-copy p { font-size: 1.1rem; color: var(--ink-2); }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.why-list h3 { padding-top: 16px; border-top: 2px solid var(--brand); }
.why-list p { color: var(--ink-2); font-size: .96rem; margin: 0; }

/* Quotes */
.quotes { padding-top: 0; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quote { margin: 0; padding: 32px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { margin: 0 0 24px; font-size: 1.05rem; color: var(--ink); }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: .6; color: var(--brand); margin-bottom: 8px; font-family: Georgia, serif; }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--ink-3); }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.quote figcaption b { display: block; color: var(--ink); }

/* Pricing */
.pricing { background: var(--bg-soft); border-top: 1px solid var(--line); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; max-width: 1040px; margin: 0 auto; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; }
.plan.is-featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan-tag { position: absolute; top: -12px; left: 26px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--ink-3); }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 8px 0; border-top: 1px solid var(--line); font-size: .93rem; color: var(--ink-2); }
.pricing-note { text-align: center; margin: 32px 0 0; font-weight: 600; }

/* Inner pages: compact dark heading band */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 64px 0 120px;
  background:
    radial-gradient(45% 120% at 88% 0%, rgba(232, 76, 61, .55), transparent 65%),
    radial-gradient(40% 100% at 0% 110%, rgba(92, 108, 255, .28), transparent 65%),
    #0f1320;
}
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.page-hero .lede { margin-bottom: 0; max-width: 40em; font-size: 1.1rem; }

/* Contact page */
.contact { padding: 0 0 96px; background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; margin-top: -72px; position: relative; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: .93rem; color: var(--ink-2); transition: background .15s, color .15s, box-shadow .15s; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 24, 38, .15); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.field label small { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237a8193' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1.500 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(232, 76, 61, .15); }

.only-customer, .is-customer .only-new { display: none; }
.is-customer .only-customer { display: revert; }
.is-customer div.only-customer, .is-customer .field-row.only-customer { display: grid; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-errors { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; background: var(--brand-tint); border: 1px solid #f3c9c4; color: #8f2a1f; font-size: .93rem; }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }
.form-note { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; background: #e7f6ee; border: 1px solid #bfe5d0; color: #14653f; font-size: .93rem; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 6px; color: var(--ink-3); font-size: .9rem; }

.contact-aside { background: #0f1320; color: #fff; border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.contact-aside h2 { font-size: 1.4rem; }
.contact-aside > p { color: rgba(255, 255, 255, .7); font-size: .96rem; }
.contact-list { list-style: none; margin: 24px 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .98rem; }
.contact-list small { display: block; color: rgba(255, 255, 255, .55); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-list a { color: #fff; font-weight: 600; font-size: 1.05rem; }
.contact-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.contact-promise { display: flex; gap: 10px; align-items: baseline; margin: 0; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .85) !important; font-size: .9rem !important; }
.contact-promise .dot { flex: none; background: #4ade80; }

.received { text-align: left; }
.received-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #e7f6ee; color: var(--ok); margin-bottom: 16px; }
.received dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 20px 0; padding: 18px 20px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.received dt { color: var(--ink-3); }
.received dd { margin: 0; font-weight: 600; }
.received p { color: var(--ink-2); }

/* CMS pages: terms, privacy */
.doc-hero { padding: 56px 0 112px; }
.doc-hero .lede { font-size: 1rem; }
.doc { background: var(--bg-soft); padding-bottom: 96px; }
.doc-grid { margin-top: -72px; position: relative; max-width: 860px; }
.doc-grid.has-toc { max-width: var(--wrap); display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 48px 56px; box-shadow: var(--shadow); }

.doc-toc { position: sticky; top: 96px; padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .9rem; }
.doc-toc p { margin-bottom: 10px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; }
.doc-toc a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; color: var(--ink-2); line-height: 1.35; }
.doc-toc a:hover { background: var(--brand-tint); color: var(--brand-dark); text-decoration: none; }

.prose { font-size: 1rem; line-height: 1.75; color: #333a4a; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin: 2em 0 .7em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: 1.3rem; font-weight: 800; color: var(--ink); scroll-margin-top: 96px; }
.prose h2:first-child { border-top: 0; padding-top: 0; }
.prose strong { color: var(--ink); }
.prose .legal-section { margin-top: 1.6em; }
.prose .legal-item { padding-left: 20px; }
.prose .legal-subitem { padding-left: 40px; }
.prose a { text-decoration: underline; }
.doc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: .93rem; color: var(--ink-2); }
.doc-foot a { font-weight: 600; text-decoration: none; }

/* Login page */
.auth {
  position: relative; overflow: hidden; display: grid; place-items: center;
  min-height: calc(100vh - 72px - 190px); padding: 72px 16px 88px;
  background:
    radial-gradient(40% 60% at 82% 12%, rgba(232, 76, 61, .55), transparent 70%),
    radial-gradient(40% 60% at 10% 95%, rgba(92, 108, 255, .30), transparent 70%),
    #0f1320;
}
.auth-card {
  width: 100%; max-width: 420px; padding: 40px 36px; border-radius: 20px; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 80px rgba(232, 76, 61, .25), 0 12px 32px rgba(0, 0, 0, .35);
}
.auth-card h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-sub { color: var(--ink-2); font-size: .98rem; margin-bottom: 26px; }
.auth .field label { display: flex; justify-content: space-between; align-items: baseline; }
.field-link { font-weight: 500; font-size: .85rem; }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-foot { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-2); font-size: .93rem; }
.auth-foot a { font-weight: 600; }

/* FAQ page: ask box, streamed answer, browsable questions */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ask-hero { text-align: center; padding-bottom: 112px; }
.ask-hero .lede { margin-left: auto; margin-right: auto; }
.ask { background: var(--bg-soft); padding-bottom: 72px; }
.ask-wrap { max-width: 820px; margin-top: -64px; position: relative; }

.ask-box {
  display: flex; gap: 8px; padding: 8px; border-radius: 18px; background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 24px 60px rgba(232, 76, 61, .22), 0 8px 24px rgba(20, 24, 38, .12);
  transition: box-shadow .2s, border-color .2s;
}
.ask-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 5px rgba(232, 76, 61, .18), 0 24px 60px rgba(232, 76, 61, .22); }
.ask-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 14px 16px; font: inherit; font-size: 1.1rem; color: var(--ink); }
.ask-box .btn { padding: 0 28px; font-size: 1rem; border-radius: 12px; }
.ask-box .btn:disabled { opacity: .6; cursor: default; transform: none; }

.ask-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; color: var(--ink-3); }
.ask-chip {
  font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; color: var(--ink-2);
  padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  transition: border-color .15s, color .15s, transform .15s;
}
.ask-chip:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-1px); }

.answer { margin-top: 28px; padding: 28px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); animation: answer-in .35s ease; }
@keyframes answer-in { from { opacity: 0; transform: translateY(10px); } }
.answer-q { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; padding-left: 14px; border-left: 3px solid var(--brand); }
.answer-body p { margin-bottom: .8em; font-size: 1.05rem; }
.answer-body p:last-child { margin-bottom: 0; }
.answer.is-loading .answer-body::before {
  content: ""; display: block; width: 44px; height: 10px; border-radius: 999px;
  background: radial-gradient(circle 4px, var(--brand) 96%, transparent) 0 50% / 16px 10px repeat-x;
  animation: typing 1s steps(3) infinite;
}
@keyframes typing { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -34% 0 0); } }
.answer-error { color: #8f2a1f; background: var(--brand-tint); border: 1px solid #f3c9c4; border-radius: 10px; padding: 10px 14px; font-size: .95rem !important; }
.answer-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .92rem; }
.ask-note { margin: 20px 0 0; font-size: .82rem; color: var(--ink-3); text-align: center; }

.faq-wrap { max-width: 820px; }
.faq-browse .section-head { margin-bottom: 24px; }
.faq-group { margin: 36px 0 12px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; transition: border-color .15s, box-shadow .15s; }
.faq-item[open] { border-color: #f3c9c4; box-shadow: 0 8px 24px rgba(232, 76, 61, .08); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 20px 18px; color: var(--ink-2); font-size: .98rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Closing CTA */
.cta {
  color: #fff; padding: 80px 0;
  background:
    radial-gradient(50% 120% at 90% 0%, rgba(232, 76, 61, .55), transparent 65%),
    radial-gradient(40% 100% at 0% 100%, rgba(92, 108, 255, .28), transparent 65%),
    #0f1320;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgba(255, 255, 255, .7); margin: 0; max-width: 36em; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* Footer */
.site-footer { background: #10131b; color: rgba(255, 255, 255, .6); padding: 48px 0; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.site-footer img { height: 34px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: .85; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: rgba(255, 255, 255, .75); }
.copyright { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }

/* Scroll reveal (classes added by the script on the home page) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.in:hover { transition-delay: 0s !important; }

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero { padding: 56px 0 88px; }
  .toast { left: 12px; bottom: -52px; }
  .hero-grid, .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .quote-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .doc-grid.has-toc { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .doc-card { padding: 32px 28px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .integrate { flex-direction: column; align-items: flex-start; padding: 24px; }
  .integrate .btn { margin-left: 0; }

  .nav-burger { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
  .nav-burger span::before { position: absolute; top: -7px; }
  .nav-burger span::after { position: absolute; top: 7px; }
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .site-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-login { padding-left: 4px; border-left: 0; }
  .site-nav .btn { margin-top: 12px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .feature-grid, .steps, .why-list { grid-template-columns: 1fr; }
  .flow-meta { margin-left: 17px; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-card, .contact-aside { padding: 24px 20px; }
  .page-hero { padding: 48px 0 104px; }
  .form-foot .btn { width: 100%; }
  .seg span { font-size: .88rem; padding: 10px 6px; }
  .doc-card { padding: 26px 20px; }
  .prose .legal-item { padding-left: 12px; }
  .prose .legal-subitem { padding-left: 24px; }
  .auth { padding: 40px 16px 56px; }
  .auth-card { padding: 30px 22px; }
  .ask-box { flex-direction: column; }
  .ask-box .btn { padding: 14px; }
  .answer { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .flow li:nth-child(3) { background: var(--brand-tint); }
  .flow li:nth-child(3) .flow-icon { background: var(--brand); color: #fff; border-color: var(--brand); }
  .toast { opacity: 1; transform: none; }
}
