  :root {
    --bg: #f6faf6;
    --surface: #ffffff;
    --tint: #e6f7e7;
    --ink: #111b21;
    --muted: #4a5a63;
    --line: #dde8df;
    --green: #1c6f30;      /* green text: darker shade of the logo green, 5.6:1 on --tint */
    --wa: #72d876;         /* ACE logo green (windows in assets/ace_logo.png); dark text only, white is 1.8:1 */
    --wa-dark: #5fc864;
    --leak: #3b82f6;
    --light: #eab308;
    --chat: #efeae2;
    --out: #d9fdd3;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(20, 60, 30, .10), 0 2px 6px rgba(0, 0, 0, .05);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Hebrew", "Segoe UI", Arial, sans-serif;
    background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased;
    padding-bottom: 76px; /* room for the mobile sticky CTA */
  }
  img, video { max-width: 100%; display: block; }
  a { color: inherit; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

  /* buttons */
  .btn-wa {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--wa); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px;
    padding: 15px 28px; border-radius: 40px; box-shadow: 0 8px 20px rgba(114, 216, 118, .35);
    transition: background .15s, transform .15s;
  }
  .btn-wa:hover { background: var(--wa-dark); transform: translateY(-1px); }
  .btn-wa:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
  .btn-wa svg { flex: none; }
  .btn-sm { font-size: 15px; padding: 9px 16px; box-shadow: none; }
  .micro { font-size: 14.5px; color: var(--muted); margin-top: 10px; }

  /* header */
  header { position: sticky; top: 0; z-index: 20; background: rgba(246, 250, 246, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; }
  .brand img { height: 40px; width: auto; }

  /* hero */
  .hero { padding: 48px 0 56px; }
  .hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
  .eyebrow { display: inline-block; background: var(--tint); color: var(--green); font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
  h1 { text-wrap: balance; font-size: clamp(32px, 5vw, 50px); line-height: 1.15; font-weight: 800; letter-spacing: -.5px; }
  h1 em { font-style: normal; color: var(--green); }
  .lead { font-size: 19px; color: var(--muted); margin: 18px 0 26px; max-width: 34em; }
  .phone-video {
    width: min(340px, 100%); margin: 0 auto; border-radius: 28px; overflow: hidden; background: #e6f1e7;
    box-shadow: 0 24px 60px rgba(20, 60, 30, .18); aspect-ratio: 9 / 16; position: relative;
  }
  .phone-video video { width: 100%; height: 100%; object-fit: cover; }
  .sound-btn {
    position: absolute; bottom: 12px; left: 12px; background: rgba(17, 27, 33, .78); color: #fff; border: 0;
    border-radius: 20px; padding: 7px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  }

  /* sections */
  section { padding: 64px 0; }
  .alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  h2 { text-wrap: balance; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.25; font-weight: 800; letter-spacing: -.3px; margin-bottom: 14px; }
  .section-lead { font-size: 18px; color: var(--muted); max-width: 40em; }

  /* problem: mini group chat */
  .problem .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .chat { background: var(--chat); border-radius: var(--radius); padding: 18px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
  .chat-head { font-weight: 700; font-size: 15px; color: var(--muted); text-align: center; margin-bottom: 4px; }
  .bubble { background: #fff; border-radius: 12px; border-top-right-radius: 0; padding: 7px 11px; max-width: 85%; align-self: flex-start; font-size: 16px; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); position: relative; }
  .bubble b { display: block; font-size: 13px; }
  .bubble .tag { position: absolute; top: -8px; left: 8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12px; }
  .tag.leak { box-shadow: 0 0 0 2px var(--leak); }
  .tag.light { box-shadow: 0 0 0 2px var(--light); }
  .bubble.out { background: var(--out); align-self: flex-start; margin-right: auto; border-top-right-radius: 12px; border-top-left-radius: 0; }

  /* steps */
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; counter-reset: step; }
  .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
  .alt .step { background: var(--bg); }
  .step::before {
    counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px;
    border-radius: 50%; background: var(--wa); color: var(--ink); font-weight: 800; margin-bottom: 12px;
  }
  .step h3 { font-size: 19px; margin-bottom: 6px; }
  .step p { color: var(--muted); font-size: 16px; }

  /* dedup */
  .dedup .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
  .tickets { display: flex; flex-direction: column; gap: 14px; }
  .ticket { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; border-right: 5px solid var(--leak); }
  .ticket.light-t { border-right-color: var(--light); }
  .ticket .t1 { font-weight: 800; font-size: 19px; }
  .ticket .t1 small { font-size: 12.5px; font-weight: 700; color: var(--green); background: var(--tint); padding: 2px 9px; border-radius: 10px; margin-right: 8px; vertical-align: 3px; }
  .ticket .t2 { color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 10px; }
  .dots { display: flex; gap: 5px; }
  .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--leak); display: block; }
  .light-t .dots i { background: var(--light); }
  .tally { text-align: center; font-weight: 800; font-size: 20px; margin-top: 4px; }
  .tally em { font-style: normal; color: var(--green); }
  .private { margin-top: 26px; background: var(--chat); border-radius: var(--radius); padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; }

  /* faq */
  .faq { max-width: 760px; }
  details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-top: 12px; }
  .alt details { background: var(--bg); }
  summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; color: var(--green); font-size: 22px; line-height: 1; }
  details[open] summary::after { content: "−"; }
  details p { color: var(--muted); padding-bottom: 16px; }

  /* final cta */
  .final { text-align: center; }
  .final img { width: 180px; margin: 0 auto 10px; }
  .final .section-lead { margin: 0 auto 24px; }
  .num { direction: ltr; display: inline-block; font-weight: 700; margin-top: 12px; color: var(--muted); }

  footer { padding: 28px 0 36px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
  footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  footer img { height: 44px; width: auto; }

  /* mobile sticky CTA */
  .sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 30; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: none; }
  .sticky-cta .btn-wa { width: 100%; font-size: 18px; padding: 13px; }

  @media (max-width: 860px) {
    .hero { padding: 28px 0 40px; }
    .hero .wrap, .problem .wrap, .dedup .wrap { grid-template-columns: 1fr; gap: 32px; }
    .hero-copy { text-align: center; }
    .lead { margin-inline: auto; }
    .steps { grid-template-columns: 1fr 1fr; }
    section { padding: 48px 0; }
    .sticky-cta { display: block; }
    header .btn-sm { display: none; }
  }
  @media (min-width: 861px) { body { padding-bottom: 0; } }
  @media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn-wa { transition: none; } }

  /* sender colours in the demo chat (were inline styles) */
  .bubble b.n1 { color: #b86a00; }
  .bubble b.n2 { color: #c2368f; }
  .bubble b.n3 { color: #1f6fd1; }
  .bubble b.n4 { color: #0f8a7e; }
  .svg-defs { position: absolute; }

/* demo label on the video */
.demo-tag { position: absolute; top: 12px; right: 12px; background: rgba(17, 27, 33, .78); color: #fff; border-radius: 20px; padding: 3px 11px; font-size: 13px; font-weight: 700; }

/* three getting-started steps */
.steps.three { grid-template-columns: repeat(3, 1fr); }

/* lead section (review 2026-10-29-lead-light) */
.join { max-width: 620px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; }
.card[hidden], .hint[hidden] { display: none; }
.card + .card { margin-top: 18px; }
.card label { display: block; font-weight: 700; margin: 18px 0 6px; }
.card input { width: 100%; font: inherit; font-size: 18px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.card input:focus { outline: 3px solid var(--wa); outline-offset: 1px; border-color: var(--wa-dark); }
.card .btn-wa { margin-top: 22px; width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.hint { color: #a3361f; font-weight: 700; margin-top: 12px; }
.notice { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.bot-num { font-size: clamp(30px, 7vw, 40px); font-weight: 800; letter-spacing: .5px; text-align: center; margin: 8px 0 4px; }
.card .row { display: flex; gap: 10px; }
.card .row .btn-wa, .card .row .btn-line { margin-top: 14px; font-size: 17px; padding: 13px 16px; white-space: nowrap; }
.card .row .btn-wa { flex: 1; }
.card .row .btn-line { flex: none; }
.btn-line { font: inherit; font-weight: 700; font-size: 18px; padding: 15px 20px; border-radius: 40px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.card h3 { font-size: 18px; margin-top: 24px; }
.ios { margin: 8px 0 0; padding-inline-start: 22px; color: var(--muted); }
.ios li { margin: 4px 0; }
.done { font-weight: 800; font-size: 19px; margin-top: 18px; color: var(--green); }
@media (max-width: 860px) { .steps.three { grid-template-columns: 1fr; } }

#join { scroll-margin-top: 72px; }

/* lead form into D1 (review 2026-10-29-lead-d1) */
form[hidden] { display: none; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14.5px; color: var(--muted); margin-top: 18px !important; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--green); padding: 0; }
.consent a { color: var(--green); font-weight: 700; }
#turnstile { margin-top: 16px; min-height: 65px; }
.card button.btn-wa[disabled] { opacity: .6; cursor: wait; }
.aisy-front { width: 96px; height: auto; margin: 0 auto 6px; }
.aisy-main { width: 200px; height: auto; margin: 0 auto 4px; }
#joined h2, #joined .bot-num { text-align: center; }
.from-aisy { display: flex; gap: 8px; align-items: flex-end; align-self: flex-start; max-width: 92%; }
.from-aisy img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.from-aisy .bubble { max-width: none; }
footer .legal a { color: var(--muted); }
/* privacy / terms pages */
.doc { max-width: 760px; padding-top: 32px; padding-bottom: 48px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 6px; }
.doc h2 { font-size: 22px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--muted); font-size: 17px; }
.doc ul { padding-inline-start: 22px; margin: 6px 0; }
.doc .updated { font-size: 14px; }

.hint.inapp { color: var(--muted); font-weight: 400; font-size: 14.5px; background: var(--tint); border-radius: 12px; padding: 10px 12px; }
