/* Chatic — chatic.shop. Brand layer on top of stock Bootstrap 5.3.3 (loaded first). Plain CSS. */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef0f8;
  --ink: #0b1220;
  --muted: #5b6478;
  --line: #e4e7f0;
  --brand: #5b5bd6;
  --brand-strong: #4848c2;
  --brand-soft: #e9e9fb;
  --brand-fill: #5b5bd6;          /* fills that carry WHITE text; stays dark in both modes */
  --brand-fill-deep: #1f2a6b;
  --accent: #14b8a6;
  --accent-ink: #0f766e;          /* accent used as TEXT (4.5:1 on light surfaces) */
  --accent-soft: #dcf7f3;
  --cta: #c2410c;                 /* 5.2:1 with white text */
  --cta-strong: #9a3412;
  --ok: #15803d;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 30px 80px rgba(11, 18, 32, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --toggler-stroke: rgba(11, 18, 32, 0.75);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020;
    --surface: #121934;
    --surface-2: #1a2244;
    --ink: #eef1fb;
    --muted: #a3acc4;
    --line: #273055;
    --brand: #a5a5ff;
    --brand-strong: #bcbcff;
    --brand-soft: #1f2252;
    --brand-fill: #4848c2;
    --brand-fill-deep: #161d4d;
    --accent: #2dd4bf;
    --accent-ink: #5eead4;
    --accent-soft: #10332f;
    --cta: #c2410c;
    --cta-strong: #ea580c;
    --ok: #4ade80;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
    --toggler-stroke: rgba(238, 241, 251, 0.85);
  }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.02rem; line-height: 1.65; }
h1, h2, h3, h4, .display-5 { font-family: var(--font); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
h2 + .lead, h3 + .lead, h3 + p { margin-top: .75rem; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.text-center .lead, .center .lead { margin-inline: auto; }
.hl { color: var(--brand-strong); }
a { color: var(--brand-strong); }
.bi { vertical-align: -0.125em; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn:focus-visible, .navbar-toggler:focus { outline: 3px solid var(--accent) !important; outline-offset: 3px; box-shadow: none !important; }
.visually-hidden-h2 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-strong); background: var(--brand-soft); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; }
.eyebrow.light { background: rgba(255,255,255,.16); color: #fff; }
.section { padding: 88px 0; }
.bg-light { background: var(--surface-2) !important; }

/* buttons */
.btn-primary, .btn-primary:focus { --bs-btn-bg: var(--cta); --bs-btn-border-color: var(--cta); --bs-btn-hover-bg: var(--cta-strong); --bs-btn-hover-border-color: var(--cta-strong); --bs-btn-active-bg: var(--cta-strong); --bs-btn-active-border-color: var(--cta-strong); --bs-btn-color: #fff; font-weight: 800; border-radius: 999px; padding-inline: 22px; box-shadow: 0 10px 24px rgba(194, 65, 12, 0.25); }
.btn-lg { padding: 12px 26px; }

/* nav */
.chatic-nav { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); padding-block: 10px; }
.chatic-nav .navbar-brand { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink); }
.chatic-nav .nav-link { color: var(--muted); font-weight: 600; }
.chatic-nav .nav-link:hover, .chatic-nav .nav-link:focus { color: var(--ink); }
.chatic-nav .navbar-toggler { border-color: var(--line); }
.chatic-nav .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(11,18,32,0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chatic-nav .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(238,241,251,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
}
.chatic-mark { width: 34px; height: 34px; background: none; padding: 0; }
.footer .chatic-mark { width: 26px; height: 26px; }
@media (max-width: 991.98px) { .chatic-nav .btn-cta { margin-top: 8px; } }

/* masthead */
.chatic-masthead { background: var(--bg); padding: 72px 0 56px; position: relative; overflow: hidden; }
.chatic-masthead::before { content: ""; position: absolute; left: -20%; right: -20%; top: -40%; height: 80%; background: radial-gradient(60% 60% at 25% 40%, rgba(91,91,214,.18), transparent 70%), radial-gradient(40% 50% at 85% 20%, rgba(20,184,166,.18), transparent 70%); pointer-events: none; }
.chatic-masthead .container { position: relative; }
.chatic-masthead h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; }
.chatic-masthead .lead { max-width: 56ch; }
.form-subscribe .form-control { border-radius: 999px; border: 1px solid var(--line); padding: 14px 20px; background: var(--surface); color: var(--ink); }
.form-subscribe .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .25rem rgba(91,91,214,.3); }
.form-subscribe .form-control.is-invalid { border-color: var(--cta); background-image: none; }
.form-subscribe .btn { width: 100%; }
@media (min-width: 576px) { .form-subscribe .btn { width: auto; } }
.trust { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 700; padding: 10px 14px; border-radius: 12px; }
.form-status:empty { padding: 0; margin: 0; border: 0; }
.form-subscribe .form-status.ok { color: var(--ok); padding-inline: 4px; }
.form-subscribe .form-status.err { color: var(--cta); padding-inline: 4px; }

/* phone mock */
.phone { width: min(400px, 100%); margin: 0 auto; background: var(--surface); border-radius: 36px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 18px; position: relative; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 10px 6px 12px; border-bottom: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-fill), var(--accent)); display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.phone-head .who { font-weight: 800; line-height: 1.1; }
.phone-head .status { color: var(--ok); font-size: 0.8rem; font-weight: 700; }
.thread { display: flex; flex-direction: column; gap: 10px; padding: 16px 4px 8px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 0.95rem; line-height: 1.5; }
.msg.in { align-self: flex-start; background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--brand-fill); color: #fff; border-bottom-right-radius: 4px; }
.msg .tag { display: block; font-size: 0.72rem; opacity: 0.92; margin-bottom: 2px; font-weight: 700; }
.phone-caption { margin: 10px 4px 0; font-size: 0.78rem; color: var(--muted); text-align: center; }
.badge-float { position: absolute; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.badge-float.a { top: 10%; right: -24px; }
.badge-float.b { bottom: 6%; left: -24px; }
.badge-float .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(21,128,61,.18); }
@media (max-width: 1199.98px) { .badge-float { display: none; } }

/* three pillars */
.pillars { padding: 80px 0; }
.pillar { max-width: 22rem; margin: 0 auto; }
.pillar .icon { width: 68px; height: 68px; border-radius: 20px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); font-size: 2rem; }
.pillar p { color: var(--muted); margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand-soft); color: var(--brand-strong); }
.step .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 16px; font-size: 1.4rem; }
.step p { color: var(--muted); margin: 8px 0 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* showcase rows */
.showcase .showcase-text { padding: 5rem 3rem; }
.showcase .showcase-text h2 { margin-top: 0; }
.showcase-panel { min-height: 32rem; display: grid; place-items: center; padding: 40px 24px; }
.panel-a { background: linear-gradient(135deg, #5b5bd6 0%, #7c6cf5 100%); }
.panel-b { background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); }
.panel-c { background: linear-gradient(135deg, #1f2a6b 0%, #4848c2 100%); }
.mock { width: min(440px, 100%); background: #fff; color: #0b1220; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px 18px 14px; display: grid; gap: 10px; text-align: left; }
.mock-title { font-weight: 800; color: #5b6478; font-size: .9rem; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid #e4e7f0; padding-bottom: 10px; }
.mock-row { background: #f1f2f8; border-radius: 12px; padding: 10px 12px; font-size: .95rem; line-height: 1.5; }
.mock-row.reply { background: #e9e9fb; }
.mock-row .u { font-weight: 800; color: #4848c2; margin-right: 6px; }
.mock-row.reply .u { color: #0f766e; }
.mock-kv { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed #e4e7f0; padding: 8px 2px; font-size: .95rem; }
.mock-kv span { color: #5b6478; } .mock-kv b { text-align: right; }
.mock-kv.status { border-bottom: 0; } .mock-kv .ok { color: #15803d; }
.mock-note { background: #fff4ee; border: 1px solid #ffd9c8; color: #9a3412; border-radius: 12px; padding: 10px 12px; font-size: .9rem; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.mock-caption { font-size: .78rem; color: #5b6478; text-align: center; margin: 2px 0 0; }
@media (max-width: 991.98px) { .showcase .showcase-text { padding: 3rem 1.5rem; } .showcase-panel { min-height: 24rem; } }

/* channel features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover, .feature.reveal.in:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 14px; font-size: 1.3rem; }
.feature p { color: var(--muted); margin: 8px 0 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* audience */
.audience { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 36px; }
.aud { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 14px; text-align: center; font-weight: 700; color: var(--ink); }
.aud .emoji { font-size: 1.8rem; display: block; margin-bottom: 8px; }
@media (max-width: 900px) { .audience { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .audience { grid-template-columns: repeat(2, 1fr); } }

/* faq */
.faq { max-width: 820px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand-strong); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* signup box */
.cta-box { background: linear-gradient(135deg, var(--brand-fill) 0%, #3c3cb0 60%, var(--brand-fill-deep) 100%); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(20,184,166,.45), transparent 65%); right: -120px; bottom: -200px; pointer-events: none; }
.cta-box h2 { color: #fff; margin-top: 0; }
.cta-box .lead { color: rgba(255,255,255,.9); }
.cta-box .free { display: inline-block; margin-top: 10px; font-weight: 700; color: #ccfbf1; }
.form { position: relative; display: grid; gap: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 22px; backdrop-filter: blur(6px); z-index: 1; }
.form label { font-size: 0.9rem; font-weight: 700; display: grid; gap: 6px; color: #fff; }
.form input, .form select, .form textarea { width: 100%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.96); color: #0b1220; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 1rem; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.form .is-invalid { border-color: #ffb199; box-shadow: 0 0 0 3px rgba(255,106,61,.45); }
.form textarea { min-height: 86px; resize: vertical; }
.form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn { margin-top: 6px; }
.form .note { font-size: 0.85rem; color: rgba(255,255,255,.85); margin: 0; }
.form .form-status.ok { background: rgba(22,163,74,.25); color: #d7ffe3; border: 1px solid rgba(22,163,74,.6); }
.form .form-status.err { background: rgba(255,106,61,.22); color: #ffe0d6; border: 1px solid rgba(255,106,61,.6); }
@media (max-width: 991.98px) { .cta-box { grid-template-columns: 1fr; padding: 34px 22px; } .form .form-row { grid-template-columns: 1fr; } }

/* footer */
.footer { padding: 40px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; background: var(--surface); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.footer .logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.legal { max-width: 820px; margin: 28px auto 0; font-size: 0.9rem; color: var(--muted); }
.legal h3 { font-size: 1rem; margin-bottom: 6px; color: var(--ink); }
.legal p { margin-bottom: 8px; }

/* motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
