/* =========================================================================
   Tekefy — Design System
   Brand: indigo #4C3CFF · lime #A3F73F · deep indigo #140D59
   Fonts: Space Grotesk (display) + DM Sans (body), self-hosted
   ========================================================================= */

@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Brand */
  --indigo:        #4C3CFF;
  --indigo-600:    #3b2ce6;
  --indigo-deep:   #140D59;
  --indigo-mid:    #362898;
  --lime:          #A3F73F;
  --lime-600:      #8fe329;

  /* Neutrals */
  --ink:           #0e0a2e;
  --slate-900:     #14132b;
  --slate-700:     #33314f;
  --slate-500:     #6b6a86;
  --slate-300:     #c9c8da;
  --slate-100:     #eceef6;
  --paper:         #f7f8fc;
  --white:         #ffffff;

  /* Semantic */
  --bg:            var(--white);
  --bg-alt:        var(--paper);
  --text:          var(--slate-900);
  --text-muted:    var(--slate-500);
  --border:        #e4e5ef;
  --on-lime:       #10240A;
  --lime-soft:     #d6ff9e;
  --on-dark:       #dcdcf0;
  --on-dark-muted: #b9b8d8;
  --on-dark-subtle:#8b8ab0;
  --indigo-tint:   #f4f1ff;
  --indigo-light:  #8b7bff;
  --success:       #3f6d0a;
  --danger:        #b42318;
  --danger-bg:     #fdecec;
  --scrim:         rgba(14,10,46,.55);

  /* Typography */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "DM Sans", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw:  1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20,13,89,.06), 0 2px 8px rgba(20,13,89,.05);
  --shadow-md: 0 10px 30px rgba(20,13,89,.10);
  --shadow-lg: 0 24px 60px rgba(20,13,89,.16);
  --ring: 0 0 0 4px rgba(76,60,255,.18);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------ Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.btn-lime:focus-visible { outline-color: var(--on-lime); }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }

/* --------------------------- Typography -------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { color: var(--text); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--slate-700); }
.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--indigo); display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--lime); border-radius: 2px; }
.section-dark .eyebrow { color: var(--indigo-tint); }
.text-gradient {
  background: linear-gradient(100deg, var(--indigo) 20%, var(--indigo-mid) 55%, var(--indigo-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-gradient-lime {
  background: linear-gradient(100deg, var(--lime) 10%, var(--lime-soft) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-gradient-light {
  background: linear-gradient(100deg, var(--white) 20%, var(--indigo-tint) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------- Layout ----------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(76,60,255,.35), transparent 60%),
              radial-gradient(900px 500px at 0% 110%, rgba(163,247,63,.10), transparent 55%),
              var(--indigo-deep);
  color: var(--on-dark);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .lead, .section-dark p { color: var(--on-dark-muted); }
.center { text-align: center; }
.section-head { max-width: 720px; margin-inline: auto; }
.section-head.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------------------------- Buttons ---------------------------------- */
.btn {
  --btn-bg: var(--indigo); --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  box-shadow: 0 6px 18px rgba(76,60,255,.28);
}
.btn:hover { background: var(--indigo-600); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(76,60,255,.36); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.btn-lime { --btn-bg: var(--lime); --btn-fg: var(--on-lime); box-shadow: 0 6px 18px rgba(163,247,63,.4); }
.btn-lime:hover { background: var(--lime-600); box-shadow: 0 12px 26px rgba(163,247,63,.5); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--indigo); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--paper); box-shadow: none; }
.section-dark .btn-ghost { --btn-fg: var(--white); border-color: rgba(255,255,255,.28); }
.section-dark .btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--indigo); font-family: var(--font-display); }

/* --------------------------- Chips/Badges ------------------------------ */
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .85rem; border-radius: var(--radius-pill);
  background: rgba(76,60,255,.08); color: var(--indigo);
  font-size: .82rem; font-weight: 600; font-family: var(--font-display);
}
.section-dark .chip { background: rgba(255,255,255,.08); color: var(--white); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

/* ---------------------------- Cards ------------------------------------ */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(76,60,255,.35); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .98rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-mid));
  color: var(--white); margin-bottom: 18px; font-size: 1.4rem;
}
.card-icon.lime { background: linear-gradient(135deg, var(--lime), var(--lime-600)); color: var(--on-lime); }

/* Feature list */
.ticks li { display: flex; gap: .65rem; align-items: flex-start; padding: .35rem 0; color: var(--slate-700); }
.ticks li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(163,247,63,.25); color: var(--success); font-size: .8rem; font-weight: 700;
  display: grid; place-items: center; margin-top: .15rem;
}
.section-dark .ticks li { color: var(--on-dark-muted); }
.section-dark .ticks li::before { background: rgba(255,255,255,.14); color: var(--white); }

/* ---------------------------- Header ----------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.8); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.brand-mark { width: 42px; height: 42px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; padding: .5rem .85rem; border-radius: 8px; font-weight: 500; font-size: .96rem; color: var(--slate-700); transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--indigo); background: rgba(76,60,255,.07); }
.nav-links a.btn, .nav-links a.btn:hover { color: var(--btn-fg); background: var(--btn-bg); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; min-width: 44px; min-height: 44px; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-toggle span + span { margin-top: 6px; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 12px 16px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden; transition: .2s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
  .nav-links a { padding: .8rem 1rem; }
  .nav-links a.btn { width: 100%; justify-content: center; }
}

/* ----------------------------- Hero ------------------------------------ */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.hero h1 { margin: 18px 0; }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--white); }
.hero-stats .lbl { font-size: .85rem; color: var(--on-dark-muted); }

/* Visual panel */
.hero-visual { position: relative; }
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16); border-radius: 20px; padding: 22px;
  backdrop-filter: blur(8px); box-shadow: var(--shadow-lg);
}
.flow-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.flow-row:last-child { margin-bottom: 0; }
.flow-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; font-family: var(--font-display); font-weight: 700; color: var(--white); }
.flow-ic-1 { background: var(--indigo); }
.flow-ic-2 { background: var(--indigo-mid); }
.flow-ic-3 { background: var(--indigo-deep); }
.flow-ic-4 { background: var(--success); }
.flow-row .t { font-family: var(--font-display); font-weight: 600; color: var(--white); font-size: .95rem; }
.flow-row .s { font-size: .8rem; color: var(--on-dark-muted); }
.pulse { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(163,247,63,.5)} 70%{box-shadow:0 0 0 10px rgba(163,247,63,0)} 100%{box-shadow:0 0 0 0 rgba(163,247,63,0)} }

/* --------------------------- Logo strip -------------------------------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; opacity: .8; }
.logos span { font-family: var(--font-display); font-weight: 600; color: var(--slate-500); font-size: 1.1rem; }

/* --------------------------- Steps / process --------------------------- */
.step { position: relative; padding-left: 0; }
.step-num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  background: var(--indigo); color: var(--white); margin-bottom: 16px;
}

/* --------------------------- Pricing ----------------------------------- */
.price-card { display: flex; flex-direction: column; }
.price-card.popular, .price-card.chosen { border-color: var(--indigo); box-shadow: 0 18px 50px rgba(76,60,255,.22); position: relative; }
.price-card.chosen::before,
.price-card.popular::before {
  content: "Most chosen"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--indigo); color: var(--white); font-family: var(--font-display); font-weight: 600;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .9rem; border-radius: var(--radius-pill);
}
.price { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--ink); line-height: 1; margin: 10px 0; }
.price .per { font-size: .95rem; font-weight: 500; color: var(--text-muted); }
.price-card .ticks { flex: 1; margin: 18px 0 24px; }

/* --------------------------- Forms ------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--slate-700); }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--indigo); box-shadow: var(--ring); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--text-muted); }
.form-status { margin-top: 14px; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(163,247,63,.18); color: var(--success); }
.form-status.err { background: var(--danger-bg); color: var(--danger); }

/* --------------------------- Accordion (FAQ) --------------------------- */
.acc { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.acc + .acc { margin-top: 12px; }
.acc summary { cursor: pointer; padding: 20px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.5rem; color: var(--indigo); transition: transform .2s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { padding: 0 22px 22px; color: var(--text-muted); }

/* ----------------------------- CTA band -------------------------------- */
.cta-band { border-radius: 24px; padding: clamp(36px, 6vw, 72px); text-align: center; }

/* ----------------------------- Footer ---------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: 64px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4, .site-footer .footer-label { color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: var(--on-dark-muted); display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 0; font-size: .95rem; transition: color .15s; }
.footer-grid > div:not(.footer-brand) a { display: block; }
.site-footer a:hover { color: var(--white); }
.site-footer :focus-visible, .section-dark :focus-visible { outline-color: var(--white); }
.section-dark .btn-lime:focus-visible { outline-color: var(--white); }
.section-dark .link-arrow { color: var(--white); }
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand p { color: var(--on-dark-subtle); font-size: .95rem; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; padding: 0; }
.socials a:hover { background: var(--indigo); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; color: var(--on-dark-subtle); }

/* --------------------------- Utilities --------------------------------- */
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.muted { color: var(--text-muted); }
.hide-sm { }
@media (max-width: 620px){ .hide-sm{ display:none } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .pulse{animation:none} html{scroll-behavior:auto} }

/* =========================== Blog / Article ============================= */
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose p { margin-top: 1rem; color: var(--slate-700); font-size: 1.08rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-top: 1rem; }
.prose ul li { padding: .3rem 0; color: var(--slate-700); }
.prose ul li strong { color: var(--ink); }
.prose blockquote { margin: 1.6rem 0; padding: .4rem 0 .4rem 1.3rem; border-left: 3px solid var(--lime); color: var(--slate-700); font-style: italic; }
.post-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; color: var(--on-dark-muted); font-size: .9rem; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* =========================== AI Chat Widget ============================= */
.tk-chat-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.2rem; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--indigo); color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  box-shadow: 0 10px 28px rgba(76,60,255,.4); transition: transform .18s var(--ease), box-shadow .18s;
}
.tk-chat-launch:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(76,60,255,.5); }
.tk-chat-launch .spark { width: 9px; height: 9px; border-radius: 50%; background: var(--white); }

.tk-chat-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 91;
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 44px));
  display: none; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.tk-chat-panel.open { display: flex; animation: tk-pop .22s var(--ease); }
@keyframes tk-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.tk-chat-head {
  display: flex; align-items: center; gap: .7rem; padding: 16px 18px; color: var(--white);
  background: radial-gradient(120% 120% at 100% 0%, var(--indigo) 0%, var(--indigo-deep) 100%);
}
.tk-chat-head .avatar { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 1.2rem; }
.tk-chat-head .t { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
.tk-chat-head .s { font-size: .78rem; color: var(--on-dark-muted); display: flex; align-items: center; gap: .35rem; }
.tk-chat-head .s .dot { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; }
.tk-chat-close { margin-left: auto; background: none; border: 0; color: var(--white); cursor: pointer; font-size: 1.4rem; line-height: 1; opacity: .8; min-width: 44px; min-height: 44px; }
.tk-chat-close:hover { opacity: 1; }

.tk-chat-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--paper); display: flex; flex-direction: column; gap: 12px; }
.tk-msg { max-width: 85%; padding: .7rem .95rem; border-radius: 14px; font-size: .95rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.tk-msg.bot { align-self: flex-start; background: var(--white); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text); }
.tk-msg.user { align-self: flex-end; background: var(--indigo); color: var(--white); border-bottom-right-radius: 4px; }
.tk-msg.typing { color: var(--text-muted); font-style: italic; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.tk-chip { border: 1px solid var(--border); background: var(--white); color: var(--indigo); border-radius: var(--radius-pill); min-height: 44px; padding: .55rem 1rem; font-size: .82rem; font-family: var(--font-display); font-weight: 600; cursor: pointer; transition: background .15s; }
.tk-chip:hover { background: rgba(76,60,255,.07); }
.tk-chip.tk-chip-lime, .tk-chip.tk-chip-lime:hover,
.ai-faq .tk-chip.tk-chip-lime, .ai-faq .tk-chip.tk-chip-lime:hover { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.ai-faq .tk-chip.tk-chip-lime:hover, .tk-chip.tk-chip-lime:hover { background: var(--lime-600); }

.tk-chat-foot { padding: 12px; border-top: 1px solid var(--border); background: var(--white); }
.tk-chat-form { display: flex; gap: 8px; align-items: flex-end; }
.tk-chat-input { flex: 1; border: 1px solid var(--border); border-radius: 12px; padding: .7rem .85rem; font-size: .95rem; resize: none; max-height: 120px; font-family: var(--font-body); }
.tk-chat-input:focus { outline: none; border-color: var(--indigo); box-shadow: var(--ring); }
.tk-chat-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--indigo); color: var(--white); cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; }
.tk-chat-send:hover { background: var(--indigo-600); }
.tk-chat-send:disabled { opacity: .5; cursor: default; }
.tk-chat-disclaimer { text-align: center; font-size: .72rem; color: var(--text-muted); margin-top: 8px; }
@media (max-width: 480px) {
  .tk-chat-panel { left: 0; right: 0; bottom: 0; width: auto; height: 100dvh; border-radius: 0; }
  .tk-chat-launch { right: 16px; bottom: 16px; }
}

/* --------------------------- AI-powered FAQ ---------------------------- */
.ai-faq { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--border); }
.ai-faq-head h3 { font-size: 1.35rem; }
.ai-faq-form { display: flex; gap: 10px; margin-top: 18px; }
.ai-faq-form input {
  flex: 1; min-width: 0; padding: .85rem 1.1rem; font: inherit; color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg-alt);
  transition: border-color .15s, box-shadow .15s;
}
.ai-faq-form input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(76,60,255,.15); }
@media (max-width: 560px) { .ai-faq-form { flex-direction: column; } }
.ai-faq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ai-faq .tk-chip {
  font: inherit; font-size: .85rem; cursor: pointer; color: var(--indigo);
  background: rgba(76,60,255,.06); border: 1px solid rgba(76,60,255,.22);
  border-radius: var(--radius-pill); padding: .45rem .9rem; transition: background .15s;
}
.ai-faq .tk-chip:hover { background: rgba(76,60,255,.12); }
.ai-faq-answer {
  margin-top: 18px; padding: 18px 20px; border-radius: 14px; white-space: pre-wrap;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--slate-700); line-height: 1.6;
}
.ai-faq-answer.thinking { color: var(--slate-500); font-style: italic; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.footer-method { margin-top: 28px; }
.footer-method a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.tools-line { text-align: center; color: var(--slate-500); font-size: .95rem; }
.flow-seq .flow-row { opacity: .45; }
.flow-seq .flow-row.on { opacity: 1; }
.price-card.is-chosen { outline: 3px solid var(--indigo); }
.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 16px; }
.choice-card { min-height: 44px; text-align: left; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--white); cursor: pointer; font-family: var(--font-display); font-weight: 600; transition: border-color .15s, box-shadow .15s; }
.choice-card:hover { border-color: var(--indigo); }
.choice-card.is-on, .choice-card[aria-checked="true"] { border-color: var(--indigo); box-shadow: var(--ring); }
.choice-card small { display: block; font-weight: 400; color: var(--text-muted); margin-top: 4px; }
.finder-prompt { margin: 12px 0; }
.finder-reflect, .finder-value { margin-top: 12px; }
.finder-value { border-left: 3px solid var(--indigo); padding-left: 12px; }
.finder-meter { height: 10px; background: var(--slate-100); border-radius: 999px; margin: 16px 0; overflow: hidden; }
.finder-meter-fill { display: block; height: 100%; background: var(--lime); border-radius: inherit; width: 0; transition: width .45s var(--ease); }
.finder-nav, .finder-email { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.finder-email { flex-direction: column; align-items: stretch; }
.finder-email label { font-family: var(--font-display); font-weight: 600; }
.finder-email input, .range { width: 100%; min-height: 44px; }
.finder-email input { padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); }
.range { accent-color: var(--indigo); }
.finder-slider-label { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); margin-top: 8px; }
.finder-stack { display: grid; gap: 12px; margin-top: 8px; }
.finder-card { margin: 0; }
.finder-card-num { font-family: var(--font-display); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); }
.finder-hours { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.finder-handoff { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.progress-dots { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; min-height: 44px; align-items: center; }
.tk-finder, #tk-finder { min-height: 280px; }
.progress-dots li { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-300); }
.progress-dots li.done { background: var(--indigo-mid); }
.progress-dots li.on { background: var(--indigo); }
.tk-finder-modal { position: fixed; inset: 0; z-index: 120; background: var(--scrim); display: grid; place-items: end center; }
.tk-finder-sheet { width: min(720px, 100%); max-height: min(92vh, 900px); overflow: auto; background: var(--white); border-radius: 20px 20px 0 0; padding: 20px 20px 32px; }
.tk-finder-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tk-finder-x { min-height: 44px; min-width: 44px; border: 0; background: transparent; font-weight: 600; cursor: pointer; }
.tk-chip-lime { background: var(--lime); color: var(--on-lime); border-color: transparent; }
body.tk-modal-open { overflow: hidden; }
.exit-nudge { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 560px; margin-inline: auto; background: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.micro-quiz .quiz-step, .chooser-step { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quiz-step[hidden], .chooser-step[hidden], .finder-meter[hidden] { display: none; }
.micro-quiz button, .chooser-step button { min-height: 44px; }
.chooser-step p, .micro-quiz p { width: 100%; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.plan-result { margin-top: 16px; font-weight: 600; }
[data-plan].is-chosen { outline: 3px solid var(--indigo); }
.gov-list { list-style: none; display: grid; gap: 16px; padding: 0; }
.gov-card { display: flex; gap: 16px; align-items: flex-start; height: auto; }
.gov-card .step-num { flex: none; margin: 0; }
.offer-facts { display: grid; gap: 12px; }
.offer-facts dt { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--indigo); }
.offer-facts dd { color: var(--slate-700); }
.proof-label { display: inline-block; margin-bottom: 12px; padding: .35rem .8rem; border-radius: var(--radius-pill); background: var(--indigo-tint); color: var(--indigo); font-family: var(--font-display); font-weight: 600; font-size: .85rem; }
.founder h3 { margin-bottom: .4rem; }
.price-on-dark { color: var(--white); }
.hero-actions-center { justify-content: center; }
.finder-header-progress { display: flex; align-items: center; gap: 12px; }
.finder-time { color: var(--slate-500); font-size: .9rem; white-space: nowrap; }
.finder-container { max-width: 760px; }
.finder-exit { min-height: 44px; }
.calendly-inline-widget { min-height: 120px; }
.calendly-inline-widget.is-live { min-height: 700px; }
.site-footer-min { padding-block: 32px; }
@media (max-width: 620px) { .finder-header .nav { gap: 8px; } .finder-time { display: none; } }
@media (min-width: 720px) { .tk-finder-modal { place-items: center; } .tk-finder-sheet { border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .flow-seq .flow-row { opacity: 1; }
  .reveal, .pulse, .spark, .tk-chat-panel.open { animation: none; transition: none; }
  .nav-links a, .btn, .btn:hover, .card, .card:hover, .tk-chat-launch, .tk-chat-launch:hover, .arrow, .nav-links, .acc summary::after, .finder-meter-fill { transition: none; transform: none; }
}
@media print {
  .site-header, .site-footer, .tk-chat-launch, .tk-chat-panel, .exit-nudge, .nav-toggle, .no-print, .tk-finder-x { display: none !important; }
  .tk-finder-modal { position: static; background: none; }
  .tk-finder-sheet { max-height: none; overflow: visible; box-shadow: none; }
  .section-dark { background: var(--white) !important; color: var(--ink) !important; }
  .section-dark h1, .section-dark h2, .section-dark h3, .section-dark p { color: var(--ink) !important; }
  .finder-meter-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { text-decoration: underline; }
}
