/* ============ שרים קריוקי — song submission landing page ============
   Full RTL, everything right-aligned (client request). Purple/magenta theme
   replicated from the approved mockups. Static page — no build step, ready
   for a later WordPress port. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  --ink: #16101f;
  --muted: #6f6a80;
  --line: #e5e2ee;
  --bg-light: #f6f5fa;
  --card: #ffffff;
  --purple: #7c3aed;
  --violet: #8b5cf6;
  --magenta: #e13bfa;
  --pink: #ff3bd4;
  --grad: linear-gradient(90deg, var(--violet), var(--magenta));
  --dark-1: #0a0612;
  --dark-2: #171028;
  --ok: #16a34a;
  --err: #d92d20;
  --radius: 16px;
}
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* anchored sections stop clear of the sticky topbar (90px tall + breathing room) */
#how, #stats, #contact { scroll-margin-top: 104px; }
body {
  overflow-x: clip; /* full-bleed strips use 100vw, which includes the scrollbar */
  font-family: "Heebo", "Arial Hebrew", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-light);
  direction: rtl;
  text-align: right;
  line-height: 1.65;
}
h1, h2, h3 { text-wrap: balance; margin: 0; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.arr { display: inline-block; margin-inline-start: 8px; }
.ltr { direction: ltr; text-align: right; }

/* ---------- header ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 5vw;
  background: var(--dark-1);
  color: #fff;
  position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.brand-mark i {
  width: 5px; border-radius: 3px; background: var(--grad);
  animation: eq 1.4s ease-in-out infinite;
}
.brand-mark i:nth-child(1) { height: 12px; animation-delay: 0s; }
.brand-mark i:nth-child(2) { height: 24px; animation-delay: .15s; }
.brand-mark i:nth-child(3) { height: 30px; animation-delay: .3s; }
.brand-mark i:nth-child(4) { height: 20px; animation-delay: .45s; }
.brand-mark i:nth-child(5) { height: 10px; animation-delay: .6s; }
@keyframes eq { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
@media (prefers-reduced-motion: reduce) {
  .brand-mark i, .hero-eq i { animation: none; }
  .reveal:not(.in) { opacity: 1; transform: none; }
  .reveal { transition: none; }
}
.brand-text b { display: block; font-size: 1.2rem; font-weight: 900; }
.brand-text small { color: #b9b3cc; font-size: .74rem; }
.topnav { display: flex; align-items: center; gap: 26px; }
.topnav a { color: #d9d4ea; text-decoration: none; font-size: .92rem; }
.topnav a:hover { color: #fff; }
.secure { color: #b9b3cc; font-size: .85rem; }

/* hamburger — mobile only; the topbar is sticky+positioned, so the panel
   drops right under it */
.menu-btn { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 8px; }
.menu-btn .ic { width: 34px; height: 34px; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  #nav-home {
    display: none;
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark-1);
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 22px 34px rgba(0, 0, 0, .4);
    padding: 6px 5vw 14px;
  }
  .menu-open #nav-home { display: flex; }
  #nav-home a { padding: 13px 0; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .22); }
  #nav-home a:last-child { border-bottom: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate; /* lets the ::before photo sit above our background, below content */
  background:
    radial-gradient(720px 420px at 82% 8%, rgba(139, 92, 246, .38), transparent 65%),
    radial-gradient(560px 420px at 12% 78%, rgba(255, 59, 212, .22), transparent 60%),
    linear-gradient(160deg, var(--dark-1) 0%, var(--dark-2) 60%, var(--dark-1) 100%);
  color: #fff;
  padding: 72px 5vw 40px;
}
/* a giant, faint twin of the logo's equalizer breathes along the band's floor
   (bars are generated in script.js; same eq keyframes as the brand mark) */
.hero-eq {
  position: absolute; inset: auto 0 0 0; height: 130px;
  display: flex; align-items: flex-end; gap: clamp(3px, .55vw, 9px);
  padding: 0 2vw;
  z-index: -2;                  /* beneath the singer photo (-1): the image covers
                                   the bars, they peek through its feather */
  opacity: .15;
  pointer-events: none;
  overflow: hidden;
  /* bars live on BOTH sides of the singer but never on him: visible at the far
     left strip, silent across the photo zone, back in full right of it */
  -webkit-mask-image: linear-gradient(to right, #000 0 5%, transparent 13% 48%, #000 68%);
          mask-image: linear-gradient(to right, #000 0 5%, transparent 13% 48%, #000 68%);
}
.hero-eq i {
  flex: 1;
  height: calc(var(--h, 50) * 1%);
  border-radius: 4px 4px 0 0;
  background: var(--grad);
  transform-origin: bottom;
  animation: eq 1.6s ease-in-out infinite;
}

/* scroll-reveal (classes come from script.js — with no JS everything just shows).
   The hidden state lives on :not(.in), so once revealed no transform sticks
   around to fight .cta:hover's lift */
.reveal { transition: opacity .65s ease, transform .65s ease; }
.reveal:not(.in) { opacity: 0; transform: translateY(26px); }

/* the singer photo is a translucent accent, feathered on both edges (baked into
   the webp) and height-filling; the percentage position makes it drift inward
   proportionally on wider screens instead of sticking to the frame edge */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: url("img/hero-singer.webp") 18% top / auto 100% no-repeat;
  opacity: .6;
  pointer-events: none;
}
@media (max-width: 760px) {
  /* stacked text sits right on the photo — dim it further */
  .hero::before { opacity: .38; }
  /* the photo spans the full width here and is only ambient, so the equalizer
     moves above it, unmasked and brighter — otherwise it all but disappears */
  .hero-eq {
    z-index: -1;
    opacity: .22;
    -webkit-mask-image: none;
            mask-image: none;
  }
}
.hero-inner { max-width: 860px; margin: 0 auto; text-align: right; }
.hero h1, .hero-sub { text-shadow: 0 2px 20px rgba(10, 6, 18, .6); }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; line-height: 1.25; }
.hero-sub { color: #cfc9df; max-width: 560px; font-size: 1.05rem; margin: 18px 0 28px; }
.cta {
  background: var(--grad);
  color: #fff; border: none; cursor: pointer;
  font-family: inherit; font-size: 1.05rem; font-weight: 700;
  padding: 15px 34px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(139, 92, 246, .45);
  transition: transform .12s, box-shadow .12s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(225, 59, 250, .5); }
.cta:disabled { opacity: .55; cursor: default; transform: none; }
.ghost {
  background: transparent; color: var(--purple);
  border: 1.5px solid var(--purple); border-radius: 14px;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  padding: 14px 28px; cursor: pointer;
}
.ghost:hover { background: rgba(124, 58, 237, .07); }

.partners {
  max-width: 980px; margin: 56px auto 0;
  background: rgba(16, 10, 28, .82);
  border: 1px solid rgba(139, 92, 246, .25);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-align: center;
}
.partners p { margin: 0 0 14px; color: #cfc9df; font-size: .95rem; }
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 84px; }
/* the real partner logos, cut from the client's sprite; equal-height crops so
   one CSS height keeps the sprite's own visual balance (2x source for retina) */
.plogo { height: 42px; width: auto; display: block; }

/* ---------- benefits (light) ---------- */
.benefits { padding: 64px 5vw; max-width: 1080px; margin: 0 auto; }
.benefits > h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; }
.wave-divider { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 26px; margin: 18px 0 34px; }
.wave-divider i { width: 5px; border-radius: 3px; background: var(--grad); }
.wave-divider i:nth-child(1) { height: 10px; } .wave-divider i:nth-child(2) { height: 18px; }
.wave-divider i:nth-child(3) { height: 26px; } .wave-divider i:nth-child(4) { height: 18px; }
.wave-divider i:nth-child(5) { height: 10px; }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.benefit-grid article { text-align: center; padding: 8px 14px; }
.benefit-grid article + article { border-inline-end: 1px solid var(--line); }
.bicon {
  width: 74px; height: 74px; margin: 0 auto 16px;
  border: 2px solid var(--magenta); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: var(--magenta);
}
.benefit-grid h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.45; margin-bottom: 10px; }
.benefit-grid p { color: var(--muted); font-size: .93rem; margin: 0; }

/* full-bleed dark strip; the mic photo (right edge feathered in the webp)
   anchors its left end, hero-style glows carry the rest */
.stats {
  position: relative;
  isolation: isolate;
  margin-bottom: 72px;
  background:
    radial-gradient(720px 420px at 78% 12%, rgba(139, 92, 246, .3), transparent 65%),
    radial-gradient(560px 420px at 8% 85%, rgba(255, 59, 212, .18), transparent 60%),
    linear-gradient(160deg, var(--dark-1) 0%, var(--dark-2) 60%, var(--dark-1) 100%);
  color: #fff;
  padding: 44px 5vw 48px; text-align: center;
}
.stats::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("img/stats-mic.webp") left center / auto 100% no-repeat;
  pointer-events: none;
}
.stats-inner {
  max-width: 1080px; margin: 0 auto;
  /* keep the columns off the mic while the auto margins are thinner than it */
  padding-inline-end: clamp(0px, 940px - 50vw, 340px);
}
@media (max-width: 760px) {
  .stats::before { display: none; }  /* no room for the mic under stacked stats */
  .stats-inner { padding-inline-end: 0; }
}
.stats h3 { font-size: 1.35rem; font-weight: 900; margin-bottom: 24px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.stat-row > div { border-inline-end: 1px solid rgba(255, 255, 255, .12); padding: 0 10px; }
.stat-row > div:last-child { border-inline-end: none; }
.stat-row b { display: block; font-size: 1.5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-row span { color: #cfc9df; font-size: .84rem; }
.stat-row .ic {
  display: block; width: 38px; height: 38px;
  margin: 0 auto 12px;
  color: var(--pink);
  filter: drop-shadow(0 0 6px rgba(255, 59, 212, .35));
}

/* ---------- bottom cta / footer ---------- */
.bottom-cta {
  background:
    radial-gradient(720px 420px at 84% 10%, rgba(255, 59, 212, .24), transparent 65%),
    radial-gradient(620px 440px at 12% 88%, rgba(139, 92, 246, .34), transparent 62%),
    linear-gradient(200deg, var(--dark-1) 0%, var(--dark-2) 60%, var(--dark-1) 100%);
  color: #fff; text-align: center;
  padding: 60px 5vw 26px;
}
.bottom-cta h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 900; }
.bottom-cta p { color: #cfc9df; margin: 12px 0 26px; }
/* lives inside the CTA strip — same gradient shows through, a hairline divides */
.foot {
  color: #a49ebb; text-align: right;
  display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .09);
  margin-top: 58px; padding: 20px 0 0; font-size: .8rem;
}
.foot .rights { flex-basis: 100%; text-align: center; color: #7d7694; margin-top: 10px; }

/* icons swell slightly under the cursor (hover surface = the whole block) */
.bicon, .stat-row .ic, .plogo { transition: transform .22s ease; }
.benefit-grid article:hover .bicon { transform: scale(1.12); }
.stat-row > div:hover .ic { transform: scale(1.18); }
.plogo:hover { transform: scale(1.12); }

/* ---------- flow ---------- */
#view-flow { max-width: 1080px; margin: 0 auto; padding: 0 4vw 70px; }
.flow-hero {
  text-align: center; color: #fff;
  background:
    radial-gradient(720px 420px at 82% 12%, rgba(139, 92, 246, .3), transparent 65%),
    radial-gradient(480px 300px at 18% 20%, rgba(255, 59, 212, .25), transparent 60%),
    linear-gradient(150deg, var(--dark-1), var(--dark-2));
  /* full-bleed out of the centered flow column */
  margin: 0 calc(50% - 50vw); padding: 42px 6vw 108px;
}
.flow-hero-icon {
  width: 76px; height: 76px; margin: 0 auto 14px;
  border: 2px solid rgba(225, 59, 250, .55); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.flow-hero-icon .ic { width: 34px; height: 34px; color: var(--magenta); }
.flow-hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 900; }
.flow-hero p { color: #cfc9df; max-width: 620px; margin: 12px auto 0; font-size: .97rem; }

.stepper {
  list-style: none; display: flex; justify-content: space-between;
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(22, 16, 31, .1);
  padding: 20px 34px; margin: -64px 0 30px; position: relative;
}
.stepper::before {
  content: ""; position: absolute; top: 42px; right: 70px; left: 70px;
  height: 3px; background: var(--line); z-index: 0;
}
.stepper li { position: relative; z-index: 1; text-align: center; flex: 1; }
.stepper li b {
  display: flex; width: 44px; height: 44px; margin: 0 auto;
  border-radius: 50%; align-items: center; justify-content: center;
  background: #eceaf4; color: #8d87a0; font-size: 1.05rem;
  border: 3px solid var(--card);
}
.stepper li i { display: none; }
.stepper li span { display: block; margin-top: 8px; font-size: .82rem; color: var(--muted); }
.stepper li.active b { background: var(--grad); color: #fff; }
.stepper li.active span { color: var(--purple); font-weight: 700; }
.stepper li.done b { background: #efe9fd; color: var(--purple); }

/* ---------- cards & fields ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(22, 16, 31, .08);
  padding: 26px 28px; margin-bottom: 22px;
}
.card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.chead-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  background: #f1ecfd; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.card-head h2 { font-size: 1.2rem; font-weight: 800; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.grid2 .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); }
label em { color: var(--err); font-style: normal; }
label > input, label > textarea, label > select { display: block; width: 100%; margin-top: 7px; }
input, textarea, select {
  font-family: inherit; font-size: .95rem; color: var(--ink);
  background: #fbfafd; border: 1.5px solid var(--line); border-radius: 11px;
  padding: 12px 14px; text-align: right;
}
textarea { resize: vertical; line-height: 1.8; }
input:focus, textarea:focus, select:focus { outline: 2.5px solid var(--violet); border-color: transparent; }
input.invalid, textarea.invalid { border-color: var(--err); }
::placeholder { color: #a9a4ba; }

.note {
  border-radius: 12px; padding: 13px 16px; font-size: .88rem; margin-top: 16px;
}
.note.info { background: #f3effd; color: #4c3a86; }
.note.info.center { text-align: center; margin: 0 0 22px; }
.note.info small { color: #7466a5; }
.note.shield { background: #fff; box-shadow: 0 8px 30px rgba(22,16,31,.08); color: var(--muted); }
.note.shield b { color: var(--ink); }

.step-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.step-actions .cta { flex: 1; min-width: 240px; }
.step-actions .ghost { flex: 0 0 auto; }
.under-note { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 16px; }

/* ---------- uploads ---------- */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .upload-grid { grid-template-columns: 1fr; } }
.drop {
  border: 2px dashed #c9bdf1; border-radius: 14px;
  background: #fbfaff;
  padding: 30px 18px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--violet); background: #f4f0ff; }
.drop-icon { font-size: 1.9rem; }
.drop b { display: block; margin: 8px 0 2px; }
.drop span { color: var(--muted); font-size: .86rem; display: block; }
.drop small { color: #a9a4ba; font-size: .76rem; display: block; margin-top: 10px; }
.fchip {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px 14px; margin-top: 14px;
}
.fchip .fmeta { flex: 1; min-width: 0; }
.fchip .fname { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.fchip .fsize { color: var(--muted); font-size: .78rem; }
.fchip .fok { color: #fff; background: var(--ok); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.fchip .fdel { background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--muted); }
.fchip .fdel:hover { color: var(--err); }
.fdone { color: var(--ok); font-weight: 700; font-size: .88rem; text-align: center; margin-top: 10px; }
.tips h3 { font-size: 1rem; margin-bottom: 16px; }
.tip-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tip-row b { display: block; font-size: .92rem; margin-bottom: 4px; }
.tip-row span { color: var(--muted); font-size: .84rem; }

/* ---------- rights ---------- */
.chk { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 500; font-size: .93rem; padding: 10px 0; cursor: pointer; }
.chk input { width: 19px; height: 19px; accent-color: var(--purple); flex: 0 0 auto; margin-top: 2px; }

/* ---------- progress / errors ---------- */
.progress { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.pbar { flex: 1; height: 12px; border-radius: 20px; background: #e9e5f5; overflow: hidden; }
.pfill { height: 100%; width: 0%; background: var(--grad); border-radius: 20px; transition: width .3s; }
#up-pct { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.error { color: var(--err); background: #fdecec; border-radius: 10px; padding: 12px 16px; font-size: .9rem; }

/* ---------- done ---------- */
.done-card { text-align: center; }
.done-badge {
  width: 74px; height: 74px; margin: 6px auto 18px;
  background: #e7f6ec; color: var(--ok); font-size: 2rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.done-card h2 { font-size: 1.5rem; font-weight: 900; }
.done-sub { color: var(--muted); margin: 8px 0 24px; }
.done-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px; background: #f4f7f4; border-radius: 12px; padding: 18px; text-align: right;
}
.done-row b { display: block; margin-bottom: 4px; font-size: .92rem; }
.done-row span { color: var(--muted); font-size: .83rem; }
.refline { color: var(--muted); margin: 22px 0 2px; font-size: .85rem; }
.refnum { font-size: 1.5rem; font-weight: 900; color: var(--purple); margin: 0 0 8px; direction: ltr; }
.sum { background: #fbfafd; border: 1.5px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 18px; text-align: right; }
.sum h3 { font-size: .98rem; margin-bottom: 14px; }
.sum-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sum-row span { display: block; color: var(--muted); font-size: .78rem; }
.sum-row b { font-size: .95rem; }
.ok-chip { color: var(--ok); background: #e7f6ec; border-radius: 20px; padding: 2px 12px; font-size: .85rem; }

/* ============ icons — inline SVG line icons (sprite in index.html).
   Stroke follows the text color of each context, so icons automatically
   match the purple/magenta palette. ============ */
.ic {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.18em;
}
.bicon .ic { width: 30px; height: 30px; }
.secure .ic, .under-note .ic { width: 14px; height: 14px; margin-inline-end: 5px; }
.chead-icon .ic { width: 22px; height: 22px; color: var(--purple); }
.note .ic { width: 17px; height: 17px; margin-inline-end: 6px; vertical-align: -3px; color: var(--purple); }
.drop-icon .ic { width: 36px; height: 36px; color: var(--violet); }
.fdel .ic { width: 18px; height: 18px; }
.fok .ic { width: 13px; height: 13px; stroke-width: 3; }
.fdone .ic { width: 16px; height: 16px; margin-inline-end: 5px; }
.tips h3 .ic { width: 19px; height: 19px; margin-inline-end: 7px; vertical-align: -3px; color: var(--magenta); }
.tip-row b .ic, .done-row b .ic { width: 16px; height: 16px; margin-inline-end: 6px; vertical-align: -2.5px; color: var(--purple); }
.done-badge .ic { width: 34px; height: 34px; stroke-width: 2.6; }
.sum h3 .ic { width: 18px; height: 18px; margin-inline-end: 7px; vertical-align: -3px; color: var(--purple); }
.ok-chip .ic { width: 14px; height: 14px; stroke-width: 2.6; margin-inline-end: 4px; }
.cta .ic { width: 1.15em; height: 1.15em; }
