/* Punch Ponch — shared styles */
:root {
  --cream: #fcf7f1;
  --cream-2: #f5ede2;
  --paper: #fffdf9;
  --butter: #f3dca4;
  --butter-2: #fbeecb;
  --lilac: #a57bb0;
  --lilac-soft: #ecdff0;
  --plum: #6f4580;      /* text-safe purple */
  --plum-dark: #57346a;
  --brown: #5e4637;
  --ink: #3b2c23;
  --muted: #7a6758;
  --line: #e7dccd;
  --coral: #e2583e;
  --wa: #1f9d55;
  --radius: 22px;
  --shadow-sm: 0 2px 6px rgba(94, 70, 55, .08);
  --shadow: 0 14px 40px -14px rgba(94, 70, 55, .28);
  --shadow-lg: 0 30px 70px -24px rgba(94, 70, 55, .38);
  --font-head: "Fredoka", "Rubik", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--plum); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brown); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 120px); position: relative; scroll-margin-top: 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  color: var(--plum); background: var(--lilac-soft);
  padding: .35em 1em; border-radius: 999px; margin-bottom: 1rem;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; background: var(--plum); color: #fff; padding: .6em 1em; border-radius: 10px; z-index: 1000; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  --bg: var(--plum); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem;
  background: var(--bg); color: var(--fg); text-decoration: none;
  padding: .9em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(111, 69, 128, .7);
  transition: transform .25s cubic-bezier(.2,.8,.2,1.4), box-shadow .25s, background .2s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 28px -10px rgba(111, 69, 128, .75); background: var(--plum-dark); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ghost { --bg: transparent; --fg: var(--plum); box-shadow: inset 0 0 0 2px var(--lilac); }
.btn-ghost:hover { background: var(--lilac-soft); box-shadow: inset 0 0 0 2px var(--plum); }
.btn-wa { --bg: var(--wa); box-shadow: 0 8px 20px -8px rgba(31, 157, 85, .7); }
.btn-wa:hover { background: #17824a; box-shadow: 0 14px 28px -10px rgba(31, 157, 85, .75); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-lg { font-size: 1.2rem; padding: 1em 2em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
/* the logo sits in the middle; the order button keeps to the end */
.site-header .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; gap: 1rem; }
.brand { grid-column: 2; display: block; line-height: 0; }
.brand img { height: 60px; width: auto; }
.header-cta { grid-column: 3; justify-self: end; padding: .65em 1.3em; font-size: 1rem; }

/* Hero */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(56px, 9vw, 110px); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 .accent { color: var(--plum); position: relative; white-space: nowrap; }
.hero h1 .accent svg { position: absolute; inset-inline: -4%; bottom: -.18em; width: 108%; height: .5em; overflow: visible; }
.hero h1 .accent path { stroke: var(--butter); stroke-width: 9; fill: none; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s .6s cubic-bezier(.6,.1,.2,1) forwards; }
.hero h1 .accent span { position: relative; z-index: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.price-chip {
  display: inline-flex; align-items: baseline; gap: .4em; margin-top: 1.4rem;
  font-family: var(--font-head); color: var(--brown);
}
.price-chip strong { font-size: 2rem; color: var(--plum); }
.price-chip small { color: var(--muted); font-family: var(--font-body); font-size: .92rem; }

.hero-art { position: relative; aspect-ratio: 1 / 1; perspective: 900px; }
/* before and after: the real dog (a photo print, on the right) -> arrow -> the yarn piece (on the left) */
.hero-frame {
  position: absolute; left: 2%; bottom: 4%; width: 62%; aspect-ratio: 900 / 823; margin: 0; z-index: 1;
  border-radius: 18px; overflow: hidden; background: var(--paper); border: 7px solid var(--paper); rotate: -3deg;
  box-shadow: var(--shadow-lg); transform-style: preserve-3d;
  transition: transform .25s ease-out; will-change: transform;
  animation: float 7s ease-in-out infinite;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.35), transparent 55%); pointer-events: none; }
.hero-frame figcaption, .ba-before figcaption {
  position: absolute; z-index: 2; background: var(--plum); color: #fff; font-family: var(--font-head); font-weight: 500;
  font-size: clamp(.82rem, 1.5vw, 1.02rem); padding: .3em 1em; border-radius: 999px; box-shadow: var(--shadow-sm); white-space: nowrap;
}
.hero-frame figcaption { top: 10px; right: 10px; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.ba-before {
  position: absolute; top: 1%; right: 3%; width: 37%; margin: 0; z-index: 2;
  background: #fff; padding: 3.4% 3.4% 15%; border-radius: 6px; rotate: 5deg; box-shadow: var(--shadow-lg);
  animation: popIn .8s .3s cubic-bezier(.2,.9,.3,1.35) both;
}
.ba-before img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.ba-before figcaption { bottom: 3.5%; left: 50%; translate: -50% 0; background: var(--brown); }
.ba-arrow { position: absolute; top: 13%; left: 27%; width: 31%; z-index: 3; overflow: visible; pointer-events: none; }
.ba-arrow path { fill: none; stroke: var(--plum); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .9s 1s ease-out forwards; }
.ba-arrow path + path { animation-duration: .35s; animation-delay: 1.85s; }
.yarn {
  position: absolute; border-radius: 50%;
  background:
    repeating-linear-gradient(35deg, rgba(255,255,255,.22) 0 3px, transparent 3px 8px),
    repeating-linear-gradient(-55deg, rgba(0,0,0,.08) 0 2px, transparent 2px 9px),
    var(--c);
  box-shadow: inset -8px -10px 18px rgba(0,0,0,.18), var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.yarn.y1 { --c: var(--lilac); width: 17%; aspect-ratio: 1; top: 50%; right: 0; animation-delay: -1s; }
.yarn.y2 { --c: var(--coral); width: 12%; aspect-ratio: 1; top: 3%; left: 6%; animation-delay: -3s; }
@keyframes popIn { from { scale: 0; opacity: 0; } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(12deg); } }
.sticker {
  position: absolute; bottom: 5%; right: 3%; z-index: 2;
  background: var(--butter); color: var(--brown); font-family: var(--font-head); font-weight: 600;
  width: 7.2em; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center;
  line-height: 1.15; font-size: clamp(.8rem, 1.4vw, 1rem); box-shadow: var(--shadow); rotate: 12deg;
  animation: spinIn .9s 1.2s cubic-bezier(.2,.9,.3,1.4) both;
}
@keyframes spinIn { from { scale: 0; rotate: -40deg; } }

/* Marquee trust strip */
.marquee { background: var(--plum); color: #fff; overflow: hidden; padding-block: .95rem; font-family: var(--font-head); font-size: 1.05rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: .9rem; padding-inline: 1.6rem; white-space: nowrap; }
.marquee-track span::after { content: "✿"; color: var(--butter); }
@keyframes marquee { to { transform: translateX(50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Steps */
.steps { list-style: none; padding: 0; text-align: start; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3rem; counter-reset: step; position: relative; }
.step {
  background: var(--paper); border-radius: var(--radius); padding: 1.8rem 1.4rem 1.5rem; position: relative;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  counter-increment: step; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lilac-soft); color: var(--plum); font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; margin-bottom: 1rem;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: .35em; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }
.step .tag { display: inline-block; margin-top: .8rem; font-size: .82rem; background: var(--butter-2); color: var(--brown); padding: .2em .8em; border-radius: 999px; }

/* Try-it preview */
.try { background: var(--paper); border-block: 1px solid var(--line); }
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.drop {
  border: 2.5px dashed var(--lilac); border-radius: var(--radius); background: var(--cream);
  padding: 2rem 1.4rem; text-align: center; cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
  display: grid; gap: .6rem; justify-items: center;
}
.drop:hover, .drop.dragover { background: var(--lilac-soft); border-color: var(--plum); transform: scale(1.01); }
.drop svg { width: 46px; height: 46px; color: var(--plum); }
.drop strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--brown); }
.drop small { color: var(--muted); }
.try-note { font-size: .9rem; color: var(--muted); margin-top: 1rem; display: flex; gap: .5em; align-items: flex-start; }
.try-note svg { flex: none; width: 1.2em; height: 1.2em; margin-top: .25em; color: var(--plum); }
.preview-stage { position: relative; display: grid; place-items: center; }
.preview-frame {
  width: min(100%, 440px); aspect-ratio: 1; padding: 6%; border-radius: 14px;
  background: linear-gradient(135deg, #efe2cf, #e3d2ba); box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.5);
  position: relative;
}
.preview-frame canvas, .preview-frame img { width: 100%; height: 100%; border-radius: 6px; display: block; background: var(--cream-2); }
.preview-frame .placeholder-art { opacity: .95; }
.preview-label {
  position: absolute; bottom: -14px; inset-inline-start: 50%; translate: 50% 0; white-space: nowrap;
  background: var(--brown); color: #fff; font-size: .85rem; padding: .3em 1em; border-radius: 999px; font-family: var(--font-head);
}
[dir="rtl"] .preview-label { translate: 50% 0; }
.preview-actions { display: none; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.preview-actions.show { display: flex; }
.preview-frame.working::before {
  content: ""; position: absolute; inset: 6%; border-radius: 6px; z-index: 2;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.6) 50%, transparent 80%) var(--cream-2);
  background-size: 200% 100%; animation: shimmer 1s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.preview-frame img.placeholder-art { object-fit: cover; }
/* bare monk's cloth showing through before the rows are punched */
.preview-frame canvas {
  background:
    repeating-linear-gradient(0deg, rgba(150,120,80,.16) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(150,120,80,.16) 0 1px, transparent 1px 4px),
    #ece0c9;
}
.face-note {
  display: flex; gap: .8rem; align-items: flex-start; margin: 0 0 1.3rem;
  background: var(--butter-2); border: 1px solid #ecd9a6; border-radius: 16px; padding: .9rem 1.1rem;
}
.face-note-ico { font-size: 1.6rem; line-height: 1.2; }
.face-note p { margin: 0; font-size: .97rem; color: var(--brown); line-height: 1.55; }
/* style, extras and background for the preview */
.look { width: min(100%, 440px); margin-top: 2.1rem; display: grid; gap: .6rem; }
.look-row { display: flex; align-items: center; gap: .5rem .8rem; flex-wrap: wrap; }
.look-label { font-family: var(--font-head); color: var(--brown); min-width: 3.6em; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  font: 500 .95rem/1.2 var(--font-head); color: var(--brown); background: var(--paper); cursor: pointer;
  padding: .45em .95em; border-radius: 999px; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.chip:hover { border-color: var(--lilac); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.chip:focus-visible { outline: 3px solid var(--butter); outline-offset: 2px; }
/* drawing with AI */
.ai-switch {
  display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 1rem; padding: .85rem 1.05rem; cursor: pointer;
  border-radius: 16px; background: var(--lilac-soft); border: 1px solid #dcc8e3; color: var(--brown); font-size: .97rem; line-height: 1.55;
}
.ai-switch input { flex: none; width: 1.25em; height: 1.25em; margin-top: .2em; accent-color: var(--plum); cursor: pointer; }
.ai-switch b { color: var(--plum); }
.preview-frame.drawing canvas { filter: saturate(.75) brightness(1.05); transition: filter .3s; }
.preview-frame.drawing::after {
  content: "✨ ה-AI מצייר…"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; z-index: 3; white-space: nowrap;
  background: var(--plum); color: #fff; font-family: var(--font-head); font-size: 1.05rem; padding: .55em 1.3em; border-radius: 999px;
  box-shadow: var(--shadow); animation: aiPulse 1.4s ease-in-out infinite;
}
@keyframes aiPulse { 50% { scale: 1.07; } }
.ai-again { display: flex; margin: .9rem auto 0; }
.swatches { display: flex; gap: .5rem; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; padding: 0; cursor: pointer; background: var(--c);
  border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--plum); transform: scale(1.08); }
.cropper { width: min(100%, 440px); margin-top: 1.2rem; }
.cropper-title { font-family: var(--font-head); color: var(--brown); text-align: center; margin: 0 0 .6rem; }
.crop-stage {
  position: relative; width: min(100%, calc(300px * var(--ar, 1))); aspect-ratio: var(--ar, 1); margin-inline: auto;
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: var(--cream-2); touch-action: none; cursor: crosshair;
}
.crop-photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.crop-box {
  position: absolute; border: 2.5px dashed #fff; border-radius: 12px; cursor: grab; touch-action: none;
  box-shadow: 0 0 0 9999px rgba(40, 28, 22, .5);
}
.crop-box.dragging { cursor: grabbing; }
.crop-box:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }
.crop-grip {
  position: absolute; width: 26px; height: 26px; left: -13px; bottom: -13px; border-radius: 50%;
  background: #fff; border: 3px solid var(--plum); box-shadow: var(--shadow-sm); cursor: nesw-resize;
}
.crop-size { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; font-size: .9rem; color: var(--muted); }
.crop-size input { flex: 1; accent-color: var(--plum); }

/* Box contents */
.box-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.box-visual { position: relative; }
.box-visual .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--cream-2); }
.box-visual .photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 2rem;
  background: repeating-linear-gradient(45deg, var(--cream-2) 0 14px, var(--cream) 14px 28px); color: var(--muted); font-size: .95rem;
}
/* Tutorial video */
.tutorial-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.player {
  position: relative; width: 100%; max-width: 360px; margin-inline: auto; aspect-ratio: 9 / 16;
  border-radius: 28px; overflow: hidden; background: #2b211b; box-shadow: var(--shadow-lg);
  outline: 6px solid var(--paper); isolation: isolate;
}
.player video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.player-caption {
  position: absolute; inset-inline: 7%; bottom: 8%; text-align: center; pointer-events: none;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.player-caption.show { opacity: 1; transform: none; }
.player-caption span {
  display: inline; background: rgba(43, 33, 27, .78); color: #fff; font-family: var(--font-head); font-weight: 500;
  font-size: clamp(.95rem, 2.4vw, 1.08rem); line-height: 1.75; padding: .25em .6em; border-radius: 10px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.player-play {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 78px; height: 78px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: var(--plum); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: opacity .3s, transform .3s cubic-bezier(.2,.9,.3,1.5);
}
.player-play svg { width: 34px; height: 34px; margin-inline-start: 4px; }
[dir="rtl"] .player-play svg { margin-inline-start: 0; margin-inline-end: 4px; }
.player-play::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); animation: ping 2.4s ease-out infinite; }
.player-play:hover { transform: scale(1.08); }
.player.playing .player-play { opacity: 0; pointer-events: none; transform: scale(.8); }
.player-bar { position: absolute; bottom: 0; inset-inline: 0; height: 5px; background: rgba(255,255,255,.25); }
.player-bar span { display: block; height: 100%; width: 0; background: var(--butter); transition: width .25s linear; }
.chapters { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.chapters button {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px; padding: .85rem 1.1rem;
  transition: border-color .25s, background .25s, transform .25s;
}
.chapters button:hover { border-color: var(--lilac); transform: translateX(-4px); }
.chapters button:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
.chapters button.active { border-color: var(--plum); background: var(--lilac-soft); }
.ch-num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--butter-2); font-family: var(--font-head); font-weight: 600; color: var(--brown); transition: background .25s, color .25s; }
.chapters button.active .ch-num { background: var(--plum); color: #fff; }
.chapters b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--brown); }
.chapters small { color: var(--muted); font-size: .92rem; }
.ch-time { font-family: var(--font-head); color: var(--muted); font-size: .9rem; direction: ltr; }

.box-visual .badge {
  position: absolute; bottom: -18px; inset-inline-end: -10px; background: var(--paper); border-radius: 18px; padding: .9rem 1.2rem;
  box-shadow: var(--shadow); font-family: var(--font-head); color: var(--brown); display: flex; gap: .6rem; align-items: center;
}
.badge b { font-size: 1.7rem; color: var(--plum); }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .85rem; }
.checklist li { display: flex; gap: .9rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1.1rem; transition: transform .25s, border-color .25s; }
.checklist li:hover { transform: translateX(-6px); border-color: var(--lilac); }
.checklist .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--butter-2); font-size: 1.25rem; }
.checklist b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--brown); }
.checklist span { color: var(--muted); font-size: .95rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.gallery figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; cursor: zoom-in; }
.gallery figure:nth-child(odd) { rotate: -1.2deg; }
.gallery figure:nth-child(even) { rotate: 1.2deg; }
.gallery figure:hover { transform: translateY(-8px) scale(1.04); rotate: 0deg; box-shadow: var(--shadow-lg); z-index: 2; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.gallery-real { grid-template-columns: repeat(3, 1fr); }
.gallery-real img { aspect-ratio: 3 / 4; }
.gallery-real figure:nth-child(3n+2) { translate: 0 28px; }
.about-photo img { object-position: 57% 40%; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(59, 44, 35, .82); padding: var(--gutter); opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 16px; box-shadow: var(--shadow-lg); transform: scale(.92); transition: transform .35s cubic-bezier(.2,.9,.3,1.3); }
.lightbox.open img { transform: scale(1); }
.lightbox-close { position: absolute; top: 18px; inset-inline-end: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--brown); font-size: 1.6rem; cursor: pointer; }

/* Why / benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.benefit { padding: 1.8rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.benefit .emoji { font-size: 2rem; display: inline-block; margin-bottom: .6rem; transition: transform .4s cubic-bezier(.2,.9,.3,1.6); }
.benefit:hover .emoji { transform: scale(1.25) rotate(-10deg); }
.benefit p { color: var(--muted); margin: 0; }

/* About */
.about { background: var(--lilac-soft); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.about-photo { aspect-ratio: 4/5; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.signature { font-family: var(--font-head); font-size: 1.5rem; color: var(--plum); }

/* Pricing */
.price-card {
  max-width: 720px; margin: 2.6rem auto 0; background: var(--paper); border-radius: 28px; padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-lg); border: 2px solid var(--lilac-soft); position: relative; overflow: hidden;
}
.price-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--butter-2); top: -120px; inset-inline-start: -100px; z-index: 0; }
.price-card > * { position: relative; }
.price-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: 1.2rem; margin-bottom: 1.2rem; }
.price-big { font-family: var(--font-head); font-size: clamp(2.8rem, 7vw, 3.8rem); color: var(--plum); line-height: 1; font-weight: 600; }
.price-big small { font-size: .38em; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.2rem; }
.price-card li { display: flex; gap: .5rem; align-items: flex-start; }
.price-card li::before { content: "✓"; color: var(--wa); font-weight: 700; }
.guarantee { display: flex; gap: 1rem; align-items: flex-start; background: var(--butter-2); border-radius: 18px; padding: 1.1rem 1.2rem; margin-bottom: 1.6rem; }
.guarantee .seal { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--butter); display: grid; place-items: center; font-size: 1.6rem; }
.guarantee b { font-family: var(--font-head); color: var(--brown); display: block; }
.guarantee p { margin: 0; font-size: .95rem; color: var(--ink); }
.price-cta { display: grid; gap: .7rem; }
.price-cta .btn { width: 100%; }
.fine { font-size: .85rem; color: var(--muted); text-align: center; margin: .8rem 0 0; }

/* FAQ */
.faq { max-width: 800px; margin: 2.6rem auto 0; display: grid; gap: .8rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--lilac); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 1.4rem; font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; color: var(--brown); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--lilac-soft); color: var(--plum); display: grid; place-items: center; font-size: 1.3rem; transition: transform .3s, background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--butter); }
.faq .answer { padding: 0 1.4rem 1.2rem; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* Final CTA */
.final { text-align: center; background: var(--plum); color: #fff; border-radius: 36px; padding: clamp(2.4rem, 6vw, 4.4rem) var(--gutter); position: relative; overflow: hidden; }
.final h2 { color: #fff; }
.final p { color: #f1e6f4; max-width: 34em; margin-inline: auto; }
.final .btn { --bg: var(--butter); --fg: var(--brown); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.final .btn:hover { background: #f8e6b8; }
.final .dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 2px, transparent 2.5px); background-size: 22px 22px; pointer-events: none; }

/* Footer */
.site-footer { padding-block: 3rem 6rem; color: var(--muted); font-size: .95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; border-top: 1px solid var(--line); padding-top: 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--plum); text-decoration: underline; }
.footer-brand img { height: 104px; width: auto; }
.linklike { all: unset; cursor: pointer; color: var(--muted); }
.linklike:hover { color: var(--plum); text-decoration: underline; }

/* Floating WhatsApp + mobile bar */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(31,157,85,.8);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.5);
}
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.mobile-bar { display: none; }

/* Cookie banner */
.cookie {
  position: fixed; bottom: 16px; inset-inline: 16px; z-index: 120; max-width: 560px; margin-inline: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 1.2rem 1.3rem; display: none; font-size: .95rem;
}
.cookie.show { display: block; animation: rise .5s cubic-bezier(.2,.9,.3,1.2); }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
.cookie p { margin: 0 0 .9rem; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie .btn { font-size: .95rem; padding: .6em 1.2em; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Legal pages */
.legal { max-width: 820px; margin-inline: auto; padding-block: 3rem 5rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.legal .updated { color: var(--muted); font-size: .95rem; }
.legal .note { background: var(--butter-2); border-radius: 14px; padding: 1rem 1.2rem; font-size: .95rem; }
.legal ul { padding-inline-start: 1.3rem; }
.back-link { display: inline-flex; gap: .4em; align-items: center; text-decoration: none; font-family: var(--font-head); margin-bottom: 1.5rem; }

/* Home */
.home-hero { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 3rem; }
.home-hero img.logo { width: min(520px, 90%); margin: 0 auto 1.5rem; }
.product-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2rem; text-align: start; }
.product-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .3s, box-shadow .3s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.product-card div { padding: 1.1rem 1.3rem; }
.product-card h3 { margin: 0 0 .2rem; }
.product-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Responsive */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero .container, .try-grid, .box-grid, .about-grid, .tutorial-grid { grid-template-columns: 1fr; }
  .player { max-width: 320px; }
  .hero-art { max-width: 460px; width: 100%; margin-inline: auto; order: -1; }
  .hero { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .about-photo { max-width: 360px; margin-inline: auto; }
  .box-visual { max-width: 440px; margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .container { height: 66px; } .brand img { height: 50px; }
  .header-cta { display: none; }
  .steps, .benefits { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .gallery-real figure:nth-child(3n+2) { translate: none; }
  .gallery-real figure:nth-child(even) { translate: 0 18px; }
  .price-card ul { grid-template-columns: 1fr; }
  .wa-float { display: none; }
  .mobile-bar {
    display: flex; gap: .6rem; position: fixed; bottom: 0; inset-inline: 0; z-index: 70;
    padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar .btn { flex: 1; font-size: 1rem; padding: .8em 1em; }
  .cookie { bottom: 84px; }
  .preview-label { font-size: .78rem; }
  .crop-stage { width: min(100%, calc(240px * var(--ar, 1))); }
  .swatch { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.bot-check { display: flex; justify-content: center; margin-top: 1rem; }
.bot-check:empty { display: none; }

/* Ordering the visitor's own design */
.order-btn { display: flex; margin: 1.9rem auto 0; box-shadow: 0 10px 24px -10px rgba(111, 69, 128, .7); }
.order-dialog {
  width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px;
  background: var(--paper); color: var(--ink, #3b2b22); box-shadow: 0 30px 80px -20px rgba(40, 20, 40, .45); overflow: auto;
}
.order-dialog::backdrop { background: rgba(43, 30, 40, .55); backdrop-filter: blur(3px); }
.order-form, .order-done { padding: 1.6rem 1.5rem 1.4rem; display: grid; gap: .9rem; position: relative; }
.order-dialog h2 { font-size: 1.45rem; margin: 0 0 .2rem; padding-inline-end: 2rem; }
.order-close { position: absolute; top: .8rem; inset-inline-end: .9rem; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--lilac-soft); color: var(--plum); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.order-top { display: flex; gap: 1rem; align-items: center; background: var(--cream); border-radius: 16px; padding: .8rem; }
.order-design { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; flex: none; box-shadow: var(--shadow-sm); }
.order-top p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.field { display: grid; gap: .3rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-family: var(--font-head); color: var(--brown); font-size: .98rem; }
.field small, .delivery small { color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; width: 100%; padding: .65em .8em; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; color: inherit; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--lilac-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.delivery { gap: .45rem; }
.delivery label { display: flex; gap: .55rem; align-items: center; padding: .6rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.delivery label:has(input:checked) { border-color: var(--plum); background: var(--lilac-soft); }
.delivery input, .consent input { accent-color: var(--plum); width: 1.15em; height: 1.15em; flex: none; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; line-height: 1.5; color: var(--brown); }
.consent input { margin-top: .2em; }
.order-error { margin: 0; color: #b3261e; background: #fdecea; border-radius: 10px; padding: .55rem .8rem; font-size: .95rem; }
.order-submit { width: 100%; justify-content: center; }
.order-fine { margin: 0; text-align: center; font-size: .85rem; color: var(--muted); }
.order-done { text-align: center; justify-items: center; padding-block: 2.2rem; }
.order-done-ico { font-size: 3rem; }
.order-done p { margin: 0; color: var(--brown); }
.order-id { font-family: var(--font-head); font-size: 1.25rem; color: var(--plum); letter-spacing: .04em; }
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .order-design { width: 92px; height: 92px; }
  .order-form, .order-done { padding: 1.3rem 1.1rem 1.1rem; }
}

/* The visitor's own designs, kept on the device */
.my-designs { width: min(100%, 440px); margin-top: 1.4rem; padding: .8rem; border-radius: 16px; transition: background .3s; }
.my-designs-title { margin: 0 0 .55rem; font-family: var(--font-head); color: var(--brown); display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: baseline; }
.my-designs-title small { color: var(--muted); font-family: var(--font-body); font-size: .85rem; }
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: .5rem; }
.design-thumb { padding: 0; aspect-ratio: 1; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--cream-2); transition: transform .15s, border-color .15s; }
.design-thumb:hover { transform: translateY(-2px); border-color: var(--lilac); }
.design-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.design-thumb[aria-pressed="true"] { border-color: var(--plum); box-shadow: 0 0 0 2px var(--plum); }
.design-thumb:focus-visible { outline: 3px solid var(--butter); outline-offset: 2px; }
.my-designs.flash { animation: designsFlash 1.1s ease 2; }
@keyframes designsFlash { 50% { background: var(--lilac-soft); } }
