/* Cyber Week offer, gift and claim pages (scripts/offer_pages.py). The look is the approved
   mock-up (docs/mockups/cyber-week-2026): a flat brand panel with the ticket, content beside it. */
@font-face{font-family:Urbanist;font-weight:400;font-style:normal;font-display:swap;src:url("/fonts/Urbanist/regular.woff2") format("woff2"),url("/fonts/Urbanist/regular.woff") format("woff")}
@font-face{font-family:Urbanist;font-weight:600;font-style:normal;font-display:swap;src:url("/fonts/Urbanist/600.woff2") format("woff2"),url("/fonts/Urbanist/600.woff") format("woff")}
@font-face{font-family:Urbanist;font-weight:700;font-style:normal;font-display:swap;src:url("/fonts/Urbanist/700.woff2") format("woff2"),url("/fonts/Urbanist/700.woff") format("woff")}
@font-face{font-family:Urbanist;font-weight:800;font-style:normal;font-display:swap;src:url("/fonts/Urbanist/800.woff2") format("woff2"),url("/fonts/Urbanist/800.woff") format("woff")}
@font-face{font-family:Urbanist;font-weight:900;font-style:normal;font-display:swap;src:url("/fonts/Urbanist/800.woff2") format("woff2")}
:root{--aub:#39264F;--pur:#AB72ED;--pink:#E516C5;--lilac:#D9C4F5;--tint:#F3ECFC;--mist:#F7F5F8;--ink:#1C1D29;--muted:#5B5767;--line:#E4DEEC}
*{box-sizing:border-box}
html,body{margin:0}
p{margin:0}
body{font-family:Urbanist,system-ui,sans-serif;background:var(--mist);color:var(--ink);-webkit-font-smoothing:antialiased;font-size:16px;line-height:1.5}
a{color:var(--pur);font-weight:700;text-decoration:none}
.wrap{display:flex;flex-direction:column;min-height:100vh}

/* the brand panel */
.panel{position:relative;overflow:hidden;background:var(--aub);color:#fff;border-radius:0 0 32px 32px;
  padding:22px 22px 40px;display:flex;flex-direction:column;align-items:center;text-align:center}
.panel>*{position:relative}
.logo{align-self:flex-start;height:30px;margin-bottom:26px}
.over{font-size:12px;letter-spacing:.18em;font-weight:700;color:var(--lilac);text-transform:uppercase;margin:0 0 12px}
h1{margin:0;font-size:31px;line-height:1.1;font-weight:800;letter-spacing:-.015em;max-width:15em;text-wrap:balance}
h1 b{color:var(--pur);font-weight:800}
.sub{margin:14px 0 0;font-size:16px;line-height:1.5;color:rgba(255,255,255,.88);max-width:30em}
.pill{display:inline-flex;align-items:center;gap:8px;margin-top:26px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.1);font-size:14px;font-weight:600;color:#fff}
.pill svg{width:16px;height:16px}

/* the ticket: drops in and lands level; on a claim a seal is stamped onto its stub */
.tk-float{margin-top:30px;animation:float 3.4s ease-in-out 1.4s infinite}
@keyframes float{50%{transform:translateY(-7px) rotate(1deg)}}
.tk{position:relative;display:flex;align-items:stretch;width:320px;max-width:100%;min-height:128px;background:#fff;color:var(--aub);
  border-radius:18px;text-align:left;box-shadow:0 24px 44px -18px rgba(10,0,30,.6);transform:rotate(-4deg);
  animation:drop .8s cubic-bezier(.34,1.3,.64,1) .25s both}
@keyframes drop{0%{opacity:0;transform:translateY(-60px) rotate(-16deg) scale(.8)}55%{opacity:1;transform:translateY(10px) rotate(3deg) scale(1.08,.9)}
  78%{transform:translateY(-4px) rotate(-6deg) scale(.97,1.04)}100%{opacity:1;transform:translateY(0) rotate(-4deg) scale(1)}}
.tk-stub{position:relative;flex:none;width:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:18px 0 0 18px;background:var(--tint);padding:12px 8px}
.tk-price{font-size:50px;line-height:1;font-weight:900;color:var(--pink);letter-spacing:-.03em}
.tk-big{font-size:54px;line-height:1;font-weight:900;color:#fff;letter-spacing:-.03em}
.tk-unit{margin-top:6px;font-size:10.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;text-align:center}
.tk-tear{position:relative;width:0;border-left:2px dashed rgba(57,38,79,.22)}
.tk-tear:before,.tk-tear:after{content:"";position:absolute;left:-10px;width:18px;height:18px;border-radius:50%;background:var(--aub)}
.tk-tear:before{top:-9px}.tk-tear:after{bottom:-9px}
.tk-body{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;padding:14px 18px}
.tk-kick{font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--pur)}
.tk-title{margin-top:4px;font-size:21px;line-height:1.15;font-weight:800}
.tk-meta{margin-top:6px;font-size:14px;font-weight:600;color:var(--muted)}
.tk-meta s{opacity:.75}
.tk--gift .tk-stub{background:var(--pur);color:#fff}
.seal{position:absolute;left:50%;top:50%;width:88px;height:88px;margin:-44px 0 0 -44px;border-radius:50%;border:3px solid var(--pink);color:var(--pink);
  background:var(--tint);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  font-size:13px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;animation:seal .45s cubic-bezier(.2,.7,.3,1) 1.05s both}
.seal:before{content:"";position:absolute;inset:5px;border-radius:50%;border:1.5px dashed currentColor;opacity:.55}
.seal svg{width:26px;height:26px}
.tk--gift .seal{border-color:#fff;color:#fff;background:var(--pur)}
@keyframes seal{0%{opacity:0;transform:scale(2.3)}65%{opacity:1;transform:scale(.92)}100%{opacity:1;transform:scale(1)}}
.stamped .tk{animation:drop .8s cubic-bezier(.34,1.3,.64,1) .25s both,thud .3s ease-out 1.3s}
@keyframes thud{40%{transform:rotate(-4deg) scale(1.03,.95)}100%{transform:rotate(-4deg) scale(1)}}
.seal.grey{animation:none}
.stamped .tk-stub>span:not(.seal){animation:hide .15s 1.15s both}
@keyframes hide{to{opacity:0}}
.used .tk{filter:grayscale(1);opacity:.7}
.burst{position:absolute;left:56px;top:50%;width:0;height:0;pointer-events:none}
.burst i{position:absolute;left:0;top:0;display:block;opacity:0;animation:bit 1.2s cubic-bezier(.15,.75,.3,1) both}
@keyframes bit{0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}12%{opacity:1}70%{opacity:1}
  100%{opacity:0;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) rotate(var(--r)) scale(1.1)}}

/* the note from the giver */
.note{margin-top:30px;max-width:330px;background:#fff;color:var(--aub);border-radius:16px;padding:16px 18px;text-align:left;
  font-size:16px;line-height:1.45;font-weight:600;transform:rotate(1.5deg);box-shadow:0 18px 36px -18px rgba(10,0,30,.6)}
.note small{display:block;margin-top:8px;font-size:13px;font-weight:700;color:var(--pur)}

/* the content side */
.main{flex:1;display:flex;flex-direction:column;align-items:center;padding:28px 20px 44px}
.col{width:100%;max-width:410px}
.col>*+*{margin-top:16px}
/* privacy links, and the way back into the cookie banner (assets/consent.js) */
.foot{display:flex;flex-wrap:wrap;gap:6px 20px;justify-content:center;margin:32px 0 0;font-size:13.5px}
.foot a{color:var(--muted);font-weight:600}
h2{margin:0;font-size:20px;line-height:1.25;font-weight:800;color:var(--aub)}
.col>h2{margin-top:26px}
.col>h2:first-child{margin-top:0}
.lead{font-size:16.5px;line-height:1.55;color:var(--ink)}
.small{font-size:13.5px;line-height:1.5;color:var(--muted)}
.center{text-align:center}
.card{background:#fff;border-radius:24px;padding:22px;box-shadow:0 1px 2px rgba(57,38,79,.06),0 12px 28px -14px rgba(57,38,79,.18)}
.card>*+*{margin-top:14px}
.btn{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:52px;padding:0 20px;border-radius:18px;border:0;
  background:var(--pur);color:#fff;font:700 16px/1 Urbanist,system-ui,sans-serif;cursor:pointer;text-decoration:none}
.btn svg{width:19px;height:19px;flex:none}
.btn.ghost{background:#fff;color:var(--aub);box-shadow:inset 0 0 0 2px var(--pur)}
.btn.text{background:transparent;color:var(--pur);min-height:44px}
.btn.sm{width:auto;min-height:44px;padding:0 16px;border-radius:14px;font-size:15px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.field label,.legend{display:block;margin:0 0 6px;font-size:14px;font-weight:700;color:var(--aub)}
.field input,.field textarea{width:100%;min-height:48px;border:1px solid #D6D1DE;border-radius:12px;padding:12px 14px;font:500 16px/1.4 Urbanist,system-ui,sans-serif;color:var(--ink);background:#fff}
.field textarea{min-height:96px;resize:none}
.field .help{margin:6px 0 0;font-size:13px;color:var(--muted)}
.field .count{float:right;font-weight:600}
.tick{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.45;color:var(--ink)}
.tick input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--pur);flex:none}
.choice{display:flex;gap:12px;align-items:flex-start;padding:16px;border-radius:16px;border:2px solid var(--line);background:#fff;cursor:pointer}
.choice>input{width:20px;height:20px;margin:2px 0 0;accent-color:var(--pur);flex:none}
.choice b{display:block;font-size:16px;color:var(--aub)}
.choice span{display:block;margin-top:2px;font-size:14px;color:var(--muted);line-height:1.45}
.choice.on{border-color:var(--pur);background:#FBF8FE}
.choice-more{margin-top:14px}
.choice-more>*+*{margin-top:12px}
.line{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:16px}
.line .k{color:var(--ink);font-weight:600}
.line .v{font-weight:800;color:var(--aub);white-space:nowrap}
.line .v s{font-weight:600;color:var(--muted);margin-right:6px}
.line.total{padding-top:14px;border-top:1px solid var(--line)}
.price-pink{color:var(--pink);font-size:30px;font-weight:900;letter-spacing:-.02em;line-height:1}
.copy{display:flex;gap:8px}
.copy input{flex:1;min-width:0;min-height:48px;border:1px solid #D6D1DE;border-radius:12px;padding:0 14px;font:700 15px Urbanist,system-ui,sans-serif;color:var(--aub);background:var(--mist)}
.giftcard-row{display:flex;gap:16px;align-items:center}
.giftcard-row img{width:84px;border-radius:10px;box-shadow:0 8px 18px -8px rgba(57,38,79,.5);flex:none}
.qr-card{display:flex;gap:16px;align-items:center}
.qr{flex:none;width:132px;border-radius:16px;overflow:hidden;box-shadow:0 8px 22px -10px rgba(57,38,79,.45)}
.qr svg{display:block;width:100%;height:auto}
.qr-h{font-size:17px;font-weight:800;color:var(--aub)}
.badges{display:flex;gap:10px;align-items:center}
.badges img{height:42px;width:auto}
.badge-lg{height:52px;width:auto;display:block;margin:16px auto 0}
.nudge{background:var(--tint);box-shadow:none}
.nudge h2{font-size:18px}
.steps{margin:0;padding:0;list-style:none;counter-reset:s}
.steps li{counter-increment:s;position:relative;padding-left:40px;font-size:15px;line-height:1.5}
.steps li+li{margin-top:12px}
.steps li:before{content:counter(s);position:absolute;left:0;top:-1px;width:28px;height:28px;border-radius:50%;background:var(--aub);color:#fff;
  font-weight:800;font-size:14px;display:flex;align-items:center;justify-content:center}
.only-desk{display:none}
.only-desk>*+*,.only-phone>*+*{margin-top:14px}

@media (min-width:900px){
  .wrap{flex-direction:row}
  .panel{width:46%;border-radius:0;justify-content:center;padding:96px 56px 72px}
  .logo{position:absolute;top:36px;left:44px;height:34px;margin:0}
  h1{font-size:44px}
  .sub{font-size:18px}
  .tk{width:360px;min-height:142px}
  .tk-stub{width:124px}.tk-price{font-size:56px}.tk-big{font-size:60px}.tk-title{font-size:23px}
  .main{justify-content:center;padding:56px 48px}
  .only-desk{display:block}.only-phone{display:none}
}
@media (prefers-reduced-motion:reduce){
  .tk,.tk-float,.seal,.stamped .tk{animation:none!important}
  .burst{display:none}
}

/* live pages: views, states and form feedback */
[hidden]{display:none!important}
.view>*+*{margin-top:16px}
.view>h2{margin-top:26px}.view>h2:first-child{margin-top:0}
.err{margin:0;padding:12px 14px;border-radius:12px;background:#FDECEC;color:#9A1B12;font-size:14px;font-weight:600}
.ok-note{margin:0;padding:12px 14px;border-radius:12px;background:var(--tint);color:var(--aub);font-size:14px;font-weight:600}
.btn[disabled]{opacity:.6;cursor:wait}
.btn:focus-visible,.field input:focus,.field textarea:focus,.choice:focus-within,a:focus-visible{outline:3px solid var(--pur);outline-offset:2px}
.linkish{background:none;border:0;padding:0;font:inherit;color:var(--pur);font-weight:700;cursor:pointer}
.code-row{display:flex;gap:10px;justify-content:center}
.code-row input{width:56px;height:64px;text-align:center;font:800 28px Urbanist,system-ui,sans-serif;border:1px solid #D6D1DE;border-radius:14px;color:var(--aub)}
.signed{font-size:14px;color:var(--muted)}
.spinner{display:inline-block;width:18px;height:18px;border:3px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.panel-state{position:relative}
.giftcard-row canvas{width:84px;height:auto;border-radius:10px;box-shadow:0 8px 18px -8px rgba(57,38,79,.5);flex:none}

/* stamping the seal on later (after a claim or a purchase) without replaying the drop */
.stamped-now .tk{animation:thud .3s ease-out .35s both}
.stamped-now .seal{animation:seal .45s cubic-bezier(.2,.7,.3,1) .1s both}
.stamped-now .tk-stub>span:not(.seal){animation:hide .15s .25s both}
@media (prefers-reduced-motion:reduce){.stamped-now .tk,.stamped-now .seal{animation:none!important}.stamped-now .tk-stub>span:not(.seal){opacity:0;animation:none!important}}

/* the logo is a link home: the link takes the logo's place in the panel */
.logo-link{align-self:flex-start;display:block;margin-bottom:26px;line-height:0}
.logo-link .logo{position:static;margin:0}
@media (min-width:900px){.panel>.logo-link{position:absolute;top:36px;left:44px;margin:0}}

.choice>div{flex:1;min-width:0}

/* the gift form: its sections are the form's children, so they need the column's spacing */
form[data-form="gift"]>*+*{margin-top:16px}
form[data-form="gift"]>h2{margin-top:30px}
form[data-form="gift"]>h2:first-child{margin-top:0}
/* the panel's words stay inside the panel, and the note sits clear of the tilted ticket */
.panel-state{width:100%;display:flex;flex-direction:column;align-items:center}
.panel .sub{max-width:min(30em,100%)}
.panel .note{margin-top:48px}

/* a promo link's partner logo, on a white badge so any logo reads on the purple */
.partner{display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:16px;padding:10px 14px;margin:0 0 20px;box-shadow:0 10px 24px -14px rgba(10,0,30,.6)}
.partner img{display:block;max-height:44px;max-width:180px;width:auto;height:auto}

/* the gift form, one step at a time */
.stepbar{display:flex;gap:6px;margin:0 0 8px}
.stepbar i{flex:1;height:5px;border-radius:3px;background:var(--line)}
.stepbar i.on{background:var(--pur)}
.step-label{margin:0;font-size:13px;font-weight:700;color:var(--muted)}
fieldset.step{border:0;margin:0;padding:0;min-width:0}
fieldset.step>legend{padding:0;margin:0 0 14px;float:left;width:100%}
fieldset.step>legend+*{clear:both}
fieldset.step>legend h2{margin:0}
fieldset.step>*+*{margin-top:16px}
fieldset.step:not([hidden]){animation:stepin .32s cubic-bezier(.2,.7,.3,1) both}
@keyframes stepin{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
.step-actions{display:flex;gap:10px;margin-top:20px}
.step-actions .btn{flex:1}
.step-actions .back{flex:0 0 auto;width:auto;padding:0 22px}
@media (prefers-reduced-motion:reduce){fieldset.step:not([hidden]){animation:none}}

form[data-form="gift"]>.step-label{margin-top:6px}

/* Below each flow: the app itself, from the App Store screenshots (scripts/offer_pages.py
   show_fan / show_rail / show_pair). The screenshots' ground is --mist, so they sit on the page
   with their edges faded out. Hidden while someone is mid-way through a form or a code. */
.show{background:#fff;border-radius:32px 32px 0 0;padding:64px 22px 72px;color:var(--ink)}
.show-in{max-width:1040px;margin:0 auto}
.show h2{font-size:28px;line-height:1.15;letter-spacing:-.01em}
.show .lead{margin-top:10px;color:var(--muted);max-width:30em}
.wrap:has([data-view="loading"]:not([hidden]),[data-view="account"]:not([hidden]),[data-view="signin"]:not([hidden]),[data-view="code"]:not([hidden]),[data-view="waiting"]:not([hidden]),[data-view="error"]:not([hidden]))~.show{display:none}
.show picture,.show img{display:block;width:100%;height:auto}

/* checkout: three phones fanned out beside what the year includes */
.feats{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:18px}
.feats li{display:flex;gap:14px;align-items:flex-start;font-size:15.5px;line-height:1.45;color:var(--muted)}
.feats svg{flex:none;width:30px;height:30px;padding:7px;border-radius:50%;background:var(--tint);color:var(--pur)}
.feats b{display:block;font-size:17px;color:var(--aub)}
.fan{position:relative;margin:44px auto 0;max-width:440px;aspect-ratio:1/1.08;background:var(--mist);border-radius:28px;overflow:hidden}
.fan picture{position:absolute;bottom:-16%;width:54%;-webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}
.fan .fan-0{left:-9%;transform:rotate(-8deg);transform-origin:bottom center}
.fan .fan-2{right:-9%;transform:rotate(8deg);transform-origin:bottom center}
.fan .fan-1{left:20%;width:60%;bottom:-10%;z-index:1;filter:drop-shadow(0 24px 30px rgba(57,38,79,.22))}

/* gift: every App Store screen in a strip to scroll through */
.rail{list-style:none;margin:32px 0 0;padding:4px 22px 18px;display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 22px;scrollbar-width:thin}
.rail li{flex:0 0 min(62vw,240px);scroll-snap-align:start;border-radius:22px;overflow:hidden;background:var(--mist);box-shadow:0 1px 2px rgba(57,38,79,.06),0 14px 28px -18px rgba(57,38,79,.35)}
.rail:focus-visible{outline:3px solid var(--pur);outline-offset:-3px;border-radius:12px}
.show--rail{padding-left:0;padding-right:0}
.show--rail .show-in{padding:0 22px}

/* claim: two screens side by side */
.pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:32px}
.pair figure{margin:0;background:var(--mist);border-radius:24px;overflow:hidden;padding-top:18px}
.pair picture{-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}
.pair figcaption{padding:0 16px 18px;margin-top:-6px;font-size:15px;font-weight:800;line-height:1.3;color:var(--aub)}

@media (min-width:900px){
  .show{border-radius:0;padding:96px 48px 104px}
  .show h2{font-size:36px}
  .show .lead{font-size:18px}
  .show--fan .show-in{display:grid;grid-template-columns:1fr 1.1fr;gap:72px;align-items:center}
  .show--fan .fan{margin:0;max-width:none}
  .feats{grid-template-columns:1fr 1fr;gap:24px 28px;margin-top:36px}
  .show--rail .show-in{padding:0}
  .show--rail{padding-left:0;padding-right:0}
  .rail{padding:4px max(48px,calc((100vw - 1040px)/2)) 18px;scroll-padding:0 max(48px,calc((100vw - 1040px)/2));gap:22px}
  .rail li{flex-basis:250px}
  .show--pair .show-in{display:grid;grid-template-columns:1fr 1.25fr;gap:72px;align-items:center}
  .pair{margin:0;gap:22px}
  .pair figure:nth-child(2){transform:translateY(48px)}
  .show--pair{padding-bottom:152px}
}
