/* ==========================================================================
   SnapCOGS public site
   ========================================================================== */

:root {
  --ink: #0b1b2b;
  --ink-2: #13283d;
  --ink-3: #1d3954;
  --paper: #f7f5ef;
  --white: #ffffff;
  --mint: #2ee59d;
  --mint-deep: #12b878;
  --wa: #1fae5b;
  --wa-dark: #128c4a;
  --coral: #ff6b4a;
  --sun: #ffc845;
  --sky: #5ab8ff;
  --text: #0b1b2b;
  --muted: #55657a;
  --line: rgba(11, 27, 43, .1);
  --bubble-me: #d9fdd3;
  --bubble-them: #ffffff;
  --chat-bg: #efeae2;
  --radius: 22px;
  --shadow-lg: 0 30px 80px -20px rgba(11, 27, 43, .35), 0 10px 30px -10px rgba(11, 27, 43, .2);
  --shadow-md: 0 14px 40px -12px rgba(11, 27, 43, .25);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 700 1rem/1 var(--font); text-decoration: none; border: 0; cursor: pointer;
  padding: .95em 1.4em; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(31, 174, 91, .7); }
.btn--wa:hover { background: var(--wa-dark); box-shadow: 0 16px 30px -10px rgba(31, 174, 91, .8); }
.btn--lg { font-size: 1.12rem; padding: 1.1em 1.7em; }
.btn--sm { font-size: .9rem; padding: .7em 1.1em; }
.btn--block { width: 100%; }
.btn--lg .ico { width: 1.45em; height: 1.45em; }

.chip-btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.05em; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .2s, transform .2s;
}
.chip-btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip-btn em {
  font-style: normal; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--sun); color: var(--ink); padding: .25em .55em; border-radius: 999px;
}
.chip-btn--dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.chip-btn--dark:hover { border-color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 239, .78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11,27,43,.4); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); }
.brand b { color: var(--mint-deep); font-weight: 800; }
.brand__mark { width: 34px; height: 34px; color: var(--ink); }
.brand--light { color: #fff; }
.brand--light .brand__mark { color: var(--mint); }
.brand--light b { color: var(--mint); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(46, 229, 157, .35), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(90, 184, 255, .25), transparent 70%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.1); } }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-weight: 600; font-size: .88rem; color: var(--ink-3);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-deep); box-shadow: 0 0 0 0 rgba(18,184,120,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(18,184,120,0); } 100% { box-shadow: 0 0 0 0 rgba(18,184,120,0); } }
.hero h1 { margin-top: 22px; }
.hl {
  background: linear-gradient(100deg, var(--mint-deep), #0a8f86 60%, var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.18rem; color: var(--muted); max-width: 36em; }
.lede strong { color: var(--ink); font-weight: 700; }
.cta-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 30px 0 14px; }
.cta-alt { display: flex; gap: 10px; flex-wrap: wrap; }
.micro { font-size: .85rem; color: var(--muted); }
.micro--light { color: rgba(255,255,255,.55); }

/* hero stage */
.hero__stage { position: relative; height: 600px; display: flex; justify-content: flex-start; padding-left: 40px; }
.phone {
  position: relative; z-index: 2;
  width: 318px; height: 600px; border-radius: 46px; padding: 12px;
  background: #0d1117; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a3240;
  display: flex; flex-direction: column;
  transform: rotate(-2deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(-2deg) translateY(-10px); } }
.phone__notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 90px; height: 24px; background: #0d1117; border-radius: 20px; z-index: 3; }
.phone__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 44px 16px 12px; border-radius: 34px 34px 0 0;
  background: #075e54; color: #fff;
}
.phone__bar strong { display: block; font-size: .95rem; }
.phone__bar small { font-size: .75rem; opacity: .8; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: .8rem; }
.avatar svg { width: 24px; height: 24px; }
.avatar--bot { background: var(--mint); color: var(--ink); }
.chat {
  flex: 1; overflow: hidden; padding: 12px 10px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background: var(--chat-bg);
  background-image: radial-gradient(rgba(11,27,43,.05) 1px, transparent 1px);
  background-size: 14px 14px;
}
.phone__input { display: flex; gap: 8px; align-items: center; padding: 8px 8px 12px; background: var(--chat-bg); border-radius: 0 0 34px 34px; }
.phone__field { flex: 1; background: #fff; border-radius: 999px; padding: 9px 14px; font-size: .85rem; color: #8a96a3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__field.is-typing { color: var(--ink); }
.phone__field.is-typing::after { content: "|"; animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.phone__send { width: 38px; height: 38px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; flex: none; }
.phone__send svg { width: 18px; height: 18px; }

/* chat bubbles */
.bubble {
  position: relative; max-width: 84%; padding: 8px 11px 9px; border-radius: 14px;
  font-size: .88rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(11,27,43,.12);
  word-wrap: break-word;
}
.bubble--me { align-self: flex-end; background: var(--bubble-me); border-top-right-radius: 4px; }
.bubble--bot, .bubble--them { align-self: flex-start; background: var(--bubble-them); border-top-left-radius: 4px; }
.bubble time { display: block; text-align: right; font-size: .66rem; color: #7b8794; margin-top: 2px; }
.bubble--me time::after { content: " ✓✓"; color: #53bdeb; letter-spacing: -2px; }
.bubble--photo { padding: 5px; }
.bubble b { font-weight: 700; }
.chat .bubble { animation: pop .35s cubic-bezier(.2, 1.4, .4, 1) both; transform-origin: bottom left; }
.chat .bubble--me { transform-origin: bottom right; }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(10px); } }

.typing { align-self: flex-start; background: #fff; border-radius: 14px; padding: 11px 13px; display: flex; gap: 4px; box-shadow: 0 1px 1px rgba(11,27,43,.12); animation: pop .3s both; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa5b1; animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { transform: translateY(-5px); background: #5b6876; } 60%, 100% { transform: none; } }

.quick { display: flex; gap: 6px; flex-wrap: wrap; align-self: flex-start; animation: pop .35s both; }
.quick span {
  background: #fff; color: #027eb5; border: 1px solid rgba(2,126,181,.25);
  border-radius: 999px; padding: 5px 11px; font-size: .78rem; font-weight: 700;
  transition: background .25s, color .25s, transform .25s;
}
.quick span.on { background: #027eb5; color: #fff; transform: scale(1.05); }

.booked {
  display: block; margin-top: 6px; padding: 7px 9px; border-radius: 10px;
  background: #ecfdf5; border: 1px solid rgba(18,184,120,.25);
  font-size: .78rem; line-height: 1.35;
}
.booked strong { color: var(--mint-deep); }
.booked span { color: var(--muted); display: block; }

/* mini receipt graphic */
.mini-receipt {
  position: relative; display: flex; flex-direction: column; gap: 5px;
  width: 150px; padding: 12px 12px 18px; background: #fffef8; border-radius: 8px 8px 0 0;
  font-family: var(--mono); font-size: .62rem; color: #333; transform: rotate(-1.5deg);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
  -webkit-mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 0/10px 100%;
          mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 0/10px 100%;
}
.mini-receipt b { text-align: center; letter-spacing: .08em; font-size: .66rem; }
.mini-receipt i { height: 4px; background: #d9d6cc; border-radius: 2px; }
.mini-receipt i.s { width: 60%; }
.mini-receipt u { text-decoration: none; font-weight: 700; display: flex; justify-content: space-between; border-top: 1px dashed #bbb; padding-top: 5px; font-size: .72rem; }
.mini-receipt--sm { width: 128px; padding: 9px 10px 15px; gap: 4px; }

/* ledger card */
.ledger {
  position: absolute; z-index: 3; right: -40px; bottom: 40px; width: 262px;
  background: var(--white); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  transition: transform .4s cubic-bezier(.2,1.4,.4,1);
}
.ledger.bump { transform: rotate(2deg) scale(1.04); }
.ledger__head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.ledger__app { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ledger__proj { font-weight: 800; font-size: 1rem; transition: opacity .3s; }
.ledger__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-height: 40px; }
.ledger__rows li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
  padding: 8px 10px; border-radius: 10px; background: #f4f6f8; font-size: .8rem;
  animation: slideIn .5s cubic-bezier(.2,1.2,.4,1) both;
}
.ledger__rows li span { font-weight: 600; }
.ledger__rows li b { font-family: var(--mono); font-size: .8rem; }
.ledger__rows li small { grid-column: 1 / -1; color: var(--muted); font-size: .7rem; }
.ledger__rows li.fresh { background: #e7fbf2; box-shadow: inset 0 0 0 1px rgba(18,184,120,.35); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }
.ledger__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.ledger__total strong { font-family: var(--mono); font-size: 1.1rem; color: var(--ink); }

.float-receipt { position: absolute; z-index: 1; left: 0; top: 70px; transform: rotate(-14deg); animation: float2 9s ease-in-out infinite; opacity: .95; }
.float-receipt .mini-receipt { box-shadow: var(--shadow-md); }
@keyframes float2 { 50% { transform: rotate(-10deg) translateY(16px); } }

/* works with */
.works-with {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px;
  margin-top: 40px; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; color: var(--muted); font-weight: 600;
}
.works-with ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; flex-wrap: wrap; }
.works-with li { padding: 6px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 700; }
.works-with li.soon { color: var(--muted); font-weight: 600; }
.works-with li.soon em { font-style: normal; font-weight: 600; font-size: .8em; margin-inline-start: .35em; }
.works-with__sep { width: 1px; height: 24px; background: var(--line); }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 18px 0; margin-top: 30px; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-weight: 700; font-size: 1.15rem; padding: 0 28px; white-space: nowrap; display: flex; align-items: center; gap: 28px; }
.marquee span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.kicker { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--mint-deep); margin-bottom: 14px; }
.kicker--light { color: var(--mint); }
.body-lg { font-size: 1.12rem; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%230b1b2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .aud-grid .reveal:nth-child(2) { transition-delay: .12s; }
.steps .reveal:nth-child(3) { transition-delay: .24s; }

/* ---------- Problem ---------- */
.problem__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.scatter { position: relative; height: 380px; }
.scrap {
  position: absolute; display: flex; flex-direction: column; gap: 4px;
  width: 160px; padding: 14px 14px 16px; background: #fffef8; border-radius: 6px;
  font-family: var(--mono); font-size: .78rem; box-shadow: var(--shadow-md);
  transition: transform .6s cubic-bezier(.2,1.2,.4,1);
}
.scrap b { letter-spacing: .08em; }
.scrap span { font-size: 1rem; font-weight: 600; }
.scrap em { font-family: var(--font); font-style: normal; font-weight: 700; color: var(--coral); font-size: .8rem; }
.scrap--1 { left: 4%;  top: 6%;  transform: rotate(-9deg); }
.scrap--2 { left: 46%; top: 0;   transform: rotate(7deg); }
.scrap--3 { left: 26%; top: 38%; transform: rotate(-3deg); z-index: 2; }
.scrap--4 { left: 62%; top: 46%; transform: rotate(12deg); opacity: .6; }
.scrap--5 { left: 2%;  top: 66%; transform: rotate(5deg); }
.scatter:hover .scrap--1 { transform: rotate(-14deg) translate(-8px, -6px); }
.scatter:hover .scrap--2 { transform: rotate(12deg) translate(8px, -6px); }
.scatter:hover .scrap--4 { transform: rotate(18deg) translate(10px, 6px); }
.scatter:hover .scrap--5 { transform: rotate(9deg) translate(-8px, 8px); }

/* ---------- How ---------- */
.how { background: var(--white); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { position: relative; background: var(--paper); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.step__num {
  position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--mint); font-weight: 800;
}
.step__art {
  height: 210px; margin-bottom: 22px; border-radius: 16px; padding: 16px;
  background: var(--chat-bg); display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow: hidden;
}
.step__art .bubble { font-size: .84rem; }
.step p { color: var(--muted); margin: 0; }
.connect-row { display: flex; gap: 6px; align-self: flex-start; }
.connect-row span { background: #fff; border: 1px solid rgba(2,126,181,.25); color: #027eb5; font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.entry { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 2px 6px rgba(11,27,43,.08); border-left: 4px solid var(--mint-deep); }
.entry div { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; }
.entry b { font-family: var(--mono); }
.entry small { color: var(--muted); font-size: .74rem; }
.entry--2 { border-left-color: var(--sky); }
.step.in .entry { animation: slideIn .6s .5s both cubic-bezier(.2,1.2,.4,1); }
.step.in .entry--2 { animation-delay: .8s; }

/* ---------- Try it ---------- */
.try { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.try::before {
  content: ""; position: absolute; width: 700px; height: 700px; left: -200px; bottom: -350px;
  background: radial-gradient(closest-side, rgba(46,229,157,.18), transparent); pointer-events: none;
}
.try__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.try .body-lg { color: rgba(255,255,255,.72); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 16px; }
.example {
  font: 600 .88rem var(--font); color: #fff; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 8px 14px; text-align: left;
  transition: background .2s, border-color .2s, transform .2s;
}
.example:hover { background: rgba(46,229,157,.14); border-color: var(--mint); transform: translateY(-2px); }
.demo { background: var(--chat-bg); border-radius: 28px; padding: 16px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); color: var(--ink); }
.demo__chat { height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px 10px; scroll-behavior: smooth; }
.demo__chat > :first-child { margin-top: auto; }
.demo__chat .bubble { animation: pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.demo__form { display: flex; gap: 8px; }
.demo__form input {
  flex: 1; min-width: 0; font: 500 1rem var(--font); padding: 13px 18px; border-radius: 999px;
  border: 2px solid transparent; background: #fff; outline: none; color: var(--ink);
}
.demo__form input:focus { border-color: var(--wa); }
.demo__form button { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--wa); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .2s; flex: none; }
.demo__form button:hover { transform: scale(1.08); }
.demo__form button svg { width: 20px; height: 20px; }
.journal { margin-top: 14px; background: #fff; border-radius: 16px; padding: 14px 16px; animation: pop .45s both; }
.journal__head { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.journal table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.journal th { text-align: left; font-size: .72rem; color: var(--muted); font-weight: 600; padding: 4px 0; border-bottom: 1px solid var(--line); }
.journal th:not(:first-child), .journal td:not(:first-child) { text-align: right; width: 26%; }
.journal td { padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.journal td:not(:first-child) { font-family: var(--mono); font-size: .84rem; }
.journal tr:last-child td:first-child { padding-left: 18px; }
.journal dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0 0; font-size: .82rem; }
.journal dl div { display: contents; }
.journal dt { color: var(--muted); }
.journal dd { margin: 0; font-weight: 600; }

/* ---------- Groups ---------- */
.groups__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.group-chat { background: var(--chat-bg); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); max-width: 440px; }
.group-chat__bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #075e54; color: #fff; }
.group-chat__bar strong { display: block; font-size: .95rem; }
.group-chat__bar small { font-size: .75rem; opacity: .8; }
.group-chat__body { padding: 16px 14px 22px; display: flex; flex-direction: column; gap: 12px; min-height: 380px; }
.gmsg { position: relative; display: flex; flex-direction: column; align-items: flex-start; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s cubic-bezier(.2,1.3,.4,1); }
.gmsg.show { opacity: 1; transform: none; }
.gmsg--me { align-items: flex-end; }
.gmsg .bubble small.fwd { display: block; font-size: .68rem; font-style: italic; color: #7b8794; margin: 2px 4px 4px; }
.gmsg .bubble { max-width: 75%; }
.group-tally { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--muted); }
.group-tally b { font-family: var(--mono); color: var(--mint-deep); margin-left: 4px; display: inline-block; }
.group-tally b.tick { animation: pop .4s cubic-bezier(.2,1.4,.4,1); }

/* ---------- Audiences ---------- */
.audiences { background: var(--white); }
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.aud { border-radius: 28px; padding: 38px; position: relative; overflow: hidden; }
.aud h3 { font-size: 1.7rem; margin-top: 14px; }
.aud__tag { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; }
.aud--field { background: linear-gradient(160deg, #fff4e6, #ffe3d6); }
.aud--field .aud__tag { background: var(--coral); color: #fff; }
.aud--field .ticks li::before { background-color: var(--coral); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.aud--books { background: var(--ink); color: #fff; }
.aud--books .aud__tag { background: var(--mint); color: var(--ink); }
.aud--books .ticks li { color: rgba(255,255,255,.88); }
.aud__stat { display: flex; gap: 30px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.aud__stat b { display: block; font-size: 2.8rem; font-weight: 800; line-height: 1; color: var(--mint); font-family: var(--mono); }
.aud__stat span { font-size: .85rem; color: rgba(255,255,255,.65); }

/* ---------- Pricing ---------- */
.pricing__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.calc { background: var(--white); border-radius: 28px; padding: 34px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.calc label { font-weight: 700; color: var(--muted); font-size: .9rem; }
.calc__num { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; font-family: var(--mono); line-height: 1.1; margin: 6px 0 14px; }
.calc input[type=range] { width: 100%; appearance: none; -webkit-appearance: none; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--mint-deep) var(--p, 10%), #e3e7ec var(--p, 10%)); outline: none; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--mint-deep); box-shadow: 0 4px 10px rgba(11,27,43,.2); cursor: grab; }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--mint-deep); cursor: grab; }
.calc input[type=range]:focus-visible { box-shadow: 0 0 0 4px rgba(18,184,120,.25); }
.calc__out { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 22px; padding: 18px; background: var(--paper); border-radius: 16px; color: var(--muted); font-weight: 600; }
.calc__out strong { font-size: 2.2rem; color: var(--ink); font-family: var(--mono); letter-spacing: -0.03em; }
.calc .micro { margin: 14px 0 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq__wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq details { background: var(--paper); border-radius: 18px; border: 1px solid var(--line); transition: background .2s; }
.faq details[open] { background: #fff; box-shadow: var(--shadow-md); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  /* the plus is drawn with two bars, not a "+" glyph, so it sits dead centre in any font */
  content: ""; position: absolute; right: 20px; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--mint), var(--mint)) center / 12px 2px no-repeat,
    linear-gradient(var(--mint), var(--mint)) center / 2px 12px no-repeat,
    var(--ink);
  transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final { background: var(--ink); color: #fff; padding: 120px 0; position: relative; overflow: hidden; text-align: center; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 110%, rgba(46,229,157,.3), transparent); pointer-events: none; }
.final__inner { position: relative; max-width: 780px; }
.final h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.final p { color: rgba(255,255,255,.72); font-size: 1.15rem; }
.final__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-top: 30px; }
.final__bubbles { position: absolute; inset: -60px -120px; pointer-events: none; }
.fb { position: absolute; font-size: 2rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; animation: bob 6s ease-in-out infinite; }
.fb--1 { left: 0; top: 10%; }
.fb--2 { right: 2%; top: 0; animation-delay: -1.5s; }
.fb--3 { left: 6%; bottom: 0; animation-delay: -3s; }
.fb--4 { right: 0; bottom: 14%; animation-delay: -4.5s; }
@keyframes bob { 50% { transform: translateY(-16px) rotate(6deg); } }

/* ---------- Footer ---------- */
.footer { background: #071320; color: rgba(255,255,255,.6); padding: 50px 0 40px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 40px; align-items: center; }
.footer p { margin: 0; min-width: 14em; }
.footer nav { justify-content: flex-end; align-items: center; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; font-weight: 600; color: rgba(255,255,255,.75); }
.footer nav a:hover { color: #fff; }
.footer small { grid-column: 1 / -1; font-size: .78rem; color: rgba(255,255,255,.4); padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; translate: -50% 0;
  max-width: min(440px, calc(100% - 32px)); padding: 14px 18px; border-radius: 16px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: none; }

.pricing__grid > *, .hero__grid > *, .try__grid > * { min-width: 0; }
.calc__out { flex-wrap: wrap; }

/* ---------- Region switcher ---------- */
.region-pick { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; }
.region-pick .ico { width: 1.1em; height: 1.1em; pointer-events: none; }
.region-select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--white);
  font: 600 .85rem/1 var(--font); color: var(--ink-3); padding: 8px 26px 8px 10px; border-radius: 999px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%2355657a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 11px;
  max-width: 190px;
}
.region-select:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.region-pick--footer { color: rgba(255,255,255,.75); }
.region-pick--footer .region-select { background-color: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.region-pick--footer .region-select option { color: var(--ink); }

/* ---------- Arabic + right-to-left ---------- */
html[lang^="ar"] { --font: "IBM Plex Sans Arabic", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; }
html[lang^="ar"] h1, html[lang^="ar"] h2, html[lang^="ar"] h3 { letter-spacing: 0; line-height: 1.3; }
[dir="rtl"] .nav__links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .region-select { padding: 8px 10px 8px 26px; background-position: left 9px center; }
[dir="rtl"] .bubble--me { border-top-right-radius: 18px; border-top-left-radius: 4px; }
[dir="rtl"] .bubble--bot, [dir="rtl"] .bubble--them { border-top-left-radius: 18px; border-top-right-radius: 4px; }
[dir="rtl"] .bubble time { text-align: left; }
[dir="rtl"] .chat .bubble { transform-origin: bottom right; }
[dir="rtl"] .chat .bubble--me { transform-origin: bottom left; }
[dir="rtl"] .hero__stage { padding-left: 0; padding-right: 40px; }
[dir="rtl"] .ledger { right: auto; left: -40px; }
[dir="rtl"] .float-receipt { left: auto; right: 0; }
[dir="rtl"] .ticks li { padding-left: 0; padding-right: 34px; }
[dir="rtl"] .ticks li::before { left: auto; right: 0; }
[dir="rtl"] .entry { border-left: 0; border-right: 4px solid var(--mint-deep); }
[dir="rtl"] .entry--2 { border-right-color: var(--sky); }
[dir="rtl"] .example { text-align: right; }
[dir="rtl"] .journal th { text-align: right; }
[dir="rtl"] .journal th:not(:first-child), [dir="rtl"] .journal td:not(:first-child) { text-align: left; }
[dir="rtl"] .journal tr:last-child td:first-child { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .group-tally b { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .group-tally b { font-family: inherit; }
[dir="rtl"] .faq summary::after { right: auto; left: 20px; }
[dir="rtl"] .faq summary { padding: 20px 22px 20px 56px; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
/* amounts, receipts and the phone keyboard field stay left-to-right */
[dir="rtl"] .mini-receipt, [dir="rtl"] .scrap span, [dir="rtl"] .calc__num { direction: ltr; }

/* ---------- Responsive ---------- */
.nav__links a, .nav .btn { white-space: nowrap; }
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav .region-pick { margin-inline-start: auto; }
}
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav .region-pick { margin-inline-start: auto; }
  .hero__grid, .problem__grid, .try__grid, .groups__grid, .pricing__grid, .faq__wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero__stage { max-width: 600px; width: 100%; margin-inline: auto; }
  .ledger { right: 0; }
  [dir="rtl"] .ledger { right: auto; left: 0; }
  .steps { grid-template-columns: 1fr; gap: 40px; max-width: 520px; margin-inline: auto; }
  .aud-grid { grid-template-columns: 1fr; }
  .group-chat { margin-inline: auto; width: 100%; }
  .groups__copy { order: -1; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 76px 0; }
  .hero { padding-top: 34px; }
  .nav .btn { font-size: 0; gap: 0; padding: .7em; }
  .nav .btn .ico { font-size: 1rem; width: 1.4em; height: 1.4em; }
  .lede { font-size: 1.05rem; }
  .btn--lg { width: 100%; }
  .cta-stack { align-items: stretch; }
  .hero__stage, [dir="rtl"] .hero__stage { height: auto; flex-direction: column; align-items: center; padding-left: 0; padding-right: 0; }
  .nav__inner { gap: 10px; }
  .nav .region-pick .ico { display: none; }
  .nav .region-select { max-width: 132px; font-size: .78rem; padding-block: 7px; }
  .phone { width: 290px; height: 540px; transform: none; animation: none; }
  .ledger, [dir="rtl"] .ledger { position: relative; right: auto; left: auto; bottom: auto; margin-top: 16px; width: 290px; transform: rotate(1deg); }
  .ledger.bump { transform: rotate(1deg) scale(1.03); }
  .float-receipt { display: none; }
  .works-with { border-radius: 22px; }
  .works-with__sep { display: none; }
  .scatter { height: 340px; }
  .scrap { width: 136px; }
  .aud { padding: 28px 22px; }
  .calc { padding: 24px; }
  .calc__num { font-size: 2.6rem; }
  .final__bubbles { display: none; }
  .final__ctas .chip-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Legal pages (terms, privacy) ---------- */
.legal { padding: 120px 0 80px; background: var(--paper); }
.legal__wrap { max-width: 820px; }
.legal article { font-size: 1rem; line-height: 1.7; color: var(--text); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; margin: 0 0 6px; }
.legal h2 { font-size: 1.35rem; margin: 2.2em 0 .5em; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.05rem; margin: 1.5em 0 .4em; }
.legal p, .legal li { margin: 0 0 .8em; }
.legal ul, .legal ol { padding-inline-start: 1.4em; }
.legal a { color: var(--wa-dark); text-underline-offset: 2px; }
.legal__meta { color: var(--muted); margin-bottom: 1.6em; }
.legal__draft, .legal__note { border: 1px solid var(--line); border-inline-start: 4px solid var(--sun); background: #fff; padding: 12px 16px; border-radius: 10px; margin: 0 0 24px; font-size: .92rem; }
.legal__note { border-inline-start-color: var(--sky); }
.legal__toc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; margin: 0 0 1em; }
.legal__toc ol { margin: 0; columns: 2; column-gap: 32px; }
.legal__toc li { margin: 0 0 .25em; break-inside: avoid; }
.legal__table { overflow-x: auto; margin: 0 0 1em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.legal th, .legal td { text-align: start; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal th { background: rgba(11,27,43,.05); }
@media (max-width: 640px) { .legal { padding-top: 96px; } .legal__toc ol { columns: 1; } }
