/* SuperBold Chatbot — marketing site. On the SuperBold house style:
   ink + paper neutrals, amber accent, editorial type, pill buttons.
   Shared across the homepage and all SEO/landing pages so they read as one brand. */
@import url('https://fonts.googleapis.com/css2?family=Special+Gothic+Expanded+One&display=swap');

:root {
  --ink: #0a0a0a;          /* sb-black */
  --paper: #f4f4f2;        /* sb-paper */
  --surface: #ffffff;
  --accent: #ffb400;       /* SuperBold amber — for fills & decoration (use BLACK text on it) */
  --accent-deep: #8a6500;  /* contrast-safe deep amber for text/links on paper (passes AA) */
  --line: #e0ded8;
  --muted: #6b6b6b;        /* sb-smoke */
  --sand: #eceae4;         /* sb section-alt */
  --green: #1a7a55;
  --radius: 1.1rem;
  --maxw: 70rem;
  --display: 'Special Gothic Expanded One', 'Arial Black', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 46rem; }
.eyebrow { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--muted); margin: 0 0 1rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.eyebrow::before { content: ''; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); flex: none; }
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* buttons — pill-shaped, like the SuperBold house style */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--sans); font-weight: 600; font-size: 1rem; padding: 0.85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--accent { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover, .btn--accent:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10, 10, 10, 0.18); }
  .btn--ghost:hover { background: var(--ink); color: #fff; }
  .btn--light:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10, 10, 10, 0.1); }
}
/* On the dark CTA band the hover flips to white instead of ink (which would vanish). */
.cta-band .btn--primary:hover { background: #fff; color: #0a0a0a; border-color: #fff; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(244, 241, 234, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s, background 0.2s; }
.site-header.scrolled { border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 400; font-size: 1.15rem; letter-spacing: -0.01em; text-transform: lowercase; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 1.9rem; height: 1.9rem; border-radius: 0.5rem; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-size: 0.9rem; font-family: var(--sans); font-weight: 800; text-transform: none; }
.brand em { color: var(--accent-deep); font-style: normal; }
.nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav a:not(.btn) { color: var(--ink); font-weight: 500; font-size: 0.96rem; }
.nav a:not(.btn):hover { color: var(--accent-deep); text-decoration: none; }
.nav__cta { display: flex; gap: 0.6rem; align-items: center; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 1.5rem; height: 2px; background: var(--ink); margin: 4px 0; transition: 0.2s; }

@media (max-width: 56rem) {
  .nav { position: fixed; inset: 4.5rem 0 auto; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem 1.5rem 1.5rem; gap: 1rem; transform: translateY(-120%); transition: transform 0.25s ease; }
  .nav.open { transform: none; }
  .nav__cta { flex-direction: column; align-items: stretch; }
  .nav-toggle { display: block; margin-left: auto; }
}

/* sections */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }

/* hero */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -30%; right: -10%; width: 50rem; height: 50rem; background: radial-gradient(circle, rgba(255, 180, 0, 0.18), transparent 60%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
/* Hero headline in the SuperBold display face — like "Bold by design." */
.hero__title { margin-bottom: 1.2rem; font-family: var(--display); font-weight: 400; font-size: clamp(2.7rem, 6.5vw, 4.8rem); line-height: 0.98; letter-spacing: -0.01em; }
/* the emphasis word stays in the heading's display font — only amber-coloured */
.hero__title .hl { color: var(--accent); }
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.8rem 0 1.2rem; }
.hero__trust { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: 1px; }
@media (max-width: 56rem) { .hero__grid { grid-template-columns: 1fr; gap: 2rem; } .hero__visual { order: -1; } }

/* chat mockup */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 1.4rem; box-shadow: 0 30px 70px rgba(26, 25, 22, 0.16); overflow: hidden; max-width: 23rem; margin: 0 auto; transform: rotate(0.5deg); }
.mock__head { background: var(--accent); color: #0a0a0a; padding: 1rem 1.1rem; display: flex; align-items: center; gap: 0.7rem; }
.mock__avatar { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(10,10,10,0.14); display: grid; place-items: center; font-weight: 700; }
.mock__name { font-weight: 700; line-height: 1.1; }
.mock__sub { font-size: 0.75rem; opacity: 0.9; display: flex; align-items: center; gap: 0.3rem; }
.mock__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #46d39a; }
.mock__body { padding: 1.1rem; background: #faf8f4; display: flex; flex-direction: column; gap: 0.6rem; min-height: 16rem; }
.bubble { padding: 0.6rem 0.85rem; border-radius: 1.1rem; font-size: 0.9rem; max-width: 85%; line-height: 1.45; }
.bubble--bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 0.3rem; align-self: flex-start; }
.bubble--user { background: var(--accent); color: #0a0a0a; border-bottom-right-radius: 0.3rem; align-self: flex-end; }
.mock__card { background: #fff; border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.7rem; align-self: flex-start; max-width: 92%; }
.mock__card h5 { margin: 0 0 0.15rem; font-family: var(--sans); font-size: 0.85rem; }
.mock__card .m { font-size: 0.74rem; color: var(--muted); margin-bottom: 0.5rem; }
.mock__card .cta { display: inline-block; background: var(--accent); color: #0a0a0a; font-size: 0.74rem; font-weight: 600; padding: 0.32rem 0.7rem; border-radius: 999px; }
.mock__foot { padding: 0.7rem 1.1rem; border-top: 1px solid var(--line); display: flex; gap: 0.5rem; background: #fff; }
.mock__foot input { flex: 1; border: 1px solid var(--line); border-radius: 0.7rem; padding: 0.5rem 0.7rem; font: inherit; font-size: 0.85rem; color: var(--muted); }
.mock__send { width: 2.2rem; height: 2.2rem; border-radius: 0.6rem; background: var(--accent); display: grid; place-items: center; color: #0a0a0a; }

/* trust strip */
.strip { background: var(--ink); color: #fff; padding: 1.4rem 0; }
.strip__inner { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; font-family: var(--serif); font-size: 1.1rem; opacity: 0.92; }
.strip__inner span { white-space: nowrap; }

/* feature cards */
.grid { display: grid; gap: 1.2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 56rem) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 38rem) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(26, 25, 22, 0.1); } }
.card__icon { width: 3rem; height: 3rem; border-radius: 0.8rem; background: #fff7e6; color: var(--accent-deep); display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.4rem; }
.card__icon svg { width: 1.5rem; height: 1.5rem; }
.card h3 { margin-bottom: 0.4rem; font-family: var(--sans); font-weight: 700; font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.96rem; color: var(--muted); }

/* steps */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 56rem) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 3.5rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent); color: #0a0a0a; font-family: var(--serif); font-weight: 700; display: grid; place-items: center; }
.step h3 { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; }

/* alternating feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row--flip .feature-row__media { order: 2; }
@media (max-width: 56rem) { .feature-row { grid-template-columns: 1fr; gap: 1.5rem; } .feature-row--flip .feature-row__media { order: 0; } }
.checklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; background: #e7f4ee; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
@media (max-width: 56rem) { .plans { grid-template-columns: 1fr; max-width: 26rem; margin: 0 auto; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--accent); box-shadow: 0 16px 40px rgba(255, 180, 0, 0.2); position: relative; }
.plan__tag { position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%); background: var(--accent); color: #0a0a0a; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.8rem; border-radius: 999px; }
.plan__name { font-family: var(--serif); font-size: 1.5rem; }
.plan__price { font-family: var(--serif); font-size: 2.4rem; margin: 0.4rem 0 0.1rem; }
.plan__price small { font-family: var(--sans); font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.plan__desc { color: var(--muted); font-size: 0.92rem; min-height: 2.6rem; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; flex: 1; }
.plan li { padding-left: 1.6rem; position: relative; margin-bottom: 0.55rem; font-size: 0.94rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-deep); font-weight: 700; }
.plan .btn { width: 100%; justify-content: center; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 56rem) { .quotes { grid-template-columns: 1fr; } }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.quote__stars { color: var(--accent); margin-bottom: 0.7rem; letter-spacing: 2px; }
.quote__text { font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; margin-bottom: 1.2rem; }
.quote__who { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.quote__pic { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-weight: 700; color: var(--accent-deep); font-family: var(--serif); }
.quote__name { font-weight: 700; font-size: 0.92rem; }
.quote__role { font-size: 0.82rem; color: var(--muted); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 38rem) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat__num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--accent-deep); line-height: 1; }
.stat__label { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; }

/* FAQ */
.faq { max-width: 46rem; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 0.8rem; margin-bottom: 0.7rem; overflow: hidden; }
.faq summary { padding: 1.1rem 1.3rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--accent-deep); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: 1.6rem; padding: clamp(2.5rem, 5vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; bottom: -40%; left: -5%; width: 30rem; height: 30rem; background: radial-gradient(circle, rgba(255,180,0,0.35), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 34rem; margin: 0 auto 1.8rem; }

/* tonal section */
.tone-sand { background: var(--sand); }
.tone-ink { background: var(--ink); color: #fff; }
.tone-ink h2, .tone-ink h3 { color: #fff; }
.tone-ink .muted { color: rgba(255,255,255,0.72); }
.tone-ink .card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.tone-ink .card p { color: rgba(255,255,255,0.72); }

/* footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 56rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 38rem) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,0.75); display: block; margin-bottom: 0.5rem; font-size: 0.94rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 0.8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }

/* breadcrumb (landing pages) */
.crumb { font-size: 0.85rem; color: var(--muted); padding-top: 1.5rem; }
.crumb a { color: var(--muted); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* docs / guide */
.doc { max-width: 48rem; }
.doc h2 { margin-top: 2.5rem; }
.doc h3 { margin-top: 1.75rem; }
.doc p, .doc li { color: #34322c; }
.doc ul, .doc ol { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4rem; }
.doc code { background: var(--sand); border: 1px solid var(--line); padding: 0.05rem 0.35rem; border-radius: 0.35rem; font-size: 0.88em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.callout { background: #fff3ee; border: 1px solid #ffd9c9; border-left: 3px solid var(--accent); border-radius: 0.6rem; padding: 1rem 1.1rem; margin: 1.25rem 0; }
.callout strong { color: var(--accent-deep); }
.codeblock { background: var(--ink); color: #f4f1ea; border-radius: 0.7rem; padding: 1rem 1.1rem; overflow-x: auto; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.84rem; line-height: 1.55; margin: 0; }
.codeblock code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

/* code language tabs — without JS all panels show (stacked); JS turns them into tabs */
.codetabs { margin: 1rem 0; }
.codetabs__btns { display: none; gap: 0.4rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.codetabs--js .codetabs__btns { display: flex; }
.codetabs__btn { font: inherit; font-weight: 600; font-size: 0.85rem; padding: 0.4rem 0.85rem; border-radius: 0.5rem; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.codetabs__btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.codetabs__panel-label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 1rem 0 0.4rem; }
.codetabs--js .codetabs__panel-label { display: none; }
.codetabs--js .codetabs__panel { display: none; }
.codetabs--js .codetabs__panel.is-active { display: block; }
