/* Piton Records · Chansons sur mesure — one stylesheet for every page (no external fonts or files). */
:root {
  --ink: #1d1730; --plum: #2b1640; --wine: #5a1f3f; --gold: #f4b740; --gold-d: #d6951a;
  --cream: #fff8ee; --card: #fff; --muted: #6b6480; --line: #eadfce; --green: #1f7a55; --red: #b83227;
  --radius: 16px; --shadow: 0 10px 30px rgba(43, 22, 64, .10);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; }
a { color: var(--wine); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* header */
.site-header { background: var(--plum); color: #fff; position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.brand small { display: block; font: 400 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--plum); font-size: 1.2rem; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: #e9def5; text-decoration: none; font-size: .95rem; }
.nav a:hover { color: #fff; }
.nav .lang { border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 2px 10px; font-size: .8rem; }
@media (max-width: 760px) { .nav .hide-s { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 1.05rem var(--sans); padding: 15px 26px; border-radius: 999px; background: var(--gold); color: var(--plum) !important;
  box-shadow: 0 6px 0 var(--gold-d); transition: transform .08s, box-shadow .08s, filter .15s; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--gold-d); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-small { padding: 8px 16px; font-size: .9rem; box-shadow: 0 3px 0 var(--gold-d); }
.btn-ghost { background: transparent; color: inherit !important; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:active { box-shadow: inset 0 0 0 2px currentColor; transform: none; }
.btn-plain { background: #f1e7d8; color: var(--ink) !important; box-shadow: 0 4px 0 #d9cbb4; }
.btn-block { display: flex; width: 100%; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #7a2a55 0%, transparent 60%), linear-gradient(160deg, var(--plum), #3d1a4f 55%, var(--wine)); color: #fff; padding: 56px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero .kicker { display: inline-block; background: rgba(244, 183, 64, .16); color: var(--gold); border: 1px solid rgba(244, 183, 64, .45); padding: 4px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 1.18rem; color: #eadff3; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; color: #eadff3; font-size: .95rem; }
.ticks li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 6px; }
.demo { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 22px; padding: 22px; backdrop-filter: blur(4px); }
.demo h3 { color: #fff; margin-bottom: 4px; }
.demo .who { color: var(--gold); font-size: .9rem; margin-bottom: 14px; }
.demo pre { white-space: pre-wrap; font: italic 1rem/1.55 var(--serif); color: #f3ebfa; margin: 14px 0 0; max-height: 11.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

/* sections */
.section { padding: 64px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.season { background: #1f5b43; color: #fff; text-align: center; padding: 10px 16px; font-size: .98rem; }
.season strong { color: var(--gold); }

/* sample cards */
.samples { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.sample { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.sample-top { display: flex; gap: 14px; align-items: center; }
.play { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; background: var(--plum); color: var(--gold); font-size: 1.25rem; display: grid; place-items: center; transition: transform .1s; }
.play:hover { transform: scale(1.06); }
.play.on { background: var(--gold); color: var(--plum); }
.hero .play { background: var(--gold); color: var(--plum); width: 60px; height: 60px; }
.sample h3 { margin: 0; font-size: 1.08rem; }
.sample .meta { color: var(--muted); font-size: .86rem; }
.track { height: 5px; border-radius: 3px; background: #efe5d6; overflow: hidden; }
.track i { display: block; height: 100%; width: 0; background: var(--gold-d); }
.hero .track { background: rgba(255, 255, 255, .2); }
.hero .track i { background: var(--gold); }
.sample details summary { cursor: pointer; color: var(--wine); font-size: .9rem; font-weight: 600; }
.sample pre { white-space: pre-wrap; font: italic .95rem/1.5 var(--serif); margin: 8px 0 0; color: #3d3550; }
.tag { display: inline-block; background: #f6ecdc; color: #6a4a12; border-radius: 999px; padding: 1px 10px; font-size: .78rem; font-weight: 600; margin-right: 4px; }

/* steps and benefits */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--plum); color: var(--gold); font: 700 1.1rem var(--serif); margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }
.price-card { background: linear-gradient(160deg, var(--plum), var(--wine)); color: #fff; border-radius: 24px; padding: 32px; display: grid; gap: 24px; align-items: center; box-shadow: var(--shadow); }
@media (min-width: 820px) { .price-card { grid-template-columns: 1fr auto; } }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.price-card li::before { content: "♪"; color: var(--gold); margin-right: 10px; }
.price-big { text-align: center; }
.price-big b { display: block; font: 700 3.4rem/1 var(--serif); color: var(--gold); }
.price-big span { display: block; color: #eadff3; font-size: .92rem; margin: 6px 0 16px; }

/* form */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); max-width: 780px; margin: 0 auto; }
.field { margin-bottom: 22px; }
.field > label, .field > .label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: .88rem; margin: -2px 0 8px; }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=email], select, textarea { width: 100%; font: inherit; color: inherit; padding: 13px 14px; border: 1.5px solid #d9cdb9; border-radius: 12px; background: #fffdf9; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(244, 183, 64, .45); border-color: var(--gold-d); }
textarea { min-height: 150px; resize: vertical; }
.two { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 8px 15px; border: 1.5px solid #d9cdb9; border-radius: 999px; background: #fffdf9; font-size: .95rem; user-select: none; }
.chips input:checked + span { background: var(--plum); border-color: var(--plum); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid rgba(244, 183, 64, .6); }
.ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ideas button { font: inherit; font-size: .82rem; border: 1px dashed #c9b999; background: #fbf4e8; border-radius: 999px; padding: 3px 11px; cursor: pointer; color: #5c4a22; }
.counter { text-align: right; font-size: .8rem; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; margin: 6px 0 18px; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--plum); }
.err { color: var(--red); font-size: .9rem; font-weight: 600; margin-top: 6px; }
.invalid { border-color: var(--red) !important; }
.hp { position: absolute; left: -9999px; }
.form-foot { color: var(--muted); font-size: .88rem; text-align: center; margin: 14px 0 0; }

/* notes, faq, footer */
.note { border-radius: var(--radius); padding: 16px 18px; background: #f6ecdc; border: 1px solid #e6d5b6; margin: 0 0 18px; }
.note.ok { background: #e7f5ee; border-color: #b9dfcb; }
.note.warn { background: #fdecea; border-color: #f2c2bc; }
.ai-box { display: grid; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
@media (min-width: 760px) { .ai-box { grid-template-columns: auto 1fr; } }
.ai-box .big { font-size: 3rem; }
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.faq details p { color: #4a4360; }
.site-footer { background: var(--plum); color: #d9cbe6; padding: 30px 0; font-size: .9rem; text-align: center; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 6px; }

/* legal and plain pages */
.legal { max-width: 800px; padding-top: 40px; padding-bottom: 60px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.3em; }
.legal-date { color: var(--muted); font-size: .9rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0 0 1em; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: #f6ecdc; }

/* order, share and card pages */
.stage { max-width: 720px; margin: 0 auto; padding: 36px 20px 70px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); margin-bottom: 20px; }
.panel h1 { font-size: clamp(1.6rem, 4.4vw, 2.2rem); }
.eq { display: flex; gap: 5px; align-items: flex-end; height: 44px; justify-content: center; margin: 8px 0 18px; }
.eq i { width: 7px; border-radius: 4px; background: var(--gold-d); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .15s; } .eq i:nth-child(3) { animation-delay: .3s; } .eq i:nth-child(4) { animation-delay: .45s; } .eq i:nth-child(5) { animation-delay: .6s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.stages { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.stages li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.stages li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d9cdb9; flex: none; }
.stages li.done { color: var(--ink); }
.stages li.done::before { content: "✓"; display: grid; place-items: center; background: var(--green); border-color: var(--green); color: #fff; font-size: .8rem; font-weight: 700; }
.stages li.now { color: var(--ink); font-weight: 700; }
.stages li.now::before { border-color: var(--gold-d); border-top-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar-wait { height: 8px; border-radius: 4px; background: #efe5d6; overflow: hidden; margin-top: 18px; }
.bar-wait i { display: block; height: 100%; width: 3%; background: linear-gradient(90deg, var(--gold), var(--gold-d)); transition: width 1s linear; }
audio { width: 100%; margin: 6px 0 4px; }
.lyrics { white-space: pre-wrap; font: italic 1.05rem/1.65 var(--serif); background: #fffaf2; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 14px 0; }
.lyrics.fade { max-height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.unlock { background: linear-gradient(160deg, var(--plum), var(--wine)); color: #fff; border-radius: 24px; padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); margin-bottom: 20px; }
.unlock h2 { color: #fff; }
.unlock ul { padding-left: 1.2em; margin: 0 0 16px; }
.unlock .check { color: #eadff3; }
.unlock .check a { color: #fff; }
.unlock .price { font: 700 2.4rem/1 var(--serif); color: var(--gold); }
.unlock .fine { color: #d9cbe6; font-size: .85rem; margin: 12px 0 0; text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row > * { flex: 1 1 200px; }
.linkbox { display: flex; gap: 8px; }
.linkbox input { font-size: .85rem; }
.gift-hero { text-align: center; padding: 40px 20px 10px; }
.gift-hero .big { font-size: 3.4rem; }

/* printable gift card */
.card-sheet { background: #fff; width: min(100%, 720px); margin: 24px auto; border: 2px solid var(--plum); border-radius: 18px; padding: 34px; text-align: center; position: relative; }
.card-sheet::after { content: ""; position: absolute; inset: 8px; border: 1px dashed var(--gold-d); border-radius: 12px; pointer-events: none; }
.card-sheet h1 { font-size: 2rem; margin-bottom: .2em; }
.card-sheet .qr { width: 210px; height: 210px; margin: 18px auto 8px; }
.card-sheet .qr svg, .card-sheet .qr img { width: 100%; height: 100%; }
.card-url { font-size: .78rem; color: var(--muted); word-break: break-all; }
@media print {
  .no-print, .site-header, .site-footer { display: none !important; }
  body { background: #fff; }
  .card-sheet { margin: 0 auto; box-shadow: none; }
}

/* small fixes */
section[id], #create { scroll-margin-top: 76px; }
.two { align-items: end; }
@media (max-width: 520px) {
  .brand { font-size: .98rem; white-space: nowrap; }
  .brand small { display: none; }
  .brand-mark { width: 30px; height: 30px; font-size: 1rem; }
  .nav { gap: 10px; }
  .btn-small { padding: 7px 12px; font-size: .82rem; white-space: nowrap; }
  .hero { padding: 36px 0 44px; }
  .section { padding: 44px 0; }
}
