/*
 * The public site of מעשרות. The tokens are the app's Apple skin (apps/web/src/styles/tokens.css)
 * plus the brand of the store art: deep green, a gold seal, and the four meanings in color
 * (income green, donation orange, expense indigo, recurring teal). Logical properties only,
 * so the layout follows dir="rtl".
 */
:root {
  color-scheme: light;
  --page: #f2f2f7;
  --card: #ffffff;
  --ink: #111114;
  --ink-2: #5f5f66;
  --ink-3: #6e6e75;
  --separator: rgba(60, 60, 67, 0.13);
  --fill: rgba(118, 118, 128, 0.12);
  --fill-2: rgba(118, 118, 128, 0.2);

  --income: #34c759;
  --income-ink: #177034;
  --income-tint: rgba(52, 199, 89, 0.14);
  --donation: #ff9500;
  --donation-ink: #954a00;
  --donation-tint: rgba(255, 149, 0, 0.15);
  --expense: #5856d6;
  --expense-ink: #4b49c8;
  --expense-tint: rgba(88, 86, 214, 0.12);
  --recurring: #30b0c7;
  --recurring-ink: #08606f;
  --recurring-tint: rgba(48, 176, 199, 0.15);
  --purple: #af52de;
  --purple-ink: #7e2bb0;
  --purple-tint: rgba(175, 82, 222, 0.13);
  --wa: #25d366;
  --wa-ink: #0f7a3c;
  --focus: #0a84ff;
  --filled: #111114;

  --brand-0: #061d12;
  --brand-1: #0b3420;
  --brand-2: #17603b;
  --brand-3: #2a8a5a;
  --gold: #f4b83a;
  --gold-soft: #ecc97a;
  --gold-deep: #c27e19;

  /* the four meanings as surfaces (the store art's depth, the app's hues) */
  --grad-brand: linear-gradient(150deg, #1f8a52 0%, #0f5a35 55%, #0b3420 100%);
  --grad-income: linear-gradient(150deg, #3ddc6a 0%, #1fa34a 55%, #137a37 100%);
  --grad-donation: linear-gradient(150deg, #ffb340 0%, #ff8a00 55%, #d96a00 100%);
  --grad-expense: linear-gradient(150deg, #8582ff 0%, #5856d6 55%, #3f3cb3 100%);
  --grad-recurring: linear-gradient(150deg, #5ad8ec 0%, #2aa9c2 55%, #127f96 100%);
  --grad-purple: linear-gradient(150deg, #d48cff 0%, #af52de 55%, #8a35b8 100%);
  --grad-gold: linear-gradient(180deg, #ffe08a, #f4b83a);

  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --glass-shadow: rgba(20, 20, 40, 0.22);
  --glass-blur: blur(26px) saturate(180%);
  --toolbar: rgba(242, 242, 247, 0.78);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 26px -20px rgba(0, 0, 0, 0.16);
  --shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.05), 0 24px 48px -26px rgba(0, 0, 0, 0.3);
  --shadow-color: 0 22px 44px -24px var(--glow, rgba(0, 0, 0, 0.35));

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-list: 22px;
  --radius-card: 24px;
  --radius-hero: 30px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  /* a small overshoot, only for things that land (a badge, an avatar, a check), never for controls */
  --ease-spring: cubic-bezier(0.34, 1.12, 0.64, 1);
  --dur-press: 140ms;
  --dur-fast: 200ms;
  --dur-base: 260ms;
  --dur-slow: 420ms;
  --dur-digits: 950ms;
  --dur-ring: 1500ms;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Heebo', system-ui, sans-serif;
  --tracking-hero: -0.045em;

  --wrap: 1180px;
  --gutter: 24px;
  --sec-y: clamp(52px, 6.5vw, 92px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))); margin-inline: auto; }
@media (max-width: 600px) { :root { --gutter: 16px; } }
/* amounts, dates and Latin names keep their own order inside Hebrew lines */
.num, bdi.ltr { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--filled); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 22px; border-radius: var(--radius-pill); border: 0;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), filter var(--dur-fast) var(--ease-out);
  overflow: hidden; isolation: isolate;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-brand { background: var(--grad-brand); color: #fff; box-shadow: 0 14px 28px -14px rgba(15, 90, 53, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-brand::after { /* a slow sheen that crosses the button now and then: life when nobody touches */
  content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 233, 160, 0.35) 50%, transparent 65%); transform: translateX(120%); animation: sheen 6s var(--ease-in-out) 2s infinite; }
@keyframes sheen { 0%, 70% { transform: translateX(120%); } 100% { transform: translateX(-120%); } }
.btn-ink { background: var(--filled); color: #fff; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.6); }
.btn-plain { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--separator), 0 6px 16px -12px rgba(0, 0, 0, 0.25); }
.btn-gold { background: var(--grad-gold); color: #2a1a00; box-shadow: 0 10px 24px -12px rgba(194, 126, 25, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn-glass { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn-lg { --h: 56px; padding: 0 30px; font-size: 1.0625rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-brand:hover { filter: brightness(1.08); box-shadow: 0 18px 34px -14px rgba(15, 90, 53, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
  .btn-ink:hover { background: #2a2a2e; }
  .btn-plain:hover { background: #fafafa; }
  .btn-glass:hover { background: rgba(255, 255, 255, 0.22); }
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--toolbar);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 0.5px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out);
}
.topbar.is-scrolled { border-bottom-color: var(--separator); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1875rem; text-decoration: none; }
.brand img { width: 34px; height: 34px; transition: transform 600ms var(--ease-spring); }
@media (hover: hover) and (pointer: fine) { .brand:hover img { transform: rotate(-12deg) scale(1.06); } }
.nav { display: flex; gap: 2px; margin-inline-start: 8px; }
.nav a { position: relative; white-space: nowrap; padding: 8px 11px; border-radius: var(--radius-pill); color: var(--ink-2); font-weight: 600; font-size: 0.9375rem; text-decoration: none; transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); background: var(--fill); } }
.nav a[aria-current='page'] { color: var(--ink); background: rgba(255, 255, 255, 0.9); box-shadow: 0 2px 10px -5px rgba(0, 0, 0, 0.2), inset 0 1px 0 #fff; }
.topbar-cta { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fill); display: grid; place-items: center; cursor: pointer; transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast); flex: none; }
.icon-btn:active { transform: scale(0.92); }
.icon-btn[aria-pressed='true'] { background: var(--ink); color: #fff; }
.menu-btn { display: none; }
.progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; transform-origin: right; transform: scaleX(0); background: linear-gradient(270deg, var(--income), #ffd60a 35%, var(--donation) 60%, var(--expense) 85%, var(--recurring)); }
@media (max-width: 1120px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 520px) { .topbar-cta .hide-sm { display: none; } }
@media (max-width: 380px) { .topbar .wrap { gap: 10px; } .topbar-cta [data-privacy] { display: none; } }

/* the mobile menu: a sheet from the top */
.menu { position: fixed; inset: 64px 0 auto; z-index: 49; padding: 10px var(--gutter) 22px; background: rgba(250, 250, 252, 0.96); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.4); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform 420ms var(--ease-sheet), opacity 260ms var(--ease-out), visibility 0s linear 420ms; }
.menu.is-open { transform: none; opacity: 1; visibility: visible; transition: transform 420ms var(--ease-sheet), opacity 260ms var(--ease-out), visibility 0s; }
.menu a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 6px; border-bottom: 0.5px solid var(--separator); font-size: 1.125rem; font-weight: 700; text-decoration: none; }
.menu a:last-of-type { border-bottom: 0; }
.menu .dot { width: 10px; height: 10px; border-radius: 50%; }
.menu .menu-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.menu .menu-cta .btn { width: 100%; }

/* ---------- privacy mode (the product's own: every amount hides at one tap) ---------- */
.amt { transition: filter var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
body.is-private .amt { filter: blur(7px); opacity: 0.55; }

/* ---------- sections ---------- */
.sec { position: relative; padding-block: var(--sec-y); }
.sec-head { max-width: 46rem; margin-bottom: clamp(26px, 3.4vw, 40px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 700; font-size: 0.9375rem; color: var(--k, var(--income-ink)); }
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.h2 { margin: 0; font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -0.022em; line-height: 1.1; text-wrap: balance; }
.lead { margin: 14px 0 0; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--ink-2); line-height: 1.65; text-wrap: pretty; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 700; color: var(--income-ink); text-decoration: none; }
.more svg { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .more:hover svg { transform: translateX(-4px); } }

/* colored canvases: the aurora of the sign-in page, alive and in more than one hue */
.canvas { position: relative; isolation: isolate; overflow: hidden; }
.canvas > .aura { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aura i { position: absolute; border-radius: 50%; will-change: transform; }
.aura .a1 { width: 46rem; height: 32rem; inset-inline-end: -10rem; top: -8rem; background: radial-gradient(closest-side, rgba(52, 199, 89, 0.42), transparent); animation: drift1 24s ease-in-out infinite alternate; }
.aura .a2 { width: 40rem; height: 30rem; inset-inline-start: -6rem; top: 2rem; background: radial-gradient(closest-side, rgba(255, 214, 10, 0.38), transparent); animation: drift2 28s ease-in-out infinite alternate; }
.aura .a3 { width: 44rem; height: 32rem; inset-inline-start: 22%; bottom: -14rem; background: radial-gradient(closest-side, rgba(255, 149, 0, 0.26), transparent); animation: drift3 32s ease-in-out infinite alternate; }
.aura .a4 { width: 34rem; height: 26rem; inset-inline-end: 18%; bottom: -10rem; background: radial-gradient(closest-side, rgba(48, 176, 199, 0.26), transparent); animation: drift2 30s ease-in-out infinite alternate-reverse; }
.canvas:not(.is-live) .aura i { animation-play-state: paused; }
@keyframes drift1 { to { transform: translate3d(-7rem, 4rem, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(6rem, 5rem, 0) scale(0.92); } }
@keyframes drift3 { to { transform: translate3d(-5rem, -5rem, 0) scale(1.12); } }

/* ---------- glass and cards ---------- */
.glass { background: var(--glass); border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: inset 0 1px 0 var(--glass-highlight), 0 30px 60px -32px var(--glass-shadow); }
.card { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }

/* ---------- the analytics consent, floating at the bottom corner (above the live capsule) ---------- */
.consent { position: fixed; z-index: 60; inset-inline-end: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); width: min(380px, calc(100% - 32px)); display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--radius-card); color: var(--ink); font-size: 0.9375rem; line-height: 1.6; animation: consent-in 420ms var(--ease-sheet) both; }
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent div { display: flex; flex-wrap: wrap; gap: 8px; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 560px) { .consent { inset-inline: 12px; width: auto; bottom: max(12px, env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
.sq { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 16px -10px var(--glow, rgba(0, 0, 0, 0.5)); }
.sq svg { width: 22px; height: 22px; }

/* the slogan bands (the store art: deep green, a gold bar, white words, gold source) */
.band { position: relative; overflow: hidden; color: #fff; text-align: center; padding-block: clamp(56px, 7.5vw, 104px); background:
  radial-gradient(60rem 30rem at 50% -10%, rgba(52, 160, 100, 0.55), transparent 70%),
  radial-gradient(40rem 26rem at 90% 110%, rgba(244, 184, 58, 0.14), transparent 70%),
  linear-gradient(180deg, var(--brand-2), var(--brand-1) 55%, var(--brand-0)); isolation: isolate; }
.band::after { content: ''; position: absolute; inset: -50% -30%; z-index: -1; background: conic-gradient(from 0deg at 50% 50%, transparent 0 40%, rgba(255, 233, 160, 0.08) 48%, transparent 56% 100%); animation: sweep 22s linear infinite paused; }
.band.is-live::after, .band.is-live .seal-bg { animation-play-state: running; }
@keyframes sweep { to { transform: rotate(1turn); } }
.band .bar { width: 64px; height: 5px; border-radius: 3px; background: var(--gold); margin: 0 auto 26px; transform: scaleX(0); transition: transform 900ms var(--ease-expo); }
.band blockquote { margin: 0 auto; max-width: 60rem; }
.band q { quotes: none; display: block; font-size: clamp(2rem, 5.6vw, 4.4rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.015em; text-wrap: balance; }
.band .w { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(4px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo), filter 700ms var(--ease-out); transition-delay: calc(var(--i) * 60ms + 120ms); }
.band cite { display: block; margin-top: 20px; font-style: normal; color: var(--gold-soft); font-size: clamp(1.0625rem, 2vw, 1.5rem); font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity 700ms var(--ease-out) 600ms, transform 900ms var(--ease-expo) 600ms; }
.band .gloss { display: block; margin: 10px auto 0; max-width: 40rem; color: rgba(255, 255, 255, 0.74); font-size: 1.0625rem; opacity: 0; transition: opacity 900ms var(--ease-out) 850ms; }
.band.is-in .bar { transform: scaleX(1); }
.band.is-in .w { opacity: 1; transform: none; filter: none; }
.band.is-in cite { opacity: 1; transform: none; }
.band.is-in .gloss { opacity: 1; }
.band .seal-bg { position: absolute; width: 460px; height: 460px; inset-inline-start: -150px; bottom: -200px; opacity: 0.08; z-index: -1; animation: spin 90s linear infinite paused; }
@keyframes spin { to { transform: rotate(1turn); } }

/* page heads of the inner pages */
.page-head { padding-block: clamp(40px, 6vw, 76px) clamp(28px, 4vw, 44px); }
.page-head h1 { margin: 0; font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
.page-head .lead { max-width: 40rem; }
.page-head.canvas { overflow: visible; }
.page-head .aura { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); overflow: hidden; }
.crumbs { display: flex; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 0.875rem; color: var(--ink-2); font-weight: 600; }
.crumbs li + li::before { content: '/'; margin-inline-end: 8px; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- the odometer: each digit a column that rolls ---------- */
.odo { display: inline-flex; direction: ltr; align-items: baseline; }
.odo .cur { font-size: 0.56em; font-weight: 800; margin-inline-end: 0.06em; opacity: 0.9; align-self: flex-end; transform: translateY(-0.18em); }
.odo .col { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.odo .strip { display: block; transition: transform var(--dur-digits) var(--ease-expo); }
.odo .strip span { display: block; height: 1em; text-align: center; }
.odo .sep { display: inline-block; line-height: 1; }
.odo .digits { display: inline-flex; align-items: baseline; }

/* ---------- reveal: headers and groups, never every element ----------
 * Only when the script runs (html.js), so nothing stays hidden without it. */
.js .rv { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out) calc(var(--d, 0) * 60ms), transform 600ms var(--ease-out) calc(var(--d, 0) * 60ms), translate 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.js .rv.is-in { opacity: 1; transform: none; }
/* hover lifts use the separate translate property, so they never fight the reveal's transform */
@media (hover: hover) and (pointer: fine) { .lift { transition: translate 300ms var(--ease-out), box-shadow 300ms var(--ease-out); } .lift:hover { translate: 0 -4px; box-shadow: var(--shadow-lift); } }
/* the first screen arrives on load, in CSS, without waiting for anything */
.load { animation: loadIn 600ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 60ms); }
@keyframes loadIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- inset list (FAQ) ---------- */
.inset { border-radius: var(--radius-list); background: var(--card); box-shadow: var(--shadow-card); overflow: hidden; }
.inset details + details { border-top: 0.5px solid var(--separator); }
.inset summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px 22px; font-weight: 700; font-size: 1.0625rem; transition: background-color var(--dur-fast) var(--ease-out); }
.inset summary::-webkit-details-marker { display: none; }
/* a chevron that points down when closed and up when open, the same in both directions */
.inset summary::after { content: ''; margin-inline-start: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--ease-out); flex: none; }
.inset details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
@media (hover: hover) { .inset summary:hover { background: rgba(0, 0, 0, 0.025); } }
.inset .ans { padding: 0 22px 20px; color: var(--ink-2); line-height: 1.7; }
.inset details[open] .ans { animation: ansIn 240ms var(--ease-out); }
@keyframes ansIn { from { opacity: 0; } }
/* where the browser can, an answer opens by its height instead of appearing */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    :root { interpolate-size: allow-keywords; }
    .inset details::details-content { height: 0; overflow: clip; transition: height 280ms var(--ease-out), content-visibility 280ms allow-discrete; }
    .inset details[open]::details-content { height: auto; }
  }
}

/* ---------- the final call ---------- */
.final { position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center; padding-block: clamp(64px, 8vw, 112px); background:
  radial-gradient(50rem 26rem at 50% 115%, rgba(244, 184, 58, 0.28), transparent 70%),
  radial-gradient(40rem 26rem at 10% -10%, rgba(52, 199, 89, 0.4), transparent 70%),
  linear-gradient(180deg, var(--brand-2), var(--brand-1) 60%, var(--brand-0)); }
/* the seal is stamped once, when it is seen */
.final .seal-xl { width: 96px; height: 96px; margin: 0 auto 22px; filter: drop-shadow(0 18px 30px rgba(194, 126, 25, 0.45)); }
.js .final .rv .seal-xl { opacity: 0; transform: scale(1.14) rotate(-12deg); transition: opacity 500ms var(--ease-out), transform 800ms var(--ease-out); }
.js .final .rv.is-in .seal-xl { opacity: 1; transform: none; }
.final h2 { margin: 0; font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.06; }
.final p { margin: 14px auto 0; max-width: 34rem; color: rgba(255, 255, 255, 0.78); font-size: 1.125rem; }
.final .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.final small { display: block; margin-top: 16px; color: var(--gold-soft); font-weight: 600; }

/* ---------- footer ---------- */
footer { background: var(--brand-0); color: rgba(255, 255, 255, 0.72); padding: 52px 0 32px; font-size: 0.9375rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
footer .brand { color: #fff; }
footer h2 { margin: 0 0 12px; color: #fff; font-size: 1rem; font-weight: 800; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
footer ul a { display: inline-block; padding: 5px 0; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { footer a:hover { color: #fff; } }
/* fingers get 44px everywhere */
@media (pointer: coarse) {
  .btn-sm { --h: 44px; }
  .stores a, footer ul a { min-height: 44px; display: inline-flex; align-items: center; }
  footer ul { gap: 0; }
}
.foot-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.55); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- the live number: a capsule that follows the scroll (like a Live Activity) ---------- */
.live { position: fixed; z-index: 40; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; padding-inline-start: 10px; border-radius: var(--radius-pill); background: rgba(22, 22, 24, 0.86); color: #fff; -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.55), inset 0 0 0 0.5px rgba(255, 255, 255, 0.12); transform: translate(-50%, 140%); opacity: 0; transition: transform 520ms var(--ease-sheet), opacity 300ms var(--ease-out); }
.live.is-on { transform: translate(-50%, 0); opacity: 1; }
.live.is-bump .live-num { animation: bump 260ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.06); } }
.live img { width: 34px; height: 34px; }
.live-ring { width: 34px; height: 34px; transform: rotate(-90deg); flex: none; }
.live-ring circle { fill: none; stroke-width: 4.5; stroke-linecap: round; }
.live-ring .trk { stroke: rgba(52, 199, 89, 0.25); }
.live-ring .arc { stroke: #30d158; transition: stroke-dashoffset 900ms var(--ease-expo); }
.live-txt { display: grid; line-height: 1.15; }
.live-txt small { color: rgba(255, 255, 255, 0.66); font-size: 0.75rem; font-weight: 600; }
.live-num { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.03em; display: inline-flex; }
.live .btn { --h: 44px; padding: 0 18px; }
@media (max-width: 420px) { .live { gap: 8px; } .live-num { font-size: 1.125rem; } }

/* ---------- the segmented control (the app's own) ---------- */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--fill); }
.seg button { position: relative; z-index: 1; min-height: 44px; padding: 4px; line-height: 1.2; border: 0; background: none; font-weight: 700; font-size: 0.9375rem; cursor: pointer; border-radius: 9px; color: var(--ink-2); transition: color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.seg button:active { transform: scale(0.96); }
.seg button[aria-pressed='true'] { color: var(--ink); }
.seg .knob { position: absolute; z-index: 0; top: 3px; bottom: 3px; inset-inline-start: 3px; width: calc((100% - 6px) / var(--n, 3)); border-radius: 9px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); transition: transform 280ms var(--ease-sheet); }

/* ---------- the pinkas: Ahavat Chesed's five clauses, each a part of the system ---------- */
.pk-intro { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: end; margin-bottom: 30px; }
.book { position: relative; overflow: hidden; padding: 22px 24px; border-radius: var(--radius-card); background: var(--grad-brand); color: #fff; }
.book::before { content: ''; position: absolute; inset: 0; background: radial-gradient(20rem 12rem at 90% 0%, rgba(244, 184, 58, 0.25), transparent 70%); }
.book p { position: relative; margin: 0; font-size: 1.0625rem; line-height: 1.7; color: rgba(255, 255, 255, 0.88); }
.book b { color: var(--gold-soft); }
.book .who { position: relative; display: block; margin-top: 10px; color: rgba(255, 255, 255, 0.62); font-size: 0.875rem; }
.clauses { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.clause { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; }
.cl-q { position: relative; padding: 22px 24px 20px; border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-card); }
.cl-q .ot { position: absolute; top: -13px; inset-inline-start: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.0625rem; color: #3a2600; background: var(--grad-gold); box-shadow: 0 6px 14px -6px rgba(194, 126, 25, 0.7); transform: scale(0); transition: transform 520ms var(--ease-spring) 100ms; }
.clause.is-in .cl-q .ot { transform: scale(1); }
.cl-q blockquote { margin: 4px 0 0; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); font-weight: 600; line-height: 1.6; }
.cl-q blockquote::before, .cl-q blockquote::after { content: '״'; color: var(--gold-deep); }
.thread { width: 100%; height: 40px; overflow: visible; }
/* the thread runs from the source to the feature (right to left); the card continues its motion */
.thread path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 650ms var(--ease-in-out); }
.thread circle { fill: var(--gold); transform-box: fill-box; transform-origin: center; transform: scale(0.5); opacity: 0; transition: transform 240ms var(--ease-out) 550ms, opacity 240ms var(--ease-out) 550ms; }
.clause.is-in .thread circle { opacity: 1; }
.clause.is-in .thread path { stroke-dashoffset: 0; }
.clause.is-in .thread circle { transform: scale(1); }
.cl-f { padding: 18px 20px; border-radius: var(--radius-card); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, #fff), #fff 70%); box-shadow: var(--shadow-lift), inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); display: flex; gap: 14px; align-items: flex-start; opacity: 0; transform: translateX(14px); transition: opacity 400ms var(--ease-out) 500ms, transform 600ms var(--ease-out) 500ms; }
.clause.is-in .cl-f { opacity: 1; transform: none; }
.cl-f .sq { background: var(--c); --glow: var(--c); }
.cl-f h3 { margin: 0; font-size: 1.125rem; font-weight: 800; }
.cl-f p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.975rem; line-height: 1.55; }
.cl-f .mini { margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 65%, #000); font-size: 0.8125rem; font-weight: 800; }
.pk-foot { margin: 22px 0 0; color: var(--ink-2); font-size: 0.9375rem; max-width: 52rem; }
@media (max-width: 920px) {
  .pk-intro { grid-template-columns: 1fr; }
  .clause { grid-template-columns: 1fr; }
  .thread { height: 30px; width: 40px; justify-self: center; transform: rotate(-90deg); }
  .cl-f { transform: translateY(-10px); }
}


/* ---------- sources ---------- */
.src-tabs { display: inline-grid; grid-auto-flow: column; position: relative; padding: 3px; border-radius: 13px; background: var(--fill); max-width: 100%; }
.src-tabs button { position: relative; z-index: 1; border: 0; background: none; min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: color var(--dur-fast) var(--ease-out); white-space: nowrap; }
.src-tabs button[aria-selected='true'] { color: var(--ink); }
.src-tabs .knob { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 10px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); transition: transform 280ms var(--ease-sheet), width 280ms var(--ease-sheet); }
.src-panels { display: grid; margin-top: 20px; }
.src-panel { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: start; transition: opacity 160ms var(--ease-out), visibility 0s linear 0s; }
.src-panel.is-off { opacity: 0; visibility: hidden; transition: opacity 160ms var(--ease-out), visibility 0s linear 160ms; }
.qcard { margin: 0; position: relative; padding: 24px 22px 20px; border-radius: var(--radius-hero); background: var(--card); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 12px; }
.src-panel.is-show .qcard { animation: qIn 420ms var(--ease-expo) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes qIn { from { opacity: 0; transform: translateY(10px); } }
.qcard q { quotes: none; font-size: 1.25rem; font-weight: 800; line-height: 1.45; letter-spacing: -0.01em; }
.qcard .tr { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
.qcard cite { margin-top: auto; font-style: normal; display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 700; font-size: 0.875rem; }
.qcard cite::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--gold); }
.qcard.wide { grid-column: span 2; background: var(--grad-brand); color: #fff; }
.qcard.wide .tr, .qcard.wide cite { color: rgba(255, 255, 255, 0.75); }
.qcard.wide q { font-size: clamp(1.45rem, 2.4vw, 2rem); }
@media (max-width: 920px) { .src-panel { grid-template-columns: 1fr; } .qcard.wide { grid-column: span 1; } .src-tabs { display: grid; width: 100%; } .src-tabs button { padding: 0 6px; font-size: 0.875rem; } }


/* ---------- articles ---------- */
.arts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.art { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-hero); background: var(--card); box-shadow: var(--shadow-card); overflow: hidden; text-decoration: none; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.art:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); } a.art:hover .art-art span { transform: scale(1.08) rotate(-3deg); } }
.art-art { height: 132px; display: grid; place-items: center; position: relative; overflow: hidden; }
.art-art span { font-size: 4rem; font-weight: 900; letter-spacing: -0.05em; color: rgba(255, 255, 255, 0.94); transition: transform 600ms var(--ease-spring); }
.art-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.art-tag { align-self: flex-start; font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-pill); }
.art h3 { margin: 0; font-size: 1.1875rem; font-weight: 800; line-height: 1.3; }
.art p { margin: 0; color: var(--ink-2); font-size: 0.975rem; line-height: 1.55; }
.art .soon { margin-top: auto; padding-top: 8px; color: var(--ink-3); font-size: 0.8125rem; font-weight: 600; }
@media (max-width: 920px) { .arts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .arts { grid-template-columns: 1fr; } }


/* ---------- FAQ and contact ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.faq-side { position: sticky; top: 96px; }
@media (max-width: 920px) { .faq-grid { grid-template-columns: 1fr; gap: 22px; } .faq-side { position: static; } }
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.ch-list { display: grid; gap: 10px; margin-top: 20px; }
.ch { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-card); text-decoration: none; transition: transform var(--dur-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ch:hover { transform: translateY(-2px); } }
.ch b { display: block; }
.ch small { color: var(--ink-2); }
.form { padding: 26px; border-radius: var(--radius-hero); display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: 18px 23px, 23px 23px; background-size: 5px 5px; background-repeat: no-repeat; }
.form .fine { color: var(--ink-2); font-size: 0.8125rem; margin: 0; }
.form-done { display: none; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--income-tint); color: var(--income-ink); font-weight: 700; }
.form.is-sent .form-done { display: flex; }
.form-done.is-error { background: var(--destructive-tint, rgba(255, 59, 48, 0.12)); color: #c4001a; }
@media (max-width: 920px) { .contact { grid-template-columns: 1fr; gap: 24px; } .form .two { grid-template-columns: 1fr; } }

/* ---------- a quote with its source ---------- */
.calc-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.pull { margin: 0; padding: 18px 20px; border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); border-inline-start: 4px solid var(--gold); }
.pull q { quotes: none; display: block; font-weight: 800; font-size: 1.1875rem; }
.pull small { display: block; margin-top: 4px; color: var(--ink-2); font-weight: 600; }
@media (max-width: 700px) { .calc-quotes { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.inp { width: 100%; min-height: 52px; border-radius: 14px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--separator); padding: 0 14px; font-size: 1rem; transition: box-shadow var(--dur-fast) var(--ease-out); }
textarea.inp { min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.inp:focus { outline: none; box-shadow: inset 0 0 0 2px var(--income); }
.field-label { display: block; font-weight: 700; font-size: 0.9375rem; margin-bottom: 8px; }

/* depth on scroll: the seal behind a band moves slower than its words (CSS only, where supported) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band .seal-bg { animation: spin 90s linear infinite paused, sealDepth linear both; animation-timeline: auto, view(); }
    .band.is-live .seal-bg { animation-play-state: running, running; }
    @keyframes sealDepth { from { translate: 0 70px; } to { translate: 0 -70px; } }
    .band blockquote { animation: quoteDepth linear both; animation-timeline: view(); }
    @keyframes quoteDepth { from { translate: 0 18px; } to { translate: 0 -18px; } }
  }
}

/* the pause switch, and the state it sets */
.still-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, 0.72); color: var(--ink); box-shadow: inset 0 0 0 1px var(--separator), 0 8px 18px -12px rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform var(--dur-press) var(--ease-out); }
.still-btn:active { transform: scale(0.92); }
.still-btn svg { width: 16px; height: 16px; }
.still-btn .i-go { display: none; }
.still-btn[aria-pressed='true'] .i-go { display: block; }
.still-btn[aria-pressed='true'] .i-stop { display: none; }
body.is-still *, body.is-still *::before, body.is-still *::after { animation-play-state: paused !important; }

/* Reduced motion: nothing moves or loops, but changes still fade, so every action is answered. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-property: opacity, background-color, color, filter !important; transition-duration: 200ms !important; transition-delay: 0ms !important; }
  .js .rv, .js .rv.is-in, .band .w, .band cite { transform: none !important; filter: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .topbar, .menu { background: #fafafc; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #3c3c43; --ink-3: #3c3c43; --separator: rgba(60, 60, 67, 0.36); }
}
