:root {
  --bg: #fbf6ef;
  --bg-2: #f4ebdf;
  --card: #ffffff;
  --ink: #1e1b18;
  --muted: #74695f;
  --line: #eadfd2;
  --accent: #e4572e;
  --accent-ink: #ffffff;
  --accent-soft: #fde5dc;
  --teal: #0e5e5a;
  --gold: #f2b544;
  --night: #1a1426;
  --night-2: #261d36;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(60, 35, 20, .25);
  --display: "Fredoka", "Arial Hebrew", system-ui, sans-serif;
  --sans: "Assistant", "Arial Hebrew", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--accent); position: relative; }
h1 em::after {
  content: ""; position: absolute; inset-inline: -4px; bottom: .08em; height: .22em;
  background: var(--gold); opacity: .45; z-index: -1; border-radius: 4px;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 99px; margin-bottom: 14px;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 99px;
  padding: 12px 24px; font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(228, 87, 46, .6);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(228, 87, 46, .65); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 18px; font-size: .95rem; }
.btn-lg { padding: 16px 30px; font-size: 1.1rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 246, 239, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 1.45rem var(--display); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; color: var(--accent); }
.logo.small { font-size: 1.15rem; }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* hero */
.hero { padding: 64px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.ticks li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-inline-end: 6px; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.vinyl {
  position: absolute; inset: 8%; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(255,255,255,.05) 31.5% 32%, transparent 32.5%),
    repeating-radial-gradient(circle, #1d1a1f 0 2px, #2a2530 2px 4px);
  box-shadow: 0 30px 60px -20px rgba(26, 20, 38, .55), inset 0 0 0 6px #121014;
  animation: spin 14s linear infinite;
}
.vinyl::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 20%, rgba(255,255,255,.12) 25%, transparent 30% 70%, rgba(255,255,255,.08) 75%, transparent 80%);
}
.vinyl-label {
  position: absolute; inset: 33%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle, var(--bg) 0 6%, var(--accent) 6.5% 100%);
  color: #fff; font: 700 1.05rem/1.1 var(--display);
}
@keyframes spin { to { transform: rotate(360deg); } }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; background: var(--card);
  border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .9rem; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-card small { display: block; color: var(--muted); font-size: .78rem; }
.fc-emoji { font-size: 1.5rem; }
.fc-1 { top: 4%; inset-inline-end: -4%; }
.fc-2 { top: 46%; inset-inline-start: -10%; animation-delay: -2s; }
.fc-3 { bottom: 2%; inset-inline-end: 4%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* sections */
.section { padding: 88px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.dark { background: var(--night); color: #f6f1ea; }
.dark .section-head p, .dark p { color: #bdb3c8; }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  font-weight: 600; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat span { font-size: 2rem; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--night-2); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; font: 700 1.3rem var(--display); margin-bottom: 18px;
}

.sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lyrics-card {
  margin: 0; background: var(--card); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow);
  font: 500 1.45rem/1.8 var(--display); position: relative; border-inline-start: 5px solid var(--gold);
}
.lyrics-card footer { font: 400 .95rem var(--sans); color: var(--muted); }

/* audio player */
.player {
  display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 99px; padding: 8px; padding-inline-end: 18px; margin-top: 18px; box-shadow: var(--shadow);
}
.player .pp {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: #fff;
  display: grid; place-items: center; cursor: pointer; font-size: 1.05rem;
}
.player .bar { flex: 1; height: 6px; background: var(--bg-2); border-radius: 99px; cursor: pointer; position: relative; direction: ltr; }
.player .fill { position: absolute; inset-block: 0; left: 0; width: 0; background: var(--accent); border-radius: 99px; }
.player .time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; min-width: 84px; text-align: center; direction: ltr; }

/* wizard */
.create { background: linear-gradient(180deg, var(--bg) 0, var(--bg-2) 100%); }
.wizard {
  max-width: 820px; margin-inline: auto; background: var(--card); border-radius: 28px;
  box-shadow: 0 30px 60px -30px rgba(60, 35, 20, .35); padding: 36px clamp(20px, 5vw, 48px) 40px;
  scroll-margin-top: 90px;
}
.progress { list-style: none; padding: 0; margin: 0 0 32px; display: flex; gap: 6px; counter-reset: s; }
.progress li {
  flex: 1; text-align: center; font-size: .82rem; color: var(--muted); padding-top: 12px; position: relative; counter-increment: s;
}
.progress li::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 5px; border-radius: 99px; background: var(--bg-2); }
.progress li.done::before, .progress li.active::before { background: var(--accent); }
.progress li.active { color: var(--ink); font-weight: 600; }
.pane { display: none; animation: fade .3s ease; }
.pane.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.pane h3 { margin-top: 8px; }
.pane-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chips button {
  border: 1.5px solid var(--line); background: var(--bg); border-radius: 99px; padding: 9px 18px; cursor: pointer;
  font-weight: 500; transition: border-color .15s, background .15s;
}
.chips button:hover { border-color: var(--ink); }
.chips button[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips.small { margin-bottom: 0; }
.chips.small button { padding: 7px 14px; font-size: .95rem; }
.chips.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.chips.cards button { border-radius: 14px; padding: 14px; text-align: start; display: flex; flex-direction: column; }
.chips.cards small { color: var(--muted); font-size: .82rem; }
.chips.cards button[aria-checked="true"] small { color: #d8d0c6; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: block; margin-bottom: 20px; }
.field > span { display: block; font-weight: 600; margin-bottom: 8px; }
.field small { font-weight: 400; color: var(--muted); }
input, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; transition: border-color .15s, background .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
textarea { resize: vertical; }
.hint { display: block; margin-top: 6px; }
.title-input { font: 700 1.4rem var(--display); }
.lyrics-input { font: 500 1.08rem/1.9 var(--display); }

.loading { text-align: center; padding: 50px 0; }
.loading p { font-size: 1.2rem; font-weight: 600; margin: 16px 0 6px; }
.pen { font-size: 3rem; animation: write 1.2s ease-in-out infinite; display: inline-block; }
@keyframes write { 50% { transform: translateX(-14px) rotate(-8deg); } }
.eq { display: flex; justify-content: center; align-items: flex-end; gap: 6px; height: 70px; }
.eq i { width: 10px; border-radius: 6px; background: var(--accent); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2n) { background: var(--gold); animation-duration: .8s; }
.eq i:nth-child(3n) { background: var(--teal); animation-duration: 1.2s; }
.eq i:nth-child(1) { animation-delay: -.2s; } .eq i:nth-child(3) { animation-delay: -.5s; }
.eq i:nth-child(5) { animation-delay: -.7s; } .eq i:nth-child(7) { animation-delay: -.3s; }
@keyframes eq { 0%, 100% { height: 18%; } 50% { height: 100%; } }

.result-head { text-align: center; margin-bottom: 20px; }
.result-head h3 { font-size: 2rem; }
.tracks { display: grid; gap: 16px; }
.track { background: var(--bg); border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); }
.track-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.track-top b { font-size: 1.05rem; }
.track .player { margin-top: 12px; box-shadow: none; }
.dl { font-size: .92rem; font-weight: 600; color: var(--teal); text-decoration: none; }
.dl:hover { text-decoration: underline; }
.result-lyrics { margin-top: 22px; }
.result-lyrics pre { white-space: pre-wrap; font: 500 1.05rem/1.9 var(--display); background: var(--bg); padding: 20px; border-radius: 14px; }

.error { margin-top: 18px; background: #fdecea; color: #9b2c1a; border-radius: 12px; padding: 12px 16px; font-weight: 500; }

/* faq */
#faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
#faq summary, .result-lyrics summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; }
#faq summary::after, .result-lyrics summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
#faq details[open] summary::after, .result-lyrics[open] summary::after { content: "−"; }
#faq details p { margin: 12px 0 0; color: var(--muted); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; font-size: .92rem; }

@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero-grid, .sample-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 300px; }
  .fc-2 { inset-inline-start: -2%; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-inner .btn { margin-inline-start: auto; }
  .row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .lyrics-card { padding: 26px; font-size: 1.25rem; }
}
@media (max-width: 480px) {
  .progress li { font-size: 0; }
  .float-card { font-size: .78rem; padding: 8px 10px; }
  .fc-emoji { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* pricing */
.pricing { background: var(--bg-2); }
.price-card {
  max-width: 440px; margin-inline: auto; background: var(--card); border-radius: 28px; padding: 40px 36px;
  text-align: center; box-shadow: 0 30px 60px -30px rgba(60, 35, 20, .35); border-top: 6px solid var(--accent);
}
.price-top { display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.price-tag { font: 700 4.2rem/1 var(--display); color: var(--accent); }
.price-unit { font-size: 1.2rem; color: var(--muted); }
.price-credit { display: inline-block; margin: 14px 0 22px; padding: 4px 14px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .95rem; }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; text-align: start; display: grid; gap: 10px; }
.price-list li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-inline-end: 8px; }

/* checkout */
.pay-failed .fail-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 700 2rem/1 var(--display); }
.pay-failed p { max-width: 420px; margin-inline: auto; }
.checkout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.summary { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.summary h3 { font-size: 1.1rem; }
.summary dl { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .92rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; font-size: .9rem; color: var(--muted); }
.summary-total b { font: 700 1.6rem var(--display); color: var(--ink); }
.row.three { grid-template-columns: 1fr 1fr 1fr; }
input[dir="ltr"] { text-align: left; }
input.invalid { border-color: #d0442a; background: #fdf1ee; }

@media (max-width: 860px) {
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .row.three { grid-template-columns: 1fr 1fr; }
  .row.three .field:last-child { grid-column: 1 / -1; }
}

/* ---------- SEO pages (songs/*, blog/*) ---------- */
.landing { padding: 48px 0 24px; }
.landing h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.landing p { color: var(--muted); }
.landing .lead { color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.alt { background: var(--bg-2); }
.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.tip { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tip h3 { font-size: 1.15rem; }
.tip p { margin: 0; color: var(--muted); }
.story-card { background: var(--card); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); font-style: italic; }
.lyrics-card p { margin: 0 0 .8em; }
.style-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.style-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.style-list b { color: var(--accent); }
.cta-band { background: var(--night); color: #f6f1ea; text-align: center; }
.cta-band p { color: #bdb3c8; margin-bottom: 24px; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.link-grid a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; transition: border-color .15s, transform .15s; }
.link-grid a:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-grid small { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.hub { padding: 36px 0; }
.hub h2 { font-size: 1.6rem; margin-bottom: 18px; }
.prose { font-size: 1.08rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-bottom: .4em; }
.byline { color: var(--muted); font-size: .9rem; }
.article { padding-top: 40px; }
.inline-cta { background: var(--accent-soft); border-radius: var(--radius); padding: 22px 26px; margin: 2em 0; }
.inline-cta p { margin: 4px 0 14px; }
.post-list { display: grid; gap: 16px; }
.post-list a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; text-decoration: none; }
.post-list a:hover { border-color: var(--accent); }
.post-list h2 { font-size: 1.35rem; }
.post-list p { margin: 0; color: var(--muted); }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .88rem; }
.footer-links h4 { margin: 0 0 8px; font-size: .95rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 4px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
@media (max-width: 860px) {
  .style-list li { grid-template-columns: 1fr; gap: 4px; }
}
