/* Layout: one phone-sized app. Full screen on a phone, a 402x874 device on desktop. */
:root{
  --wine-900:#5f0015; --wine-700:#902238; --wine-500:#b00d39;
  --cream-200:#f4e2d7; --cream-100:#fbeee6; --rose-200:#fec9c4; --rose-500:#a45c67;
  --white:#ffffff; --ink:#2a0008; --grey-400:#a39b9b; --grey-200:#d9cfcf;
  --error:#b3261e; --error-bg:#fde0dc;
  --display:'Anton','Arial Narrow',Impact,sans-serif;
  --script:'Instrument Serif',Georgia,serif;
  --body:'DM Sans',system-ui,-apple-system,sans-serif;
  --mono:'DM Mono',ui-monospace,Menlo,monospace;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%;margin:0}
body{background:var(--grey-400);color:var(--ink);font-family:var(--body);overflow:hidden}
button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer}
input{font:inherit}
.stage{height:100%;display:flex;align-items:center;justify-content:center}
.device{position:relative;width:100%;height:100%;overflow:hidden;background:var(--cream-100)}
/* A real web page: each screen is full-bleed, its content sits in a centered column. */
body{background:var(--cream-100);overflow:hidden}
.stage{display:block;height:100dvh}
.device{position:relative;width:100%;height:100dvh;overflow:hidden;background:var(--cream-100)}
.screen{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--cream-100);animation:in .28s ease-out both}
.screen.dark{background:var(--wine-700);color:var(--cream-100)}
.screen.deep{background:var(--wine-900);color:var(--cream-100)}
.screen.white{background:var(--white)}
@keyframes in{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.screen{animation:none}*{transition:none!important;animation:none!important}}

/* status bar: only drawn in the desktop device frame */
.sb{display:none!important;height:54px;flex:none;align-items:center;justify-content:space-between;padding:6px 32px 0;font-weight:700;font-size:16px}
.sb i{display:flex;gap:6px;align-items:center}
.sb b{display:block;width:3px;background:currentColor;border-radius:1px}
.sb em{display:block;width:25px;height:12px;border:1.5px solid currentColor;border-radius:4px;position:relative}
.sb em:after{content:"";position:absolute;inset:1.5px 5px 1.5px 1.5px;background:currentColor;border-radius:2px}
.top{flex:none;height:calc(env(safe-area-inset-top,0px) + 12px)}

.head{flex:none;display:flex;align-items:center;gap:8px;padding:4px 24px 0 12px;height:44px}
.back{width:40px;height:40px;display:grid;place-items:center;border-radius:20px}
.back svg{width:24px;height:24px}
.prog{flex:1;height:8px;border-radius:99px;background:var(--grey-200);overflow:hidden}
.prog>span{display:block;height:100%;background:var(--wine-500);border-radius:99px;transition:width .4s}
.body{flex:1;min-height:0;overflow-y:auto;padding:24px 24px 24px;display:flex;flex-direction:column;gap:16px;position:relative;-webkit-overflow-scrolling:touch}
.bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px calc(env(safe-area-inset-bottom,0px) + 28px);min-height:96px}
.bar.center{justify-content:center}
.sum{display:flex;flex-direction:column;gap:2px;font-size:12px;color:var(--rose-500)}
.sum b{font-size:20px;color:var(--ink);font-family:var(--body)}
.hi{display:none;position:absolute;left:50%;bottom:8px;width:134px;height:5px;margin-left:-67px;border-radius:3px;background:var(--wine-900);opacity:.9;pointer-events:none}
.dark .hi,.deep .hi{background:var(--cream-100)}

h1{margin:0;font-family:var(--display);font-weight:400;font-size:38px;line-height:1.08;text-transform:lowercase;letter-spacing:.2px;text-wrap:balance}
.script{font-family:var(--script);font-style:italic;font-size:24px;line-height:1.2}
p{margin:0}
.muted{font-size:14px;line-height:1.45;opacity:.75}
.label{font-size:11px;font-weight:500;letter-spacing:.09em;text-transform:uppercase;opacity:.7}

.btn{height:56px;padding:0 28px;border-radius:99px;background:var(--wine-900);color:var(--cream-100);font-weight:700;font-size:17px;display:inline-flex;align-items:center;gap:8px;justify-content:center;transition:transform .12s,opacity .2s}
.btn:active{transform:scale(.97)}
.btn[disabled]{background:var(--grey-200);color:#8d8484;cursor:not-allowed}
.btn.light{background:var(--cream-200);color:var(--wine-900)}
.btn svg{width:18px;height:18px}
.link{font-size:14px;text-decoration:underline;font-weight:500}

/* option cards */
.card{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:var(--white);border:2px solid transparent;border-radius:24px;padding:14px;position:relative;transition:border-color .15s,background .15s}
.card.sel{background:#ffe9e6;border-color:var(--wine-500)}
.card .tile{flex:none;width:56px;height:56px;border-radius:16px;background:var(--cream-200);display:grid;place-items:center}
.card.sel .tile{background:var(--rose-200)}
.card .tile img{width:46px;height:46px;object-fit:contain}
.card .txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.card .t{font-weight:700;font-size:16px}
.card .d{font-size:12px;line-height:1.35;opacity:.7}
.card .pr{font-weight:700;font-size:16px;flex:none}
.chk{position:absolute;top:-8px;right:-4px;width:26px;height:26px;border-radius:50%;background:var(--wine-700);display:none;place-items:center}
.card.sel .chk{display:grid}
.chk svg{width:14px;height:14px}

/* fields */
.field{display:flex;flex-direction:column;gap:6px}
.field input[type=text],.field input[type=tel],.field input[type=email],.field input:not([type]){height:56px;border-radius:16px;border:1.5px solid var(--grey-200);padding:0 16px;font-size:16px;background:var(--white);color:var(--ink);outline:none;width:100%;min-width:0}
.field input:focus{border-color:var(--wine-500);box-shadow:0 0 0 3px rgba(176,13,57,.14)}
.field.err input{border-color:var(--error);background:#fff}
.help{font-size:12px;opacity:.7;line-height:1.3}
.errmsg{display:none;font-size:12px;color:var(--error);align-items:center;gap:6px;font-weight:500}
.field.err .errmsg{display:flex}.field.err .help{display:none}
.errmsg:before{content:"!";width:14px;height:14px;border-radius:50%;background:var(--error);color:#fff;font-size:10px;display:grid;place-items:center;flex:none}
.banner{display:none;background:var(--error-bg);border:1.5px solid #f2a8a1;color:var(--error);border-radius:12px;padding:10px 12px;font-size:13px;font-weight:500}
.banner.on{display:block}
.dark .field input,.deep .field input{background:var(--wine-900);border-color:rgba(255,255,255,.18);color:var(--cream-100)}

/* chips / segmented */
.seg{display:flex;gap:10px}
.seg button{flex:1;height:48px;border-radius:99px;border:1.5px solid var(--grey-200);background:var(--white);display:flex;align-items:center;justify-content:center;gap:10px;font-weight:700;font-size:15px}
.seg button.sel{border-color:var(--wine-500);background:#ffe9e6}
.radio{width:18px;height:18px;border-radius:50%;border:1.5px solid var(--ink);display:grid;place-items:center}
.sel .radio{border-color:var(--wine-700)}.sel .radio:after{content:"";width:8px;height:8px;border-radius:50%;background:var(--wine-700)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{height:34px;padding:0 12px;border-radius:99px;border:1.5px solid var(--grey-200);background:var(--white);font-size:13px;display:inline-flex;align-items:center;gap:6px}
.chip:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ink);opacity:.5}
.chip.sel{border-color:var(--wine-500);background:#ffe9e6;color:var(--wine-700)}.chip.sel:before{background:var(--wine-500);opacity:1}

.check{display:flex;gap:12px;align-items:flex-start;text-align:left;font-size:13px;line-height:1.4}
.box{flex:none;width:24px;height:24px;border-radius:7px;border:1.5px solid var(--wine-700);display:grid;place-items:center;background:var(--white)}
.check.on .box{background:var(--wine-700)}
.box svg{width:14px;height:14px;display:none}.check.on .box svg{display:block}

/* summary cards */
.panel{background:var(--white);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:10px;border:1px solid rgba(95,0,21,.08)}
.row{display:flex;justify-content:space-between;gap:16px;font-size:13px}
.row span:last-child{text-align:right;font-variant-numeric:tabular-nums}
.row.total{font-weight:700;font-size:15px;padding-top:10px;border-top:1px solid rgba(95,0,21,.12)}

/* splash */
.logo{margin:auto;text-align:center;display:flex;flex-direction:column;align-items:center;animation:pop .7s cubic-bezier(.2,1.4,.4,1) both}
.logo small{font-size:11px;letter-spacing:.14em;font-weight:500}
.logo big{display:block;font-family:var(--display);font-size:46px;line-height:1;letter-spacing:.5px}
.logo .script{font-size:44px;margin-top:-2px}
@keyframes pop{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}
.foot{flex:none;text-align:center;font-size:10px;letter-spacing:.14em;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 40px);opacity:.85}

/* welcome */
.hero{position:relative;height:370px;flex:none}
.hero .slice{position:absolute;left:50%;top:50px;width:290px;margin-left:-145px;animation:float 4s ease-in-out infinite;filter:drop-shadow(0 18px 18px rgba(40,0,10,.35))}
@keyframes float{50%{transform:translateY(-8px) rotate(1deg)}}
.sticker{position:absolute;background:var(--cream-200);color:var(--wine-900);font-size:11px;font-weight:700;letter-spacing:.08em;padding:8px 12px;border-radius:99px;white-space:nowrap}
.spots{left:24px;top:8px;width:96px;height:96px;border-radius:50%;display:grid;place-content:center;text-align:center;padding:0;transform:rotate(-8deg)}
.spots b{font-family:var(--display);font-weight:400;font-size:46px;line-height:1;letter-spacing:0}
.spots span{font-size:9px}
.s2{left:30px;top:268px;transform:rotate(-6deg)}
.s3{right:22px;top:300px;transform:rotate(5deg)}
.note{position:absolute;right:26px;top:22px;color:var(--rose-200);text-align:right}
.note svg{display:block;margin:2px 0 0 auto;width:60px}
.big{font-family:var(--display);font-size:70px;line-height:.95;text-transform:lowercase;text-wrap:balance;margin:0}
.copy{padding:0 24px;display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center;flex:1}
.copy .big{text-align:left;align-self:stretch}

.sizeprev{display:flex;align-items:center;gap:12px;background:var(--white);border-radius:24px;padding:12px 18px 12px 8px}
.sizeprev img{width:104px;height:104px;object-fit:contain;transition:transform .3s}
.sizeprev h3{margin:0;font-family:var(--display);font-weight:400;font-size:28px;text-transform:uppercase}
.ppl{display:flex;gap:6px;margin-top:8px}
.ppl i{width:16px;height:22px;border-radius:8px 8px 3px 3px;background:var(--wine-500);transition:opacity .2s}

.ill{position:absolute;right:20px;top:0;width:68px;pointer-events:none}
.review-h{position:relative}
.cloche{width:230px;margin:6px auto 0;display:block;animation:float 5s ease-in-out infinite;filter:drop-shadow(0 16px 16px rgba(30,0,8,.4))}
.stripe-field{display:flex;flex-direction:column;gap:6px}
.stripe-brand{font-size:11px;letter-spacing:.09em;text-transform:uppercase;opacity:.7;font-weight:500}
.pay-h{font-family:var(--display);font-size:30px;text-transform:uppercase;margin:0}
.timer{font-family:var(--display);font-size:46px;color:var(--wine-700);text-align:center;line-height:1}
.toast{position:absolute;left:0;right:0;margin:0 auto;width:calc(100% - 48px);max-width:432px;bottom:120px;background:var(--ink);color:#fff;border-radius:14px;padding:12px 14px;font-size:14px;z-index:30;animation:in .25s both;text-align:center}

/* screen jumper */
.jump{position:fixed;z-index:50;top:calc(env(safe-area-inset-top,0px) + 8px);right:12px;height:32px;padding:0 12px;border-radius:99px;background:rgba(30,10,14,.55);color:#fff;font-size:12px;font-weight:700;letter-spacing:.04em;backdrop-filter:blur(8px)}
.sheet{position:fixed;inset:0;z-index:60;background:rgba(20,0,6,.55);display:flex;align-items:flex-end;justify-content:center}
.sheet[hidden]{display:none}
.sheet>div{width:100%;max-width:440px;max-height:80%;overflow:auto;background:var(--cream-100);border-radius:28px 28px 0 0;padding:20px 20px calc(env(safe-area-inset-bottom,0px) + 24px);display:flex;flex-direction:column;gap:6px}
.sheet h2{margin:0 0 6px;font-family:var(--display);font-weight:400;font-size:26px;text-transform:lowercase}
.sheet button{text-align:left;padding:12px 14px;border-radius:14px;background:var(--white);font-size:15px;font-weight:500;display:flex;justify-content:space-between}
.sheet button span{opacity:.5;font-size:12px;font-family:var(--mono)}
.sheet button.cur{outline:2px solid var(--wine-500)}

/* payment modal */
.modal{position:absolute;inset:0;z-index:30;background:rgba(20,0,6,.55);display:flex;align-items:flex-end;animation:in .2s ease-out both}
.msheet{width:100%;max-width:480px;margin:0 auto;max-height:92%;overflow:auto;background:var(--white);border-radius:28px 28px 0 0;padding:10px 20px 24px;display:flex;flex-direction:column;gap:10px}
.mgrab{width:40px;height:4px;border-radius:2px;background:var(--grey-200);align-self:center}
.mhead{display:flex;align-items:center;justify-content:space-between}
.mhead h2{margin:0;font-family:var(--display);font-weight:400;font-size:32px;text-transform:uppercase}
.hold{font-size:11px;letter-spacing:.08em;background:#fde8b8;color:#6b4300;padding:6px 10px;border-radius:99px;font-family:var(--mono)}
.hold b{font-weight:400;margin-left:4px}
.mclose{display:flex}
#checkout{min-height:320px}

/* polaroids */
.pol{background:#fff;border-radius:24px;padding:11px 11px 0;box-shadow:0 14px 30px rgba(30,0,8,.28);display:flex;flex-direction:column;align-items:center;position:relative}
.pol img{display:block;width:100%;aspect-ratio:255/304;object-fit:cover;border-radius:16px;-webkit-user-drag:none;user-select:none}
.pol .script{color:var(--wine-700);font-size:22px;padding:8px 0 10px;line-height:1}
.stk{position:absolute;background:var(--cream-200);color:var(--wine-900);font-size:11px;font-weight:700;letter-spacing:.12em;padding:8px 12px;border-radius:12px;z-index:4;white-space:nowrap}
.stk-price{right:-8px;top:-8px;transform:rotate(6deg)}
/* welcome fan */
.fan{position:relative;height:380px;flex:none;margin-top:8px}
.fan .pol{width:214px;position:absolute}
.p-c{left:50%;top:26px;margin-left:-107px;z-index:3;animation:fanC .7s cubic-bezier(.2,1,.3,1) both}
.p-l{left:-52px;top:72px;transform:rotate(-8deg);z-index:1;animation:fanL .8s cubic-bezier(.2,1,.3,1) both}
.p-r{right:-52px;top:78px;transform:rotate(7deg);z-index:2;animation:fanR .8s cubic-bezier(.2,1,.3,1) both}
@keyframes fanC{from{opacity:0;transform:translateY(24px) scale(.94)}to{opacity:1;transform:none}}
@keyframes fanL{from{opacity:0;transform:translateX(70px) rotate(0)}to{opacity:1;transform:rotate(-8deg)}}
@keyframes fanR{from{opacity:0;transform:translateX(-70px) rotate(0)}to{opacity:1;transform:rotate(7deg)}}
.stk-a{right:30px;top:4px;transform:rotate(6deg);animation:tagA 4.2s ease-in-out -1.4s infinite}
@keyframes tagA{50%{transform:translateY(-7px) rotate(3deg)}}
.stk-b{left:calc(50% - 176px);top:8px;transform:rotate(-6deg);animation:tag 3.6s ease-in-out infinite}
@keyframes tag{50%{transform:translateY(-6px) rotate(-3deg)}}
/* flavour carousel */
.h-up{margin:0;font-family:var(--display);font-weight:400;font-size:32px;line-height:1.1;text-align:center;text-transform:uppercase}
.hint{margin:-8px 0 0;text-align:center;font-size:14px;color:var(--wine-700)}
.flv,.szb{padding-left:0;padding-right:0;gap:14px}
.flv>.h-up,.flv>.hint,.flv>.fname,.flv>.fdesc,.szb>.h-up,.szb>.hint{padding:0 24px}
.track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:28px calc(50% - 130px) 60px;cursor:grab;touch-action:pan-x;outline-offset:-2px}
.track::-webkit-scrollbar{display:none}
.slide{flex:none;width:260px;scroll-snap-align:center;display:flex;justify-content:center;will-change:transform}
.big-pol{width:250px;box-shadow:0 12px 28px rgba(30,0,8,.16),0 2px 6px rgba(30,0,8,.08)}
.thumbs{display:flex;justify-content:center;align-items:center;gap:12px;height:68px;flex:none}
.th{width:48px;height:48px;border-radius:14px;overflow:hidden;opacity:.65;border:2px solid transparent;transition:width .2s,height .2s,opacity .2s,border-color .2s}
.th.on{width:64px;height:64px;opacity:1;border-color:var(--wine-500)}
.th img{width:100%;height:100%;object-fit:cover;display:block}
.fname{font-weight:700;font-size:18px;text-align:center}
.fdesc{font-size:14px;text-align:center;opacity:.7;line-height:1.4;min-height:40px}
/* size */
.szwrap{display:flex;justify-content:center;padding:6px 24px 0}
.sz-pol{width:250px;box-shadow:0 18px 34px rgba(30,0,8,.22)}
.slider{padding:8px 36px 0;position:relative}
#szRange{-webkit-appearance:none;appearance:none;width:100%;height:28px;background:none;margin:0;--p:50%}
#szRange::-webkit-slider-runnable-track{height:8px;border-radius:99px;background:linear-gradient(to right,var(--wine-500) var(--p),var(--rose-200) var(--p))}
#szRange::-moz-range-track{height:8px;border-radius:99px;background:linear-gradient(to right,var(--wine-500) var(--p),var(--rose-200) var(--p))}
#szRange::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;margin-top:-10px;border-radius:50%;background:#fff;border:3px solid var(--wine-500);box-shadow:0 2px 6px rgba(0,0,0,.2)}
#szRange::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:#fff;border:3px solid var(--wine-500)}
#szRange:focus-visible{outline:2px solid var(--wine-500);outline-offset:6px;border-radius:99px}
.stops{display:flex;justify-content:space-between;margin-top:4px}
.stop{font-size:14px;color:var(--rose-500);padding:6px 4px}
.stop.on{color:var(--ink);font-weight:700}
.szt{text-align:center;font-weight:700;font-size:20px}
.szn{text-align:center;font-size:14px;opacity:.7;margin-top:-8px}
/* review product row, confirmation polaroid */
.prod{display:flex;gap:14px;align-items:center}
.prod img{width:64px;height:64px;border-radius:14px;object-fit:cover;box-shadow:0 4px 12px rgba(0,0,0,.15)}
.prod b{display:block;font-size:20px}
.prod span{font-size:14px;opacity:.7}
.conf-pol{width:150px;align-self:center;transform:rotate(6deg);padding:8px 8px 0}
.conf-pol .script{font-size:18px;padding:6px 0 8px}

/* column: everything inside a screen shares one max width */
.screen{align-items:center}
.screen>*{width:100%;max-width:480px}
.screen>.hi{display:none}
@media (min-width:768px){
  .modal{align-items:center;padding:24px}
  .msheet{border-radius:28px;max-height:min(760px,100%)}
  .mgrab{display:none}
}
@media (prefers-reduced-motion:reduce){.modal{animation:none}}

/* ---- Figma is the source of truth: type, fields, cards (values read from the Figma file) ---- */
h1{font-size:clamp(44px,12.5vw,52px);line-height:.98;text-align:center;letter-spacing:0}
.copy .big{text-align:center;align-self:center}
.label{font-size:12px;opacity:1;color:#575150}
.field{gap:8px}
.field input[type=text],.field input[type=tel],.field input[type=email],.field input:not([type]){height:56px;border-radius:20px;border:1px solid #6e6767;padding:0 16px;font-size:16px;color:#1f0609;transition:border-color .15s,box-shadow .15s}
.field input::placeholder{color:#8d8685}
.field input:focus{border-color:#902238;box-shadow:inset 0 0 0 1px #902238}
.field.err input{border-color:#b73227;box-shadow:inset 0 0 0 1px #b73227}
.help{font-size:14px;opacity:1;color:#575150;line-height:1.35}
.errmsg{font-size:14px;color:#b73227;font-weight:400}
.errmsg:before{width:18px;height:18px;font-size:12px;background:#b73227}
.banner{background:#ffddd8;border:1px solid #b73227;color:#b73227;border-radius:20px;padding:12px 16px;font-size:14px;font-weight:400}
.card{padding:16px;gap:16px;border:1px solid #d9d2d2;border-radius:24px}
.card.sel{background:#feebeb;border:2px solid #902238;padding:15px}
.card .t{font-size:20px}
.card .d{font-size:14px;opacity:1;color:#575150;line-height:1.35}
.card .pr{font-size:20px}
.check{font-size:14px;align-items:center}
.row{font-size:14px}
.row span:first-child{color:#575150}
.row.total{font-size:20px}
.row.total span:first-child{color:#1f0609}
.panel{border:1px solid #d9d2d2}
.sum{font-size:14px;color:#575150}
.sum b{font-size:22px}
.fan{height:410px}
.copy{padding-top:24px}
@media (hover:hover) and (pointer:fine){.card:hover{border-color:#902238}}

/* Carousel spans the full width so neighbours are not clipped at the column edge */
.screen>.body.flv{max-width:none;align-items:center}
.flv>*{width:100%;max-width:432px}
.flv>.track{width:calc(100% + 48px);max-width:none;margin:-10px -24px -40px}
/* Press feedback (fast, ease-out) */
.card,.back,.chip,.thumb{transition:transform .16s cubic-bezier(.23,1,.32,1),border-color .16s,background-color .16s}
.card:active,.back:active,.chip:active,.thumb:active{transform:scale(.97)}

.screen>.copy{position:relative}
