/* Pokloni pjesmu — landing */
:root {
  --paper: #f6f0e7;
  --paper-2: #eee6da;
  --card: #fffdfc;
  --ink: #211c1b;
  --muted: #675c55;
  --line: #ded3c8;
  --line-2: #d3c6b6;
  --wine: #7a263a;
  --wine-dark: #5a1b2b;
  --blush: #ead2c9;
  --focus: #b66a42;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --gutter: 6%;
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(48px, 5.4vw, 80px); margin-bottom: 24px; }
h2 { font-size: clamp(38px, 4vw, 56px); margin-bottom: 22px; }
em { font-weight: 400; color: var(--wine); }
[hidden] { display: none !important; }

.skip { position: absolute; left: 8px; top: -80px; z-index: 30; background: var(--card); padding: 12px 16px; border-radius: 4px; }
.skip:focus { top: 8px; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine); margin: 0 0 20px; }

/* Buttons & links */
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  background: var(--wine); color: #fff; border: 1px solid var(--wine); border-radius: 4px;
  padding: 16px 28px; font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.button:hover { background: var(--wine-dark); transform: translateY(-1px); box-shadow: 0 8px 20px -10px #7a263a99; }
.button:disabled { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.button.small { padding: 11px 20px; font-size: 14px; }
.button.light { background: var(--paper); border-color: var(--paper); color: var(--wine); }
.button.light:hover { background: var(--blush); }
.text-link { display: inline-block; color: var(--wine); font-size: 15px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { border-bottom-width: 2px; }
.inline-link { padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  background: #f6f0e7ee; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 6px; font: 30px/1 var(--serif); letter-spacing: -0.01em; white-space: nowrap; }
.brand em { color: var(--wine); }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; margin: -6px 0; }
nav { display: flex; gap: 32px; font-size: 14px; }
nav a { color: var(--muted); transition: color .2s; }
nav a:hover { color: var(--ink); }

/* Sections */
.section { max-width: var(--max); margin: auto; padding: 100px var(--gutter); }

/* Hero */
.hero {
  max-width: var(--max); margin: auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 5%; align-items: center;
  padding: 56px var(--gutter) 64px;
}
.lead { font-size: 18px; color: var(--muted); max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.reassurance { font-size: 14px; color: var(--muted); margin: 16px 0 28px; }
.hero-price { display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; max-width: 420px; font-size: 14px; }
.hero-price strong { font: 44px/1 var(--serif); }
.hero-price strong span, .offer-price strong span { font: 16px var(--sans); letter-spacing: 0; }
.hero-price div span { color: var(--muted); }
.hero-image { position: relative; align-self: stretch; min-height: 580px; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 51% center; border-radius: 6px; }
.image-note {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fffdfcea; padding: 16px 20px; border-radius: 4px;
}
.image-note > span:first-child { font: italic 21px var(--serif); }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.eq i { width: 3px; background: var(--wine); border-radius: 2px; height: 40%; animation: eq 1.1s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.8s; }
.eq i:nth-child(4) { animation-delay: -.5s; } .eq i:nth-child(5) { animation-delay: -1s; }
.eq i:nth-child(6) { animation-delay: -.2s; } .eq i:nth-child(7) { animation-delay: -.65s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

/* Stranice iz kataloga */
.lp-hero { max-width: 1040px; margin: auto; padding: 56px var(--gutter) 48px; text-align: center; }
.lp-hero h1 { font-size: clamp(48px, 6vw, 86px); margin-bottom: 18px; }
.lp-hero .lead { margin: 0 auto 8px; max-width: 520px; }
.lp-art { width: 100%; max-width: 760px; margin: 8px auto 28px; }
.lp-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lp-actions .reassurance { margin: 0; }
.prompt-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prompt-grid li { border: 1px solid var(--line); border-radius: 6px; padding: 28px; background: var(--card); }
.prompt-grid h3 { font: 26px/1.2 var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 10px 0 10px; }
.prompt-grid p { color: var(--muted); font-size: 15px; margin: 0; }

/* Promise bar */
.promise-bar { list-style: none; margin: 0; background: var(--paper-2); display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 56px; padding: 20px var(--gutter); font-size: 14px; }
.promise-bar li::before { content: '✦'; color: var(--wine); padding-right: 10px; }

/* Stories */
.section-heading { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-heading > p:last-child { color: var(--muted); max-width: 560px; margin: auto; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story-card {
  display: flex; flex-direction: column; text-align: left;
  background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 28px;
  transition: background .2s, border-color .2s, transform .2s;
}
.story-card:hover { background: var(--card); border-color: var(--line-2); transform: translateY(-2px); }
.occasion { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); }
.quote { font: 27px/1.35 var(--serif); letter-spacing: -0.01em; margin: 24px 0 28px; flex: 1; }
.card-end { font-size: 14px; color: var(--muted); }
.card-cta { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--wine); }
.card-cta span { display: inline-block; transition: transform .2s; }
.story-card:hover .card-cta span { transform: translateX(4px); }
.caption { font-size: 13px; color: var(--muted); text-align: center; margin: 24px 0 0; }

/* Process */
.process { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10%; align-items: start; }
.process-intro > p:not(.eyebrow) { color: var(--muted); max-width: 340px; }
.process-image { margin-top: 32px; width: 100%; max-width: 440px; aspect-ratio: 5 / 4; object-fit: cover; object-position: 42% 30%; border-radius: 6px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 28px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line-2); }
.steps li:last-child { margin: 0; padding: 0; border: 0; }
.step-num { font: italic 26px/1.3 var(--serif); color: #9c7463; }
.steps h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* Samples */
.sample-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 980px; margin: auto; }
.sample { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 32px; transition: border-color .2s, box-shadow .2s; }
.sample.playing { border-color: var(--blush); box-shadow: 0 20px 40px -30px #7a263a66; }
.sample h3 { font: 40px/1.05 var(--serif); letter-spacing: -0.02em; margin: 14px 0 10px; }
.sample-note { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.player { display: flex; align-items: center; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.play { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--wine); color: #fff; display: grid; place-items: center; transition: background .2s, transform .2s; }
.play:hover { background: var(--wine-dark); transform: scale(1.04); }
.play svg { width: 24px; height: 24px; fill: currentColor; }
.play .i-pause, .playing .play .i-play { display: none; }
.playing .play .i-pause { display: inline; }
.loading .play { animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { background: var(--wine-dark); } }
.track { flex: 1; min-width: 0; }
.track input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; margin: 0; padding: 0; height: 22px; border: 0; background: transparent; cursor: pointer;
  --p: 0%;
}
.track input[type=range]:focus { box-shadow: none; }
.track input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(var(--wine), var(--wine)) 0 / var(--p) 100% no-repeat, var(--line); }
.track input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.track input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--wine); }
.track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--wine); border: 2px solid var(--card); }
.track input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--wine); border: 2px solid var(--card); }
.track input[type=range]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.time { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.samples .caption { margin-top: 32px; }
.samples .caption .text-link { font-size: 13px; margin-left: 6px; }

/* Offer */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-items: center; }
.product-image { position: relative; }
.product-image img { width: 100%; border-radius: 6px; }
.product-image figcaption { position: absolute; left: 16px; bottom: 12px; font-size: 12px; color: #504132; }
.offer-copy > p:not(.eyebrow) { color: var(--muted); max-width: 400px; }
.includes { list-style: none; padding: 0; margin: 28px 0; }
.includes li { padding: 7px 0; }
.includes li::before { content: '✓'; color: var(--wine); font-weight: 700; margin-right: 12px; }
.offer-price { display: flex; align-items: center; gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; margin: 24px 0 28px; }
.offer-price strong { font: 64px/1 var(--serif); letter-spacing: -0.04em; }
.offer-price p { font-size: 14px; color: var(--muted); margin: 0; }

/* Form */
.form-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8%; align-items: start; }
.form-intro { position: sticky; top: 110px; }
.form-intro > p:not(.eyebrow) { color: var(--muted); max-width: 380px; }
.form-intro h2 { font-size: clamp(38px, 3.6vw, 50px); }
.form-note { margin-top: 36px; max-width: 360px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 24px; font-size: 14px; }
.form-note ul { list-style: none; padding: 0; margin: 12px 0; }
.form-note li { padding: 3px 0; }
.form-note li::before { content: '✓'; color: var(--wine); margin-right: 10px; }
.form-note p { color: var(--muted); margin: 0; font-size: 13px; }

#song-form, .form-success { background: var(--card); padding: 36px; border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px #211c1b40; }
.progress { list-style: none; padding: 0; margin: 0 0 28px; display: flex; gap: 14px; font-size: 14px; color: var(--muted); counter-reset: step; }
.progress li { flex: 1; border-top: 3px solid var(--line); padding-top: 10px; counter-increment: step; transition: color .2s, border-color .2s; }
.progress li::before { content: counter(step) '. '; }
.progress .active { border-color: var(--wine); color: var(--wine); font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font: 28px/1.2 var(--serif); letter-spacing: -0.01em; margin-bottom: 24px; padding: 0; }
label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 20px; }
label > span { font-weight: 400; color: var(--muted); font-size: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: end; }
input, select, textarea {
  display: block; width: 100%; margin-top: 7px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 4px;
  font-size: 16px; line-height: 1.5; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #9b8f86; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px #7a263a26; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b3261e; }
select {
  appearance: none; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
textarea { resize: vertical; }
.field-hint { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; font-weight: 400; }
.check input { width: 20px; height: 20px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--wine); }
.check > span { color: var(--ink); font-size: 14px; }
.order-summary { background: var(--paper-2); border-radius: 4px; padding: 18px 20px; font-size: 14px; margin-bottom: 22px; }
.order-summary p { margin: 6px 0 0; color: var(--muted); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.form-actions .button { flex: 1; }
.back { border: 0; background: none; color: var(--muted); padding: 12px 8px; font-weight: 500; }
.back:hover { color: var(--ink); }
.draft-note { font-size: 12px; color: var(--muted); text-align: center; margin: 14px 0 0; }
#form-status { font-size: 14px; margin: 12px 0 0; color: var(--wine); font-weight: 500; }
#form-status:empty { display: none; }
.form-success:focus { outline: none; }
.form-success h3 { font: 34px/1.15 var(--serif); font-weight: 400; margin-bottom: 14px; }
.form-success .success-id { font-size: 14px; color: var(--muted); }
.form-success .success-id span { font-family: ui-monospace, monospace; font-size: 13px; color: var(--ink); }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10%; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 500; font-size: 17px; }
details:first-child summary { padding-top: 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--wine); font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--wine); }
details p { color: var(--muted); margin: 0 0 22px; max-width: 620px; }

/* Contact */
.contact-section { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10%; align-items: center; border-top: 1px solid var(--line); }
.contact-section > div > p:last-child { color: var(--muted); max-width: 440px; }
.contact-options { display: grid; gap: 14px; }
.contact-button { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 22px; border-radius: 6px; border: 1px solid; font-weight: 600; font-size: 16px; transition: filter .2s; }
.contact-button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.whatsapp { background: #e7efe8; color: #245839; border-color: #bccdbd; }
.viber { background: #eee9f3; color: #593d7e; border-color: #d0c2df; }
.contact-button:disabled { cursor: not-allowed; opacity: .6; }
.contact-button:disabled::before { background: transparent; border: 2px solid currentColor; }
.contact-button:hover:not(:disabled) { filter: brightness(.96); }
.contact-options p { font-size: 14px; color: var(--muted); margin: 2px 0 0; }

/* Closing & footer */
.closing { background: var(--wine); color: var(--paper); text-align: center; padding: 88px 20px 72px; }
.closing .eyebrow, .closing em, .closing > p:last-child { color: var(--blush); }
.closing h2 { font-size: clamp(44px, 5vw, 68px); }
.closing > p:last-child { font-size: 14px; margin: 18px 0 0; }
.site-footer { max-width: var(--max); margin: auto; padding: 32px var(--gutter); display: flex; align-items: center; flex-wrap: wrap; gap: 16px 30px; font-size: 13px; color: var(--muted); }
.site-footer p { margin: 0; flex: 1; min-width: 160px; }
.site-footer .brand { color: var(--ink); font-size: 26px; }
.social-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; font-weight: 600; }
.social-link:hover { color: var(--wine); }
.footer-links { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-links span { font-weight: 600; color: var(--ink); }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--wine); text-decoration: underline; text-underline-offset: 2px; }

/* Dialog */
dialog { border: 1px solid var(--line); border-radius: 8px; max-width: 560px; width: calc(100% - 32px); padding: 40px; background: var(--paper); color: var(--ink); }
dialog h2 { font-size: 34px; }
dialog p { font-size: 15px; }
dialog::backdrop { background: #211c1b99; }
.dialog-close { float: right; margin: -16px -16px 0 0; width: 40px; height: 40px; font-size: 28px; line-height: 1; background: none; border: 0; border-radius: 50%; }
.dialog-close:hover { background: var(--paper-2); }

/* Full-bleed band backgrounds */
.process, .form-section { position: relative; isolation: isolate; }
.process::before, .form-section::before { content: ''; position: absolute; inset: 0 calc(50% - 50vw); background: var(--paper-2); z-index: -1; }

/* Responsive */
@media (max-width: 1000px) {
  nav { gap: 20px; }
  .section { padding: 76px var(--gutter); }
  .hero-image { min-height: 500px; }
  .story-card { padding: 22px; }
  .prompt-grid li { padding: 22px; }
  .quote { font-size: 23px; }
  .process, .offer, .form-section, .faq, .contact-section { gap: 6%; }
  .promise-bar { gap: 10px 28px; }
  #song-form, .form-success { padding: 26px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  .site-header { padding: 12px var(--gutter); }
  .brand { font-size: 24px; gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  nav { display: none; }
  .button.small { font-size: 13px; padding: 10px 14px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 28px var(--gutter) 36px; }
  h1 { font-size: 46px; }
  h2 { font-size: 38px; }
  .lead { font-size: 17px; }
  .hero-actions { gap: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { display: none; }
  .hero-price { max-width: none; }
  .hero-image { min-height: 420px; }
  .hero-image img { object-position: 45% center; }
  .image-note { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; }
  .image-note > span:first-child { font-size: 20px; }
  .promise-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 13px; }
  .promise-bar li::before { padding-right: 6px; }
  .section { padding: 60px var(--gutter); }
  .section-heading { margin-bottom: 28px; }
  .story-grid { grid-template-columns: 1fr; gap: 14px; }
  .quote { font-size: 25px; margin: 16px 0 18px; }
  .process, .offer, .form-section, .faq, .contact-section { grid-template-columns: 1fr; gap: 32px; }
  .process-image { margin-top: 24px; max-width: none; aspect-ratio: 3 / 2; object-position: 42% 35%; }
  .steps li { gap: 16px; }
  .lp-hero { padding: 32px var(--gutter) 36px; }
  .lp-hero h1 { font-size: 46px; }
  .lp-art { margin: 4px -4% 22px; width: 108%; max-width: none; }
  .lp-actions .button { width: 100%; }
  .prompt-grid { grid-template-columns: 1fr; gap: 12px; }
  .prompt-grid li { padding: 22px 20px; }
  .sample-grid { grid-template-columns: 1fr; gap: 14px; }
  .sample { padding: 24px 20px; }
  .sample h3 { font-size: 34px; }
  .sample-note { margin-bottom: 20px; }
  .player { gap: 14px; padding-top: 18px; }
  .samples .caption .text-link { display: table; margin: 8px auto 0; }
  .offer .button { width: 100%; }
  .form-intro { position: static; }
  .form-intro h2 { font-size: 38px; }
  .form-note { display: none; }
  #song-form, .form-success { padding: 24px 18px; margin: 0 -2%; }
  .faq { gap: 12px; }
  .closing { padding: 64px 20px; }
  .closing h2 { font-size: 46px; }
  dialog { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
