/* ══════════════════════════════════════════════════════════
   AGENT SELA — shared design system
   Brand book v1.1: Rubik 700/900 headings · Assistant 400/600 body
   Never serif, never Heebo. Turquoise is an accent, never body text.
   ══════════════════════════════════════════════════════════ */

:root {
  --paper: #F7F4ED;
  --panel: #F1EDE3;
  --ink: #14233A;
  --slate: #5A6B7B;
  --turq: #19D3C5;
  --turqdk: #0E9C92;
  --blue: #3B3FE0;
  --line: rgba(20, 35, 58, 0.13);
  --wa: #25D366;
  --grad: linear-gradient(135deg, #13254d 0%, #2b7fb0 55%, #19D3C5 100%);

  /* type scale — caps at ~1225px so 1366 = 1920 = 2560 render identically */
  --t-h1:    clamp(2.35rem, 1.55rem + 3.2vw, 4rem);
  --t-h2:    clamp(1.9rem, 1.35rem + 2.2vw, 3rem);
  --t-h3:    clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  --t-lede:  clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --t-body:  clamp(1.125rem, 1.09rem + 0.2vw, 1.25rem);
  --t-giant: clamp(4rem, 2rem + 8vw, 9.5rem);
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; background: var(--paper); }

body {
  font-family: 'Assistant', sans-serif;
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--turq); color: var(--ink); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--turqdk);
  outline-offset: 3px;
  border-radius: 4px;
}

section { overflow-x: clip; }

/* ── typography roles ── */
.tt-h1 { font-family: 'Rubik', sans-serif; font-weight: 900; font-size: var(--t-h1); line-height: 1.16; letter-spacing: -0.01em; }
.tt-h2 { font-family: 'Rubik', sans-serif; font-weight: 900; font-size: var(--t-h2); line-height: 1.22; color: var(--ink); }
.tt-h3 { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: var(--t-h3); line-height: 1.35; color: var(--ink); }
.tt-lede { font-size: var(--t-lede); font-weight: 400; line-height: 1.65; color: var(--slate); }
.tt-lede strong, .tt-body strong { color: var(--ink); font-weight: 700; }
.tt-body { font-size: var(--t-body); font-weight: 400; line-height: 1.7; color: var(--slate); }
.tt-small { font-size: 1rem; font-weight: 400; line-height: 1.6; color: var(--slate); }

.tt-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--slate);
}

.tt-label::before { content: ''; width: 16px; height: 2px; background: var(--turq); border-radius: 2px; }

.tt-folio { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; color: rgba(20, 35, 58, 0.26); }

.blue-word { color: var(--blue); }

/* ── fabric ── */
.dotgrid {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(25, 211, 197, 0.13) 1.4px, transparent 1.4px);
  background-size: 32px 32px;
}

.panelbg { background-color: var(--panel); }
.night { background: var(--ink); color: #fff; }

.chapter { padding-block: clamp(64px, 9vw, 112px); }
.wrap   { max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.wrap-n { max-width: 760px;  margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }

.chapter-head {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* ── containers ── */
.ledger { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.ledger-row { border-top: 1px solid var(--line); }
.ledger-row:first-child { border-top: 0; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; }

.icn {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(25, 211, 197, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--turqdk); flex-shrink: 0;
}

.icn svg { width: 22px; height: 22px; }

/* ── buttons ── */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--wa);
  color: #fff;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 30px;
  border-radius: 999px;
  min-height: 52px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-wa:hover { transform: translateY(-2px); filter: brightness(1.04); }

.btn-ghost { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 1.05rem; padding: 12px 6px; min-height: 48px; }
.btn-ghost svg { transition: transform 0.2s ease; }
.btn-ghost:hover svg { transform: translateX(-4px); }

.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: transparent; color: var(--ink);
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 1.05rem;
  padding: 13px 28px; border-radius: 999px; border: 2px solid var(--ink); min-height: 52px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-line:hover { background: var(--ink); color: var(--paper); }

/* ══ header + navigation ══ */
#hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.hdr-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }

.brandmark {
  font-family: 'Rubik', sans-serif; font-weight: 900; font-size: 1.15rem;
  color: var(--ink); user-select: none; white-space: nowrap;
}

.brandmark span { color: var(--turqdk); }

.nav-a { position: relative; padding-bottom: 3px; font-weight: 600; font-size: 0.95rem; color: var(--slate); white-space: nowrap; }
.nav-a::after { content: ''; position: absolute; inset-inline-start: 0; bottom: 0; width: 0; height: 2px; background: var(--turq); transition: width 0.25s ease; }
.nav-a:hover { color: var(--ink); }
.nav-a:hover::after { width: 100%; }
.nav-a[aria-current="page"] { color: var(--ink); }
.nav-a[aria-current="page"]::after { width: 100%; }

.pill-live {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 14px;
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em;
  color: var(--turqdk);
}

/* mobile menu */
#nav-toggle {
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer;
}

#nav-toggle svg { width: 22px; height: 22px; }
#nav-toggle .x-icon { display: none; }
#nav-toggle[aria-expanded="true"] .bars-icon { display: none; }
#nav-toggle[aria-expanded="true"] .x-icon { display: block; }

#mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

#mobile-nav.open { display: block; }

#mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 1.1rem;
  color: var(--ink);
  min-height: 56px;
}

#mobile-nav a:last-of-type { border-bottom: 0; }
#mobile-nav a svg { color: var(--turqdk); }

@media (min-width: 1024px) {
  #nav-toggle { display: none; }
  #mobile-nav { display: none !important; }
}

/* ══ footer ══ */
#site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); }

#site-footer a { color: rgba(255, 255, 255, 0.72); transition: color 0.2s ease; }
#site-footer a:hover { color: var(--turq); }

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-block: clamp(48px, 6vw, 72px);
}

@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }

.foot-h {
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.14em; color: #fff; margin-bottom: 18px;
}

.foot-list { display: flex; flex-direction: column; gap: 12px; font-size: 1rem; }

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.5);
}

.sig { font-family: 'Caveat', cursive; font-weight: 500; font-size: clamp(2rem, 3vw, 2.6rem); color: var(--turq); transform: rotate(-3deg); display: inline-block; }

/* ══ newsletter capture — footer strip (dark) + shared success ══
   Secondary to the consultation CTA by design: quiet, one row, bottom of page. */
.foot-news { border-top: 1px solid rgba(255,255,255,0.14); padding-block: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.foot-news-copy { flex: 1 1 260px; }
.foot-news-h { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 1.08rem; color: #fff; }
.foot-news-sub { font-size: 0.95rem; color: rgba(255,255,255,0.62); margin-top: 3px; line-height: 1.5; }
.foot-news-form { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; }
.foot-news-form input[type="email"] { flex: 1; min-width: 0; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); border-radius: 12px; padding: 12px 15px; color: #fff; font-size: 1rem; font-family: inherit; }
.foot-news-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.foot-news-form input[type="email"]:focus { outline: 2px solid var(--turq); outline-offset: 1px; border-color: transparent; }
.foot-news-form button { background: var(--turq); color: #0A1626; font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 0.98rem; border: 0; border-radius: 12px; padding: 12px 22px; cursor: pointer; white-space: nowrap; transition: filter 0.2s ease; }
.foot-news-form button:hover { filter: brightness(1.06); }
.foot-news-mini { flex-basis: 100%; font-size: 0.82rem; color: rgba(255,255,255,0.42); margin-top: -2px; }
/* honeypot: sr-only clip (NOT left:-9999px — that overflows the document in RTL and zooms mobile) */
.news-hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.news-ok { display: none; flex-basis: 100%; color: var(--turq); font-weight: 700; font-size: 1.02rem; }
.foot-news.news-done .foot-news-form, .foot-news.news-done .foot-news-mini { display: none; }
.foot-news.news-done .news-ok { display: block; }

/* subtle end-of-article newsletter line (light bg, injected under the lead CTA) */
.art-news { margin-top: 26px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: 16px; background: rgba(25,211,197,0.05); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.art-news-t { flex: 1 1 220px; font-size: 1rem; color: var(--slate); }
.art-news-t b { color: var(--ink); font-weight: 700; }
.art-news form { display: flex; gap: 8px; flex: 1 1 280px; max-width: 400px; }
.art-news input[type="email"] { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px; color: var(--ink); font-size: 0.98rem; font-family: inherit; }
.art-news input[type="email"]:focus { outline: 2px solid var(--turqdk); outline-offset: 1px; border-color: transparent; }
.art-news button { background: var(--ink); color: #fff; font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 0.94rem; border: 0; border-radius: 11px; padding: 10px 18px; cursor: pointer; white-space: nowrap; }
.art-news.news-done form { display: none; }
.art-news .news-ok { display: none; color: var(--turqdk); }
.art-news.news-done .news-ok { display: block; }

/* ══ live bits ══ */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.eq span { display: block; width: 2px; height: 100%; background: var(--turq); transform-origin: bottom; animation: eq 1s ease-in-out infinite alternate; }
.eq span:nth-child(1) { animation-duration: 0.9s; animation-delay: -0.2s; }
.eq span:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.5s; }
.eq span:nth-child(3) { animation-duration: 1.1s; animation-delay: -0.1s; }
.eq span:nth-child(4) { animation-duration: 0.6s; animation-delay: -0.7s; }
@keyframes eq { 0% { transform: scaleY(0.25); } 100% { transform: scaleY(1); } }

.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 8px var(--turq); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }

/* ── hand-drawn strokes ── */
.stroke-word { position: relative; display: inline-block; white-space: nowrap; }
.stroke-word > svg { position: absolute; overflow: visible; pointer-events: none; }
.stroke-word > svg path {
  fill: none; stroke: var(--turq); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: var(--len, 300); stroke-dashoffset: var(--len, 300);
  transition: stroke-dashoffset 1s ease 0.5s;
}
.fx.in .stroke-word > svg path, .stroke-word.in > svg path { stroke-dashoffset: 0; }
.u-line > svg { inset-inline: -4%; bottom: -0.18em; height: 0.3em; width: 108%; }
.u-circle > svg { inset: -22% -12% -26% -12%; width: 124%; height: 148%; }

/* ── reveals ── */
.fx { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fx.in { opacity: 1; transform: translateY(0); }
.fx-d1 { transition-delay: 0.08s; }
.fx-d2 { transition-delay: 0.16s; }

/* ── stats ── */
.stat-n { font-family: 'Rubik', sans-serif; font-weight: 900; font-size: clamp(1.9rem, 2.8vw, 2.6rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-c { font-size: 0.95rem; color: var(--slate); margin-top: 8px; line-height: 1.45; }

.giant-num {
  font-family: 'Rubik', sans-serif; font-weight: 900;
  font-size: var(--t-giant); line-height: 0.95;
  color: var(--ink); letter-spacing: -0.02em; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.giant-num .dash { color: var(--turq); }

/* credibility band — one cell template, everything aligns */
.cred-band { display: grid; grid-template-columns: 1fr 1fr; }

@media (min-width: 900px) { .cred-band { grid-template-columns: repeat(4, 1fr); } }

.cred-cell {
  padding: 26px 24px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  text-align: center; min-height: 132px;
  border-inline-start: 1px solid var(--line);
}

.cred-cell:first-child { border-inline-start: 0; }

@media (max-width: 899px) {
  .cred-cell:nth-child(odd) { border-inline-start: 0; }
  .cred-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.cred-n {
  font-family: 'Rubik', sans-serif; font-weight: 900;
  font-size: clamp(2rem, 2.9vw, 2.7rem); line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
  height: 2.7rem; display: flex; align-items: center;
}

.cred-c { font-size: 0.92rem; color: var(--slate); margin-top: 10px; line-height: 1.45; max-width: 15rem; }

/* ── portrait plate ── */
.plate { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 10px; }
.plate img { border-radius: 12px; width: 100%; height: auto; display: block; }

/* ── tags ── */
.tag-type { font-size: 0.78rem; font-weight: 700; color: var(--slate); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; white-space: nowrap; background: #fff; }
.tag-live { font-size: 0.8rem; font-weight: 700; color: var(--turqdk); display: inline-flex; align-items: center; gap: 6px; }

/* the result chip — what the eye catches while scanning */
.result-chip {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(25, 211, 197, 0.09);
  border: 1px solid rgba(25, 211, 197, 0.34);
  border-radius: 14px; padding: 10px 18px;
}

.tfrom { font-weight: 400; font-size: clamp(0.95rem, 1.2vw, 1.1rem); color: var(--slate); text-decoration: line-through; text-decoration-thickness: 1px; white-space: nowrap; }
.tto { font-family: 'Rubik', sans-serif; font-weight: 900; font-size: clamp(1.45rem, 2.3vw, 2rem); color: var(--ink); white-space: nowrap; line-height: 1.1; }
.tarrow { color: var(--turqdk); flex-shrink: 0; align-self: center; }

/* ── floating WhatsApp ── */
#wa-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 55;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(20, 35, 58, 0.22);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#wa-float.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ── tracks + lead form ──
   These lived inline in builder.html until 20/07. Moved here because the homepage now
   shows the SAME three tracks and the SAME form — two copies of this CSS would drift
   the moment either page is touched. One source, both pages. */
.track { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 2.8vw, 32px); display: flex; flex-direction: column; height: 100%; position: relative; }
.track.star { border-color: rgba(25,211,197,.55); box-shadow: 0 0 0 4px rgba(25,211,197,.09); }
.track-badge { position: absolute; top: -14px; inset-inline-start: clamp(22px, 2.8vw, 32px); background: var(--grad); color: #fff; font-family: 'Rubik', sans-serif; font-weight: 700; font-size: .78rem; padding: 6px 16px; border-radius: 999px; white-space: nowrap; }
.track-h { font-family: 'Rubik', sans-serif; font-weight: 900; font-size: clamp(1.4rem, 2vw, 1.75rem); color: var(--ink); margin-top: 8px; line-height: 1.2; }
.track-when { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: .95rem; color: var(--turqdk); margin-top: 6px; }
.track-li { display: flex; align-items: flex-start; gap: 10px; font-size: 1.02rem; line-height: 1.5; color: var(--slate); margin-top: 13px; }
/* stroke attrs live here, not on the <symbol>: builder.html's sprite carries them but
   index.html's does not, and a bare symbol would render as a solid black blob. */
.track-li svg {
  width: 18px; height: 18px; color: var(--turqdk); flex: none; margin-top: 4px;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.track-li b { color: var(--ink); font-weight: 700; }

.lead { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3.4vw, 42px); }
.fld { display: block; margin-top: 16px; }
.fld span { display: block; font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 7px; }
.fld input, .fld textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-family: 'Assistant', sans-serif; font-size: 1.05rem;
  color: var(--ink); background: var(--paper); min-height: 52px;
}
.fld input:focus, .fld textarea:focus { outline: 2px solid var(--turqdk); outline-offset: 1px; border-color: transparent; }
.lead-ok { display: none; text-align: center; padding: 20px 0; }
.lead.done form { display: none; }
.lead.done .lead-ok { display: block; }

/* ── marker highlight (the guarantee line) ──
   A felt-tip stroke that sweeps RIGHT → LEFT, the direction a hand moves in Hebrew.
   mix-blend-mode: multiply is the trick: the ink shows THROUGH the colour the way a real
   highlighter works, so nothing is hidden and the 4.5:1 contrast survives. The uneven
   border-radius and the half-degree tilt are what stop it reading as a rectangle. */
.mark {
  /* a background sweep, NOT an absolute pseudo-element: when this sentence wraps to two
     lines on a phone, a pseudo would draw one rectangle across both lines and the gap
     between them. box-decoration-break makes the stroke follow each line, like a hand. */
  background-image: linear-gradient(180deg, transparent 9%, rgba(25,211,197,.46) 9%, rgba(25,211,197,.46) 93%, transparent 93%);
  background-repeat: no-repeat;
  background-position: 100% 0;   /* anchored RIGHT — the stroke travels right → left */
  background-size: 0% 100%;
  transition: background-size 1.05s cubic-bezier(.62, .03, .26, 1);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 5px;
  border-radius: 4px;
}
.mark.on { background-size: 100% 100%; }

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .fx { opacity: 1; transform: none; }
  .stroke-word > svg path { stroke-dashoffset: 0; }
}
