/* =========================================================
     BRAND COLOURS (same palette as the MICA homepage)
     ========================================================= */
  :root {
    --brand: #2F5BFF;
    --brand-2: #7B61FF;
    --signal: #0FB8CF;
    --wa: #1F8A4C;
    --wa-tint: #E7F8EE;
    --warn: #C2410C;

    --bg: #FFFFFF;
    --soft: #F5F7FB;
    --tint: #EEF2FF;
    --ink: #0F172A;
    --slate: #5B6478;
    --line: #E4E8F0;
    --wire: #CBD4E6;
    color-scheme: light;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  *, *::before, *::after { box-sizing: inherit; }
  html { scroll-behavior: smooth; scroll-padding-top: 24px; }
  body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  h1, h2, h3, h4 { letter-spacing: -0.02em; }
  a { color: inherit; }
  button, input, select, textarea { font: inherit; color: inherit; }
  :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
  .wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 0.96rem; text-decoration: none; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
  .btn-dark { background: var(--ink); color: #fff; }
  .btn-dark:hover { background: var(--brand); }
  .btn-line { border-color: var(--line); background: #fff; }
  .btn-line:hover { border-color: var(--ink); }
  .btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.88rem; }
  .chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: border-color 0.2s, color 0.2s, background-color 0.2s; }
  .chip:hover { border-color: var(--brand); color: var(--brand); }
  .chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

  /* ---------- Header (scrolls with the page) ---------- */
  .site-header { border-bottom: 1px solid var(--line); }
  .header-in { display: flex; align-items: center; gap: 12px; height: 76px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
  .brand-glyph, .brand-logo, .brand .brand-logo { width: 36px; height: 36px; object-fit: contain; flex: none; display: block; }
  .brand-mark { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
  .brand-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
  .brand-unit { font-weight: 600; font-size: 0.95rem; color: var(--slate); }
  .head-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 0.92rem; cursor: pointer; text-decoration: none; }
  .head-btn:hover { border-color: var(--ink); }
  .head-btn.plain { border-color: transparent; }
  .head-btn.plain:hover { background: var(--soft); }
  .spark { width: 16px; height: 16px; color: var(--brand); }
  .menu-lines { display: grid; gap: 5px; width: 18px; }
  .menu-lines span { height: 1.5px; background: currentColor; border-radius: 2px; }
  .menu-lines span:last-child { width: 12px; }

  /* In-page navigation */
  .subnav { border-bottom: 1px solid var(--line); background: #fff; }
  .subnav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
  .subnav ul::-webkit-scrollbar { display: none; }
  .subnav a { display: block; padding: 14px 0; font-weight: 600; font-size: 0.92rem; color: var(--slate); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
  .subnav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

  /* Menu */
  .menu { position: fixed; inset: 0; z-index: 60; background: #fff; display: none; overflow-y: auto; padding-top: env(safe-area-inset-top, 0px); }
  .menu.open { display: block; animation: fade 0.2s ease; }
  @keyframes fade { from { opacity: 0; } }
  .menu-body { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 80px); padding-top: 48px; padding-bottom: 64px; }
  .menu h2 { margin: 0 0 16px; font-size: 0.95rem; font-weight: 700; color: var(--slate); }
  .menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .menu-big a { display: block; padding: 5px 0; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
  .menu-big a:hover, .menu-small a:hover { color: var(--brand); }
  .menu-small a { display: block; padding: 5px 0; text-decoration: none; color: var(--slate); font-weight: 600; }

  /* ---------- Sections ---------- */
  section.block { padding: clamp(72px, 9vw, 120px) 0; }
  .soft { background: var(--soft); }
  .kicker { margin: 0 0 10px; font-size: 0.95rem; font-weight: 700; color: var(--brand); }
  .sec-title { margin: 0; font-size: clamp(1.8rem, 3.3vw, 2.7rem); font-weight: 700; line-height: 1.12; max-width: 24ch; }
  .sec-lede { margin: 14px 0 0; color: var(--slate); max-width: 56ch; font-size: 1.08rem; }
  .sec-head { margin-bottom: clamp(32px, 4vw, 48px); }
  .sample-note { font-size: 0.8rem; color: var(--slate); }

  /* ---------- Hero: a school day running itself ---------- */
  .hero { padding: 18px 0 34px; background: radial-gradient(ellipse 50% 60% at 85% 30%, #EEF2FF 0%, transparent 70%), radial-gradient(ellipse 40% 50% at 10% 100%, #E9F8FA 0%, transparent 70%), #fff; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4.5vw, 60px); align-items: center; }
  .hero h1 { margin: 0 0 16px; font-size: clamp(2.1rem, 4.2vw, 3.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.04em; }
  .hero-lede { margin: 0 0 22px; font-size: clamp(1rem, 1.25vw, 1.14rem); color: var(--slate); max-width: 44ch; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
  .hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
  .hero-facts li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
  .hero-facts .ic { color: var(--brand); }

  .day { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(15, 23, 42, 0.35); overflow: hidden; }
  .day-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
  .day-title { font-weight: 700; font-size: 0.95rem; }
  .clock { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
  .day-ctrl { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
  .day-ctrl:hover { border-color: var(--ink); }
  .day-ctrl .ic { width: 14px; height: 14px; }
  .day-ctrl .ic-play { display: none; }
  .day.paused .day-ctrl .ic-play { display: block; }
  .day.paused .day-ctrl .ic-pause { display: none; }
  .day-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .day-kpi { padding: 14px 18px; border-right: 1px solid var(--line); }
  .day-kpi:last-child { border-right: 0; }
  .day-kpi small { display: block; font-size: 0.76rem; color: var(--slate); font-weight: 600; }
  .day-kpi b { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
  .feed { list-style: none; margin: 0; padding: 8px 10px; height: 290px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; position: relative; }
  .feed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, #fff); pointer-events: none; }
  .ev { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 12px; animation: evin 0.45s ease both; }
  .ev:first-child { background: var(--soft); }
  @keyframes evin { from { opacity: 0; transform: translateY(-8px); } }
  .ev-i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
  .ev b { display: block; font-size: 0.93rem; line-height: 1.3; }
  .ev span { font-size: 0.82rem; color: var(--slate); }
  .ev time { font-size: 0.8rem; color: var(--slate); font-variant-numeric: tabular-nums; }
  .tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; vertical-align: 1px; }
  .tag.wa { background: var(--wa-tint); color: var(--wa); }
  .tag.ai { background: var(--tint); color: var(--brand); }
  .day-foot { display: flex; justify-content: space-between; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--slate); }

  /* ---------- Role switcher ---------- */
  .roles { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
  .role-tabs { display: grid; gap: 8px; }
  .role-tab { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
  .role-tab:hover { border-color: var(--wire); }
  .role-tab .ri { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--ink); }
  .role-tab b { display: block; font-size: 1rem; }
  .role-tab span { font-size: 0.85rem; color: var(--slate); }
  .role-tab[aria-selected="true"] { border-color: var(--ink); box-shadow: 0 10px 24px -16px rgba(15,23,42,0.4); }
  .role-tab[aria-selected="true"] .ri { background: var(--ink); color: #fff; }
  .screen { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 24px 60px -32px rgba(15,23,42,0.35); }
  .screen-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 0.92rem; }
  .screen-top .who { margin-left: auto; font-weight: 600; color: var(--slate); font-size: 0.84rem; }
  .screen-body { padding: 18px; background: var(--soft); min-height: 360px; animation: fade 0.3s ease; }
  .sb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 14px; }
  .sb-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
  .sb-kpi small { display: block; font-size: 0.76rem; color: var(--slate); font-weight: 600; }
  .sb-kpi b { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
  .sb-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
  .sb-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
  .sb-card h4 { margin: 0 0 10px; font-size: 0.86rem; }
  .sb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.86rem; }
  .sb-list li { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
  .sb-list li span:first-child { display: flex; align-items: center; gap: 8px; }
  .pill { padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: var(--soft); }
  .pill.ok { background: var(--wa-tint); color: var(--wa); }
  .pill.due { background: #FFF1E7; color: var(--warn); }
  .mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
  .mini-bars i { flex: 1; background: var(--brand); border-radius: 4px 4px 0 0; }
  .mini-bars i.low { background: var(--signal); }
  .mini-x { display: flex; gap: 8px; font-size: 0.7rem; color: var(--slate); margin-top: 4px; }
  .mini-x span { flex: 1; text-align: center; }

  /* ---------- AI: ask your data ---------- */
  .ai-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
  .ask-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 24px 60px -36px rgba(15,23,42,0.35); }
  .ask-form { display: flex; gap: 8px; padding: 6px 6px 6px 16px; border: 1px solid var(--line); border-radius: 999px; align-items: center; }
  .ask-form:focus-within { border-color: var(--brand); }
  .ask-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; padding: 8px 0; }
  .send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
  .send:hover { background: var(--brand); }
  .ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
  .answer { min-height: 250px; border-top: 1px solid var(--line); padding-top: 18px; }
  .answer h4 { margin: 0 0 4px; font-size: 1.02rem; }
  .answer p { margin: 0 0 16px; color: var(--slate); font-size: 0.95rem; }
  .hbars { display: grid; gap: 10px; }
  .hbar { display: grid; grid-template-columns: 92px 1fr 86px; gap: 12px; align-items: center; font-size: 0.88rem; }
  .hbar .track { height: 12px; border-radius: 6px; background: var(--soft); overflow: hidden; }
  .hbar .fill { height: 100%; border-radius: 6px; background: var(--brand); width: 0; transition: width 0.8s cubic-bezier(.2,.7,.2,1); }
  .hbar .fill.alt { background: var(--signal); }
  .hbar b { text-align: right; font-variant-numeric: tabular-nums; }
  .thinking { display: inline-flex; gap: 5px; padding: 8px 0; }
  .thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--slate); opacity: 0.35; animation: blink 1s infinite; }
  .thinking i:nth-child(2) { animation-delay: 0.15s; } .thinking i:nth-child(3) { animation-delay: 0.3s; }
  @keyframes blink { 50% { opacity: 1; } }
  .ai-list { list-style: none; margin: 0; padding: 0; }
  .ai-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
  .ai-list li:last-child { border-bottom: 1px solid var(--line); }
  .ai-i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--brand); }
  .ai-list b { display: block; font-size: 1.02rem; }
  .ai-list span { font-size: 0.93rem; color: var(--slate); }

  /* ---------- Automation builder ---------- */
  .builder { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
  .rule { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 28px); }
  .rule-step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding-bottom: 22px; position: relative; }
  .rule-step:not(.last)::before { content: ""; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 2px; background: var(--line); }
  .rule-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 0.9rem; }
  .rule-step h3 { margin: 4px 0 10px; font-size: 1.05rem; }
  .opts { display: flex; flex-wrap: wrap; gap: 8px; }
  .run-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
  .log { margin-top: 18px; display: none; border-radius: 14px; background: var(--soft); padding: 14px 16px; }
  .log.show { display: block; animation: fade 0.25s ease; }
  .log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; }
  .log li { display: flex; gap: 10px; align-items: flex-start; animation: evin 0.3s ease both; }
  .log li .ic { color: var(--wa); margin-top: 3px; }
  .progress { height: 6px; background: #fff; border-radius: 3px; overflow: hidden; margin: 10px 0 2px; }
  .progress i { display: block; height: 100%; width: 0; background: var(--wa); transition: width 0.25s linear; }
  .saved { margin-top: 18px; }
  .saved h4 { margin: 0 0 8px; font-size: 0.95rem; }
  .saved ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .saved li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 0.9rem; }
  .saved li .on { margin-left: auto; }
  .saved .empty { color: var(--slate); font-size: 0.9rem; }

  /* Phone (shared) */
  .phone { width: 100%; max-width: 330px; margin: 0 auto; border: 10px solid var(--ink); border-radius: 36px; overflow: hidden; background: #ECE5DD; box-shadow: 0 30px 60px -30px rgba(15,23,42,0.5); display: flex; flex-direction: column; }
  .ph-head { background: #075E54; color: #fff; padding: 14px 14px 12px; display: flex; align-items: center; gap: 10px; }
  .ph-av { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; }
  .ph-head b { display: block; font-size: 0.95rem; }
  .ph-head small { font-size: 0.74rem; opacity: 0.85; }
  .ph-body { padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; line-height: 1.45; overflow-y: auto; }
  .bub { max-width: 86%; padding: 8px 11px; border-radius: 10px; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,0.1); white-space: pre-line; animation: evin 0.3s ease both; }
  .bub.me { align-self: flex-end; background: #DCF8C6; }
  .bub .t { display: block; text-align: right; font-size: 0.68rem; color: #7A8A8A; margin-top: 2px; }
  .bub .pay { display: block; margin-top: 8px; padding-top: 7px; border-top: 1px solid #EEE; text-align: center; color: #128C7E; font-weight: 700; }
  .ph-input { display: flex; gap: 6px; padding: 8px; background: #F0F0F0; }
  .ph-input input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 9px 14px; background: #fff; font-size: 0.9rem; outline: 0; }
  .ph-input button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #128C7E; color: #fff; cursor: pointer; display: grid; place-items: center; }
  .ph-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 10px; background: #F0F0F0; }
  .ph-quick button { padding: 5px 10px; border-radius: 999px; border: 1px solid #D5D5D5; background: #fff; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
  .ph-quick button:hover { border-color: #128C7E; color: #128C7E; }

  /* ---------- Parent bot section ---------- */
  .wa-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 5vw, 72px); align-items: center; }
  .wa-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .wa-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.96rem; }
  .wa-points .wi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--wa-tint); color: var(--wa); flex: none; }
  .bot-phone .ph-body { height: 380px; }

  /* ---------- Journey ---------- */
  .journey { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); position: relative; margin-bottom: 28px; }
  .journey::before { content: ""; position: absolute; left: 6.25%; right: 6.25%; top: 26px; height: 2px; background: var(--line); }
  .jstep { position: relative; background: none; border: 0; cursor: pointer; text-align: center; padding: 0 4px; }
  .jdot { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
  .jstep b { display: block; font-size: 0.9rem; line-height: 1.25; }
  .jstep:hover .jdot { border-color: var(--ink); }
  .jstep[aria-selected="true"] .jdot { background: var(--brand); border-color: var(--brand); color: #fff; }
  .jdetail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); min-height: 200px; animation: fade 0.3s ease; }
  .jdetail h3 { margin: 0 0 6px; font-size: 1.35rem; }
  .jdetail .mod { font-weight: 700; color: var(--brand); font-size: 0.92rem; margin: 0 0 12px; }
  .jdetail p { margin: 0; color: var(--slate); }
  .jdetail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .jdetail li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 0.95rem; }
  .jdetail li .ic { color: var(--wa); margin-top: 3px; }
  .mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .mods div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
  .mods b { display: flex; align-items: center; gap: 8px; font-size: 0.98rem; }
  .mods b .ic { color: var(--brand); }
  .mods span { display: block; font-size: 0.86rem; color: var(--slate); margin-top: 4px; }

  /* ---------- Integrations ---------- */
  .int-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
  .ints { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
  .int { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .int[hidden] { display: none; }
  .int .ii { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
  .int b { display: block; font-size: 0.96rem; }
  .int span { font-size: 0.8rem; color: var(--slate); }

  /* ---------- Go live ---------- */
  .steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
  .steps li { position: relative; }
  .steps li::before { counter-increment: s; content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; position: relative; z-index: 1; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 48px; right: -16px; height: 2px; background: var(--line); }
  .steps b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
  .steps span { color: var(--slate); font-size: 0.95rem; }
  .included { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
  .included span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; }
  .included .ic { color: var(--brand); }

  /* ---------- Demo form ---------- */
  .demo-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
  .contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
  .contact-list li { display: flex; gap: 12px; align-items: center; }
  .contact-list .ci { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--tint); color: var(--brand); flex: none; }
  .contact-list a, .contact-list b { font-weight: 700; text-decoration: none; }
  .contact-list small { display: block; color: var(--slate); font-size: 0.84rem; }
  .form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
  .field { display: grid; gap: 6px; }
  .field.full { grid-column: 1 / -1; }
  .field label { font-weight: 700; font-size: 0.88rem; }
  .field input, .field select, .field textarea { font-size: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
  .field .err { color: var(--warn); font-size: 0.84rem; font-weight: 600; min-height: 0; }
  .field input[aria-invalid="true"] { border-color: var(--warn); }
  .seg { display: flex; gap: 8px; flex-wrap: wrap; }
  .form .btn { justify-self: start; }
  .done { display: none; grid-column: 1 / -1; padding: 16px; border-radius: 12px; background: var(--wa-tint); color: var(--wa); font-weight: 700; }
  .done.show { display: block; }

  footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 56px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 0.94rem; }
  .foot { display: grid; grid-template-columns: 1.4fr 1fr 1.25fr 1.05fr; gap: clamp(24px, 3.5vw, 44px); }
  .foot h4 { color: #fff; margin: 0 0 14px; font-size: 0.98rem; }
  .foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .foot a { color: rgba(255, 255, 255, 0.75); text-decoration: none; transition: color 0.2s; }
  .foot a:hover { color: #fff; }
  .copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.86rem; }

  /* ---------- Assistant (chatbot) ---------- */
  .scrim { position: fixed; inset: 0; z-index: 55; background: rgba(15,23,42,0.35); display: none; }
  .scrim.open { display: block; animation: fade 0.2s ease; }
  .drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 56; width: min(440px, 100vw); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform 0.3s cubic-bezier(.2,.7,.2,1), visibility 0.3s; box-shadow: -20px 0 60px -20px rgba(15,23,42,0.3); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .drawer.open { transform: none; visibility: visible; }
  .drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .badge { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; flex: none; }
  .badge .spark { color: #fff; }
  .drawer-head strong { display: block; }
  .drawer-head div > span { display: block; font-size: 0.84rem; color: var(--slate); }
  .drawer-head .online { display: inline-block; }
  .online { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--wa); margin-right: 5px; vertical-align: 1px; }
  .drawer-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .drawer-actions .icon-btn { margin-left: 0; }
  .icon-btn { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; transition: all 0.2s; }
  .icon-btn:hover { border-color: var(--ink); }
  .chat-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--soft); }
  .msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 0.95rem; line-height: 1.5; animation: evin 0.25s ease both; }
  .msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
  .msg.me { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
  .msg ul { margin: 6px 0 0; padding-left: 18px; }
  .quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .quick button, .quick a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 0.84rem; font-weight: 700; cursor: pointer; text-decoration: none; color: var(--ink); transition: all 0.2s ease; }
  .quick button:hover, .quick a:hover { border-color: var(--brand); color: var(--brand); }
  .quick a.link-cta { background: var(--brand); color: #fff; border-color: var(--brand); }
  .quick a.link-cta:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
  .quick a.link-wa { display: inline-flex; align-items: center; gap: 6px; background: #25D366; color: #fff !important; border-color: #20BA5A; font-weight: 700; }
  .quick a.link-wa:hover { background: #1EBE5D; border-color: #179E4B; color: #fff !important; transform: translateY(-1px); }
  .quick a.link-wa svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
  .chat-form { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
  .chat-form input { flex: 1; min-width: 0; font-size: 1rem; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; background: #fff; }
  .chat-form input:focus { outline: none; border-color: var(--brand); }
  .fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 14px 34px -10px rgba(15,23,42,0.55); transition: opacity 0.25s, transform 0.25s, background-color 0.2s; }
  .fab:hover { background: var(--brand); }
  .fab .spark { color: #9DB2FF; }
  .fab.hide { opacity: 0; transform: translateY(12px); pointer-events: none; }

  /* ---------- Responsive ---------- */
  @media (max-width: 1000px) {
    .hero-grid, .ai-grid, .builder, .wa-grid, .demo-grid { grid-template-columns: minmax(0, 1fr); }
    .roles { grid-template-columns: minmax(0, 1fr); }
    .role-tabs { grid-template-columns: repeat(2, 1fr); }
    .mods { grid-template-columns: repeat(2, 1fr); }
    .menu-body { grid-template-columns: 1fr; }
    .foot { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 720px) {
    .brand-unit, .brand-sep, .head-label, .hide-sm { display: none; }
    .head-btn { padding: 0 12px; }
    .day-kpis { grid-template-columns: repeat(2, 1fr); }
    .dots { display: none; }
    .clock { white-space: nowrap; }
    .role-tabs { grid-template-columns: minmax(0, 1fr); }
    .chip { white-space: normal; text-align: left; }
    .day-kpi:nth-child(2) { border-right: 0; }
    .day-kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .sb-grid { grid-template-columns: 1fr; }
    .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 20px; }
    .journey::before { display: none; }
    .jdetail { grid-template-columns: 1fr; gap: 20px; }
    .wa-points { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .steps li::after { display: none; }
    .form { grid-template-columns: 1fr; }
    .foot { grid-template-columns: 1fr; }
    .fab { width: 52px; padding: 0; justify-content: center; }
    .hbar { grid-template-columns: 76px 1fr 72px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }
