:root {
  --teal: #079fa2;
  --teal-dark: #067579;
  --red: #ed1c24;
  --yellow: #ffd21a;
  --green: #8fbd20;
  --orange: #ff8b18;
  --ink: #1f2933;
  --muted: #5c6773;
  --paper: #ffffff;
  --soft: #f4fbfb;
  --line: #d7e3e4;
  --shadow: 0 18px 50px rgba(27, 70, 72, 0.14);
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--teal-dark); }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 2rem)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(7,159,162,.14);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .22rem;
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
}
.brand-my { color: var(--teal); font-size: 1.05rem; transform: rotate(-5deg); }
.brand-hebrew { color: var(--red); font-size: 2.1rem; }
.brand-chart { color: var(--teal); font-size: 1rem; transform: rotate(-4deg); }
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.main-nav a:hover { color: var(--teal-dark); }
.main-nav .nav-button { padding: .7rem 1rem; background: var(--teal); color: white; border-radius: 999px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.25rem 0 5.5rem;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,210,26,.28) 0 8%, transparent 8.4%),
    radial-gradient(circle at 90% 18%, rgba(237,28,36,.10) 0 10%, transparent 10.4%),
    linear-gradient(135deg, #fbffff 0%, #f5fbec 48%, #fff9ec 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  border: 24px dotted rgba(7,159,162,.13);
  pointer-events: none;
}
.hero::before { top: -120px; left: -95px; }
.hero::after { right: -90px; bottom: -150px; border-color: rgba(143,189,32,.18); }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: 4.4rem;
}
.eyebrow {
  margin: 0 0 .6rem;
  color: var(--teal-dark);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.12; margin-top: 0; }
h1 { margin-bottom: 1.25rem; font-size: clamp(2.65rem, 6vw, 5.35rem); letter-spacing: -.055em; }
h2 { margin-bottom: 1rem; font-size: clamp(2.1rem, 4vw, 3.35rem); letter-spacing: -.04em; }
h3 { margin-bottom: .7rem; font-size: 1.28rem; }
.hero-text { max-width: 700px; margin: 0 0 1.7rem; font-size: clamp(1.08rem, 2vw, 1.3rem); color: #34414b; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: .84rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--teal); color: white; box-shadow: 0 10px 26px rgba(7,159,162,.24); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { background: white; color: var(--ink); border-color: var(--line); }
.button-secondary:hover { border-color: var(--teal); }
.button-full { width: 100%; border: 0; font-size: 1.05rem; }
.microcopy { margin: .9rem 0 0; color: var(--muted); font-size: .9rem; }

.mini-card {
  position: relative;
  padding: 2rem 1.7rem 1.5rem;
  border: 12px solid white;
  border-radius: 28px;
  background:
    repeating-conic-gradient(from 8deg at 10% 10%, rgba(255,210,26,.9) 0 8deg, transparent 8deg 24deg),
    repeating-conic-gradient(from 4deg at 92% 12%, rgba(237,28,36,.86) 0 7deg, transparent 7deg 23deg),
    repeating-conic-gradient(from 4deg at 13% 90%, rgba(7,159,162,.84) 0 7deg, transparent 7deg 22deg),
    linear-gradient(#fff,#fff);
  box-shadow: var(--shadow);
  transform: rotate(1.3deg);
}
.mini-card::before {
  content: "";
  position: absolute;
  inset: 19% 6% 10%;
  z-index: 0;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
}
.mini-card > * { position: relative; z-index: 1; }
.mini-card-title { display: flex; align-items: baseline; justify-content: center; gap: .35rem; margin-bottom: 1rem; font-weight: 950; line-height: 1; }
.mini-card-title span { color: var(--teal); font-size: 1.35rem; }
.mini-card-title b { color: var(--red); font-size: clamp(2.8rem, 5vw, 4.1rem); }
.mini-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .47rem; padding: .25rem; }
.mini-grid span { aspect-ratio: 1.4; border: 2px solid var(--green); border-radius: 12px; background: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.05); }
.mini-dedication { margin: 1.1rem 0 0; color: var(--teal-dark); font-size: .85rem; font-weight: 800; text-align: center; }

.section { padding: 5.4rem 0; }
.section-light { background: var(--soft); }
.section-heading { max-width: 700px; margin-bottom: 2.2rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step-card { position: relative; min-height: 250px; padding: 2rem 1.6rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 12px 30px rgba(50,80,82,.07); }
.step-number { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.5rem; border-radius: 14px; background: var(--yellow); color: var(--ink); font-size: 1.3rem; font-weight: 950; transform: rotate(-4deg); }
.step-card:nth-child(2) .step-number { background: #c5e77e; transform: rotate(4deg); }
.step-card:nth-child(3) .step-number { background: #ffb2b4; }
.step-card p { margin-bottom: 0; color: var(--muted); }

.chart-section { background: linear-gradient(180deg, #fff 0%, #fffaf0 100%); }
.chart-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(430px, 1.2fr); align-items: center; gap: 4rem; }
.chart-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.progress-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.7rem; }
progress { width: min(320px, 100%); height: 18px; accent-color: var(--teal); }
.text-button { margin-top: 1rem; padding: .3rem 0; border: 0; background: transparent; color: var(--teal-dark); font-weight: 800; text-decoration: underline; cursor: pointer; }
.brachos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; padding: 1.2rem; border: 1px solid #e2dfcc; border-radius: 28px; background: white; box-shadow: var(--shadow); }
.brachos-box {
  position: relative;
  aspect-ratio: 1.28;
  border: 2px solid var(--green);
  border-radius: 14px;
  background: #fff;
  color: transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.brachos-box:hover { transform: translateY(-2px); border-color: var(--teal); }
.brachos-box:focus-visible { outline: 4px solid rgba(7,159,162,.22); outline-offset: 2px; }
.brachos-box.is-checked { background: var(--teal); border-color: var(--teal-dark); color: white; }
.brachos-box.is-checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 950;
}
.complete-message { margin-top: 1rem; padding: .9rem 1rem; border-radius: 14px; background: #e9f8d6; color: #35530b; }
.complete-message a { margin-left: .35rem; color: inherit; font-weight: 800; }

.section-form { background: var(--ink); color: white; }
.form-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(500px, 1.25fr); gap: 4rem; align-items: start; }
.form-intro { position: sticky; top: 110px; }
.form-intro .eyebrow { color: #6fe6e6; }
.form-intro > p:not(.eyebrow):not(.dedication) { color: #cbd4d8; font-size: 1.05rem; }
.prize-callout { display: inline-flex; align-items: center; gap: .85rem; margin: 1.5rem 0; padding: 1rem 1.2rem; border: 1px solid rgba(255,255,255,.17); border-radius: 18px; background: rgba(255,255,255,.08); }
.prize-amount { color: var(--yellow); font-size: 2.1rem; font-weight: 950; line-height: 1; }
.dedication { margin-top: 2rem; color: #72e1e2; font-size: 1.12rem; }
.entry-form { padding: 2rem; border-radius: 26px; background: white; color: var(--ink); box-shadow: 0 25px 60px rgba(0,0,0,.25); }
.form-row { display: grid; gap: 1rem; }
.two-columns { grid-template-columns: minmax(0, 1fr) minmax(150px, .42fr); }
.entry-details-row { grid-template-columns: minmax(0, 1fr) minmax(190px, .42fr); }
.field { margin-bottom: 1.1rem; }
.field label, fieldset legend { display: block; margin-bottom: .38rem; font-weight: 850; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .72rem .8rem;
  border: 1.5px solid #c9d3d5;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
}
.field input:focus { outline: 4px solid rgba(7,159,162,.14); border-color: var(--teal); }
.field input[aria-invalid="true"] { border-color: var(--red); background: #fff7f7; }
.field small { display: block; margin-top: .35rem; color: var(--muted); font-size: .8rem; }
.optional { color: var(--muted); font-weight: 500; }
.confirmations { margin: .35rem 0 1.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; }
.check-label { display: grid; grid-template-columns: 1.25rem 1fr; gap: .7rem; align-items: start; margin-top: .8rem; font-size: .92rem; }
.check-label input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--teal); }
.form-errors { margin: 0 0 1rem; padding: .9rem 1rem; border-radius: 12px; background: #fff0f0; color: #8a171b; }
.form-footnote { margin: .8rem 0 0; text-align: center; color: var(--muted); font-size: .86rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.faq-section { background: #fff; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { padding: 1.1rem .2rem; cursor: pointer; font-weight: 850; font-size: 1.08rem; }
details p { margin: 0 0 1.2rem; color: var(--muted); }

.site-footer { padding: 3.5rem 0 1rem; background: #f2f7f7; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 3rem; }
.brand-footer { margin-bottom: .7rem; }
.footer-grid p { color: var(--muted); }
.footer-heading { margin: .25rem 0 .75rem; font-size: 1rem; letter-spacing: .02em; }
.footer-bottom { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

.page-shell { min-height: 100vh; background: var(--soft); }
.simple-header { padding: 1rem 0; background: white; border-bottom: 1px solid var(--line); }
.simple-main { padding: 4rem 0; }
.content-card { width: min(820px, calc(100% - 2rem)); margin-inline: auto; padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.content-card h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
.content-card h2 { margin-top: 2rem; font-size: 1.45rem; }
.content-card p, .content-card li { color: #4a5660; }
.draft-note { padding: .9rem 1rem; border-left: 5px solid var(--orange); border-radius: 8px; background: #fff5e7; color: #6d4307; }
.success-icon { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 1.25rem; border-radius: 50%; background: #e7f7d2; color: #436d0b; font-size: 2.2rem; font-weight: 950; }

@media (max-width: 920px) {
  .main-nav a:not(.nav-button) { display: none; }
  .hero-grid, .chart-layout, .form-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding-top: 3.7rem; }
  .mini-card { max-width: 600px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .step-card { min-height: 0; }
  .chart-copy { max-width: 680px; }
  .form-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 1.2rem, var(--max)); }
  .header-inner { min-height: 68px; }
  .brand-hebrew { font-size: 1.72rem; }
  .main-nav .nav-button { padding: .62rem .75rem; font-size: .82rem; }
  .hero { padding: 3.1rem 0 3.7rem; }
  h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .mini-card { padding: 1.45rem .9rem 1.1rem; border-width: 8px; border-radius: 21px; }
  .mini-grid { gap: .3rem; }
  .mini-grid span { border-radius: 8px; }
  .section { padding: 4rem 0; }
  .brachos-grid { gap: .42rem; padding: .65rem; border-radius: 18px; }
  .brachos-box { border-radius: 9px; }
  .entry-form { padding: 1.2rem; border-radius: 18px; }
  .two-columns, .entry-details-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1rem; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
