/* ============================================================
   Brand tokens copied from omri-iram.co.il's "Modern Academy"
   system (assets/style.css :root) — deliberately duplicated, not
   shared: this app evolves independently. If the main site's
   palette changes, update here by hand too.
   ============================================================ */
:root {
  --bg: #f9f9ff;
  --bg-alt: #f0f3ff;
  --bg-card: #ffffff;
  --navy: #002045;
  --navy-container: #1a365d;
  --navy-soft: #d6e3ff;
  --ochre: #ffc250;
  --ochre-deep: #d69e2e;
  --ochre-text: #7d5700;
  --ink: #121c2c;
  --ink-soft: #43474e;
  --line: #c4c6cf;
  --font-display: "Rubik", sans-serif;
  --font-ui: "Assistant", sans-serif;
  --radius: 8px;
  --radius-card: 16px;
  --shadow-soft: 0 4px 12px rgba(18, 28, 44, .05);
  --shadow-lift: 0 8px 16px rgba(18, 28, 44, .08);
  --wrap: 900px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); margin: 0 0 14px; }
p { margin: 0 0 14px; }
a { color: var(--navy); }

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 17px;
  padding: 15px 34px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--ochre); color: var(--navy); box-shadow: var(--shadow-soft); width: 100%; }
.btn-primary:hover { background: var(--ochre-deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe57; }

/* ---------- hero + big countdown ---------- */
.hero { padding: 40px 0 44px; text-align: center; background: var(--navy); }
.countdown-label { color: var(--navy-soft); font-weight: 700; font-size: 15px; margin: 0 0 14px; }

.countdown-hero {
  display: flex; justify-content: center; gap: 10px;
  direction: ltr; margin: 0 auto 28px;
}
.countdown-hero .unit {
  display: flex; flex-direction: column; align-items: center;
  background: var(--navy-container); border-radius: var(--radius-card);
  padding: 10px 6px; min-width: 68px;
}
.countdown-hero .num {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(38px, 11vw, 72px); line-height: 1;
  color: var(--ochre); font-variant-numeric: tabular-nums;
}
.countdown-hero .unit-label { color: var(--navy-soft); font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.countdown-hero.started .unit { opacity: .55; }
@media (max-width: 480px) {
  .countdown-hero { gap: 6px; }
  .countdown-hero .unit { min-width: 60px; padding: 8px 4px; }
}

.hero h1 { color: #fff; font-size: clamp(26px, 4.6vw, 38px); line-height: 1.25; }
.hero .lede { font-size: 17.5px; color: var(--navy-soft); max-width: 56ch; margin: 0 auto 26px; }
.hero .cta { max-width: 340px; margin: 0 auto; }
.micro { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: clamp(24px, 3.5vw, 30px); }

/* ---------- workshop cards ---------- */
.workshops { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .workshops { grid-template-columns: 1fr; } }
.workshop-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 22px; box-shadow: var(--shadow-soft);
}
.workshop-card .day { color: var(--ochre-text); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.workshop-card h3 { font-size: 19px; margin-bottom: 8px; }
.workshop-card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 0; }

/* ---------- how it works (3 steps) ---------- */
.steps { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin: 0 auto; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  background: var(--ochre); color: var(--navy);
  font-family: var(--font-display); font-weight: 900; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.step-body h3 { font-size: 19px; margin-bottom: 4px; }
.step-body p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 0; }
.step-body .choices { padding-inline-start: 20px; margin: 10px 0 0; }
.step-body .choices li { margin-bottom: 8px; font-size: 15.5px; color: var(--ink); font-weight: 600; }

/* ---------- win rules ---------- */
.rules { background: var(--navy-container); color: #fff; border-radius: var(--radius-card); padding: 32px; }
.rules h2 { color: #fff; }
.rules ol { padding-inline-start: 22px; margin: 0; }
.rules li { margin-bottom: 12px; font-size: 16.5px; }
.rules .meeting-line { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); color: var(--navy-soft); font-weight: 600; }

/* ---------- about Omri ---------- */
.about {
  display: flex; gap: 24px; align-items: center; max-width: 760px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 26px 28px; box-shadow: var(--shadow-soft);
}
.about-photo {
  flex: 0 0 auto; width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--ochre);
}
.about-body h2 { font-size: clamp(21px, 3vw, 26px); margin-bottom: 10px; }
.about-body p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 0; }
@media (max-width: 620px) {
  .about { flex-direction: column; text-align: center; padding: 24px 20px; }
  .about-photo { width: 120px; height: 120px; }
}

/* ---------- testimonials / social proof ---------- */
.proof-stats { text-align: center; color: var(--ink-soft); font-weight: 600; max-width: 60ch; margin: -6px auto 26px; }
.testimonials { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
@media (max-width: 680px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 22px 24px; box-shadow: var(--shadow-soft); margin: 0;
}
.testimonial blockquote {
  margin: 0 0 12px; font-size: 17px; line-height: 1.5; color: var(--ink); font-weight: 600;
}
.testimonial blockquote::before { content: "“"; color: var(--ochre-deep); font-size: 26px; font-weight: 900; margin-inline-end: 2px; }
.testimonial figcaption { color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }

/* ---------- per-session time choice ---------- */
.session-rows { display: flex; flex-direction: column; gap: 10px; }
.session-row {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
}
.session-row-default {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.session-row-label { font-size: 14.5px; font-weight: 600; }
.segmented { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.segmented label {
  display: block; padding: 8px 14px; font-size: 14px; cursor: pointer;
  background: #fff; color: var(--ink-soft);
}
.segmented label:has(input:checked) { background: var(--navy); color: #fff; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }

.session-row-alt { margin-top: 8px; }
.session-row-alt select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14.5px; font-family: inherit; background: #fff8ec; border-color: var(--ochre-deep);
}
.alt-toggle {
  background: none; border: none; padding: 6px 0 0; margin: 0;
  font: inherit; font-size: 13px; color: var(--ink-soft); text-decoration: underline;
  cursor: pointer;
}
.alt-toggle:hover { color: var(--navy); }

/* ---------- form ---------- */
.reg-form {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 30px 26px; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 18px;
  max-width: 560px; margin: 0 auto;
}
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15.5px; font-family: inherit; background: #fff; color: var(--ink);
}
.field textarea { min-height: 70px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy-soft); }

.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
  cursor: pointer; font-size: 15px;
}
.radio-option:has(input:checked) { border-color: var(--ochre-deep); background: #fff8ec; }
.radio-option input { accent-color: var(--navy); width: 18px; height: 18px; }
.radio-option .dates { color: var(--ink-soft); font-size: 13.5px; display: block; }

.form-msg { font-size: 14.5px; font-weight: 700; display: none; text-align: center; }
.form-msg.err { display: block; color: #ba1a1a; }

/* ---------- thank-you state ---------- */
.thanks { text-align: center; padding: 30px 10px; }
.thanks .check { font-size: 46px; margin-bottom: 10px; }
.thanks .wa-btn { max-width: 320px; margin: 20px auto 0; }
[hidden] { display: none !important; }

/* ---------- status page ---------- */
.status-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 26px; box-shadow: var(--shadow-soft); max-width: 520px; margin: 40px auto;
}
.status-progress { display: flex; gap: 8px; margin: 16px 0; }
.status-progress .dot { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.status-progress .dot.on { background: var(--ochre-deep); }
.won-banner { background: #e6f7ec; color: #1a7a3a; border-radius: var(--radius); padding: 14px; font-weight: 700; text-align: center; margin-bottom: 16px; }

/* ---------- admin ---------- */
.admin-topbar { background: var(--navy); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.admin-topbar a { color: var(--navy-soft); font-size: 14px; text-decoration: none; }
.admin-wrap { max-width: 1200px; margin: 24px auto; padding: 0 20px; }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); font-size: 14px; }
table.admin-table th, table.admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: center; }
table.admin-table th { background: var(--bg-alt); font-family: var(--font-display); }
table.admin-table td:first-child, table.admin-table th:first-child { text-align: right; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.pill.yes { background: #e6f7ec; color: #1a7a3a; }
.pill.no { background: #fbe9e9; color: #ba1a1a; cursor: pointer; }
.pill.won { background: var(--ochre); color: var(--navy); }
form.inline { display: inline; }
.link-btn { background: none; border: none; padding: 0; cursor: pointer; font: inherit; }
.admin-filters { margin-bottom: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-filters select, .admin-filters a.btn { font-size: 14px; }
textarea.paste-box { width: 100%; min-height: 220px; font-family: monospace; font-size: 13px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.meeting-input { width: 90px; font-size: 12.5px; padding: 4px 6px; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- admin content editor ---------- */
.content-form { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.content-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.content-field .default-hint { font-weight: 400; color: var(--ink-soft); font-size: 12.5px; margin-inline-start: 6px; }
.content-field input, .content-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14.5px; font-family: inherit;
}
.content-field textarea { min-height: 70px; resize: vertical; }
.content-saved { background: #e6f7ec; color: #1a7a3a; border-radius: var(--radius); padding: 12px 16px; font-weight: 700; margin-bottom: 16px; }
