/* Ella Capital. Design values from Yossi's mockups (reference/yossi-originals-2026-11-03). */
:root {
  --ink: #0B2E4A;
  --bg: #EAF6FD;
  --grid: #CFE8F7;
  --accent: #0A6FB0;
  --link: #0A5F96;
  --muted: #3B6A8C;
  --body2: #284E6B;
  --sky: #9FD3F2;
  --sky2: #C6E4F6;
  --mid: #7FB7DA;
  --white: #FFFFFF;
  --display: 'Karantina', sans-serif;
  --hand: 'Amatic SC', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans Hebrew', system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--link); }
a:hover { color: #073F64; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img, svg { max-width: 100%; }
.skip { position: absolute; right: -9999px; top: 0; background: var(--white); padding: 8px 16px; z-index: 100; }
.skip:focus { right: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sec { padding-top: 80px; padding-bottom: 80px; }
.sec-tight { padding-bottom: 72px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--muted); }
.dark .eyebrow { color: var(--sky); }
.display { font-family: var(--display); font-weight: 700; line-height: .9; margin: 0; }
h1.display { font-size: clamp(60px, 12vw, 116px); line-height: .88; letter-spacing: -1px; }
h2.display { font-size: clamp(46px, 8vw, 72px); margin: 8px 0 40px; }
.hand { font-family: var(--hand); font-weight: 700; color: var(--link); }
.accent { color: var(--accent); }
.lead-p { margin: 0; font-size: clamp(18px, 2.2vw, 20px); line-height: 1.6; max-width: 560px; }

/* Header */
.site-header { background: rgba(255,255,255,.92); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 20; }
.site-header.plain { background: transparent; border: 0; position: static; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 52px; height: 52px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 42px; line-height: .85; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.brand-tag { font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 17px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.nav a.btn { color: var(--white); }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .brand-name { font-size: 36px; }
  .brand svg { width: 44px; height: 44px; }
  .brand-tag { display: none; }
}

/* Buttons */
.btn { font-family: inherit; font-size: 19px; font-weight: 700; text-decoration: none; color: var(--white); background: var(--accent); border: 0; border-radius: 999px; padding: 14px 30px; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.btn:hover { color: var(--white); filter: brightness(1.08); }
.btn-sm { font-size: 17px; padding: 8px 20px; min-height: 44px; }
.btn-ghost { color: var(--ink); background: var(--white); border: 1.5px dashed var(--ink); }
.btn-ghost:hover { color: var(--ink); }
.btn-white { color: var(--ink); background: var(--white); }
.btn-white:hover { color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero-note { font-size: clamp(28px, 4vw, 40px); transform: rotate(-2deg); align-self: flex-start; }
.hero-art { flex: 1 1 320px; }
.hero-art svg { width: 100%; height: auto; display: block; }

/* Panels and grids */
.panel { background: var(--white); border: 2px solid var(--ink); }
.dark { background: var(--ink); color: var(--bg); background-image: linear-gradient(rgba(159,211,242,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(159,211,242,.12) 1px, transparent 1px); background-size: 28px 28px; }
/* Grid cells separated by 1.5px lines that survive any wrap. */
.cells { display: grid; gap: 1.5px; background: var(--sky); border: 1.5px solid var(--sky); }
.cells > * { background: var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cells > .hi { background: #0C426A; }
.cells-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.cells-240 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.cell-title { font-size: 23px; font-weight: 700; }
.cell-body { font-size: 16px; line-height: 1.6; color: var(--sky2); }
.badge { font-size: 12px; font-weight: 700; color: var(--ink); background: var(--sky); padding: 2px 8px; }

/* Steps */
.steps { display: flex; flex-wrap: wrap; border-top: 2px dashed var(--ink); }
.step { flex: 1 1 230px; padding: 0 0 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.step-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--ink); margin-top: -11px; }
.step-num { font-family: var(--display); font-size: 56px; font-weight: 700; line-height: 1; color: var(--mid); }
.step:last-child .step-dot { background: var(--accent); }
.step:last-child .step-num { color: var(--accent); }
.step-title { font-size: 21px; font-weight: 700; }
.step-body { font-size: 16px; color: var(--muted); }

/* About and stats */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.about > * { background: var(--white); padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.about > .about-main { grid-column: span 2; }
.about h2 { font-size: clamp(44px, 6vw, 60px); }
.about p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--body2); }
.stat-num { font-family: var(--display); font-weight: 700; font-size: clamp(60px, 8vw, 80px); line-height: .9; }
.stat-label { font-size: 16px; font-weight: 600; }

/* Results and quotes */
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 2px; border: 2px solid var(--ink); background: var(--ink); }
.results > * { padding: 22px; background: var(--white); display: flex; flex-direction: column; gap: 4px; }
.result-num { font-family: var(--display); font-weight: 700; font-size: clamp(46px, 6vw, 58px); line-height: .9; color: var(--accent); }
.result-who { font-size: 15px; font-weight: 600; }
.result-what { font-size: 14px; color: var(--muted); }
.fineprint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.quotes { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px; }
.quotes blockquote { margin: 0; background: var(--white); padding: 28px; border-top: 6px solid var(--mid); display: flex; flex-direction: column; gap: 12px; }
.quotes blockquote:nth-child(odd) { transform: rotate(-1deg); }
.quotes blockquote:nth-child(even) { transform: rotate(.8deg); }
.quote-text { font-family: var(--hand); font-weight: 700; font-size: 32px; line-height: 1.15; }
.quote-who { font-size: 15px; font-weight: 600; color: var(--muted); }
.callout { margin-top: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1.5px dashed var(--ink); background: var(--white); padding: 14px 20px; }
.callout .hand { font-size: 30px; }
.callout span:last-child { font-size: 17px; }

/* FAQ */
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split > :first-child { flex: 1 1 260px; }
.split > :last-child { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; }
.split h2.display { margin-bottom: 0; }
details { border-bottom: 1px dashed var(--ink); padding: 20px 0; }
summary { cursor: pointer; list-style: none; font-size: 21px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--link); }
details[open] summary::after { content: '\2212'; }
details p { margin: 10px 0 0; font-size: 18px; line-height: 1.6; color: var(--body2); }

/* Checklist (landing) */
.check { width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 0; min-height: 56px; background: transparent; border: 0; border-bottom: 1px dashed var(--mid); font-family: inherit; font-size: clamp(18px, 2.2vw, 20px); font-weight: 500; color: var(--ink); text-align: right; cursor: pointer; }
.check-box { width: 28px; height: 28px; border: 2px solid var(--ink); flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; background: var(--white); color: transparent; }
.check[aria-pressed="true"] .check-box { background: var(--accent); border-color: var(--accent); color: var(--white); }
.meter-box { margin-top: 22px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.meter-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--muted); }
.meter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.meter span { height: 10px; border: 1.5px solid var(--ink); background: var(--bg); }
.meter span.on { background: var(--accent); }
.verdict { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.verdict-title { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: .9; color: var(--accent); }
.verdict-body { font-size: 17px; line-height: 1.55; }

/* Lead form */
.lead { display: flex; flex-wrap: wrap; scroll-margin-top: 120px; }
.lead-side { flex: 1 1 220px; background: var(--ink); color: var(--bg); padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.lead-side .eyebrow { font-size: 12px; }
.lead-side .display { font-size: clamp(40px, 5vw, 52px); line-height: .95; }
.lead-side a { color: var(--white); font-size: 20px; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.lead-main { flex: 999 1 520px; padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; }
.field { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; }
.field label, .field-label { font-size: 12px; letter-spacing: 2px; font-weight: 700; color: var(--muted); }
.field input, .field select { font-family: inherit; font-size: 18px; padding: 8px 0; border: 0; border-bottom: 2px dotted var(--ink); min-height: 46px; background: transparent; color: var(--ink); border-radius: 0; width: 100%; }
.field input[type="tel"] { text-align: right; direction: ltr; }
.field input:focus, .field select:focus { outline: none; border-bottom-style: solid; border-bottom-color: var(--accent); }
.field input[aria-invalid="true"] { border-bottom-color: #B42318; }
.full { flex: 1 1 100%; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { font-family: inherit; font-size: 16px; font-weight: 600; border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; background: var(--white); color: var(--ink); border: 1.5px dashed var(--ink); }
.pill[aria-pressed="true"] { background: var(--accent); color: var(--white); border: 1.5px solid var(--accent); }
.form-note { font-size: 13px; color: var(--muted); }
.form-msg { font-size: 17px; font-weight: 600; }
.form-msg.err { color: #B42318; }
.form-msg.ok { color: #0B6B3A; }
.hp { position: absolute; right: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Final CTA */
.cta { background: var(--accent); color: var(--white); padding: 56px 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; border-radius: 4px; }
.cta h2.display { font-size: clamp(42px, 6.5vw, 76px); margin: 0; flex: 1 1 480px; }
@media (max-width: 600px) { .cta { padding: 36px 22px; } }

/* Footer */
.foot { display: flex; flex-wrap: wrap; font-size: 14px; background: var(--white); border: 1.5px solid var(--ink); }
.foot > * { flex: 1 1 200px; padding: 12px 16px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); margin-bottom: -1.5px; }
.foot > :last-child { border-left: 0; }
.foot .k { color: var(--muted); }
.foot a { color: var(--ink); }
.legal { padding: 14px 0 100px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Sticky bottom bar: always one tap from the form. Hidden while a form is on screen. */
.cta-bar { position: fixed; inset: auto 0 0 0; z-index: 30; background: rgba(255,255,255,.96); border-top: 2px solid var(--ink); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; justify-content: center; transition: transform .25s; }
.cta-bar.hide { transform: translateY(110%); }
.cta-bar .btn { flex: 1 1 auto; max-width: 420px; min-height: 50px; font-size: 18px; padding: 10px 18px; }
.cta-bar .btn-ghost { flex: 0 0 auto; }
.site .cta-bar { display: none; }
@media (max-width: 760px) { .site .cta-bar { display: flex; } }

/* Text pages (privacy, accessibility) */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 48px; }
.doc h1 { font-family: var(--display); font-size: clamp(48px, 8vw, 72px); line-height: .9; margin: 0 0 24px; }
.doc h2 { font-size: 22px; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 17px; line-height: 1.7; color: var(--body2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .quotes blockquote, .hero-note { transform: none !important; }
  .cta-bar { transition: none; }
}

/* Landing on phones: smaller drawing so the form shows up sooner. */
@media (max-width: 760px) {
  .landing .hero { gap: 16px; padding-bottom: 32px; }
  .landing .hero-art { max-width: 230px; margin: 0 auto; }
}

/* Phones: denser blocks, vertical timeline. */
@media (max-width: 600px) {
  .sec { padding-top: 56px; padding-bottom: 56px; }
  .sec-tight { padding-bottom: 56px; }
  h2.display { margin-bottom: 28px; }
  .hero { padding-top: 32px; }
  .cells > * { padding: 22px; }

  .steps { flex-direction: column; border-top: 0; border-right: 2px dashed var(--ink); margin-right: 8px !important; }
  .step { flex: none; position: relative; padding: 0 26px 22px 0; gap: 2px; }
  .step-dot { position: absolute; right: -10px; top: 14px; margin: 0; }
  .step-num { font-size: 44px; }

  .about { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about > * { padding: 18px 12px; }
  .about > .about-main { grid-column: 1 / -1; padding: 24px 20px; }
  .stat-num { font-size: 46px; }
  .stat-label { font-size: 13px; }

  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results > * { padding: 16px 14px; }
  .result-num { font-size: 36px; }
  .result-who { font-size: 14px; }
  .result-what { font-size: 13px; }

  .quote-text { font-size: 28px; }
  .quotes { gap: 20px; }
  .lead-side, .lead-main { padding: 22px; }
  .lead-main .btn { flex: 1 1 100%; }
  summary { font-size: 19px; }
}

section[id] { scroll-margin-top: 90px; }

/* Trust line under the landing hero. */
.trust { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; font-weight: 600; color: var(--muted); }
.trust li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-left: 6px; }

/* ============ Motion ============
   Only when JS is on (html.js) and the visitor did not ask for less motion.
   site.js adds .reveal to blocks and .in when they scroll into view. */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes stamp { 0% { opacity: 0; transform: translate(300px, 230px) rotate(-40deg) scale(1.8); } 70% { opacity: 1; transform: translate(300px, 230px) rotate(-10deg) scale(.92); } 100% { opacity: 1; transform: translate(300px, 230px) rotate(-14deg) scale(1); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(10,111,176,.45); } 100% { box-shadow: 0 0 0 14px rgba(10,111,176,0); } }

@media (prefers-reduced-motion: no-preference) {
  .js .site-header:not(.plain) { animation: drop .6s cubic-bezier(.2,.7,.2,1) both; }
  .js .hero-text > *, .js .site-header.plain .wrap > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .js .hero-text > :nth-child(1) { animation-delay: .05s; }
  .js .hero-text > :nth-child(2) { animation-delay: .15s; }
  .js .hero-text > :nth-child(3) { animation-delay: .35s; }
  .js .hero-text > :nth-child(4) { animation-delay: .45s; }
  .js .hero-text > :nth-child(5) { animation-delay: .55s; }
  .js .hero-text > :nth-child(6) { animation-delay: .65s; }
  .js .hero-note { animation-name: rise; }

  /* The house is drawn like a blueprint, then the stamp lands. */
  .js .hero-art path, .js .hero-art rect { stroke-dasharray: 800; stroke-dashoffset: 800; animation: draw 1.8s .3s cubic-bezier(.45,.05,.3,1) forwards; }
  .js .hero-art g[stroke-dasharray] path { stroke-dasharray: 4 4; stroke-dashoffset: 0; animation: none; }
  .js .hero-art path[fill]:not([fill="none"]) { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .js .hero-art text { animation: rise .6s 1.6s both; }
  .js .hero-art g[transform] { animation: stamp .7s 1.9s cubic-bezier(.3,1.4,.5,1) both; }
  .js .hero-art g[transform] circle, .js .hero-art g[transform] text { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }

  /* Scroll reveal */
  .js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .quotes blockquote.reveal.in:nth-child(odd) { transform: rotate(-1deg); }
  .js .quotes blockquote.reveal.in:nth-child(even) { transform: rotate(.8deg); }

  /* Timeline: dots fill one by one once the steps are on screen. */
  .js .steps.in .step-dot { animation: pop .5s both; animation-delay: var(--d, 0s); }

  /* Hover and press feedback */
  .btn { transition: transform .2s, box-shadow .2s, filter .2s; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(11,46,74,.45); }
  .btn:active { transform: translateY(0) scale(.98); }
  .btn:hover:not(.btn-ghost) { animation: none; }
  .cta-bar .btn:not(.btn-ghost), .hero .btn:not(.btn-ghost) { animation: pulse-ring 2.2s 2.6s ease-out 3; }
  .pill, .check-box { transition: background .2s, color .2s, border-color .2s, transform .15s; }
  .pill:active { transform: scale(.96); }
  .check[aria-pressed="true"] .check-box { animation: pop .35s; }
  .meter span { transition: background .35s; }
  .cells > * { transition: background .25s; }
  .cells > *:hover { background: #0F3F66; }
  .cells > * svg { transition: transform .3s; }
  .cells > *:hover svg { transform: translateY(-4px) rotate(-3deg); }
  .results > * { transition: transform .25s, box-shadow .25s; }
  .results > *:hover { transform: translateY(-3px); box-shadow: 0 10px 22px -14px rgba(11,46,74,.6); position: relative; z-index: 1; }
  .quotes blockquote { transition: transform .3s, box-shadow .3s, opacity .7s; }
  .quotes blockquote.in:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 14px 28px -18px rgba(11,46,74,.55); }
  details p { animation: rise .35s both; }
  summary::after { transition: transform .25s; display: inline-block; }
  .verdict:not([hidden]) { animation: rise .4s both; }
  .form-msg.ok { animation: pop .4s both; }
}

[hidden] { display: none !important; }

/* Service pages (built by scripts/service_pages.py) */
.crumbs { padding-top: 18px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.svc-hero { padding-top: 24px; padding-bottom: 40px; }
.svc-hero h1.display { font-size: clamp(52px, 10vw, 96px); }
.svc-body { display: grid; gap: 22px; padding-bottom: 56px; max-width: 860px; margin-inline: auto; }
.svc-sec { background: var(--white); border: 2px solid var(--ink); padding: 24px; display: grid; gap: 10px; }
.svc-sec h2 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 44px); line-height: 1; margin: 0; }
.svc-sec p, .svc-sec li { font-size: 18px; line-height: 1.7; color: var(--body2); margin: 0; }
.svc-sec ul, .svc-sec ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.svc-sec details { padding: 14px 0; }
.svc-links { padding-bottom: 40px; display: grid; gap: 12px; }
.pills-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pills-links a { font-weight: 600; text-decoration: none; color: var(--ink); background: var(--white); border: 1.5px dashed var(--ink); border-radius: 999px; padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center; }
.pills-links a[aria-current="page"] { background: var(--accent); color: var(--white); border: 1.5px solid var(--accent); }
.cell-title a { color: inherit; text-decoration: none; }
.cell-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) { .svc-sec { padding: 18px; } .svc-sec p, .svc-sec li { font-size: 17px; } }
