/* Customer experience: Topla uspomena, the selected Pjesmica identity.
   The brand stylesheet supplies its typography, tokens and marketing layouts. */
:root { scroll-padding-top: 24px; color-scheme: light; }
.app-shell [hidden] { display: none !important; }
.app-shell { min-width: 320px; }
.app-shell main { min-height: 55vh; }
.app-shell .site-footer { border-top: 1px solid var(--line); }
.app-shell .site-footer > a:first-child { flex-shrink: 0; }
.app-shell .button:disabled { cursor: wait; opacity: .7; transform: none; }
.app-shell .back-link { display: inline-block; font-size: 12px; color: var(--muted); margin-bottom: 30px; }
.app-shell .occasion-hero { gap: 45px; }
.app-shell .occasion-hero h1 { font-size: clamp(44px, 5.4vw, 77px); overflow-wrap: anywhere; }
.app-shell .occasion-hero .hero-copy > p { max-width: 450px; }
/* The home grid: 4 cards a row, a line under each card and between the cards of a row. */
.app-shell .occasion-links-all { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 0; }
.app-shell .occasion-links-all > a, .app-shell .occasion-links-all > a:last-child { padding: 26px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.app-shell .occasion-links-all > a:nth-child(4n) { border-right: 0; }
.app-shell .occasion-links-all > a:nth-child(4n+1) { padding-left: 0; }
.app-shell .occasion-links-all strong { font-size: 15px; }
.app-shell .occasion-links-all small { display: block; font-size: 11px; margin-top: 6px; }

.flow-page { padding-block: 32px 80px; }
.order-progress { list-style: none; display: flex; gap: 40px; margin: 0; padding: 0 0 25px; border-bottom: 1px solid var(--line); }
.order-progress li { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.order-progress li > span:first-child { border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; width: 33px; height: 33px; font-size: 10px; flex-shrink: 0; }
.order-progress .reached { color: var(--accent); }
.order-progress .reached > span:first-child { border-color: var(--accent); }
.order-progress [aria-current] { font-weight: 700; }
.order-progress [aria-current] > span:first-child { background: var(--accent); color: var(--paper); }
.flow-heading { padding-block: 48px 40px; max-width: 850px; }
.flow-heading h1 { font-size: clamp(40px, 5vw, 68px); letter-spacing: -1.5px; margin: 18px 0 20px; overflow-wrap: anywhere; }
.flow-heading > p { color: var(--muted); font-size: 15px; max-width: 660px; overflow-wrap: anywhere; }
.flow-heading strong { color: var(--ink); font-weight: 500; }
.flow-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 65px; align-items: start; }
.paper-form { background: #fffdf8; border: 1px solid var(--line); border-radius: 4px; padding: 35px; min-width: 0; }
.paper-form > div:not([class]), .checkout-summary > div:not([class]) { margin-bottom: 26px; }
.form-section-heading { display: flex; align-items: center; gap: 13px; margin: 35px 0 25px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section-heading:first-of-type { border: 0; padding: 0; margin-top: 0; }
.form-section-heading > span { font-size: 10px; color: var(--accent); }
.form-section-heading h2 { font-size: 24px; line-height: 1.2; }
.paper-form label, .choice-field legend, .checkout-summary label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 10px; }
.paper-form input:not([type=radio]):not([type=checkbox]):not([type=hidden]), .paper-form textarea {
    width: 100%; border: 1px solid #c9b7aa; border-radius: 4px; padding: 13px 15px;
    background: #fffefb; color: var(--ink); font: 16px/1.6 'DM Sans', sans-serif;
}
.paper-form textarea { resize: vertical; min-height: 170px; }
.paper-form input:focus, .paper-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.paper-form .help-text, .paper-form [id$="_help"], .checkout-summary [id$="_help"] { font-size: 12px; color: var(--muted); margin-top: 7px; }
.paper-form input[type=checkbox], .checkout-summary input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; margin: 3px 9px 0 0; vertical-align: top; }
.checkout-summary input[type=checkbox] + label { display: inline; font-size: 12px; line-height: 1.8; }
.choice-field { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-option { position: relative; min-width: 0; }
.choice-option input { position: absolute; top: 18px; left: 14px; margin: 0; width: 15px; height: 15px; accent-color: var(--accent); z-index: 1; }
.choice-option label { margin: 0; min-height: 100%; padding: 14px 13px 14px 39px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; background: var(--paper); }
.choice-option label strong { display: block; font-weight: 500; font-size: 13px; line-height: 1.5; }
.choice-option label small { display: block; margin-top: 7px; font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.6; }
.choice-option input:checked + label { border-color: var(--accent); background: #f9eae2; box-shadow: inset 0 0 0 1px var(--accent); }
.choice-option input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-submit { margin-top: 28px; }
.form-submit .button { width: 100%; justify-content: center; padding-block: 18px; }
.note { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 13px; }
.form-status { font-size: 12px; margin-top: 12px; color: var(--accent); }
.form-status:empty, .share-status:empty { display: none; }
.flow-aside { padding-top: 5px; }
.flow-aside > img { width: 100%; height: auto; margin-bottom: 24px; }
.flow-aside h2 { font-size: 49px; letter-spacing: -1px; margin: 17px 0 22px; }
.flow-aside > p { font-size: 13px; color: var(--muted); max-width: 290px; margin-bottom: 15px; }
.aside-note { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.aside-note strong { font-size: 13px; font-weight: 500; }
.aside-note p { font-size: 12px; color: var(--muted); margin-top: 8px; }
.flash-error, .paper-form ul, .checkout-form > ul, .choice-field > ul, .checkout-summary > div > ul {
    border-left: 3px solid var(--accent); background: #fae9e3; padding: 14px 18px; color: #852333; font-size: 13px;
    margin: 0 0 22px; list-style: none;
}
.paper-form [aria-invalid=true] { border-color: var(--accent); }
.flash-success { border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--soft) 45%, var(--paper)); padding: 14px 18px; font-size: 13px; margin: 0 0 22px; }
.rewrite-form { margin-top: 26px; display: grid; gap: 12px; max-width: 640px; }
.rewrite-form label { font-size: 13px; font-weight: 600; }
.rewrite-form .text-link { justify-self: start; }
.lyrics-editor > .eyebrow { margin-bottom: 27px; }
.lyrics-editor textarea { font-size: 16px; line-height: 1.8; min-height: 650px; }
.checkout-summary { background: #f2e2d8; padding: 32px; border-radius: 4px; min-width: 0; }
.checkout-summary h2 { font-size: 49px; letter-spacing: -1px; margin: 20px 0; }
.checkout-summary > p { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.checkout-summary .choice-grid { grid-template-columns: 1fr; }
.checkout-summary > img { width: 58px; height: 58px; }
.checkout-summary .privacy-note { font-size: 11px; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.privacy-note { color: var(--muted); font-size: 11px; line-height: 1.7; }
.song-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 75px; margin-block: 55px 65px; align-items: start; }
.song-cover > img { width: 100%; height: auto; }
.song-cover .handwritten { text-align: center; margin-top: 10px; }
.song-content { min-width: 0; padding-top: 25px; }
.song-content h1 { font-size: clamp(42px, 4.5vw, 65px); margin: 20px 0; letter-spacing: -1.5px; overflow-wrap: anywhere; }
.song-lead { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.song-status { background: #f3e7dc; padding: 24px; display: flex; gap: 10px; margin: 25px 0; border: 1px solid var(--line); border-radius: 5px; }
.song-status .tiny-dot { color: var(--accent); flex-shrink: 0; margin-top: 8px; }
.song-status strong { font-size: 16px; font-weight: 500; }
.song-status p { font-size: 13px; color: var(--muted); margin-top: 9px; }
.song-status-error { border-color: var(--accent); }
.takes { list-style: none; margin: 25px 0; padding: 0; }
.takes li { padding: 20px; background: #fffdf8; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 14px; }
.take-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 16px; }
.take-heading h2 { font-size: 25px; }
.take-heading a { font-size: 11px; color: var(--accent); border-bottom: 1px solid; }
.takes audio { display: block; width: 100%; max-width: 100%; }
.take-heading h2 small { display: block; font: 500 11px 'DM Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.take-rating { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 14px; }
.take-rating > form { margin: 0; }
.rate-button { display: inline-block; cursor: pointer; font-size: 12px; font-weight: 600; padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); color: var(--ink); list-style: none; }
.rate-button::-webkit-details-marker { display: none; }
.rate-button:hover, .rate-dislike[open] > summary { border-color: var(--accent); color: var(--accent); }
.rate-dislike { flex: 1 1 100%; }
.rate-dislike:not([open]) { flex: 0 0 auto; }
.rate-form { display: grid; gap: 8px; margin-top: 12px; max-width: 520px; }
.rate-form label { font-size: 12px; font-weight: 600; }
.rate-form select, .rate-form textarea { font: inherit; font-size: 14px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.rate-form select:focus, .rate-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.rate-form .button { justify-self: start; }
.rating-state { font-size: 12px; color: var(--accent); font-weight: 600; padding: 7px 0; }
.share-song .privacy-note { margin-top: 17px; max-width: 400px; }
.song-lyrics { max-width: 800px; margin-inline: auto; border-top: 1px solid var(--line); padding-top: 45px; }
.song-lyrics h2 { font-size: 43px; margin: 15px 0 25px; }
.lyrics { white-space: pre-wrap; overflow-wrap: anywhere; font: 17px/1.95 'DM Sans', sans-serif; margin: 0; }

/* Text pages: terms, privacy, contact */
.text-page .flow-heading { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.prose { max-width: 680px; padding-block: 36px 10px; font-size: 15px; line-height: 1.75; }
.prose h2 { font: 400 clamp(24px, 2.4vw, 30px)/1.2 var(--display); margin: 42px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact-mail { font: 400 clamp(26px, 3vw, 38px)/1.2 var(--display); margin-bottom: 18px; }
.footer-links { display: flex; gap: 22px; }
.bih-notice { border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--soft) 45%, var(--paper)); padding: 14px 18px; font-size: 13px; margin-top: 18px; }
.bih-notice a, .currency-switch a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.currency-switch { margin-top: 18px; font-size: 11px; color: var(--muted); }
.currency-switch a { margin-left: 4px; }
.currency-switch a[aria-current] { font-weight: 700; text-decoration: none; }
.error-page { min-height: 52vh; }
.error-page .hero-actions { margin-top: 30px; }

@media (max-width: 1100px) {
    .flow-layout { gap: 35px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
    .paper-form { padding: 27px; }
    .checkout-summary { padding: 25px; }
    .choice-grid-compact { grid-template-columns: 1fr; }
    .song-layout { gap: 40px; }
    .app-shell .occasion-links-all strong { font-size: 13px; }
}
@media (max-width: 800px) {
    .app-shell .occasion-links-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-shell .occasion-links-all > a, .app-shell .occasion-links-all > a:last-child { padding: 24px 14px; border-right: 1px solid var(--line); }
    .app-shell .occasion-links-all > a:nth-child(4n+1) { padding-left: 14px; }
    .app-shell .occasion-links-all > a:nth-child(odd) { padding-left: 0; }
    .app-shell .occasion-links-all > a:nth-child(even) { border-right: 0; }
    .app-shell .occasion-links-all > a:last-child:nth-child(odd) { grid-column: span 2; border-right: 0; flex-direction: row; align-items: center; }
    .app-shell .occasion-hero { gap: 25px; }
    .app-shell .occasion-hero h1 { font-size: clamp(37px, 6vw, 51px); letter-spacing: -1px; }
    .flow-layout { grid-template-columns: minmax(0, 1fr); }
    .flow-aside { display: none; }
    .paper-form { padding: 32px; }
    .choice-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .checkout-summary { max-width: 100%; padding: 32px; }
    .checkout-summary .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .checkout-summary h2 br { display: none; }
    .checkout-summary > img { float: right; }
    .song-layout { gap: 30px; }
    .take-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
}
@media (max-width: 560px) {
    .app-shell .occasion-hero h1 { font-size: clamp(38px, 11.3vw, 60px); }
    .app-shell .occasion-hero .hero-visual { margin-top: 10px; }
    .app-shell .occasion-links-all strong { font-size: 14px; }
    .flow-page { padding-block: 22px 50px; }
    .order-progress { gap: 10px; justify-content: space-between; }
    .order-progress li { flex-direction: column; align-items: flex-start; gap: 9px; font-size: 10px; }
    .order-progress li > span:first-child { width: 28px; height: 28px; }
    .flow-heading { padding-block: 35px 30px; }
    .flow-heading h1 { font-size: 41px; letter-spacing: -1px; }
    .flow-heading > p { font-size: 14px; }
    .paper-form, .checkout-summary { padding: 22px 18px; }
    .form-section-heading h2 { font-size: 23px; }
    .choice-grid { grid-template-columns: minmax(0, 1fr); }
    .choice-grid-compact { grid-template-columns: minmax(0, 1fr); }
    .form-section-heading { margin-top: 30px; padding-top: 25px; }
    .lyrics-editor textarea { min-height: 520px; }
    .checkout-summary .choice-grid { grid-template-columns: minmax(0, 1fr); }
    .checkout-summary h2 { font-size: 42px; }
    .checkout-summary > img { width: 48px; height: 48px; }
    .song-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-block: 25px 40px; }
    .song-cover { max-width: 360px; margin-inline: auto; }
    .song-content { padding-top: 15px; }
    .song-content h1 { font-size: 46px; }
    .take-heading { flex-direction: row; align-items: center; gap: 12px; }
    .take-heading h2 { font-size: 23px; }
    .take-heading a { font-size: 10px; }
    .takes li { padding: 17px; }
    .share-song .button { width: 100%; justify-content: center; font-size: 12px; }
    .lyrics { font-size: 16px; }
}
