/* Hachlata — website styles. Brand tokens mirror constants/brand-theme.ts */
:root {
  --brand: #FF9600;
  --brand-deep: #D97A00;
  --ink: #2B2B36;
  --ink-soft: #6B6B7A;
  --ink-faint: #A3A3B2;
  --paper: #FBFBFD;
  --card: #FFFFFF;
  --line: #E8E8EF;
  --success: #58CC02;
  --success-deep: #46A302;
  --gold: #FFC800;
  --freeze: #84D8FF;
  --warm-bg: #FFF8EE;
  --warm-border: #FFE3B3;

  --cat-learning: #1CB0F6;
  --cat-davening: #CE82FF;
  --cat-halacha: #58CC02;
  --cat-minhagim: #FF9600;
  --cat-hiskashrus: #FF6BC0;
  --cat-community: #FF4B4B;
  --cat-personal: #00CFC8;

  --shadow-card: 0 8px 24px rgba(43, 43, 54, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Rubik', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.he { font-family: 'Heebo', 'Rubik', sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 92vw); margin: 0 auto; }

/* Buttons — chunky, app-matching */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 1.05rem;
  padding: 15px 26px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--brand); color: #fff;
  box-shadow: 0 4px 0 var(--brand-deep);
  transition: transform .06s ease, box-shadow .06s ease;
}
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--brand-deep); }
.btn.green { background: var(--success); box-shadow: 0 4px 0 var(--success-deep); }
.btn.green:active { box-shadow: 0 0 0 var(--success-deep); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 0 0 2px var(--line) inset; }

/* Store "coming soon" buttons */
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 16px;
  padding: 12px 20px; min-width: 190px;
}
.store svg { width: 26px; height: 26px; flex: none; fill: #fff; }
.store small { display: block; font-size: .72rem; color: #cfcfe0; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.store b { font-size: 1.05rem; font-weight: 700; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251,251,253,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
nav .logo { height: 30px; }
nav .links { display: flex; align-items: center; gap: 26px; }
nav .links a { font-weight: 500; color: var(--ink-soft); }
nav .links a:hover { color: var(--ink); }
.pill { background: var(--warm-bg); border: 1px solid var(--warm-border); color: var(--brand-deep);
  font-weight: 700; font-size: .82rem; padding: 7px 14px; border-radius: 999px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--warm-bg), var(--paper)); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center;
  padding: 70px 0 60px; }
.bsd { color: var(--ink-faint); font-family: 'Heebo', sans-serif; font-weight: 700; font-size: .9rem; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin: 8px 0 18px; }
.hero h1 .accent { color: var(--brand); }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); font-weight: 500; max-width: 30ch; margin-bottom: 26px; }
.hero-art { position: relative; text-align: center; }
.tz-stage { position: relative; display: inline-block; }
.tz-hover { position: relative; z-index: 1; display: inline-block;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1); will-change: transform; }
.tz-stage:hover .tz-hover { transform: scale(1.05) rotate(2.5deg); }
.tz-float {
  width: min(480px, 100%); height: auto; display: block; margin: 0 auto;
  animation: tzFloat 3.4s ease-in-out infinite; will-change: transform;
}
@keyframes tzFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-26px) rotate(1deg); }
}
/* Shadow pinned to his feet on the "floor" — stays put and shrinks as he jumps up */
.tz-ground {
  position: absolute; left: 50%; bottom: 4%; width: 44%; margin-left: -22%;
  height: 26px; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(217,122,0,.34), rgba(217,122,0,0) 70%);
  border-radius: 50%;
  animation: tzGround 3.4s ease-in-out infinite;
}
@keyframes tzGround {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%      { transform: scale(.72); opacity: .45; }
}
.spark {
  position: absolute; width: 14px; height: 14px; color: var(--gold); background: currentColor;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0; animation: twinkle 3s ease-in-out infinite; pointer-events: none;
}
.spark-a { top: 6%;  right: 22%; animation-delay: .2s; }
.spark-b { top: 24%; right: 8%;  width: 10px; animation-delay: 1.1s; }
.spark-c { top: 14%; left: 14%;  width: 11px; animation-delay: 1.9s; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.5) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1) rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tz-float, .tz-ground, .spark { animation: none; }
  .tz-float { transform: none; }
  .spark { opacity: .55; }
}
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust b { color: var(--success-deep); }

/* Sections */
section.block { padding: 76px 0; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.block h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 8px 0 14px; }
.block .sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 54ch; margin-bottom: 44px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-card); }
.feature .ico { font-size: 2rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); }

/* Categories */
.cats { background: var(--warm-bg); }
.cat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; }
.cat { text-align: center; }
.cat img { width: 66px; height: 66px; margin: 0 auto 10px; }
.cat b { display: block; font-weight: 700; font-size: .95rem; }
.cat span { color: var(--ink-soft); font-size: .85rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { text-align: center; }
.step .n { width: 46px; height: 46px; border-radius: 999px; background: var(--brand); color: #fff;
  font-weight: 900; font-size: 1.3rem; display: grid; place-items: center; margin: 0 auto 14px;
  box-shadow: 0 4px 0 var(--brand-deep); }
.step h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--ink-soft); }

/* Sponsor band */
.sponsor-band { background: linear-gradient(135deg, #FF9600, #FF6BC0); color: #fff; border-radius: 32px;
  padding: 52px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.sponsor-band img { width: 130px; }
.sponsor-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.sponsor-band p { color: rgba(255,255,255,.92); font-size: 1.1rem; font-weight: 500; margin: 12px 0 22px; max-width: 46ch; }
.sponsor-band .btn { background: #fff; color: var(--ink); box-shadow: 0 4px 0 rgba(0,0,0,.15); }

/* Footer */
footer { background: var(--ink); color: #cfcfe0; padding: 56px 0 34px; margin-top: 20px; }
footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer .wm { height: 34px; margin-bottom: 14px; }
footer p { max-width: 30ch; font-size: .95rem; }
footer .flinks { display: flex; gap: 30px; flex-wrap: wrap; }
footer .flinks a { color: #cfcfe0; font-weight: 500; }
footer .flinks a:hover { color: #fff; }
footer .base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-faint); }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { width: min(760px, 92vw); }
.legal h1 { font-size: 2.2rem; margin-bottom: 6px; }
.legal .updated { color: var(--ink-faint); margin-bottom: 30px; }
.legal h2 { font-size: 1.35rem; font-weight: 700; margin: 30px 0 8px; }
.legal p { margin-bottom: 12px; color: var(--ink); }
.legal ul { margin: 0 0 14px 20px; }
.legal li { margin-bottom: 6px; }
.legal a.back { display: inline-block; margin-bottom: 24px; color: var(--brand-deep); font-weight: 700; }

/* Sponsor form */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 34px; max-width: 620px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 2px solid var(--line); border-radius: 14px;
  font-family: 'Rubik', sans-serif; font-size: 1rem; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding: 48px 0; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .trust { justify-content: center; }
  .hero-art { order: -1; }
  .features, .steps { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .sponsor-band { grid-template-columns: 1fr; text-align: center; padding: 36px; }
  .sponsor-band img { margin: 0 auto; }
  nav .links a:not(.pill) { display: none; }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
