/* בקול שלכם · design tokens and components taken from rivitv.me */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;700;800;900&family=Secular+One&display=swap');

:root {
  --ink: oklch(17.8% 0 0);
  --paper: oklch(98.5% .009 95);
  --smoke: oklch(95.6% .014 95);
  --primary: oklch(56% .285 293);          /* RiviTV purple #7b33ff */
  --primary-deep: oklch(46% .25 293);
  --lemon: oklch(94% .19 99);
  --citron: oklch(91% .24 121);
  --orange: oklch(73% .2 44);
  --blush: oklch(78% .19 349);
  --quote-stock: oklch(95% .068 96);
  --muted: oklch(42% 0 0);
  --border: oklch(17.8% 0 0 / .14);
  --danger: oklch(52% .2 27);
  --ok: oklch(55% .15 150);
  --paper-shadow: 5px 6px 0 var(--ink);
  --feature-shadow: 13px 16px 0 var(--orange);
  --lift: 0 3px 6px oklch(15% 0 0/.18), 0 26px 38px -22px oklch(15% 0 0/.5);
  --cut: clamp(14px, 1.55vw, 32px);
  --paper-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath opacity='.035' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  --display: "Secular One", Heebo, sans-serif;
  --body: Heebo, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper) var(--paper-texture); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55; direction: rtl;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

h1, h2, h3 { margin: 0; line-height: 1.05; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
.h-xl { font-family: var(--display); font-size: clamp(44px, 9vw, 72px); line-height: .98; }
.h-l { font-weight: 800; font-size: clamp(30px, 5.5vw, 46px); line-height: 1.02; }
.h-m { font-weight: 800; font-size: clamp(22px, 3.6vw, 28px); line-height: 1.1; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: .01em; }
.on-purple .eyebrow { color: var(--lemon); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.purple { color: var(--primary); }

/* the lemon tag from the hero: "בואו נגרום לזה לעבוד." */
.tag {
  display: inline-block; background: var(--lemon); color: var(--ink); padding: 0 .28em .04em;
  transform: rotate(-3deg); font-weight: 800;
}
.underline-lemon { background: linear-gradient(transparent 62%, var(--citron) 62%); }

/* sections with the angled cut */
.band { position: relative; padding: 48px 20px; }
.band.purple-bg { background: var(--primary); color: var(--paper); }
.band.ink-bg { background: var(--ink); color: var(--paper); }
.band.blush-bg { background: var(--blush); }
.band.lemon-bg { background: var(--lemon); }
.cut-bottom { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--cut))); padding-bottom: calc(48px + var(--cut)); }
.cut-top { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); padding-top: calc(48px + var(--cut)); }
.wrap { max-width: 1120px; margin: 0 auto; }
.narrow { max-width: 640px; margin: 0 auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 12px 24px; border-radius: 3px; border: 1px solid transparent; cursor: pointer;
  background: var(--lemon); color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ink { background: var(--ink); color: var(--paper); border-radius: 8px; font-weight: 500; }
.btn.ink:hover { box-shadow: 3px 3px 0 var(--primary); }
.btn.ghost { background: transparent; border-color: currentColor; }
.btn.purple { background: var(--primary); color: var(--paper); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn .arrow { font-weight: 400; }
.link-btn { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* cards */
.card { background: var(--paper); border: 1.5px solid var(--ink); box-shadow: var(--paper-shadow); padding: 20px; }
.card.feature { box-shadow: var(--feature-shadow); }
.note {  /* the sticky-note testimonial card */
  position: relative; background: var(--quote-stock); padding: 26px 24px 22px;
  box-shadow: 10px 12px 0 var(--blush), var(--lift);
}
.note::after { content: ""; position: absolute; top: 0; left: 0; width: 26px; height: 26px;
  background: linear-gradient(225deg, transparent 50%, oklch(88% .07 96) 50%); }

/* forms */
label.field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.input, textarea.input, select.input {
  width: 100%; border: 1.5px solid var(--ink); border-radius: 0; background: #fff; padding: 12px 14px; font-weight: 400; font-size: 16px;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.6; }
.on-purple .input { border-color: transparent; }

/* status chips */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--smoke); white-space: nowrap; }
.chip.writing, .chip.processing, .chip.received { background: var(--quote-stock); }
.chip.review { background: oklch(93% .05 293); color: var(--primary-deep); }
.chip.ready { background: var(--citron); }
.chip.error { background: oklch(92% .05 27); color: var(--danger); }
.chip.block { background: var(--danger); color: #fff; }
.chip.warn { background: var(--lemon); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* felt stop-motion characters (atlases: 4 cols x 3 rows) */
.sprite { background-repeat: no-repeat; background-size: 400% 300%;
  background-position: calc(var(--sprite-col, 0) * 100% / 3) calc(var(--sprite-row, 0) * 50%); }
.sprite[data-character="yellow"] { aspect-ratio: 533 / 424; }
.sprite[data-character="camera"] { aspect-ratio: 473 / 422; }
.sprite[data-character="listener"] { aspect-ratio: 488 / 399; }
.sprite[data-character="group"] { aspect-ratio: 484 / 227; }
.sprite[data-character="loader"] { aspect-ratio: 360 / 169; }

/* logo bubble */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.logo svg { width: 40px; height: auto; }

/* topbar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--primary); color: var(--paper); }
.topbar .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; max-width: 1120px; margin: 0 auto; }

/* toast */
.toast { position: fixed; inset-inline: 16px; bottom: 18px; z-index: 99; margin: 0 auto; max-width: 460px;
  background: var(--ink); color: var(--paper); padding: 14px 18px; font-weight: 500; box-shadow: 5px 6px 0 var(--lemon);
  transform: translateY(140%); transition: transform .25s ease; }
.toast.show { transform: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 14px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
hr.rule { border: 0; border-top: 1.5px solid var(--ink); margin: 24px 0; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
