/* ============================================================
   RinnovaStack — style.css  (v4.0)
   Brand: navy #16213E · accent #E63956
   ============================================================ */

:root {
  --navy: #16213E;
  --navy-900: #0E1628;
  --navy-800: #16213E;
  --navy-700: #1E2D4F;
  --navy-600: #2A3C66;
  --accent: #E63956;
  --accent-600: #C82B46;
  --accent-300: #FF6E85;
  --ink: #0B1220;
  --paper: #FFFFFF;
  --mist: #F5F7FB;
  --mist-2: #EDF1F8;
  --line: #E2E8F2;
  --muted: #5A6B86;
  --muted-light: #9DAAC2;

  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(22,33,62,.28);
  --shadow-lg: 0 40px 90px -30px rgba(22,33,62,.45);
  --container: 1180px;

  --grad-accent: linear-gradient(120deg, #E63956 0%, #FF6E85 100%);
  --grad-navy: linear-gradient(135deg, #1E2D4F 0%, #0E1628 100%);
  --grad-text: linear-gradient(110deg, #FF6E85 0%, #E63956 45%, #7C8BFF 100%);

  --font: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; color: var(--navy); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 21px; font-weight: 700; }
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; border-radius: 999px; padding: 12px 22px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap; cursor: pointer; line-height: 1;
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--grad-accent); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(230,57,86,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -8px rgba(230,57,86,.7); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.section .btn-ghost { color: var(--navy); border-color: var(--line); background: var(--mist); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(22,33,62,.3); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; height: 76px; }
.brand { display: inline-flex; align-items: center; justify-self: center; }
.brand-logo { height: 38px; width: auto; display: block; }
.main-nav { display: flex; gap: 4px; justify-self: center; }
.main-nav a {
  position: relative; font-size: 14.5px; font-weight: 600; color: var(--navy); opacity: .8;
  padding: 8px 12px; border-radius: 8px; transition: opacity .2s, color .2s, background .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:hover { opacity: 1; color: var(--accent); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { opacity: 1; color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 14px; justify-self: end; }
.lang-switch { display: flex; gap: 2px; background: var(--mist-2); border-radius: 999px; padding: 3px; }
.lang-btn {
  font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 10px; border-radius: 999px;
  transition: all .2s;
}
.lang-btn.active { background: #fff; color: var(--navy); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-navy);
  color: #fff; padding: 110px 0 130px; text-align: center; isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 20% 15%, rgba(230,57,86,.35), transparent 60%),
    radial-gradient(700px 500px at 85% 25%, rgba(124,139,255,.28), transparent 60%),
    radial-gradient(500px 500px at 60% 100%, rgba(230,57,86,.18), transparent 60%);
  animation: glowShift 14s ease-in-out infinite alternate;
}
@keyframes glowShift { to { transform: translate3d(0,-20px,0) scale(1.05); } }
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(124,139,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,139,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 35%, transparent 78%);
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
/* editorial kicker (not a pill) */
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px;
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.82);
}
.hero-kicker::before {
  content: ""; width: 34px; height: 2px; background: var(--grad-accent); border-radius: 2px; flex-shrink: 0;
}
.hero-title {
  font-size: clamp(36px, 6vw, 68px); font-weight: 900; color: #fff; letter-spacing: -.03em;
  margin-bottom: 22px;
}
.hero-title span { display: block; }
.hero-sub { font-size: clamp(17px, 2.2vw, 21px); color: rgba(255,255,255,.82); max-width: 680px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; font-size: 14px; color: rgba(255,255,255,.6); }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; z-index: 1;
  background: linear-gradient(to top, var(--paper), transparent); pointer-events: none; }

/* ---------- trust strip ---------- */
.trust-strip { background: var(--paper); padding: 38px 0; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.trust-item { text-align: center; }
.trust-item strong { display: block; font-size: 30px; font-weight: 900; color: var(--accent); letter-spacing: -.02em; }
.trust-item span { font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--mist); }
.section-dark { background: var(--grad-navy); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .section-lead { color: rgba(255,255,255,.78); }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-lead { font-size: 18px; color: var(--muted); margin-top: 14px; }

/* ---------- cards ---------- */
.cards-grid { display: grid; gap: 22px; }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-ico { width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--mist-2); border-radius: 14px; margin-bottom: 18px; color: var(--accent); }
.card-ico svg { width: 28px; height: 28px; display: block; }
.card-ico.grad { background: var(--grad-accent); color: #fff; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card-feature { padding: 34px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; }
.step-num { font-size: 40px; font-weight: 900; background: var(--grad-text); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 12px; letter-spacing: -.04em; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- metrics ---------- */
.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.metric { text-align: center; padding: 30px 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.metric-num { display: block; font-size: 46px; font-weight: 900; color: #fff; letter-spacing: -.03em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.metric-label { font-size: 14px; color: rgba(255,255,255,.72); }

/* ---------- why / two-col ---------- */
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.check-list { margin: 24px 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; font-size: 16px; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  background: var(--grad-accent); color: #fff; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}
.partner-note { margin-top: 18px; font-size: 15px; color: var(--muted); }
.partner-note a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* orbit visual */
.why-visual { display: grid; place-items: center; min-height: 320px; }
.orbit { position: relative; width: 300px; height: 300px; }
.orbit-core {
  position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%;
  background: var(--grad-accent); color: #fff; display: grid; place-items: center; font-weight: 900;
  font-size: 24px; box-shadow: 0 20px 50px -12px rgba(230,57,86,.6); z-index: 2;
}
.orbit-dot {
  position: absolute; width: 64px; height: 64px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 13px;
  color: var(--navy); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.orbit-dot svg { width: 26px; height: 26px; color: var(--accent); }
.orbit::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 1.5px dashed rgba(22,33,62,.18); animation: spin 22s linear infinite;
}
.d1 { top: -10px; left: 50%; transform: translateX(-50%); }
.d2 { top: 30%; right: -16px; animation-delay: .6s; }
.d3 { bottom: -10px; right: 18%; animation-delay: 1.2s; }
.d4 { bottom: -10px; left: 18%; animation-delay: 1.8s; }
.d5 { top: 30%; left: -16px; animation-delay: 2.4s; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; color: var(--accent); font-weight: 400; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }

/* ---------- form ---------- */
.lead-form {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 38px; backdrop-filter: blur(10px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: rgba(255,255,255,.9); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.95); color: var(--ink); font-size: 15px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230,57,86,.25);
}
.field textarea { resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.85);
  margin-bottom: 22px; line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.consent a { color: var(--accent-300); text-decoration: underline; }
.form-note { font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 14px; text-align: center; }
.form-feedback { margin-top: 14px; text-align: center; font-weight: 600; font-size: 15px; }
.form-feedback.ok { color: #5BE0A0; }
.form-feedback.err { color: var(--accent-300); }
.field input.invalid, .field select.invalid { border-color: var(--accent-300); box-shadow: 0 0 0 3px rgba(230,57,86,.25); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.footer-brand img { filter: brightness(0) invert(1); opacity: .95; margin-bottom: 14px; height: 34px; width: auto; }
.footer-brand p { font-size: 15px; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.footer-col a { display: block; font-size: 15px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--accent-300); }
.footer-loc { display: block; font-size: 15px; margin-bottom: 10px; color: rgba(255,255,255,.55); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; }
.footer-made a { color: var(--accent-300); text-decoration: underline; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(140%);
  width: min(720px, calc(100% - 32px)); z-index: 200;
  background: rgba(14,22,40,.96); color: #fff; border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px); transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-inner p { font-size: 14px; flex: 1; min-width: 240px; color: rgba(255,255,255,.85); }
.cookie-inner a { color: var(--accent-300); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed; left: 22px; bottom: 22px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .2s; animation: waPulse 2.6s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse { 0%,100% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.4); }
  50% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.6), 0 0 0 14px rgba(37,211,102,0); } }

/* ---------- legal pages ---------- */
.legal { padding: 120px 0 80px; }
.legal h1 { font-size: 38px; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 24px; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--ink); font-size: 16px; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal .back { display: inline-block; margin-bottom: 30px; font-weight: 600; color: var(--accent); }
.legal-langbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.legal-langbar .back { margin-bottom: 0; }
.legal-langbar .lang-switch { display: flex; gap: 2px; background: var(--mist-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.legal-langbar .lang-btn { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 11px; border-radius: 999px; transition: all .2s; }
.legal-langbar .lang-btn.active { background: var(--accent); color: #fff; }
.legal-doc[hidden] { display: none; }

/* ---------- reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .brand { justify-self: start; }
  .brand-logo { height: 32px; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; padding: 20px 24px; gap: 18px; box-shadow: var(--shadow); margin: 0;
    border-bottom: 1px solid var(--line);
  }
  .header-actions .btn-sm { display: none; }
  .cols-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2,1fr); gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .lead-form { padding: 26px 20px; }
  .section { padding: 64px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .trust-grid, .metrics-grid, .footer-grid { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
}

/* ============================================================
   JACK — chatbot widget
   ============================================================ */
.jack-root { position: fixed; right: 22px; bottom: 22px; z-index: 220; }

/* launcher */
.jack-launch {
  position: relative; width: 62px; height: 62px; border-radius: 50%; cursor: pointer;
  background: var(--grad-navy); box-shadow: 0 16px 36px -10px rgba(22,33,62,.6);
  display: grid; place-items: center; transition: transform .2s, opacity .2s;
}
.jack-launch svg { width: 40px; height: 40px; border-radius: 12px; }
.jack-launch:hover { transform: translateY(-3px) scale(1.04); }
.jack-launch.hide { opacity: 0; pointer-events: none; transform: scale(.6); }
.jack-launch-pulse {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent);
  animation: jackPulse 2.4s ease-out infinite;
}
@keyframes jackPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* panel */
.jack-panel {
  position: absolute; right: 0; bottom: 0; width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 40px);
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(24px) scale(.96); transform-origin: bottom right;
  pointer-events: none; transition: opacity .3s cubic-bezier(.16,1,.3,1), transform .3s cubic-bezier(.16,1,.3,1);
}
.jack-open .jack-panel { opacity: 1; transform: none; pointer-events: auto; }

.jack-head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--grad-navy); color: #fff; }
.jack-head-id { display: flex; align-items: center; gap: 11px; }
.jack-ava svg { width: 40px; height: 40px; border-radius: 11px; display: block; }
.jack-ava.sm svg { width: 30px; height: 30px; border-radius: 9px; }
.jack-head-txt { display: flex; flex-direction: column; line-height: 1.2; }
.jack-head-txt strong { font-size: 16px; }
.jack-head-txt small { font-size: 12px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 6px; }
.jack-dot { width: 8px; height: 8px; border-radius: 50%; background: #41d97f; box-shadow: 0 0 0 0 rgba(65,217,127,.6);
  animation: jackDot 2s infinite; }
@keyframes jackDot { 0%,100% { box-shadow: 0 0 0 0 rgba(65,217,127,.5); } 50% { box-shadow: 0 0 0 5px rgba(65,217,127,0); } }
.jack-close { color: #fff; font-size: 26px; line-height: 1; width: 34px; height: 34px; border-radius: 9px;
  opacity: .8; transition: opacity .2s, background .2s; }
.jack-close:hover { opacity: 1; background: rgba(255,255,255,.12); }

.jack-msgs { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px;
  background: var(--mist); }
.jack-row { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.jack-row.user { justify-content: flex-end; }
.jack-bubble { padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; max-width: 78%;
  background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 5px; }
.jack-row.user .jack-bubble { background: var(--grad-accent); color: #fff; border: none;
  border-radius: 16px; border-bottom-right-radius: 5px; }
.jack-typing { display: inline-flex; gap: 4px; align-items: center; }
.jack-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-light); display: inline-block;
  animation: jackType 1.2s infinite; }
.jack-typing i:nth-child(2) { animation-delay: .2s; }
.jack-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes jackType { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.jack-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.jack-quick:not(:empty) { padding-top: 4px; padding-bottom: 10px; }
.jack-chip { font-size: 13.5px; font-weight: 600; color: var(--navy); background: #fff;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer; transition: all .18s; }
.jack-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.jack-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.jack-input input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px;
  font-size: 14.5px; font-family: inherit; color: var(--ink); }
.jack-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230,57,86,.18); }
.jack-input button { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--grad-accent);
  color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .18s; }
.jack-input button:hover { transform: scale(1.06); }

@media (max-width: 480px) {
  .jack-root { right: 16px; bottom: 16px; }
  .jack-panel { width: calc(100vw - 24px); height: calc(100vh - 90px); border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .jack-launch-pulse, .jack-dot, .jack-typing i { animation: none !important; }
}

/* ---------- accessibility: visible focus (WCAG 2.1 AA / EAA) ---------- */
:focus-visible {
  outline: 3px solid var(--accent-300);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero :focus-visible, .section-dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
