/* =====================================================================
   בי כנישתא — landing page
   ---------------------------------------------------------------------
   Palette: "ink violet" instead of corporate navy — a deep plum-ink for the
   dark surfaces (the parochet velvet), a vivid periwinkle-indigo for every
   action, warm brass gold from the logo for what deserves attention, and a
   warm bone paper instead of cold white. Colour is never decoration.
   Type: Rubik for display (tight, geometric, modern Hebrew), Assistant for
   body text.
   ===================================================================== */

:root {
  /* --- ink (dark surfaces, headings) --- */
  --ink-950: #14102B;
  --ink-900: #1C1740;
  --ink-800: #272057;
  --ink-700: #3A3270;
  --ink-600: #4B4382;

  /* --- brand: periwinkle indigo (actions, links, focus) --- */
  --brand-700: #4438C7;
  --brand-600: #5B4EE8;
  --brand-500: #7568F2;
  --brand-300: #B3AAFA;
  --brand-200: #CFC9FC;
  --brand-100: #E7E3FE;
  --brand-50:  #F4F2FF;

  /* --- brass gold (from the logo) --- */
  --gold-800: #8A6B1C;
  --gold-700: #A9862A;
  --gold-600: #C9A63F;
  --gold-500: #DDBE63;
  --gold-300: #EBD9A0;
  --gold-100: #F8EFD8;
  --gold-50:  #FDF9EF;

  /* --- states --- */
  --green-700: #0E8F63;
  --green-600: #13B37C;
  --green-100: #D6F5E8;

  --rose-600: #E2445C;
  --rose-100: #FFE1E6;

  --amber-600: #DE8B12;
  --amber-100: #FCEDD3;

  /* --- warm neutrals --- */
  --slate-900: #191630;
  --slate-700: #3C3859;
  --slate-600: #5C5878;
  --slate-400: #918DA8;
  --slate-300: #C2BFD1;
  --slate-200: #E3E0EA;
  --slate-100: #EFEDF3;

  --bone-100: #F2EFE8;
  --bone-50:  #FBFAF6;
  --white: #fff;

  --bg: var(--bone-50);
  --surface: var(--white);
  --text: var(--slate-900);
  --muted: var(--slate-600);
  --border: var(--slate-200);

  --font-body: "Assistant", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: "Rubik", "Assistant", system-ui, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(20, 16, 43, .05), 0 2px 6px rgba(20, 16, 43, .05);
  --shadow-md: 0 10px 30px -12px rgba(20, 16, 43, .22), 0 2px 8px rgba(20, 16, 43, .05);
  --shadow-lg: 0 40px 70px -28px rgba(20, 16, 43, .45), 0 12px 28px -14px rgba(20, 16, 43, .2);
  --shadow-brand: 0 12px 26px -10px rgba(91, 78, 232, .55);

  --container: 1180px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0;
  color: var(--ink-950);
  letter-spacing: -.025em;
  font-weight: 700;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section--alt { background: var(--white); }
.section--dark { background: var(--ink-950); color: var(--brand-100); }

.skip-link { position: absolute; top: -100px; right: 1rem; background: var(--ink-950); color: #fff; padding: .5rem 1rem; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 1rem; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: var(--brand-700); background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.eyebrow--gold { color: var(--gold-500); background: rgba(201, 166, 63, .1); border-color: rgba(201, 166, 63, .25); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 4px rgba(19,179,124,.18); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(19,179,124,.18);} 50% { box-shadow: 0 0 0 8px rgba(19,179,124,0);} }

.section__head { max-width: 730px; margin: 0 auto 3.25rem; text-align: center; }
.section__head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 1rem; }
.section__head p { color: var(--muted); font-size: 1.12rem; }
.section__head--light h2 { color: #fff; }
.section__head--light p { color: var(--brand-200); }
.section__head--light b { color: var(--gold-500); font-weight: 600; }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--slate-700); max-width: 570px; font-weight: 400; }
.lead-sm { font-size: 1.1rem; color: var(--muted); margin: 1rem 0 1.75rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem; border-radius: 12px; font-weight: 600; font-size: 1rem;
  font-family: var(--font-display); letter-spacing: -.01em;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .18s ease, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: .95rem 1.8rem; font-size: 1.1rem; border-radius: 14px; }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(91,78,232,.6); }
.btn--outline { border-color: var(--slate-200); color: var(--ink-900); background: rgba(255,255,255,.7); }
.btn--outline:hover { border-color: var(--brand-300); background: #fff; color: var(--brand-700); }
.btn--ghost { color: var(--ink-800); background: transparent; }
.btn--ghost:hover { background: var(--brand-50); color: var(--brand-700); }
.btn--gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: var(--ink-950); box-shadow: 0 14px 28px -10px rgba(201,166,63,.55); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(201,166,63,.7); }
.btn--outline-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.09); border-color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(251,250,246,.8); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(20,16,43,.5); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.42rem; color: var(--ink-950); letter-spacing: -.03em; }
.nav__links { display: flex; gap: 1.7rem; margin-inline-start: auto; font-weight: 500; color: var(--slate-700); }
.nav__links a { position: relative; padding: .25rem 0; transition: color .15s; }
.nav__links a:hover { color: var(--brand-700); }
.nav__links a::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; background: var(--brand-600); border-radius: 2px; transform: scaleX(0); transition: transform .2s; transform-origin: right; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; gap: .5rem; }
.nav__burger { display: none; margin-inline-start: auto; background: none; border: 0; padding: .5rem; flex-direction: column; gap: 5px; }
.nav__burger span { display: block; width: 24px; height: 2.5px; background: var(--ink-950); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.orb--1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(179,170,250,.55), transparent 70%); top: -190px; left: -140px; }
.orb--2 { width: 660px; height: 660px; background: radial-gradient(circle, rgba(221,190,99,.4), transparent 70%); bottom: -300px; right: -220px; }
.grid-lines {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(91,78,232,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(91,78,232,.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 3rem; align-items: center; }
.hero__inner > * { min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.35rem); font-weight: 800; margin: .25rem 0 1.4rem; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; position: relative; background: linear-gradient(-100deg, var(--brand-600) 5%, var(--gold-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2.1rem 0 2.4rem; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 1.25rem 2.2rem; color: var(--slate-700); font-size: .95rem; }
.hero__proof li { display: flex; align-items: baseline; gap: .5rem; }
.hero__proof strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--ink-900); line-height: 1; letter-spacing: -.04em; }

/* phone mockup */
.hero__visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 322px; background: var(--ink-950); border-radius: 46px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.09);
  position: relative; transform: rotate(-3deg); transition: transform .5s ease;
}
.hero__visual:hover .phone { transform: rotate(-1deg) translateY(-5px); }
.phone__notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 108px; height: 26px; background: var(--ink-950); border-radius: 0 0 18px 18px; z-index: 2; }
.phone__screen { background: var(--bone-50); border-radius: 36px; padding: 44px 14px 18px; min-height: 600px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.app-top { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.app-top__date { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-950); letter-spacing: -.02em; }
.app-top__sub { font-size: .76rem; color: var(--muted); }
.app-top__streak { background: var(--amber-100); color: var(--amber-600); font-weight: 700; padding: .25rem .6rem; border-radius: 999px; font-size: .85rem; }
.next-card { background: linear-gradient(140deg, var(--ink-900), var(--brand-700)); color: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: 0 14px 26px -14px rgba(68,56,199,.8); position: relative; overflow: hidden; }
.next-card::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(221,190,99,.4), transparent 70%); top: -55px; left: -45px; }
.next-card__label { font-size: .7rem; letter-spacing: .05em; opacity: .78; }
.next-card__row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 2px; }
.next-card__name { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; letter-spacing: -.03em; }
.next-card__time { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gold-500); }
.next-card__countdown { font-size: .86rem; margin-top: 2px; }
.next-card__countdown span { font-variant-numeric: tabular-nums; font-weight: 600; }
.next-card__where { font-size: .76rem; opacity: .8; margin-top: 6px; }
.prayer-list { background: #fff; border-radius: 18px; border: 1px solid var(--border); overflow: hidden; }
.prayer-row { display: grid; grid-template-columns: 10px 1fr auto; grid-template-areas: "dot name time" "dot note time"; column-gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--slate-100); font-size: .92rem; }
.prayer-row:last-child { border-bottom: 0; }
.prayer-row.is-next { background: var(--brand-50); }
.prayer-row.is-past { opacity: .5; }
.prayer-row__dot { grid-area: dot; width: 10px; height: 10px; border-radius: 50%; background: var(--slate-300); }
.prayer-row.is-next .prayer-row__dot { background: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.prayer-row__dot.done { background: var(--green-600); }
.prayer-row__dot.lesson { background: var(--gold-600); }
.prayer-row__name { grid-area: name; font-weight: 600; color: var(--ink-950); }
.prayer-row__note { grid-area: note; font-size: .74rem; color: var(--muted); }
.prayer-row__time { grid-area: time; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-900); }
.zmanim { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 18px; padding: 10px 12px; }
.zmanim__title { font-size: .76rem; font-weight: 600; color: var(--brand-700); margin-bottom: 6px; }
.zmanim__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 8px; }
.zmanim__grid div { display: flex; flex-direction: column; }
.zmanim__grid small { font-size: .68rem; color: var(--muted); }
.zmanim__grid b { font-family: var(--font-display); font-size: .9rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-900); }

.float-card {
  position: absolute; display: flex; gap: .7rem; align-items: center;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-radius: 16px; padding: .7rem .9rem; box-shadow: var(--shadow-md);
  border: 1px solid var(--border); width: 252px; animation: floatY 6s ease-in-out infinite;
}
.float-card__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }
.float-card--reminder { top: 58px; right: -32px; }
.float-card--reminder .float-card__icon { background: var(--gold-100); }
.float-card--change { bottom: 68px; left: -42px; animation-delay: -3s; }
.float-card--change .float-card__icon { background: var(--rose-100); color: var(--rose-600); }
.float-card__title { font-weight: 600; font-size: .89rem; color: var(--ink-950); }
.float-card__sub { font-size: .75rem; color: var(--muted); }
@keyframes floatY { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

/* ---------- trust strip ---------- */
.strip { background: var(--ink-950); color: var(--brand-200); font-size: .9rem; padding: 1rem 0; }
.strip__inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem 1.25rem; text-align: center; }
.sep { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-600); }

/* ---------- pillars ---------- */
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.1rem;
  display: flex; flex-direction: column; gap: .8rem; box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.pillar__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.55rem; }
.pillar__icon--navy { background: var(--brand-100); }
.pillar__icon--gold { background: var(--gold-100); }
.pillar__icon--green { background: var(--green-100); }
.pillar h3 { font-size: 1.42rem; }
.pillar p { color: var(--muted); flex: 1; font-size: 1.02rem; }
.pillar__link { color: var(--brand-700); font-weight: 600; font-size: .95rem; }

/* ---------- split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split > *, .rule-demo > *, .card-stack > *, .reminder-flow > * { min-width: 0; }
.split__copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); }
.feature-list { display: flex; flex-direction: column; gap: 1.15rem; margin-bottom: 2rem; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feature-list__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-50); border: 1px solid var(--brand-100); display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.feature-list b { display: block; color: var(--ink-950); font-weight: 600; font-family: var(--font-display); letter-spacing: -.02em; }
.feature-list span:not(.feature-list__icon) { color: var(--muted); font-size: .97rem; }
.check-list { display: grid; gap: .65rem; margin-top: .5rem; }
.check-list li { padding-inline-start: 1.9rem; position: relative; color: var(--slate-700); }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: .25rem; width: 22px; height: 22px; border-radius: 50%; background: var(--green-100); color: var(--green-700); font-size: .78rem; font-weight: 700; display: grid; place-items: center; }

.card-stack { position: relative; display: grid; gap: 1.25rem; max-width: 440px; margin-inline: auto; }
.ui-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-md); padding: 1.2rem 1.3rem; }
.ui-card__head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-family: var(--font-display); color: var(--ink-950); margin-bottom: .7rem; }
.pill { font-size: .72rem; padding: .2rem .6rem; border-radius: 999px; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.pill--live { background: var(--green-100); color: var(--green-700); }
.pill--live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green-600); animation: pulse 1.6s infinite; }
.minyan { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; border-top: 1px solid var(--slate-100); }
.minyan__time { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink-900); font-variant-numeric: tabular-nums; letter-spacing: -.03em; min-width: 62px; }
.minyan__body { flex: 1; display: flex; flex-direction: column; }
.minyan__body b { color: var(--ink-950); font-weight: 600; font-size: .97rem; }
.minyan__body span { font-size: .8rem; color: var(--muted); }
.minyan__go { background: var(--brand-100); color: var(--brand-700); font-weight: 600; font-size: .8rem; padding: .3rem .75rem; border-radius: 999px; }
.ui-card--streak { transform: translateX(-2.5rem) rotate(1.5deg); background: linear-gradient(140deg, #fff, var(--gold-50)); }
.streak-num { font-family: var(--font-display); font-size: 2.7rem; font-weight: 700; color: var(--ink-950); line-height: 1; letter-spacing: -.05em; display: flex; align-items: baseline; gap: .6rem; }
.streak-num span { font-family: var(--font-body); font-size: .95rem; font-weight: 400; color: var(--muted); letter-spacing: normal; }
.week { display: flex; gap: .4rem; margin: .9rem 0; }
.week span { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--slate-100); color: var(--slate-400); font-weight: 600; font-size: .85rem; }
.week span.on { background: var(--green-100); color: var(--green-700); }
.week span.today { outline: 2px solid var(--brand-500); outline-offset: 1px; }
.goal__bar { height: 8px; border-radius: 999px; background: var(--slate-100); overflow: hidden; margin-bottom: .45rem; }
.goal__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-600), var(--gold-500)); border-radius: 999px; }
.goal small { color: var(--muted); font-size: .82rem; }

/* ---------- reminders ---------- */
.reminders { background: linear-gradient(180deg, var(--bone-50), var(--brand-50) 55%, var(--bone-50)); }
.reminder-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1rem; align-items: stretch; margin-bottom: 3rem; }
.rf-step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.7rem; box-shadow: var(--shadow-sm); }
.rf-step__n { width: 38px; height: 38px; border-radius: 13px; background: var(--ink-900); color: var(--gold-500); font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; margin-bottom: .9rem; }
.rf-step h4 { font-size: 1.25rem; margin-bottom: .4rem; }
.rf-step p { color: var(--muted); font-size: .97rem; }
.rf-arrow { align-self: center; font-size: 1.5rem; color: var(--brand-300); }
.notif-demo { display: grid; gap: .85rem; max-width: 620px; margin-inline: auto; }
.notif { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: start; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: 20px; padding: .95rem 1.15rem; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.notif img { width: 40px; height: 40px; border-radius: 12px; }
.notif__title { font-weight: 600; font-family: var(--font-display); letter-spacing: -.02em; color: var(--ink-950); }
.notif__body { font-size: .92rem; color: var(--muted); }
.notif__actions { grid-column: 2; display: flex; gap: .5rem; margin-top: .3rem; }
.notif__actions span { font-size: .83rem; font-weight: 600; color: var(--brand-700); background: var(--brand-50); padding: .3rem .85rem; border-radius: 999px; }
.notif--muted { opacity: .85; transform: scale(.97); }

/* ---------- gabbai / rule demo ---------- */
.rule-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 3.5rem; align-items: start; }
.rule-demo__editor, .rule-demo__preview { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 1.7rem; }
.rule-demo__title { font-weight: 600; font-family: var(--font-display); color: #fff; margin-bottom: 1.3rem; display: flex; align-items: center; gap: .5rem; }
.rule-demo__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }
.rule-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.rule-row label { color: var(--brand-200); font-size: .92rem; }
.seg { display: inline-flex; background: rgba(255,255,255,.07); border-radius: 13px; padding: 4px; gap: 4px; }
.seg__btn { background: transparent; color: var(--brand-200); border: 0; padding: .45rem .85rem; border-radius: 10px; font-size: .9rem; font-weight: 500; transition: background .15s, color .15s; }
.seg__btn:hover { color: #fff; }
.seg__btn.is-active { background: var(--brand-500); color: #fff; font-weight: 600; }
.range-wrap { display: flex; align-items: center; gap: 1rem; }
.range-wrap input[type=range] { flex: 1; accent-color: var(--brand-500); }
.range-wrap output { min-width: 112px; color: #fff; font-weight: 600; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.rule-row select, .rule-row input[type=time] { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; padding: .55rem .8rem; font: inherit; font-size: .93rem; }
.rule-row select option { color: var(--slate-900); }
.rule-desc { margin-top: 1.4rem; padding: .9rem 1.05rem; background: rgba(221,190,99,.1); border: 1px dashed rgba(221,190,99,.4); border-radius: 14px; color: var(--gold-500); font-weight: 500; }
.preview { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.preview th { text-align: start; font-size: .82rem; color: var(--brand-200); font-weight: 500; padding: .4rem .5rem; border-bottom: 1px solid rgba(255,255,255,.13); }
.preview td { padding: .6rem .5rem; border-bottom: 1px solid rgba(255,255,255,.07); color: #fff; }
.preview td:last-child { font-family: var(--font-display); font-weight: 600; color: var(--gold-500); font-size: 1.06rem; }
.preview tr.shabbat td { color: var(--brand-200); font-style: italic; }
.preview tr.shabbat td:last-child { color: var(--brand-200); font-weight: 500; font-size: .9rem; font-style: italic; }
.rule-demo__hint { margin-top: 1rem; color: var(--brand-200); font-size: .89rem; }

.manage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.m-card { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09); border-radius: 22px; padding: 1.5rem; transition: background .2s, border-color .2s, transform .2s; }
.m-card:hover { background: rgba(255,255,255,.08); border-color: rgba(179,170,250,.45); transform: translateY(-4px); }
.m-card__icon { font-size: 1.45rem; margin-bottom: .75rem; }
.m-card h4 { color: #fff; font-size: 1.15rem; margin-bottom: .35rem; }
.m-card p { color: var(--brand-200); font-size: .92rem; line-height: 1.6; }

/* ---------- TV ---------- */
.tv { max-width: 520px; margin-inline: auto; }
.tv__screen { background: var(--ink-950); border-radius: 20px; padding: 1.3rem; box-shadow: var(--shadow-lg), inset 0 0 0 6px #0d0a1c; aspect-ratio: 16 / 9.5; display: flex; flex-direction: column; color: #fff; overflow: hidden; position: relative; }
.tv__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 42%); pointer-events: none; }
.tv__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.13); padding-bottom: .7rem; }
.tv__head b { display: block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.02em; }
.tv__head span { font-size: .79rem; color: var(--brand-200); }
.tv__clock { font-family: var(--font-display); font-size: 1.95rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gold-500); letter-spacing: -.04em; }
.tv__body { flex: 1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem; padding: .9rem 0; }
.tv__next { background: linear-gradient(140deg, var(--brand-700), var(--ink-800)); border-radius: 16px; padding: .95rem; display: flex; flex-direction: column; justify-content: center; }
.tv__next small { font-size: .7rem; opacity: .8; letter-spacing: .04em; }
.tv__next b { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -.03em; }
.tv__next span { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--gold-500); font-variant-numeric: tabular-nums; }
.tv__list { display: flex; flex-direction: column; justify-content: center; gap: .3rem; }
.tv__list div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.09); padding: .28rem 0; font-size: .96rem; }
.tv__list b { font-family: var(--font-display); font-weight: 500; font-variant-numeric: tabular-nums; }
.tv__ticker { overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(255,255,255,.13); padding-top: .5rem; font-size: .8rem; color: var(--gold-300); }
.tv__ticker span { display: inline-block; padding-inline-start: 100%; animation: ticker 22s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(100%); } }
.tv__stand { width: 34%; height: 14px; margin: 0 auto; background: linear-gradient(#2a2350, #0d0a1c); border-radius: 0 0 12px 12px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; }
.step { background: var(--bone-50); border-radius: var(--radius-lg); padding: 2.1rem; border: 1px solid var(--border); position: relative; }
.step__n { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-bottom: .8rem; background: linear-gradient(120deg, var(--brand-500), var(--gold-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h4 { font-size: 1.3rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- find ---------- */
.find { padding-block: clamp(3rem, 6vw, 5rem); }
.find__inner { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow-md); }
.find__copy h2 { font-size: 2rem; margin-bottom: .3rem; }
.find__copy p { color: var(--muted); margin-bottom: 1.4rem; }
.find__form { display: flex; gap: .75rem; flex-wrap: wrap; }
.find__input { flex: 1 1 320px; display: flex; align-items: center; gap: .6rem; border: 1.5px solid var(--border); border-radius: 13px; padding: 0 1rem; background: var(--bone-50); color: var(--slate-400); transition: border-color .15s, box-shadow .15s, background .15s; }
.find__input:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); background: #fff; }
.find__input input { flex: 1; border: 0; background: transparent; padding: .9rem 0; font: inherit; color: var(--text); outline: none; min-width: 0; }
.find__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.15rem; }
.find__chips a { font-size: .89rem; padding: .35rem .9rem; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); transition: background .15s, border-color .15s; }
.find__chips a:hover { background: var(--brand-100); border-color: var(--brand-200); }

/* ---------- faq ---------- */
.faq__list { max-width: 780px; margin-inline: auto; display: grid; gap: .75rem; }
details { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 0 1.5rem; transition: box-shadow .2s, border-color .2s; }
details[open] { box-shadow: var(--shadow-sm); border-color: var(--brand-200); }
summary { list-style: none; cursor: pointer; padding: 1.15rem 0; font-weight: 600; font-family: var(--font-display); letter-spacing: -.02em; color: var(--ink-950); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.06rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--brand-600); font-weight: 300; transition: transform .2s; flex-shrink: 0; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 1.25rem; }

/* ---------- cta ---------- */
.cta { background: radial-gradient(ellipse at top, var(--brand-700), var(--ink-950) 68%); color: #fff; padding: clamp(4rem, 8vw, 7.5rem) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(221,190,99,.2) 1px, transparent 1px); background-size: 28px 28px; opacity: .5; mask-image: radial-gradient(ellipse at center, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%); }
.cta__inner { position: relative; text-align: center; max-width: 740px; }
.cta__logo { margin: 0 auto 1.5rem; border-radius: 50%; box-shadow: 0 0 0 8px rgba(255,255,255,.08), 0 24px 48px -18px rgba(0,0,0,.55); }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 2.9rem); margin-bottom: 1rem; }
.cta p { color: var(--brand-200); font-size: 1.12rem; margin-bottom: 2rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ---------- footer ---------- */
.footer { background: var(--ink-950); color: var(--brand-200); border-top: 1px solid rgba(255,255,255,.08); padding: 2.6rem 0; font-size: .93rem; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: .75rem; }
.footer__brand img { border-radius: 50%; }
.footer__brand b { display: block; color: #fff; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.03em; }
.footer__brand span { font-size: .8rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: center; }
.footer__links a { transition: color .15s; }
.footer__links a:hover { color: var(--gold-500); }
.footer__meta { display: flex; flex-direction: column; text-align: end; font-size: .82rem; gap: .2rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1); }
.reveal--delay { transition-delay: .14s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .tv__ticker span, .eyebrow .dot, .pill--live i { animation: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .manage-grid { grid-template-columns: repeat(2, 1fr); }
  .float-card--reminder { right: -10px; }
  .float-card--change { left: -10px; }
}

@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: var(--nav-h); inset-inline: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    padding: .5rem 1.25rem 1rem;
  }
  .nav__links.is-open a { padding: .85rem 0; border-bottom: 1px solid var(--slate-100); font-size: 1.07rem; }
  .nav__links.is-open a:last-child { border-bottom: 0; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__actions, .hero__proof { justify-content: center; }
  .hero__visual { margin-top: 1rem; }
  .phone { transform: none; }
  .float-card { display: none; }

  .pillars__grid, .steps { grid-template-columns: 1fr; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split__visual { order: 2; }
  .ui-card--streak { transform: none; }
  .reminder-flow { grid-template-columns: 1fr; }
  .rf-arrow { transform: rotate(-90deg); text-align: center; }
  .rule-demo { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand { justify-content: center; }
  .footer__meta { text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .btn--lg { width: 100%; }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__proof { flex-direction: column; align-items: center; gap: .6rem; }
  .phone { width: 292px; }
  .phone__screen { min-height: 560px; }
  .manage-grid { grid-template-columns: 1fr; }
  .rule-row { grid-template-columns: 1fr; gap: .4rem; }
  .seg { width: 100%; }
  .seg__btn { flex: 1; padding-inline: .4rem; }
  .find__form .btn { width: 100%; }
  .tv__screen { aspect-ratio: auto; }
  .tv__body { grid-template-columns: 1fr; }
  .tv__next { flex-direction: row; align-items: center; gap: .8rem; }
  .tv__next small { display: none; }
  .strip { font-size: .84rem; }
}
