/* Toolmarsa explainer — Sunny B.1 palette, editorial premium, light only */
:root {
  --canvas: #fffaf2;
  --canvas-2: #fdf3e4;
  --paper: #fff;
  --ink: #1d2939;
  --ink-2: #4b5565;
  --ink-3: #667085;
  --action: #ff7a1a;
  --action-hover: #f46d0b;
  --on-action: #26160a;
  --accent-text: #e8590c; /* darker orange for large-text headline accent (AA large) */
  --green: #1f6b52;
  --green-deep: #1a5a45;
  --green-tint: #e7f0eb;
  --border: #ecdfca;
  --border-soft: #f1e7d6;

  --shadow-sm: 0 1px 2px rgba(29, 41, 57, .05), 0 1px 1px rgba(29, 41, 57, .04);
  --shadow-md: 0 10px 30px -12px rgba(29, 41, 57, .18), 0 2px 8px -4px rgba(29, 41, 57, .10);
  --shadow-lg: 0 30px 60px -22px rgba(26, 90, 69, .28), 0 10px 24px -14px rgba(29, 41, 57, .16);

  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 24px;
  --maxw: 1180px;
  --gutter: 16px;

  --font: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-ar: "Readex Pro", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  /* clip (not hidden) so no scroll container is created — keeps position:sticky working
     and guarantees the root viewport never scrolls horizontally on mobile. */
  overflow-x: clip;
}
html[lang="ar"] body { font-family: var(--font-ar); }
/* Arabic (Readex Pro) headlines need more leading and no negative tracking,
   or diacritics/joined forms crowd. */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .pain-q { letter-spacing: normal; line-height: 1.34; }
html[lang="ar"] .hero-title { line-height: 1.42; font-size: clamp(1.9rem, 4.6vw, 3.4rem); }

h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.accent-word { color: var(--accent-text); }
.accent-word-bright { color: var(--action); } /* bright orange for large headings on dark surfaces */
p { margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink);
  padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  text-decoration: none; font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--action); margin-inline-end: 10px;
}
.eyebrow-light { color: #cdeadd; }
.eyebrow-light::before { background: var(--action); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: inherit; font-size: 1rem; font-weight: 800; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-lg { min-height: 52px; padding: 14px 30px; font-size: 1.05rem; }
.btn-primary {
  background: var(--action); color: var(--on-action); border-color: var(--action);
  box-shadow: 0 8px 20px -8px rgba(255, 122, 26, .55);
}
.btn-primary:hover { background: var(--action-hover); border-color: var(--action-hover); transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(255, 122, 26, .6); }
.btn-primary:active { transform: translateY(0); }
/* Verify-first: submit stays disabled until Turnstile passes; make that visible. */
.btn:disabled,
.btn:disabled:hover {
  opacity: .45; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn-outline {
  background: var(--paper); color: var(--ink); border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 68px;
}
.wordmark {
  font-weight: 900; font-size: 1.45rem; letter-spacing: -0.03em;
  color: var(--green); text-decoration: none; font-family: var(--font);
  direction: ltr; unicode-bidi: isolate;
}
.wordmark .dot { color: var(--action); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px;
  background: var(--paper); padding: 3px; gap: 2px; box-shadow: var(--shadow-sm);
}
.lang-btn {
  min-height: 40px; min-width: 48px; padding: 6px 14px;
  border: 0; background: transparent; border-radius: 999px;
  font-family: var(--font); font-weight: 800; font-size: .88rem; color: var(--ink-3);
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.lang-btn[lang="ar"] { font-family: var(--font-ar); }
.lang-btn.is-active { background: var(--green); color: #fff; }
.header-cta { padding-inline: 20px; box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(44px, 8vw, 86px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(255, 122, 26, .10), transparent 60%),
    radial-gradient(55% 50% at 6% 92%, rgba(31, 107, 82, .09), transparent 60%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
/* grid/flex items must be allowed to shrink below content min-size (prevents
   RTL/long-token horizontal overflow). */
.hero-copy, .hero-demo, .see-copy, .see-demo { min-width: 0; }
.hero-title {
  font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 900; letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero-sub {
  margin-top: 22px; font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  color: var(--ink-2); max-width: 540px; font-weight: 400;
}
.hero-cta { margin-top: 30px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-link { font-weight: 800; color: var(--green); text-decoration: none; font-size: 1rem; white-space: nowrap; }
.hero-link:hover { color: var(--green-deep); text-decoration: underline; text-underline-offset: 4px; }
.hero-note {
  margin-top: 26px; font-size: .95rem; color: var(--ink-2); font-weight: 700;
  display: inline-flex; align-items: center; gap: 10px;
}
.dot-live {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(31, 107, 82, .5); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 107, 82, .45); }
  70% { box-shadow: 0 0 0 9px rgba(31, 107, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 107, 82, 0); }
}

/* ---------- Chat mockup (illustrative assistant chat) ---------- */
.hero-demo { position: relative; }
.chat {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-demo .chat {
  transform: perspective(1600px) rotateY(-3deg) rotateX(1.4deg);
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.hero-demo:hover .chat { transform: perspective(1600px) rotateY(0) rotateX(0); }

.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 13px; border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(var(--canvas), var(--canvas-2));
}
.chat-id { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.chat-id-name { font-weight: 800; font-size: .8rem; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-badge {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .64rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  color: var(--on-action); background: #ffe6c7;
  border: 1px solid #f3c88b; border-radius: 999px; padding: 4px 9px;
  box-shadow: 0 1px 2px rgba(29,41,57,.06);
}
.chat-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--action); flex: 0 0 auto; }
@media (max-width: 440px) {
  .chat-badge { font-size: .6rem; letter-spacing: .02em; padding: 4px 8px; }
}

.avatar {
  flex: 0 0 auto; width: 25px; height: 25px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.avatar svg { width: 15px; height: 15px; }
.avatar-ai { background: linear-gradient(135deg, #2a8166, #1f6b52); color: #fff; box-shadow: 0 4px 10px -5px rgba(31,107,82,.7); }
.avatar-ai svg { fill: currentColor; }
.avatar-user { background: #eef1f4; color: #667085; border: 1px solid #e3e7ec; border-radius: 50%; }
.avatar-user svg { fill: currentColor; }

.chat-body { padding: 13px 13px 15px; display: flex; flex-direction: column; gap: 12px; }
.turn { display: flex; gap: 9px; align-items: flex-start; }
.turn-content { min-width: 0; flex: 1 1 auto; }
.turn-name { display: block; font-size: .68rem; font-weight: 800; color: var(--ink-3); letter-spacing: .02em; margin-bottom: 4px; }
.msg-text {
  background: var(--canvas); border: 1px solid var(--border-soft);
  border-radius: 4px 12px 12px 12px; padding: 8px 11px;
  font-size: .86rem; line-height: 1.45; color: var(--ink); font-weight: 500;
}

/* reveal states — default visible (no-JS / reduced motion); JS hides then steps through */
.chat.is-playing [data-step] { opacity: 0; transform: translateY(8px); }
.chat.is-playing [data-step].show { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.3,1); }

/* status / working lines */
.status { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-2); font-weight: 600; margin-bottom: 7px; }
.status-text { min-width: 0; }
.status .spinner { display: none; }
.status .status-icon { width: 15px; height: 15px; flex: 0 0 auto; color: var(--green); }
.status[data-state="fail"] .status-icon { color: var(--ink-3); }
.status[data-state="fail"] .status-text { color: var(--ink-3); }
.chat.is-playing .status.is-working .status-icon { display: none; }
.chat.is-playing .status.is-working .spinner {
  display: inline-block; width: 13px; height: 13px; flex: 0 0 auto;
  border: 2px solid #d9e4df; border-top-color: var(--green); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* typing indicator */
.typing { display: none; gap: 5px; align-items: center; padding: 4px 2px; }
.chat.is-playing .typing.show { display: inline-flex; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #c4ccd6; animation: bob 1.1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 80%, 100% { transform: translateY(0); opacity: .6; } 40% { transform: translateY(-4px); opacity: 1; } }

/* assistant text + media */
.ai-text { font-size: .86rem; line-height: 1.5; color: var(--ink); margin-bottom: 8px; }
.ai-text strong { font-weight: 800; }
.product-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--canvas); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 10px; margin-bottom: 8px;
}
.pc-thumb {
  width: 38px; height: 38px; border-radius: 9px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef1f4, #e2e8ee); color: #8a97a6;
  border: 1px solid #e0e6ec;
}
.pc-thumb svg { width: 20px; height: 20px; }
.pc-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.pc-name { font-weight: 800; font-size: .84rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta { font-size: .72rem; color: var(--ink-3); font-weight: 700; display: inline-flex; gap: 5px; align-items: center; }
.pc-stars { color: var(--action); }
.pc-price { font-weight: 900; font-size: .88rem; white-space: nowrap; }

.takeaways { list-style: none; margin: 0 0 9px; padding: 0; display: grid; gap: 5px; }
.takeaways li {
  font-size: .79rem; color: var(--ink-2); line-height: 1.38;
  padding-inline-start: 11px; position: relative; font-style: italic;
}
.takeaways li::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 3px; height: calc(100% - 9px); border-radius: 2px; background: var(--border); }

.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 9px; }
.chip-action, .chip-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  font-size: .75rem; font-weight: 800;
}
.chip-action { background: var(--green-tint); color: var(--green-deep); border: 1px solid #cfe3d9; }
.chip-action svg { width: 13px; height: 13px; color: var(--green); }
.chip-link { background: var(--paper); color: var(--ink); border: 1px solid var(--border); }
.closing { font-size: .81rem; color: var(--ink-2); line-height: 1.45; }

/* image attachment in a user turn */
.img-attach {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 7px;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: 11px; padding: 6px 11px 6px 6px; max-width: 100%;
}
.img-attach-thumb {
  width: 32px; height: 32px; border-radius: 7px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fde9d6, #f7dcc0); color: #b47a3c;
  border: 1px solid #f0d8bd;
}
.img-attach-thumb svg { width: 18px; height: 18px; }
.img-attach-name { font-size: .76rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* See-it-in-action section — two columns: demo left, copy right */
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.see-grid {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.see-copy { order: 2; }
.see-demo { order: 1; max-width: 520px; width: 100%; }
.see-sub { margin-top: 14px; color: var(--ink-2); font-size: clamp(1.05rem, 1.7vw, 1.22rem); max-width: 440px; }
@media (max-width: 920px) {
  .see-grid { grid-template-columns: 1fr; gap: 28px; }
  .see-copy { order: 0; }
  .see-demo { order: 1; margin-inline: auto; }
  .see-sub { margin-inline: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(40px, 6vw, 74px); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }

/* ---------- Steps (editorial, staggered) ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}
.step {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.step::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0;
  width: 56px; height: 4px; background: var(--action); border-radius: 0 0 4px 0;
}
.step:nth-child(2) { margin-top: 0; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #e0cfb2; }
.step-num {
  display: block; font-size: 3.4rem; font-weight: 900; line-height: 1;
  color: var(--green); letter-spacing: -0.04em; margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.step-head { font-size: 1.22rem; font-weight: 800; margin-bottom: 9px; letter-spacing: -0.02em; }
.step-body { color: var(--ink-2); font-size: 1rem; }
@media (min-width: 880px) {
  .step:nth-child(2) { transform: translateY(26px); }
  .step:nth-child(2):hover { transform: translateY(20px); }
}

/* ---------- For shoppers — pain -> solution showcase (page centerpiece) ---------- */
.shoppers-band {
  position: relative; overflow-x: hidden; overflow: clip;
  padding-block: clamp(64px, 9vw, 120px);
  background:
    radial-gradient(60% 50% at 50% -8%, rgba(255,122,26,.08), transparent 60%),
    linear-gradient(var(--canvas-2), var(--canvas));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.shoppers-band .section-head { margin-bottom: clamp(12px, 3vw, 28px); }
.shoppers-title { font-size: clamp(2.2rem, 5.2vw, 3.5rem); line-height: 1.04; }
.shoppers-band .see-sub { font-size: clamp(1.15rem, 2.2vw, 1.4rem); max-width: 680px; }

.pain-list {
  list-style: none; margin: clamp(44px, 6vw, 76px) auto 0; padding: 0;
  max-width: 940px;
  display: flex; flex-direction: column; gap: clamp(40px, 6vw, 76px);
}
.pain-row { display: flex; align-items: center; gap: clamp(18px, 3.2vw, 40px); }
.pain-row:not(.pain-trust):nth-child(even) { flex-direction: row-reverse; text-align: end; }
.pain-n {
  flex: 0 0 auto; font-weight: 900; line-height: 1;
  font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #bcd6c9; /* fallback: solid, legible green tint */
}
/* Crisp outlined numeral — confident, intentional, stays a supporting accent. */
@supports (-webkit-text-stroke: 2px #1f6b52) {
  .pain-n { color: transparent; -webkit-text-stroke: 2.4px var(--green); }
}
.pain-text { min-width: 0; }
.pain-q {
  font-weight: 900; letter-spacing: -0.035em; line-height: 1.06; color: var(--ink);
  font-size: clamp(1.9rem, 5.4vw, 3rem);
}
.pain-a {
  margin-top: 12px; color: var(--ink-2); font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 520px;
}
.pain-row:not(.pain-trust):nth-child(even) .pain-a { margin-inline-start: auto; }
.pain-check {
  width: 1.05em; height: 1.05em; flex: 0 0 auto;
  color: var(--green); vertical-align: -0.16em; margin-inline-start: 3px;
}
/* item 01 check: ring loads, then the mark draws, once on scroll-in. Gated on
   .js-reveal so reduced-motion / no-JS shows it completed and static. */
.js-reveal .pain-row[data-reveal] .pcheck-ring { stroke-dasharray: 70; stroke-dashoffset: 70; }
.js-reveal .pain-row[data-reveal] .pcheck-mark { stroke-dasharray: 24; stroke-dashoffset: 24; }
.pain-row[data-reveal].is-visible .pcheck-ring { stroke-dashoffset: 0; transition: stroke-dashoffset .6s ease .15s; }
.pain-row[data-reveal].is-visible .pcheck-mark { stroke-dashoffset: 0; transition: stroke-dashoffset .4s ease .72s; }
.pain-note {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: .95rem; font-weight: 700; color: var(--ink-3);
}
.pain-row:not(.pain-trust):nth-child(even) .pain-note { margin-inline-start: auto; }

/* trust differentiator — breaks the rhythm, centered emphasis, closes the list */
.pain-trust {
  flex-direction: column; text-align: center; align-items: center; gap: 16px;
  background: var(--paper); border: 1px solid var(--border);
  border-top: 4px solid var(--green);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(34px, 5vw, 56px);
}
.pain-ico {
  width: 66px; height: 66px; border-radius: 18px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-tint); color: var(--green); border: 1px solid #cfe3d9;
}
.pain-ico svg { width: 34px; height: 34px; }
.pain-trust .pain-q { font-size: clamp(2rem, 5.4vw, 3rem); }
.pain-trust .pain-a { max-width: 560px; color: var(--ink); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.4rem); margin-inline: auto; }
.pain-trust .pain-a strong { color: var(--green-deep); }

.soon-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  color: var(--on-action); background: #ffe6c7; border: 1px solid #f3c88b;
  border-radius: 999px; padding: 4px 11px;
}
.soon-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--action); }
.soon-badge-sm { font-size: .66rem; padding: 3px 9px; }

/* Directional scroll-in: left-aligned rows enter from the left, right from the
   right; trust card rises. Fail-safe: every hidden transform is gated on BOTH
   .js-reveal (armed only when JS+observer run) AND :not(.is-visible), so a
   revealed row can never be left translated/clipped by any later rule (e.g. a
   media-query override). If the observer never adds .is-visible, the content is
   still fully visible because .js-reveal is never added. Reduced motion stays static. */
.js-reveal .pain-row[data-reveal] { transition: opacity .55s ease-out, transform .58s cubic-bezier(.2,.7,.3,1); }
.js-reveal .pain-row[data-reveal]:not(.is-visible) { opacity: 0; }
.js-reveal .pain-row[data-reveal]:not(.is-visible):not(.pain-trust):nth-child(odd) { transform: translateX(-68px); }
.js-reveal .pain-row[data-reveal]:not(.is-visible):not(.pain-trust):nth-child(even) { transform: translateX(68px); }
.js-reveal .pain-row.pain-trust[data-reveal]:not(.is-visible) { transform: translateY(48px) scale(.985); }
.js-reveal .pain-row[data-reveal] .pain-n { transition: transform .6s cubic-bezier(.2,.7,.3,1) .04s; }
.js-reveal .pain-row[data-reveal]:not(.is-visible) .pain-n { transform: scale(.8); transform-origin: center; }
.pain-row:nth-child(2).is-visible { transition-delay: .05s; }
.pain-row:nth-child(3).is-visible { transition-delay: .1s; }
.pain-row:nth-child(4).is-visible { transition-delay: .15s; }
.pain-row:nth-child(5).is-visible { transition-delay: .1s; }
.pain-row:nth-child(6).is-visible { transition-delay: .05s; }

/* ---------- Trust — bold guarantees with small drawing checkmarks ---------- */
.trust-section .section-head { margin-bottom: clamp(26px, 4vw, 44px); }
.accent-green { color: var(--green); }

.trust-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 24px);
}
.trust-card {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: clamp(26px, 3.5vw, 38px) clamp(20px, 3vw, 28px);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.trust-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfe3d9; }
/* small inline check icon (~30px), fixed size via width/height attrs + CSS */
.trust-check { width: 30px; height: 30px; flex: 0 0 auto; color: var(--green); }
.trust-text {
  font-size: clamp(1.1rem, 1.9vw, 1.3rem); font-weight: 800; color: var(--ink);
  letter-spacing: -0.015em; line-height: 1.25; margin: 0;
}

/* checkmark draw-in (stroke animation), staggered; gated on .js-reveal so a
   JS/observer/reduced-motion case shows the checks fully drawn. */
.js-reveal .trust-card .tc-ring { stroke-dasharray: 78; stroke-dashoffset: 78; }
.js-reveal .trust-card .tc-mark { stroke-dasharray: 26; stroke-dashoffset: 26; }
.trust-card.is-visible .tc-ring { stroke-dashoffset: 0; transition: stroke-dashoffset .6s ease; }
.trust-card.is-visible .tc-mark { stroke-dashoffset: 0; transition: stroke-dashoffset .4s ease; }
.trust-card:nth-child(1).is-visible .tc-ring { transition-delay: .08s; }
.trust-card:nth-child(1).is-visible .tc-mark { transition-delay: .46s; }
.trust-card:nth-child(2).is-visible .tc-ring { transition-delay: .22s; }
.trust-card:nth-child(2).is-visible .tc-mark { transition-delay: .6s; }
.trust-card:nth-child(3).is-visible .tc-ring { transition-delay: .36s; }
.trust-card:nth-child(3).is-visible .tc-mark { transition-delay: .74s; }

/* ---------- Partners (dark green band) ---------- */
.partners {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 90% at 90% 0%, rgba(255,122,26,.16), transparent 55%),
    linear-gradient(155deg, var(--green) 0%, var(--green-deep) 100%);
  color: #eaf5ef;
  padding-block: clamp(56px, 8vw, 100px);
}
.partners-inner {
  display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.partners-copy { position: sticky; top: 92px; }
.partners-title { color: #fff; }
.partners-body { margin-top: 20px; color: #cfe6da; font-size: 1.12rem; max-width: 460px; }
.partners-copy .btn { margin-top: 30px; }
.partners-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pp {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius); padding: 15px 20px;
  backdrop-filter: blur(2px);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background-color .18s ease;
}
.pp:hover { transform: translateY(-3px); background: rgba(255,255,255,.11); }
.pp-num {
  font-size: 1.35rem; font-weight: 900; color: var(--action);
  font-variant-numeric: tabular-nums; letter-spacing: .02em; flex: 0 0 auto;
}
.pp-head { display: block; font-weight: 800; font-size: 1.22rem; color: #fff; letter-spacing: -0.015em; line-height: 1.15; }
.pp-body { display: block; color: #bcd8cb; font-size: .95rem; margin-top: 2px; line-height: 1.4; }
.pp-support { background: transparent; border-color: rgba(255,255,255,.16); border-style: dashed; }
.pp-support .pp-head { font-size: 1rem; }
.pp-support .pp-body { font-size: .92rem; color: #bcd6c9; }

/* Partner band CTA row */
.partners-cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.partners-mailto { font-size: .95rem; font-weight: 700; color: #cfe6da; }
.partners-mailto a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Partner contact modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 36, 30, .5);
  backdrop-filter: blur(3px);
  animation: modalFade .18s ease;
}
.modal-dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 540px;
  height: auto;
  /* Size to content; only scroll as a fallback on genuinely short viewports. */
  max-height: calc(100dvh - 32px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  animation: modalPop .2s cubic-bezier(.2,.7,.3,1);
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--canvas); border: 1px solid var(--border); color: var(--ink-2);
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.modal-close:hover { background: var(--canvas-2); color: var(--ink); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { padding: clamp(16px, 2.4vw, 24px); }
.modal-body .eyebrow { margin-bottom: 6px; }

.pf-title { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 800; letter-spacing: -0.02em; }
.pf-sub { margin-top: 4px; color: var(--ink-2); font-size: .9rem; line-height: 1.4; }
.pf-form { margin-top: 12px; display: grid; gap: 10px; }
.pf-form .field { gap: 5px; }
.pf-form .field-label { font-size: .88rem; }
.pf-form .field-input { min-height: 44px; padding: 9px 13px; }
.pf-form .field-textarea { min-height: 50px; }
.pf-form .turnstile-note { padding: 8px 11px; font-size: .8rem; }
.pf-form .field-msg { min-height: 0; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.pf-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pf-actions .btn { min-width: 140px; }
.pf-fallback { font-size: .9rem; font-weight: 700; color: var(--ink-2); }
.pf-fallback a { color: var(--green); font-weight: 800; }
.field-hint { margin: 2px 0 0; font-size: .78rem; line-height: 1.4; color: var(--ink-3); }
.form-consent { margin: 0; font-size: .78rem; line-height: 1.45; color: var(--ink-3); }
.form-consent a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.form-consent a:hover { color: var(--green-deep); }
@media (max-width: 560px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-actions .btn { width: 100%; }
  .pf-actions { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-dialog { animation: none; }
}

/* ---------- Early access ---------- */
.ea-card {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  max-width: 680px; margin-inline: auto; padding: clamp(24px, 3.5vw, 40px);
  text-align: center; position: relative; overflow: hidden;
}
.ea-card .section-title { font-size: clamp(1.55rem, 3vw, 2rem); }

/* Slim early-access CTA (the form itself opens in a modal) */
.ea-cta { text-align: center; max-width: 580px; margin-inline: auto; }
.ea-cta .eyebrow { justify-content: center; }
.ea-cta .btn { margin-top: 4px; }
.ea-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--action));
}
.ea-card .eyebrow { justify-content: center; }
.ea-sub { margin: 10px auto 20px; color: var(--ink-2); max-width: 460px; font-size: 1rem; }
.ea-form { max-width: 520px; margin-inline: auto; text-align: start; display: grid; gap: 13px; }
.ea-submit { width: 100%; min-height: 48px; padding: 12px 26px; font-size: 1rem; margin-top: 2px; }

/* Device segmented control (optional radiogroup) */
.device-field { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.device-field .field-label { padding: 0; }
.segmented {
  display: inline-flex; gap: 4px; padding: 4px;
  border: 1.5px solid var(--border); border-radius: 13px; background: var(--canvas);
  width: 100%;
}
.seg { position: relative; flex: 1 1 0; display: flex; }
.seg input {
  position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0;
}
.seg span {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 12px; border-radius: 9px;
  font-weight: 800; font-size: .95rem; color: var(--ink-2); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.seg span:hover { color: var(--ink); }
.seg input:checked + span { background: var(--green); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--action); outline-offset: 2px; }

/* ---------- Shared form fields ---------- */
.field { display: grid; gap: 8px; }
.field-label { font-weight: 800; font-size: .92rem; }
.field-input {
  width: 100%; min-height: 46px; padding: 11px 15px;
  border: 1.5px solid var(--border); border-radius: 13px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--canvas);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field-input:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,107,82,.16); }
.field-input::placeholder { color: #98a2b3; }
.field-input.is-invalid { border-color: #b42318; }
.field-textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field-msg { font-size: .95rem; font-weight: 800; min-height: 1.2em; margin: 0; }
.field-msg.is-error, .ea-msg.is-error { color: #b42318; }
.field-msg.is-success, .ea-msg.is-success { color: var(--green); }
.field-msg a, .ea-msg a { color: var(--green); font-weight: 800; }
/* "Did you mean name@gmail.com?" under an email field, with two choices (T-080). */
.email-typo {
  margin: 2px 0 0; display: grid; gap: 7px;
  font-size: .88rem; font-weight: 700; line-height: 1.35; color: var(--ink-2);
}
.email-typo[hidden] { display: none; }
.email-typo-addr { color: var(--ink); font-weight: 800; overflow-wrap: anywhere; }
.email-typo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.email-typo-use, .email-typo-keep {
  min-height: 36px; max-width: 100%; padding: 6px 14px; border-radius: 999px;
  font-family: inherit; font-size: .85rem; font-weight: 800; cursor: pointer;
  overflow-wrap: anywhere; text-align: start;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.email-typo-use { border: 1.5px solid var(--green); background: var(--green-tint); color: var(--green-deep); }
.email-typo-use:hover { background: var(--green); color: #fff; }
.email-typo-keep { border: 1.5px solid var(--border); background: var(--paper); color: var(--ink-2); }
.email-typo-keep:hover { border-color: var(--ink-3); color: var(--ink); }
.email-typo-use:focus-visible, .email-typo-keep:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.ea-msg { font-size: .95rem; font-weight: 800; min-height: 1.2em; margin: 0; }

/* Hidden extra field (a bot signal only: the Worker flags, never rejects, a
   filled one). Clipped like .visually-hidden, not display:none and not pushed
   off-screen. */
.aux-field {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Turnstile widget holder */
.turnstile-holder { min-height: 4px; }
.turnstile-holder:empty { min-height: 0; }
.turnstile-note {
  font-size: .82rem; font-weight: 700; color: var(--ink-3);
  background: var(--canvas); border: 1px dashed var(--border);
  border-radius: 10px; padding: 10px 12px;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--canvas-2); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 92px; flex-wrap: wrap; padding-block: 20px;
}
.footer-brand { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.footer-wordmark { font-size: 1.2rem; }
.footer-affil { color: var(--ink-3); font-size: .9rem; font-weight: 700; }
.footer-meta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 800;
  min-height: 44px; display: inline-flex; align-items: center;
}
.footer-links a:hover { color: var(--green); }
.footer-copy { color: var(--ink-3); font-size: .9rem; font-weight: 700; }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-main { max-width: 768px; padding-block: clamp(32px, 5vw, 56px); }
.legal-draft {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  color: var(--on-action); background: #ffe6c7; border: 1px solid #f3c88b;
  border-radius: 999px; padding: 6px 14px; margin: 0 0 26px;
}
.legal-draft::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--action); }
.legal-doc { color: var(--ink-2); }
.legal-doc[hidden] { display: none; }
.legal-doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.025em; margin: 0 0 8px; color: var(--ink); line-height: 1.1; }
.legal-updated { color: var(--ink-3); font-weight: 700; font-size: .9rem; margin: 0 0 10px; }
.legal-doc > p:first-of-type.legal-lead, .legal-lead { font-size: 1.08rem; color: var(--ink); line-height: 1.65; }
.legal-doc h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 800; letter-spacing: -0.02em; margin: 36px 0 10px; color: var(--ink); line-height: 1.2; }
.legal-doc h3 { font-size: 1.08rem; font-weight: 800; margin: 22px 0 6px; color: var(--ink); }
.legal-doc p { margin: 0 0 14px; line-height: 1.7; }
.legal-doc ul { margin: 0 0 16px; padding-inline-start: 22px; line-height: 1.7; }
.legal-doc li { margin-bottom: 7px; }
.legal-doc a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.legal-doc a:hover { color: var(--green-deep); }
.legal-doc strong { color: var(--ink); font-weight: 800; }
html[lang="ar"] .legal-doc { text-align: right; }
html[lang="ar"] .legal-doc ul { padding-inline-start: 22px; }

/* ---------- Scroll reveal ---------- */
/* Hidden only once JS arms it (.js-reveal) AND the row isn't yet revealed; without
   JS, or once revealed, everything is fully visible. translateY only — never X. */
.js-reveal [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(22px); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal] {
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.steps [data-reveal].is-visible,
.steps.revealed .step { }
.steps .step:nth-child(2).is-visible { transition-delay: .09s; }
.steps .step:nth-child(3).is-visible { transition-delay: .18s; }

/* ---------- RTL ---------- */
[dir="rtl"] .hero-sub, [dir="rtl"] .shopper-sub, [dir="rtl"] .partners-body { max-width: 540px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 620px; }
  .hero-demo { max-width: 560px; }
  .hero-demo .chat { transform: none; }
  .shopper-grid { grid-template-columns: 1fr; gap: 28px; }
  .shopper-lead { position: static; }
  .partners-inner { grid-template-columns: 1fr; gap: 36px; }
  .partners-copy { position: static; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(2) { transform: none !important; }
  .trust-grid { grid-template-columns: 1fr; }
  /* pain rows stack, left-aligned, numeral on top. On mobile the reveal uses
     NO horizontal movement at all — only opacity + a small translateY — so the
     start state can never shift content sideways or clip horizontally, even if a
     row is left unrevealed. Gated on :not(.is-visible) so revealed rows reset. */
  .pain-row:not(.pain-trust) { flex-direction: column !important; align-items: flex-start; text-align: start !important; gap: 4px; }
  .pain-row:not(.pain-trust) .pain-a,
  .pain-row:not(.pain-trust) .pain-note { margin-inline-start: 0 !important; }
  .js-reveal .pain-row[data-reveal]:not(.is-visible):not(.pain-trust):nth-child(odd),
  .js-reveal .pain-row[data-reveal]:not(.is-visible):not(.pain-trust):nth-child(even) { transform: translateY(16px); }
}
@media (max-width: 440px) {
  body { font-size: 16px; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.2rem); }
  .header-cta { display: none; }
  .ea-row { flex-direction: column; }
  .ea-row .btn { width: 100%; }
  .hero-cta { gap: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-demo .chat { transform: none !important; }
  .chat [data-step] { opacity: 1 !important; transform: none !important; }
  .chat .typing { display: none !important; }
}
