/* ============================================================================
   Entry page: story + sign-in on one screen. Purplle purple theme.
   ============================================================================ */
.ep { --pu: #5B21B6; --pu7: #6D28D9; --pu1: #F3EFFF; --pu2: #E4DBFB; --pk: #D946EF; --nv: #1A1245; --tx: #1B1536; --mu: #5E5878; --ln: #E7E2F3;
  color: var(--tx); background: #fff; min-height: 100vh; min-height: 100dvh; font-family: var(--font); display: flex; flex-direction: column; }
.ep button { font-family: inherit; }
.ep svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ep .grow { flex: 1; }
.ep ul { list-style: none; margin: 0; padding: 0; }

/* header */
.ep-head { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--ln); }
.ep-bar { max-width: 1480px; margin: 0 auto; padding: 0 20px; height: 68px; display: flex; align-items: center; gap: 20px; }
.ep-brand { display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--nv); font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.ep-brand .mark { height: 34px; width: auto; }
.ep-brand span { border-left: 0; padding-left: 0; line-height: 1.1; white-space: nowrap; }
.ep-links { display: none; gap: 14px; }
.ep-links button { background: none; border: 0; color: var(--nv); font-size: 16px; font-weight: 500; padding: 8px 12px; cursor: pointer; border-bottom: 2.5px solid transparent; }
.ep-links button.on { color: var(--pu); font-weight: 600; border-bottom-color: var(--pu); }
.ep-links button:hover { color: var(--pu); }
.ep-burger { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; color: var(--nv); cursor: pointer; border-radius: 10px; }
.ep-burger svg { width: 26px; height: 26px; }
.ep-menu { padding: 4px 20px 14px; border-top: 1px solid var(--ln); background: #fff; }
.ep-menu[hidden] { display: none; }
.ep-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; font-size: 17px; padding: 14px 2px; color: var(--tx); border-bottom: 1px solid var(--pu1); cursor: pointer; }
.ep button:focus-visible, .ep input:focus-visible { outline: 3px solid #A78BFA; outline-offset: 2px; }
@media (min-width: 900px) { .ep-links { display: flex; } .ep-burger { display: none; } .ep-menu { display: none !important; } .ep-bar { height: 80px; padding: 0 64px; } .ep-brand .mark { height: 44px; } }
@media (max-width: 420px) { .ep-brand span { font-size: 14px;  } .ep-brand { gap: 10px; } .ep-brand .mark { height: 28px; } }

/* hero */
.ep-hero { position: relative; flex: 1; overflow: hidden; color: #fff;
  background: radial-gradient(1100px 600px at 18% 100%, #5B21B6 0%, transparent 60%), linear-gradient(135deg, #140D3C 0%, #1F1458 55%, #2B1A78 100%); }
.ep-photo { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; position: relative; z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%, #000 86%, transparent 100%), linear-gradient(to bottom, #000 0, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 30%, #000 86%, transparent 100%), linear-gradient(to bottom, #000 0, #000 70%, transparent 100%); mask-composite: intersect; }
.ep-grid { position: relative; z-index: 2; max-width: 1480px; margin: 0 auto; padding: 28px 20px 24px; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.ep-copy h1 { font-size: clamp(42px, 11vw, 84px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 0 0 18px; color: #fff; }
.ep-copy h1 em { font-style: normal; background: linear-gradient(90deg, #E879F9, #A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ep-lead { font-size: clamp(17px, 2.4vw, 22px); line-height: 1.45; color: #E6E0FA; max-width: 15em; margin: 0 0 26px; }
.ep-feats { display: grid; gap: 14px; }
.ep-feats li { display: flex; align-items: center; gap: 16px; }
.ep-feats b { display: block; font-size: 18px; font-weight: 650; }
.ep-feats li > div > span { display: block; font-size: 15px; color: #D4CCF1; margin-top: 1px; }
.ep-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; }
.ep-ic svg { width: 28px; height: 28px; }
.ep-ic.v { background: linear-gradient(135deg, #7C3AED, #5B21B6); } .ep-ic.p { background: linear-gradient(135deg, #F0509B, #DB2777); } .ep-ic.g { background: linear-gradient(135deg, #10B981, #059669); }

/* sign-in card */
.ep-cardwrap { order: -1; }
.ep-card { background: #fff; color: var(--tx); border-radius: 22px; padding: 26px 22px 22px; box-shadow: 0 24px 60px rgba(10, 6, 40, .4); position: relative; overflow: hidden; max-width: 520px; margin: 0 auto; width: 100%;
  background-image: radial-gradient(260px 200px at 100% 0, #EDE5FF 0, transparent 70%); }
.ep-cardtop { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.ep-cardlogo { height: 40px; width: auto; display: block; }
.ep-badge { width: 54px; height: 62px; display: grid; place-items: center; color: #8B5CF6; position: absolute; right: 22px; top: 26px; }
.ep-badge svg { width: 54px; height: 54px; stroke-width: 1.4; }
.ep-panel h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 6px; color: var(--nv); line-height: 1.1; }
.ep-panel .sub { color: var(--mu); font-size: 17px; line-height: 1.4; margin: 0 0 18px; max-width: 17em; }
.ep-panel .field { margin-bottom: 14px; }
.ep-panel .field label { font-size: 15px; font-weight: 650; color: var(--nv); margin-bottom: 6px; display: block; }
.ep-panel input[type=text], .ep-panel input[type=password], .ep-panel input[type=email] { background: #fff; border: 1.5px solid #D9D3EA; border-radius: 10px; min-height: 52px; font-size: 16px; }
.ep-panel input:focus { border-color: var(--pu7); box-shadow: 0 0 0 4px rgba(109, 40, 217, .16); }
.ep-panel .pwshow { color: var(--pu); }
.ep-panel .check { margin: 2px 0 16px; color: var(--mu); }
.ep-panel .check input { accent-color: var(--pu); }
.ep-panel .btn-primary { width: 100%; min-height: 54px; border-radius: 10px; font-size: 19px; font-weight: 700; background: linear-gradient(180deg, #6D28D9, #5B21B6); color: #fff; border: 0; cursor: pointer; transition: filter .18s; }
.ep-panel .btn-primary:hover:not(:disabled) { filter: brightness(1.1); background: linear-gradient(180deg, #6D28D9, #5B21B6); }
.ep-panel .btn-primary:disabled { background: #C9C2DD; }
.ep-panel .btn-line { border-color: #D9D3EA; color: var(--nv); border-radius: 10px; }
.ep-panel .btn-text { color: var(--pu); font-weight: 600; background: none; border: 0; cursor: pointer; font-size: 15px; padding: 6px 2px; min-height: 0; }
.ep-panel .or { color: var(--mu); } .ep-panel .or::before, .ep-panel .or::after { background: var(--ln); }
.ep-panel .alt { color: var(--mu); }
.ep-panel .msg.info { background: var(--pu1); color: var(--nv); }
.ep-help { display: flex; gap: 14px; align-items: flex-start; background: var(--pu1); border-radius: 14px; padding: 16px; margin-top: 18px; }
.ep-hic { color: var(--pu); flex: none; } .ep-hic svg { width: 36px; height: 36px; stroke-width: 1.5; }
.ep-help b { display: block; font-size: 16px; color: var(--nv); } .ep-help div > span { display: block; font-size: 14.5px; color: var(--mu); margin: 2px 0 6px; }
.ep-help button { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--pu); font-weight: 650; font-size: 15px; cursor: pointer; padding: 0; }
.ep-help button svg { width: 16px; height: 16px; }

/* weekly strip */
.ep-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: rgba(243, 239, 255, .96); color: var(--nv); border-radius: 18px; padding: 8px 4px; box-shadow: 0 14px 40px rgba(10, 6, 40, .3); }
.ep-strip li { padding: 16px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ep-strip li:nth-child(odd) { border-right: 1px solid #D9D0F2; } .ep-strip li:nth-child(-n+2) { border-bottom: 1px solid #D9D0F2; }
.ep-strip b { font-size: 16px; line-height: 1.2; font-weight: 700; }
.ep-strip li > span:last-child { font-size: 13.5px; color: var(--mu); line-height: 1.3; }
.ep-sic { width: 40px; height: 40px; display: grid; place-items: center; color: var(--pu); margin-bottom: 4px; } .ep-sic svg { width: 32px; height: 32px; }
.ep-strip li:nth-child(2) .ep-sic { color: #DB2777; } .ep-strip li:nth-child(3) .ep-sic { color: #059669; }

/* values bar */
.ep-vals { background: #fff; border-top: 1px solid var(--ln); display: grid; grid-template-columns: 1fr 1fr; padding: 6px 12px; }
.ep-vals li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 6px; font-size: 15px; font-weight: 500; color: var(--nv); text-align: left; }
.ep-vals li span { color: var(--pu); flex: none; } .ep-vals li svg { width: 26px; height: 26px; }

/* desktop: three zones - story left, photo middle, card right */
@media (min-width: 1000px) {
  .ep-hero { min-height: 780px; }
  .ep-photo { position: absolute; left: 31%; top: 0; height: 100%; width: 40%; max-width: none; margin: 0; object-fit: cover; object-position: 50% 0; }
  .ep-grid { padding: 36px 56px 28px; grid-template-columns: minmax(0, 1fr) 470px; grid-template-areas: "copy card" "strip card"; column-gap: 48px; row-gap: 0; align-content: stretch; }
  .ep-copy { grid-area: copy; max-width: 400px; padding-top: 10px; }
  .ep-cardwrap { grid-area: card; order: 0; align-self: center; }
  .ep-strip { grid-area: strip; grid-template-columns: repeat(4, 1fr); align-self: end; margin-top: 24px; max-width: 780px; }
  .ep-strip li { border: 0 !important; padding: 18px 10px; } .ep-strip li + li { border-left: 1px solid #D9D0F2 !important; }
  .ep-vals { grid-template-columns: repeat(4, 1fr); padding: 6px 64px; } .ep-vals li { padding: 22px 8px; font-size: 17px; }
  .ep-vals li + li { border-left: 1px solid var(--ln); }
}
@media (min-width: 1000px) and (max-width: 1260px) { .ep-photo { left: 35%; width: 36%; object-position: 40% 0; } .ep-copy h1 { font-size: 64px; } .ep-grid { grid-template-columns: minmax(0, 1fr) 430px; padding-left: 40px; padding-right: 40px; } }
/* tablet/phone: photo sits between the card and the story, faded into the purple */
@media (max-width: 999px) { .ep-photo { max-width: 420px; margin-bottom: -40px; } .ep-copy { order: 1; } .ep-strip { order: 2; } }
@media (max-width: 380px) { .ep-panel h1 { font-size: 29px; } .ep-badge { display: none; } .ep-card { padding: 22px 16px 18px; } }
@media (prefers-reduced-motion: reduce) { .ep * { transition: none !important; } }

.ep-modal { position: fixed; inset: 0; z-index: 100; background: rgba(11,27,51,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ep-sheet { background: #fff; color: #1B1536; width: 100%; max-width: 480px; max-height: 88vh; overflow: auto; border-radius: 18px; padding: 28px 26px 24px; position: relative; box-shadow: 0 24px 60px rgba(11,27,51,.35); }
.ep-sheet h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 28px 14px 0; }
.ep-sheet h3 { font-size: 15px; margin: 16px 0 4px; }
.ep-sheet p { margin: 0; color: #44516A; font-size: 15px; line-height: 1.55; }
.ep-sheet .ep-btn { width: 100%; margin-top: 22px; }
.ep-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; background: #F3EFFF; border: 0; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: #1A1245; }
.ep-x svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.ep-sheet .ep-btn, .ep-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 12px; font-size: 16px; font-weight: 650; cursor: pointer; border: 0; }
.ep-btn.primary { background: #5B21B6; color: #fff; }


/* desktop: whole page fits one screen, no scrolling */
@media (min-width: 1000px) {
  .ep { min-height: 100dvh; }
  .ep-bar { height: 64px; } .ep-brand .mark { height: 36px; }
  .ep-hero { min-height: 0; }
  .ep-grid { padding-top: 22px; padding-bottom: 18px; }
  .ep-copy h1 { font-size: min(76px, 8.6vh); margin-bottom: 12px; }
  .ep-lead { font-size: min(21px, 2.6vh); margin-bottom: 16px; }
  .ep-feats { gap: 10px; } .ep-ic { width: 46px; height: 46px; border-radius: 12px; } .ep-ic svg { width: 24px; height: 24px; }
  .ep-feats b { font-size: 17px; } .ep-feats li > div > span { font-size: 14px; }
  .ep-strip { margin-top: 14px; } .ep-strip li { padding: 10px 8px; gap: 2px; } .ep-sic { height: 30px; width: 30px; margin-bottom: 0; } .ep-sic svg { width: 26px; height: 26px; }
  .ep-strip b { font-size: 15px; } .ep-strip li > span:last-child { font-size: 12.5px; }
  .ep-card { padding: 18px 22px 16px; border-radius: 18px; }
  .ep-cardlogo { height: 32px; } .ep-badge { top: 18px; width: 44px; height: 44px; } .ep-badge svg { width: 44px; height: 44px; }
  .ep-panel h1 { font-size: 28px; margin: 6px 0 2px; }
  .ep-panel .sub { font-size: 15px; margin: 0 0 10px; max-width: none; }
  .ep-panel .field { margin-bottom: 8px; } .ep-panel .field label { font-size: 14px; margin-bottom: 4px; }
  .ep-panel input[type=text], .ep-panel input[type=password], .ep-panel input[type=email] { min-height: 44px; }
  .ep-panel .check { margin: 0 0 10px; font-size: 13.5px; }
  .ep-panel .btn-primary { min-height: 46px; font-size: 17px; }
  .ep-panel .auth-links.one { margin: 6px 0 0; } .ep-panel .or { margin: 6px 0; } .ep-panel .btn-line { min-height: 42px; font-size: 15px; } .ep-panel .alt { margin: 8px 0 0; font-size: 14px; }
  .ep-help { padding: 10px 14px; margin-top: 10px; gap: 12px; align-items: center; } .ep-hic svg { width: 28px; height: 28px; }
  .ep-help div > span { display: none; } .ep-help b { display: inline; margin-right: 10px; } .ep-help button { font-size: 14px; }
  .ep-vals li { padding: 10px 8px; font-size: 15px; } .ep-vals { padding-top: 0; padding-bottom: 0; }
}
@media (min-width: 1000px) {
  .ep-bar { height: 58px; } .ep-brand .mark { height: 32px; }
  .ep-grid { padding-top: 14px; padding-bottom: 12px; }
  .ep-card { padding: 14px 20px 12px; } .ep-panel .check { margin-bottom: 8px; }
  .ep-panel h1 { font-size: 26px; } .ep-panel .field { margin-bottom: 6px; }
  .ep-panel input[type=text], .ep-panel input[type=password], .ep-panel input[type=email] { min-height: 40px; }
  .ep-panel .btn-primary { min-height: 42px; } .ep-panel .btn-line { min-height: 38px; }
  .ep-panel .or { margin: 4px 0; } .ep-panel .alt { margin: 6px 0 0; } .ep-help { margin-top: 8px; padding: 8px 12px; }
  .ep-copy h1 { font-size: min(72px, 8vh); }
  .ep-strip li { padding: 8px 6px; } .ep-vals li { padding: 7px 8px; } .ep-credit { padding: 5px 12px 7px; font-size: 13px; }
}
@media (min-width:1000px) and (max-height:790px){ .ep-help{display:none} .ep-copy h1{font-size:60px} }

.ep > main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ep-hero { flex: 1; }
.ep-credit { background: #fff; border-top: 1px solid var(--ln); display: flex; justify-content: center; padding: 6px 12px; }
.ep-cr { display: inline-flex; align-items: center; gap: 10px; }
.ep-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #7C3AED, #D946EF); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; letter-spacing: .02em; }
.ep-crt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.ep-crt small { font-size: 10.5px; color: var(--mu); letter-spacing: .04em; }
.ep-crt b { font-size: 14px; color: var(--nv); font-weight: 650; }
.ep-crr { font-size: 12px; font-weight: 600; color: var(--pu); background: var(--pu1); border-radius: 999px; padding: 4px 10px; }
@media (min-width: 1000px) { .ep-credit { padding: 4px 12px; } }
@media (min-width:1000px){ .ep-hero{display:flex;flex-direction:column;justify-content:center} .ep-grid{width:100%;padding-top:20px;padding-bottom:20px} }
