/* ─── Design tokens ─── */
:root {
  --ink: #302838;
  --muted: #746b7d;
  --canvas: #f7f4f9;
  --paper: #fff;
  --line: #e2dce7;
  --brand: #76518d;
  --brand-dark: #503663;
  --brand-soft: #eee6f3;
  --accent: #b36c8f;
  --accent-soft: #f7e9ef;
  --coral: #c4514b;
  --coral-soft: #fbe9e7;
  --green: #397d59;
  --green-soft: #e8f4ec;
  --blue: #39769b;
  --blue-soft: #e5f1f8;
  --amber: #b66b20;
  --amber-soft: #fff0db;
  --violet: #70558f;
  --violet-soft: #f0eafa;
  --teal: #2d7d74;
  --teal-soft: #e2f3f1;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* ─── Reset & base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: Heebo, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }

/* ─── Eyebrow ─── */
.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ─── Buttons ─── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .97rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease, box-shadow .12s ease;
}
.button svg { width: 17px; height: 17px; flex: 0 0 auto; }
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgb(80 54 99 / .22);
}
.button-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: 0 6px 18px rgb(80 54 99 / .3); }
.button-secondary {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.button-secondary:hover { background: var(--brand-soft); }
.button-outline {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}
.button-outline:hover { background: var(--brand-soft); }
.button-white {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
  box-shadow: 0 4px 14px rgb(0 0 0 / .12);
}
.button-white:hover { background: var(--brand-soft); }
.button-ghost {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / .45);
}
.button-ghost:hover { background: rgb(255 255 255 / .12); }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 max(20px, calc((100vw - 1100px) / 2));
  background: var(--brand-dark);
  color: #fff;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font: 600 1.3rem Newsreader, serif;
  text-decoration: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / .45);
  border-radius: 50%;
  font-family: Heebo, sans-serif;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-nav a {
  padding: 6px 10px;
  color: rgb(255 255 255 / .82);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.header-nav a:hover { color: #fff; background: rgb(255 255 255 / .1); }
.header-nav .nav-cta {
  margin-inline-start: 6px;
  padding: 7px 14px;
  color: var(--brand-dark);
  background: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.header-nav .nav-cta:hover { background: var(--brand-soft); color: var(--brand-dark); }

/* ─── Hero ─── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 60px;
}
.hero h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.13;
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero-lead {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hero-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.6;
}
.hero-note a { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }

/* Hero visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-card {
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgb(80 54 99 / .08);
}
.card-eyebrow {
  margin: 0 0 2px;
  color: var(--brand);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.card-title { margin: 0 0 14px; font-size: 1.1rem; }
.card-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.card-status-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
}
.card-status-item div { display: grid; gap: 1px; }
.card-status-item span { color: var(--muted); font-size: .7rem; }
.card-status-item strong { font-size: .88rem; }
.card-status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
}
.card-status-onset { background: var(--coral-soft); }
.card-status-onset .card-status-dot { background: var(--coral); }
.card-status-clean { background: var(--green-soft); }
.card-status-clean .card-status-dot { background: var(--green); }
.card-status-mikveh { background: var(--blue-soft); }
.card-status-mikveh .card-status-dot { background: var(--blue); }
.card-status-vest { background: var(--amber-soft); }
.card-status-vest .card-status-dot { background: var(--amber); }

/* Progress steps strip */
.hero-steps {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgb(80 54 99 / .06);
}
.hero-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.step-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 800;
  color: #fff;
}
.step-label { font-size: .7rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.step-check {
  position: absolute;
  top: -4px;
  inset-inline-end: -5px;
  width: 14px;
  height: 14px;
  padding: 2px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
}
.step-done .step-num { background: var(--green); }
.step-active .step-num { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.step-active .step-label { color: var(--brand); font-weight: 700; }
.step-pending .step-num { background: var(--line); color: var(--muted); }
.step-onset .step-num, .step-onset .step-check { background: var(--coral); color: #fff; }
.step-hefsek .step-num, .step-hefsek .step-check { background: var(--violet); color: #fff; }
.step-clean .step-num, .step-clean .step-check { background: var(--green); color: #fff; }
.step-active.step-clean .step-num { box-shadow: 0 0 0 4px var(--green-soft); }
.step-mikveh .step-num { background: var(--blue); color: #fff; }
.step-connector {
  flex: 1;
  height: 3px;
  margin-bottom: 18px;
  background: var(--line);
  border-radius: 2px;
}
.step-done-line { background: var(--green); }
.step-active-line { background: linear-gradient(to left, var(--line) 40%, var(--green)); }

.about-page .about-step-onset .step-num { background: var(--coral); }
.about-page .about-step-onset .step-label { color: var(--coral); }
.about-page .about-step-hefsek .step-num { background: var(--violet); }
.about-page .about-step-hefsek .step-label { color: var(--violet); }
.about-page .about-step-clean .step-num { background: var(--green); }
.about-page .about-step-clean .step-label { color: var(--green); }
.about-page .about-step-mikveh .step-num { background: var(--blue); }
.about-page .about-step-mikveh .step-label { color: var(--blue); }
.about-page .about-line-onset-hefsek { background: linear-gradient(to left, var(--coral), var(--violet)); }
.about-page .about-line-hefsek-clean { background: linear-gradient(to left, var(--violet), var(--green)); }
.about-page .about-line-clean-mikveh { background: linear-gradient(to left, var(--green), var(--blue)); }

/* ─── Section shared ─── */
.section-header {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.section-header-light .eyebrow { color: var(--accent); }
.section-lead {
  max-width: 520px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.8;
}

/* ─── Features ─── */
.features-section {
  padding: 60px max(20px, calc((100vw - 1100px) / 2));
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--canvas);
  transition: box-shadow .18s ease, transform .18s ease;
}
.feature-card:hover { box-shadow: 0 6px 22px rgb(80 54 99 / .1); transform: translateY(-2px); }
.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.75; }

/* Card accent colors */
.feature-card-coral .feature-icon { background: var(--coral-soft); color: var(--coral); }
.feature-card-coral { border-top: 3px solid var(--coral); }
.feature-card-green .feature-icon  { background: var(--green-soft);  color: var(--green);  }
.feature-card-green  { border-top: 3px solid var(--green);  }
.feature-card-blue .feature-icon   { background: var(--blue-soft);   color: var(--blue);   }
.feature-card-blue   { border-top: 3px solid var(--blue);   }
.feature-card-violet .feature-icon { background: var(--violet-soft); color: var(--violet); }
.feature-card-violet { border-top: 3px solid var(--violet); }
.feature-card-amber .feature-icon  { background: var(--amber-soft);  color: var(--amber);  }
.feature-card-amber  { border-top: 3px solid var(--amber);  }
.feature-card-teal .feature-icon   { background: var(--teal-soft);   color: var(--teal);   }
.feature-card-teal   { border-top: 3px solid var(--teal);   }

/* ─── Process section ─── */
.process-section {
  padding: 64px max(20px, calc((100vw - 1100px) / 2));
}
.process-preview {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Progress steps bar */
.process-steps-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.ps-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}
.ps-circle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
}
.ps-label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.ps-line {
  flex: 1;
  height: 4px;
  margin-bottom: 22px;
  background: var(--line);
  border-radius: 2px;
}
.ps-line-filled { background: var(--green); }
.ps-onset .ps-circle   { background: var(--coral); }
.ps-hefsek .ps-circle  { background: var(--violet); }
.ps-clean .ps-circle   { background: var(--green); }
.ps-mikveh .ps-circle  { background: var(--blue); }
.ps-step-active .ps-label { color: var(--ink); font-weight: 700; }
.ps-step-active .ps-circle { box-shadow: 0 0 0 5px var(--green-soft); }
.ps-step-pending .ps-circle { background: var(--line); color: var(--muted); }
.ps-mikveh.ps-step-pending .ps-circle { background: var(--blue); color: #fff; }
.ps-step-pending .ps-label { color: var(--muted); opacity: .7; }

/* Mini calendar */
.mini-calendar {
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgb(80 54 99 / .07);
}
.mc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.mc-title { font-weight: 700; font-size: 1rem; }
.mc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.mc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
}
.mc-legend-item i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.mc-onset-color  i { background: var(--coral); }
.mc-hefsek-color i { background: var(--violet); }
.mc-clean-color  i { background: var(--green); }
.mc-mikveh-color i { background: var(--blue); }
.mc-vest-color   i { background: var(--amber); }

.mc-weekdays, .mc-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.mc-weekdays { margin-bottom: 4px; }
.mc-weekdays span {
  padding: 4px 2px;
  text-align: center;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
}
.mc-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 2px;
  min-height: 64px;
  background: #fcfbfd;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.mc-heb { font-size: .82rem; font-weight: 800; }
.mc-num { font-size: .62rem; font-weight: 500; color: var(--muted); }
.mc-badge {
  display: block;
  width: calc(100% - 4px);
  padding: 1px 2px;
  border-radius: 3px;
  font-size: .52rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  line-height: 1.5;
}
.mc-day-onset  { background: #fef2f1; border-color: #edaca9; }
.mc-day-hefsek { background: #f5f0fa; border-color: #c0a8d8; }
.mc-day-clean  { background: #ebf5ee; border-color: #90c4a0; }
.mc-day-mikveh { border-color: #7ab0ce; }
.mc-day-vest   { background: #fff6ea; border-color: #dbb87a; }
.mc-day-outside { opacity: .45; }
.mc-day-outside.mc-day-vest { opacity: 1; }
.mc-badge-onset  { background: var(--coral); }
.mc-badge-hefsek { background: var(--violet); }
.mc-badge-clean  { background: var(--green); }
.mc-badge-mikveh { background: var(--blue); }
.mc-badge-vest   { background: var(--amber); }
.mc-disclaimer {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: .72rem;
}

/* ─── Trust section ─── */
.trust-section {
  padding: 56px max(20px, calc((100vw - 1100px) / 2));
  background: var(--brand-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-content {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: start;
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}
.trust-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  flex: 0 0 auto;
}
.trust-icon svg { width: 28px; height: 28px; }
.trust-content .eyebrow { color: var(--accent); }
.trust-content h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.3;
}
.trust-content p {
  max-width: 560px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.8;
}

/* ─── Privacy section ─── */
.privacy-section {
  padding: 64px max(20px, calc((100vw - 1100px) / 2));
  background: var(--paper);
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.privacy-card {
  padding: 26px 22px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
}
.privacy-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
}
.privacy-icon svg { width: 22px; height: 22px; }
.privacy-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.privacy-card p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.75; }

/* ─── CTA section ─── */
.cta-section {
  padding: 0 max(20px, calc((100vw - 1100px) / 2)) 80px;
}
.cta-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 40px;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 52px;
  background: var(--brand-dark);
  border-radius: var(--radius-lg);
  color: #fff;
}
.cta-mark {
  position: relative;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / .3);
  border-radius: 50%;
  font-family: Newsreader, serif;
  font-size: 3.2rem;
  font-weight: 600;
  color: #fff;
}
.cta-mark svg {
  position: absolute;
  top: 13px;
  inset-inline-start: 14px;
  width: 20px;
  height: 20px;
  color: #e9c4d8;
}
.cta-copy .eyebrow { color: #e9c4d8; }
.cta-copy h2 { margin: 0 0 10px; font-size: 1.7rem; line-height: 1.2; }
.cta-copy > p { margin: 0 0 22px; color: rgb(255 255 255 / .75); font-size: .97rem; line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}
.brand-footer { color: var(--brand-dark); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  justify-content: center;
}
.footer-links a {
  padding: 4px 8px;
  color: var(--muted);
  font-size: .85rem;
  text-decoration: none;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.footer-links a:hover { color: var(--brand); background: var(--brand-soft); }
.footer-note {
  margin: 0;
  max-width: 280px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.6;
  text-align: end;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block: 40px;
    gap: 32px;
  }
  .hero-visual { max-width: 480px; }
  .card-status-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-content { grid-template-columns: 1fr; }
  .trust-icon { margin-bottom: 4px; }
  .cta-inner { grid-template-columns: 1fr; gap: 24px; padding: 36px 32px; }
  .cta-mark { width: 80px; height: 80px; font-size: 2.4rem; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-note { text-align: center; max-width: 100%; }
}

@media (max-width: 620px) {
  .header-nav a:not(.nav-cta) { display: none; }
  .hero h1 { font-size: 1.9rem; }
  .features-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .process-steps-bar { padding: 16px 12px; gap: 0; }
  .ps-label { font-size: .65rem; }
  .ps-circle { width: 30px; height: 30px; font-size: .76rem; }
  .mini-calendar { padding: 14px 10px; }
  .mc-header { flex-direction: column; align-items: flex-start; }
  .mc-days { gap: 3px; }
  .mc-day { min-height: 52px; padding: 3px 1px; }
  .mc-heb { font-size: .72rem; }
  .mc-badge { font-size: .45rem; }
  .hero-steps { padding: 12px 14px; }
  .step-label { font-size: .62rem; }
  .cta-inner { padding: 28px 20px; border-radius: var(--radius-md); }
  .card-status-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .hero { padding-block: 28px; }
  .mc-weekdays, .mc-days { gap: 2px; }
  .mc-day { min-height: 44px; }
  .mc-num { display: none; }
}
