@font-face {
  font-family: 'Rubik';
  src: url('assets/rubik.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --indigo: #1F2157;
  --indigo-2: #2B2E72;
  --indigo-soft: #3A3D82;
  --beige: #DFD6CD;
  --beige-2: #EBE5DE;
  --gray: #DFDDDB;
  --paper: #F6F3EF;
  --white: #FFFFFF;
  --ink: #1F2157;
  --ink-2: #4A4C70;
  --ink-3: #6E6F88;
  --line: rgba(31, 33, 87, .12);
  --shadow: 0 1px 2px rgba(31, 33, 87, .05), 0 10px 30px -12px rgba(31, 33, 87, .18);
  --r: 22px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --gutter: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--white); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #8A8DD6; outline-offset: 3px; border-radius: 12px; }

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ico-fill { fill: currentColor; stroke: none; }
svg .dot { fill: currentColor; stroke: none; }

.screen { min-height: 100svh; }

/* ---------- מסך פתיחה ---------- */
.screen-start {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(223, 214, 205, .16), transparent 60%),
    radial-gradient(80% 50% at 100% 110%, rgba(138, 141, 214, .22), transparent 60%),
    var(--indigo);
  color: var(--beige-2);
  display: grid;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) var(--gutter) max(28px, env(safe-area-inset-bottom));
}
.start-inner { width: 100%; max-width: 440px; text-align: center; animation: rise .9s var(--ease) both; }
.start-logo { width: 150px; margin: 0 auto 26px; opacity: .95; }
.start-title { font-size: clamp(30px, 8.4vw, 42px); line-height: 1.18; font-weight: 600; margin: 0 0 12px; color: var(--white); letter-spacing: -.01em; }
.start-sub { margin: 0 auto 34px; max-width: 30ch; color: var(--beige); font-weight: 300; font-size: 18px; }

.birth-form fieldset { border: 0; padding: 0; margin: 0; }
.field-label { display: block; width: 100%; font-size: 15px; letter-spacing: .02em; color: var(--beige); margin-bottom: 10px; padding: 0; }
.date-row { display: grid; grid-template-columns: 1fr 1.5fr 1.25fr; gap: 10px; }
.date-part select {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DFD6CD' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat left 10px center / 16px;
  border: 1px solid rgba(223, 214, 205, .35);
  border-radius: 16px;
  color: var(--white);
  min-height: 58px;
  padding: 0 14px 0 30px;
  font-size: 18px;
  text-align: center;
  text-align-last: center;
  transition: border-color .2s, background-color .2s;
}
.date-part select:focus { border-color: var(--beige); background-color: rgba(255, 255, 255, .14); outline: none; box-shadow: 0 0 0 3px rgba(223, 214, 205, .25); }
.date-part select option { color: var(--indigo); background: var(--white); }
.form-error { color: #FFD9CF; font-size: 15px; margin: 12px 0 0; }

.remember { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 22px 0 4px; font-size: 15px; color: var(--beige-2); cursor: pointer; }
.remember input { width: 20px; height: 20px; accent-color: var(--beige); margin: 0; }
.remember-note { font-size: 13px; color: rgba(223, 214, 205, .7); margin: 0 0 22px; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; min-height: 52px; padding: 0 26px;
  font-weight: 500; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:active { transform: scale(.98); }
.btn-xl { width: 100%; min-height: 60px; font-size: 19px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.screen-start .btn-primary { background: var(--beige); color: var(--indigo); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.screen-start .btn-primary:hover { background: var(--white); }
.btn-text-light { background: none; color: var(--beige); margin-top: 14px; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--indigo); }
.btn-soft { background: var(--white); color: var(--indigo); border: 1px solid var(--line); width: 100%; font-size: 15.5px; padding: 0 14px; white-space: nowrap; }
.btn-soft:hover { border-color: rgba(31, 33, 87, .35); }
.btn-soft[aria-disabled="true"] { opacity: .55; border-style: dashed; cursor: not-allowed; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--line); color: var(--indigo);
  border-radius: 999px; min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 500;
}
.chip svg { width: 18px; height: 18px; }
.chip-strong { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; color: var(--indigo); }
.link-btn { background: none; border: 0; padding: 6px 2px; color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; min-height: 36px; }

/* ---------- מסך תוצאות ---------- */
.screen-results, .screen-calendar {
  max-width: 640px; margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) max(30px, env(safe-area-inset-bottom));
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0 14px; position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--paper) 75%, rgba(246, 243, 239, 0)); }
.topbar-logo { width: 44px; }
.topbar-actions { display: flex; gap: 8px; }

.results-head { margin: 8px 0 18px; }
.eyebrow { margin: 0 0 2px; color: var(--ink-3); font-size: 15px; }
.results-title { font-size: clamp(28px, 7.4vw, 36px); line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -.01em; }

.card { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; position: relative; }
.card-label { font-size: 15px; font-weight: 500; color: var(--ink-3); margin: 0 0 6px; letter-spacing: .01em; }
.card-text { margin: 0; color: var(--ink-2); font-size: 16px; }

.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.card-lifepath { background: linear-gradient(160deg, var(--indigo-2), var(--indigo)); color: var(--beige-2); overflow: hidden; }
.card-lifepath::after {
  content: ''; position: absolute; inset-inline-end: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%;
  border: 1px solid rgba(223, 214, 205, .22); box-shadow: 0 0 0 22px rgba(223, 214, 205, .04), 0 0 0 44px rgba(223, 214, 205, .03);
}
.card-lifepath .card-label { color: var(--beige); }
.card-lifepath .card-text { color: var(--beige-2); }
.big-num { font-size: 86px; line-height: 1; font-weight: 300; margin: 4px 0 10px; color: var(--white); }

.card-peak { background: var(--beige-2); box-shadow: none; border: 1px solid rgba(31, 33, 87, .07); }
.roman { font-family: Georgia, 'Times New Roman', serif; font-size: 54px; line-height: 1; margin: 6px 0 6px; letter-spacing: .06em; color: var(--indigo); }
.roman.roman-star { font-family: inherit; font-size: 40px; letter-spacing: 0; color: var(--indigo-soft); }
.peak-name { font-size: 22px; font-weight: 600; margin: 0 0 4px; }

.stack { display: grid; gap: 14px; margin-top: 14px; }
.cycle { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.cycle-num {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 32px; font-weight: 400; color: var(--indigo);
  background: var(--paper); border: 1px solid var(--beige);
}
.cycle .card-label { margin-bottom: 2px; }
.cycle-title { font-size: 19px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.kv { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.kv b { display: block; font-weight: 500; color: var(--indigo); font-size: 14px; margin-bottom: 1px; }

.section-title { font-size: 22px; font-weight: 600; margin: 34px 0 14px; text-align: center; }

/* ---------- קלף המסר ---------- */
.oracle { perspective: 1400px; max-width: 380px; margin: 0 auto; }
.oracle-card { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: inherit; border-radius: 26px; }
.oracle-inner {
  display: grid; position: relative;
  transform-style: preserve-3d;
  transition: transform 1s var(--ease);
}
.oracle-face { grid-area: 1 / 1; border-radius: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; min-height: 440px; }
.oracle-back {
  background:
    radial-gradient(circle at 50% 38%, rgba(223, 214, 205, .14), transparent 55%),
    repeating-radial-gradient(circle at 50% 38%, transparent 0 22px, rgba(223, 214, 205, .05) 22px 23px),
    linear-gradient(165deg, var(--indigo-2), var(--indigo));
  box-shadow: 0 24px 50px -22px rgba(31, 33, 87, .6);
  padding: 14px;
  display: grid;
}
.oracle-frame {
  border: 1px solid rgba(223, 214, 205, .45); border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  color: var(--beige-2); text-align: center; padding: 24px;
}
.oracle-frame img { width: 112px; opacity: .9; }
.oracle-title { font-size: 22px; font-weight: 500; color: var(--white); }
.oracle-cta {
  font-size: 15px; color: var(--indigo); background: var(--beige); border-radius: 999px; padding: 8px 18px;
  animation: breathe 2.6s ease-in-out infinite;
}
.oracle-front {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, var(--white), var(--paper));
  border: 1px solid var(--beige);
  box-shadow: 0 24px 50px -24px rgba(31, 33, 87, .45);
  padding: 30px 26px 26px;
  display: flex; flex-direction: column; gap: 18px; text-align: center; align-items: center; justify-content: center;
}
.oracle-num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--indigo); color: var(--beige-2); font-size: 26px;
}
.oracle-block { display: flex; flex-direction: column; gap: 4px; }
.oracle-k { font-size: 13px; letter-spacing: .06em; color: var(--ink-3); font-weight: 500; }
.oracle-msg { font-size: 22px; line-height: 1.4; font-weight: 500; color: var(--indigo); max-width: 22ch; }
.oracle-v { font-size: 16px; color: var(--ink-2); max-width: 28ch; }
.oracle.is-open .oracle-inner { transform: rotateY(180deg); }
.oracle.is-open .oracle-card { cursor: default; }
.oracle.is-open .oracle-front .oracle-block { animation: rise .7s var(--ease) both; }
.oracle.is-open .oracle-front .oracle-block:nth-child(2) { animation-delay: .45s; }
.oracle.is-open .oracle-front .oracle-block:nth-child(3) { animation-delay: .6s; }
.oracle.is-open .oracle-front .oracle-block:nth-child(4) { animation-delay: .75s; }

/* ---------- כפתור הלוח ---------- */
.cal-cta { margin: 34px 0 0; text-align: center; }
.btn-cal { background: var(--indigo); color: var(--white); box-shadow: 0 16px 34px -14px rgba(31, 33, 87, .6); font-size: 20px; }
.btn-cal svg { width: 24px; height: 24px; }
.btn-cal:hover { background: var(--indigo-2); }
.cal-cta-sub { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }

.teaser { text-align: center; margin: 40px auto 0; max-width: 34ch; color: var(--ink-2); font-size: 16px; }
.teaser p { margin: 0; }
.teaser::before { content: '✦'; display: block; color: var(--indigo-soft); margin-bottom: 8px; font-size: 14px; }
.teaser-brand { margin-top: 6px !important; font-weight: 500; color: var(--indigo); }

/* ---------- קישור לאקדמיה (משני, אחרי כפתור הלוח) ---------- */
.academy-link { margin: 30px auto 0; max-width: 460px; text-align: center; padding: 22px 20px 20px; border-radius: var(--r); border: 1px solid var(--beige); background: var(--white); }
.academy-link h2 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.academy-link p { margin: 0 0 14px; font-size: 15.5px; color: var(--ink-2); }
.academy-link .btn svg { width: 18px; height: 18px; }

/* ---------- יצירת קשר ---------- */
.contact { margin-top: 40px; padding: 24px 18px; border-radius: var(--r); background: var(--beige-2); }
.contact-title { text-align: center; font-size: 19px; font-weight: 500; margin: 0 0 16px; }
.contact-grid { display: grid; gap: 14px; }
@media (min-width: 560px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-item { background: rgba(255, 255, 255, .55); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; }
.contact-item h3 { font-size: 17px; margin: 0 0 4px; font-weight: 600; }
.contact-item p { font-size: 15px; margin: 0 0 14px; color: var(--ink-2); flex: 1; }

.foot { text-align: center; margin-top: 30px; color: var(--ink-3); font-size: 14px; }
.foot p { margin: 4px 0; }
.foot .fine { font-size: 13px; margin-top: 10px; }

/* ---------- לוח התזמון ---------- */
.cal-intro { color: var(--ink-2); margin: 8px 0 18px; font-size: 16px; }
.cal { padding: 16px 12px 14px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-month { font-size: 20px; font-weight: 600; margin: 0; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { text-align: center; font-size: 13px; color: var(--ink-3); padding: 4px 0; }
.cal-day {
  position: relative; aspect-ratio: 1 / 1.12; min-height: 48px;
  border: 1px solid transparent; border-radius: 14px; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  padding: 2px; color: var(--indigo);
  transition: background-color .15s, border-color .15s, transform .15s;
}
.cal-day .d { font-size: 11px; color: var(--ink-3); line-height: 1; }
.cal-day .n { font-size: 21px; line-height: 1.15; font-weight: 400; }
.cal-day:hover { border-color: rgba(31, 33, 87, .25); }
.cal-day.is-today { border-color: var(--indigo); box-shadow: inset 0 0 0 1px var(--indigo); background: var(--white); }
.cal-day.is-today .d { color: var(--indigo); font-weight: 600; }
.cal-day.is-selected { background: var(--indigo); color: var(--white); }
.cal-day.is-selected .d { color: var(--beige); }
.cal-day.is-blank { background: none; pointer-events: none; }
.mk { display: inline-block; font-style: normal; }
.mk-month { width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-soft); vertical-align: middle; }
.mk-year { font-size: 11px; color: var(--indigo-soft); }
.cal-day .mk-month { position: absolute; bottom: 5px; }
.cal-day .mk-year { position: absolute; top: 3px; inset-inline-start: 5px; }
.cal-day.is-selected .mk-month { background: var(--beige); }
.cal-day.is-selected .mk-year { color: var(--beige); }
.cal-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-hint { font-size: 13px; color: var(--ink-3); margin: 10px 2px 0; }

.day-detail { margin-top: 18px; scroll-margin-top: 80px; }
.day-detail:focus { outline: none; }
.dd-head { margin: 4px 0 12px; }
.dd-head h2 { font-size: 22px; margin: 0; font-weight: 600; }
.dd-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; }
.dd-nums { display: grid; gap: 10px; }
.dd-row { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.dd-row .cycle-num { width: 48px; height: 48px; font-size: 24px; }
.dd-row h3 { margin: 0; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.dd-row p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.dd-row p b { color: var(--indigo); font-weight: 600; }
.dd-extra { display: grid; gap: 10px; margin-top: 14px; }
.dd-extra .card { padding: 16px 18px; }

/* ---------- הנפשות ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(223, 214, 205, .45); } 50% { box-shadow: 0 0 0 9px rgba(223, 214, 205, 0); } }
.reveal { opacity: 0; }
.is-revealed .reveal { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
.screen-calendar .card, .day-detail > * { animation: rise .55s var(--ease) both; }

/* הפחתת תנועה — מהגדרות המכשיר או מהכפתור באפליקציה */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) *, html:not([data-motion="full"]) *::before, html:not([data-motion="full"]) *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
  animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}

.noscript { padding: 30px; text-align: center; }

/* ---------- הרשמה, כניסה ואימות ---------- */
.screen-start .start-inner { padding-block: 8px; }
.auth-form { text-align: start; display: grid; gap: 14px; }
.auth-form .btn-xl { margin-top: 6px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field .field-label { margin: 0; text-align: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field input {
  width: 100%; min-height: 54px; border-radius: 16px; padding: 0 16px; font-size: 17px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(223, 214, 205, .35); color: var(--white);
  transition: border-color .2s, background-color .2s;
}
.field input[dir="ltr"] { text-align: left; }
.field input:focus { border-color: var(--beige); background: rgba(255, 255, 255, .14); outline: none; box-shadow: 0 0 0 3px rgba(223, 214, 205, .25); }
.field input::placeholder { color: rgba(223, 214, 205, .6); }
.field-static { margin: 0; color: var(--beige); font-size: 15px; }
.code-input { font-size: 28px !important; letter-spacing: .4em; text-align: center !important; }
.hint-light { margin: 2px 0 0; font-size: 13px; color: rgba(223, 214, 205, .75); text-align: start; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--beige-2); cursor: pointer; text-align: start; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--beige); }
.check a, .link-light { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.link-light { background: none; border: 0; padding: 6px 2px; min-height: 40px; font-size: 15px; }
.switch { text-align: center; margin: 4px 0 0; color: var(--beige); font-size: 15px; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.dev-note { background: #FFF3C4; color: #5A4500; border-radius: 10px; padding: 8px 12px; font-size: 14px; margin: 0; }
.btn[disabled] { opacity: .6; cursor: progress; }
.pulse { animation: breathe-logo 1.8s ease-in-out infinite; }
@keyframes breathe-logo { 0%, 100% { opacity: .55; transform: scale(.98); } 50% { opacity: .95; transform: scale(1); } }
.exp-actions { display: grid; gap: 10px; margin: 26px 0 8px; }
.btn-light { background: rgba(255, 255, 255, .1); color: var(--white); border: 1px solid rgba(223, 214, 205, .4); }
.btn-light:hover { background: rgba(255, 255, 255, .16); }
@media (max-width: 360px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- החשבון שלי ---------- */
.acct-card { margin-top: 14px; }
.acct-list { margin: 0; display: grid; gap: 12px; }
.acct-list div { display: grid; gap: 1px; }
.acct-list dt { font-size: 13.5px; color: var(--ink-3); }
.acct-list dd { margin: 0; font-size: 17px; font-weight: 500; }
.acct-list dd[dir="ltr"] { text-align: right; }
.acct-note { font-size: 14px; color: var(--ink-2); margin: 14px 0 0; }
.acct-note a { color: var(--indigo); }
.acct-card .btn { margin-top: 10px; }
.acct-msg { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; min-height: 1em; }
.danger { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.danger .link-btn { color: #8A2B2B; }
.notice { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--beige-2); color: var(--ink-2); font-size: 14.5px; }

/* גרסת הדגמה (בלי הרשמה) מול הגרסה המלאה */
html:not([data-demo]) .demo-only, html[data-demo] .full-only { display: none !important; }
