/* The present's page (docs/gift.md §2): a dark stage where the present is unwrapped and the drawing unveiled, then
   the timelapse, the gift back and the thank-you. One look, the gallery at night, on every device: the stage is a
   390 × 720 scene scaled to fit the screen, the sections below are a centred column. Approved prototypes:
   tools/gift/prototypes/unwrap.tpl.html and giftback.tpl.html. */
:root {
  /* DrawRabbit's own colours (17 Oct 2026, Michael: "align the theme with our brand"; the frame, lamp, ribbon and the
     curtain's fringe stay gold, they're gold things): the app's blue, a night in its navy, Nunito for headings */
  /* the type scale for the sections below the present (20 Oct 2026, Michael: clearer steps between headings, sub-
     headings and text): a section's label, its heading, a heading inside it, the line that opens it, body text, captions
     and small print, each a clear step from the next */
  --tl-w: min(300px, 78vw);   /* the time lapse, and its caption under it, share one width */
  --t-eyebrow: 12px; --t-h2: 30px; --t-h3: 22px; --t-lead: 17px; --t-body: 15px; --t-cap: 13px; --t-fine: 12px;
  --night: #0B1628; --ink-l: #F3F7FD; --mute-l: rgba(214, 228, 247, .66); --hair: rgba(255, 255, 255, .10);
  --blue: #3E7BC4; --blueDk: #2D5E99; --blueL: #8FBDF2; --goldL: #8FBDF2;
  --f-app: 'Nunito', ui-rounded, system-ui, sans-serif; --f-hand: 'Coming Soon', 'Comic Sans MS', cursive;
  --f-disp: 'Nunito', ui-rounded, system-ui, sans-serif; --f-body: 'Manrope', system-ui, -apple-system, sans-serif; --f-sys: -apple-system, system-ui, sans-serif;
  --s: 1; color-scheme: dark;
}
* { box-sizing: border-box }
[hidden] { display: none !important }   /* whatever an element's own display, hidden means hidden */
html, body { margin: 0; overflow-x: clip; background: var(--night); color: var(--ink-l); font-family: var(--f-body); -webkit-text-size-adjust: 100% }
body.locked { overflow: hidden; height: 100svh }
button { font: inherit; color: inherit }
.nowrap { white-space: nowrap }
@media (max-width: 359px) { .h2 .nowrap { white-space: normal } }   /* the smallest phones: wrap rather than run off the edge */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

/* ── the stage ── */
.stage { position: relative; height: 100svh; min-height: 520px; overflow: hidden; isolation: isolate; user-select: none; -webkit-user-select: none;
  background: radial-gradient(120% 70% at 50% 34%, #1D3354 0%, #112139 55%, #08111F 100%) }
.stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(rgba(11, 22, 40, 0), var(--night)); pointer-events: none; z-index: 19 }
.bleed { position: absolute; inset: 0; pointer-events: none }
/* plain alpha, no blend mode: a full-screen overlay blend over the animated stage made iOS recomposite everything,
   every frame (the heat Michael felt, 17 Oct; the reloads he saw were Brave Shields, not this) */
.grain { opacity: .035; width: 100%; height: 100% }
.vignette { background: radial-gradient(110% 80% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%); z-index: 18 }
.box { position: absolute; left: 50%; top: var(--top, 0); width: 390px; height: 720px; margin-left: -195px; transform: scale(var(--s)); transform-origin: 50% 0 }
.scene { position: absolute; left: 0; top: -62px; width: 390px; height: 844px; font-family: var(--f-app); color: #F3F7FD }
.layer { position: absolute; inset: 0; pointer-events: none }
.floor { top: auto; height: 300px; background: linear-gradient(180deg, transparent, rgba(50, 90, 150, .16) 30%, rgba(6, 12, 24, .6)) }
.spot { left: 50%; width: 520px; margin-left: -260px; top: -40px; height: 760px; transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(255, 236, 196, .30), rgba(255, 236, 196, .10) 62%, rgba(255, 236, 196, 0));
  clip-path: polygon(41% 0, 59% 0, 92% 100%, 8% 100%); filter: blur(6px) }
.pool { left: 50%; top: 600px; width: 300px; height: 70px; margin-left: -150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 232, 190, .22), transparent) }
/* the rays are drawn once into an image (raysImage() in gift.js) and only turned: a masked, blended conic gradient was
   re-rasterised on every frame of its turn */
.rays { left: 50%; top: 440px; width: 820px; height: 820px; margin: -410px 0 0 -410px; opacity: 0; background: center / 100% 100% no-repeat }
.burst { left: 50%; top: 455px; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 252, 235, 1), rgba(255, 226, 150, .75) 22%, rgba(255, 190, 90, .25) 48%, transparent 72%) }
canvas.layer { width: 390px; height: 844px }
.titles { position: absolute; top: 108px; left: 24px; right: 24px; text-align: center; z-index: 20; display: grid; gap: 8px }
.titles.low { top: 150px }   /* over the present: clear of the logo, nearer what it's about (Michael, 17 Oct); the frame's lamp needs it higher */
.eyebrow { font: 900 11px var(--f-app); letter-spacing: .22em; color: var(--blueL); text-transform: uppercase }
.title { font: 900 30px/1.08 var(--f-app); color: #FFFFFF; text-shadow: 0 2px 18px rgba(120, 170, 240, .25); margin: 0; text-wrap: balance }
.hint { position: absolute; top: 672px; left: 0; right: 0; text-align: center; z-index: 20; font: 800 16px var(--f-app); color: rgba(232, 240, 252, .85) }
.hint .dots { display: inline-flex; gap: 6px; margin-left: 10px; vertical-align: 2px }
.hint .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: block; transition: background .3s, transform .3s }
.hint .dots i.on { background: var(--blueL); transform: scale(1.15) }
#giftHit { position: absolute; left: 30px; top: 330px; width: 330px; height: 330px; z-index: 12; cursor: pointer; border-radius: 30px; -webkit-tap-highlight-color: transparent; background: none; border: 0; padding: 0 }
#giftHit:focus-visible { outline: 3px solid rgba(143, 189, 242, .9); outline-offset: 4px }
#present { position: absolute; left: 37px; top: 316px; width: 320px; height: 320px; z-index: 10; overflow: visible }
.ring { position: absolute; left: 194px; top: 512px; width: 290px; height: 290px; margin: -145px 0 0 -145px; border-radius: 50%; z-index: 9; border: 2px solid rgba(143, 189, 242, .55); opacity: 0 }
#frameWrap { position: absolute; left: 77px; top: 262px; width: 236px; height: 236px; z-index: 11; opacity: 0; transform-origin: 50% 100%; will-change: transform }
#frameWrap .fshadow { position: absolute; inset: 6px 4px -8px; border-radius: 6px; box-shadow: 0 26px 40px rgba(0, 0, 0, .55), 0 8px 14px rgba(0, 0, 0, .4) }
#frameSvg { position: absolute; inset: 0; width: 236px; height: 236px; overflow: visible }
.wallglow { position: absolute; left: 50%; top: -120px; width: 380px; height: 300px; margin-left: -190px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 220, 160, .28), rgba(255, 220, 160, .08) 55%, transparent) }
.lamp { position: absolute; left: 50%; top: -46px; width: 150px; height: 48px; margin-left: -75px; z-index: 3; overflow: visible }
#note { position: absolute; left: 70px; top: 548px; width: 250px; z-index: 15; opacity: 0; transform-origin: 50% 0 }
.card { background: #FFFDF6; border-radius: 3px; padding: 14px 18px 10px; box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .3);
  background-image: linear-gradient(90deg, transparent 22px, rgba(226, 120, 130, .35) 22px 23.5px, transparent 23.5px), repeating-linear-gradient(#FFFDF6 0 23px, #E6DECD 23px 24px);
  background-position: 0 0, 0 9px; display: grid }
.card .ln { font: 400 16px/24px var(--f-hand); color: #23262B; padding-left: 14px; white-space: nowrap; clip-path: inset(0 100% 0 0) }
.card .sig { text-align: right; padding-right: 4px }
.card.small { background-image: linear-gradient(90deg, transparent 22px, rgba(226, 120, 130, .35) 22px 23.5px, transparent 23.5px), repeating-linear-gradient(#FFFDF6 0 20px, #E6DECD 20px 21px); background-position: 0 0, 0 8px }
.card.small .ln { font-size: 14px; line-height: 21px }
.tape { position: absolute; top: -10px; left: 50%; width: 72px; height: 22px; margin-left: -36px; background: rgba(255, 244, 205, .7); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .15) }
.cta { position: absolute; left: 50%; top: 664px; transform: translateX(-50%); z-index: 22; opacity: 0; pointer-events: none;
  font: 900 17px var(--f-app); letter-spacing: .14em; color: #FFFFFF; border: 0; cursor: pointer; padding: 17px 46px; border-radius: 99px;
  background: linear-gradient(180deg, #5A93D6, var(--blue) 55%, #3670B5); box-shadow: 0 5px 0 var(--blueDk), 0 14px 32px rgba(62, 123, 196, .45); overflow: hidden }
.cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%); transform: translateX(-120%); animation: shimmer 2.6s ease-in-out infinite 1s }
@keyframes shimmer { 60%, 100% { transform: translateX(120%) } }
.cta:focus-visible { outline: 3px solid #fff; outline-offset: 4px }
/* the way on down the page (Michael, 17 Oct 2026: "more prominent so they know to scroll"): a pill saying what's below,
   a blue arrow under it nudging down */
.cue { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 30px; z-index: 23; display: grid; justify-items: center; gap: 8px;
  font: 800 16px var(--f-app); letter-spacing: .01em; color: #DCEAFB; background: none; border: 0; cursor: pointer; opacity: 0; pointer-events: none; padding: 0 }
/* no backdrop blur here or on the sound button: a live blur over the animating stage re-renders every frame, and on iOS
   it flickered as the page scrolled (Michael, 17 Oct) */
.cue #cueT { padding: 10px 18px; border-radius: 999px; background: rgba(27, 52, 88, .82); border: 1.5px solid rgba(143, 189, 242, .6);
  box-shadow: 0 0 24px rgba(62, 123, 196, .25) }
/* a fixed distance from the stage's foot, not the safe area: Safari changes that inset as its toolbar collapses on scroll,
   and the cue slid mid-scroll (Michael, 17 Oct). The stage is 100svh, so its foot is always clear of the home bar */
/* the round button is a plain element (iOS clipped an SVG's own shadow to a square); room below it for its glow */
.cue .arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #FFFFFF;
  box-shadow: 0 3px 0 var(--blueDk), 0 6px 16px rgba(62, 123, 196, .45); margin-bottom: 6px; animation: bob 1.6s ease-in-out infinite }
.cue .arrow svg { width: 22px; height: 22px; overflow: visible }
@keyframes bob { 50% { transform: translateY(4px) } }
.cue:active #cueT { background: rgba(62, 123, 196, .34) }
.cue:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 18px }
/* a short phone (an iPhone SE): a little smaller and lower, clear of the note. Decided once from the screen (gift.js adds
   .short), not a height media query: the visible height changes as the toolbar slides on scroll (19 Oct 2026) */
.short .cue { gap: 5px; font-size: 15px; bottom: 22px } .short .cue #cueT { padding: 7px 14px } .short .cue .arrow { width: 28px; height: 28px } .short .cue .arrow svg { width: 18px; height: 18px }
/* beside the sound control, which is at the far right (Michael, 17 Oct 2026) */
.again { position: absolute; right: calc(max(12px, env(safe-area-inset-right)) + 44px); top: max(14px, env(safe-area-inset-top)); z-index: 24; font: 600 12px var(--f-body); color: rgba(232, 240, 252, .6); background: none; border: 0; cursor: pointer; padding: 8px 10px; opacity: 0; pointer-events: none }
.brand { position: absolute; left: max(16px, env(safe-area-inset-left)); top: max(17px, calc(env(safe-area-inset-top) + 5px)); z-index: 22; display: flex; align-items: center; gap: 8px; pointer-events: none;
  animation: brandIn .8s ease-out .2s both }
.brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 2px 10px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .12) }
.brand span { font: 800 17px var(--f-app); color: var(--ink-l); letter-spacing: -.01em }
@keyframes brandIn { from { opacity: 0; transform: translateY(-6px) } }
.mute { position: fixed; right: max(12px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); z-index: 60; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(11, 22, 40, .78);
  display: grid; place-items: center; cursor: pointer; padding: 0 }
.mute:focus-visible { outline: 2px solid var(--goldL); outline-offset: 2px }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40 }

/* ── loading and problems ── */
.status { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 32px; text-align: center; background: radial-gradient(120% 70% at 50% 34%, #1D3354 0%, #112139 55%, #08111F 100%); transition: opacity .5s }
.status.gone { opacity: 0; pointer-events: none }
.status .inner { display: grid; gap: 12px; justify-items: center; max-width: 340px }
.status h1 { font: 900 26px/1.15 var(--f-disp); margin: 0; color: #FFFFFF; text-wrap: balance }
.status p { margin: 0; font: 400 15px/1.55 var(--f-body); color: var(--mute-l); text-wrap: balance }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(143, 189, 242, .2); border-top-color: var(--blueL); animation: spin 1s linear infinite }
@keyframes spin { to { rotate: 360deg } }

/* ── below the stage: the gallery's night ── */
.col { width: 100%; max-width: 520px; margin-inline: auto }
.sec-eyebrow { font: 700 var(--t-eyebrow)/1 var(--f-body); letter-spacing: .2em; color: var(--goldL); text-transform: uppercase }
.h2 { font: 900 var(--t-h2)/1.1 var(--f-disp); letter-spacing: -.01em; margin: 0; color: var(--ink-l); text-wrap: balance }
.h2 em { font-style: normal; color: var(--blueL) }
.p { font: 400 var(--t-lead)/1.5 var(--f-body); color: var(--mute-l); margin: 0; text-wrap: balance }
.how { position: relative; overflow: hidden; overflow: clip; padding: 40px 24px 60px; display: grid; gap: 14px; justify-items: center; text-align: center }
.sheetWrap { position: relative; width: var(--tl-w); aspect-ratio: 1; margin-top: 16px }
/* (20 Oct 2026) the second heading under the time lapse: close to it, as part of the same story */
.how.pp { padding-top: 8px; gap: 10px }
.pp .h2 { font-size: var(--t-h3); line-height: 1.2 }
.pp .p { font-size: var(--t-body); line-height: 1.55 }
/* a bigger screen: every step up a little */
@media (min-width: 700px) { :root { --tl-w: 380px; --t-h2: 36px; --t-h3: 26px; --t-lead: 18px; --t-body: 16px; --t-cap: 14px } }
.how .p { max-width: 340px }
@media (min-width: 700px) { .how .p { max-width: 460px } }
/* (20 Oct 2026) under the time lapse: which world the lesson is from and what happens in it */
.tlcap { font: 400 var(--t-cap)/1.5 var(--f-body); color: var(--mute-l); margin: -4px 0 0; width: var(--tl-w); text-align: left; text-wrap: pretty; opacity: .9 }   /* as wide as the time lapse, left aligned, snug under it (Michael) */
.sheetWrap::before { content: ''; position: absolute; left: 50%; top: -30%; width: 150%; height: 140%; margin-left: -75%; background: radial-gradient(closest-side, rgba(120, 170, 240, .16), rgba(120, 170, 240, 0)); pointer-events: none }
.paper { position: relative; width: 100%; height: 100%; border-radius: 3px; background: #FBF8F1; overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 30px 60px -10px rgba(0, 0, 0, .7), 0 10px 20px rgba(0, 0, 0, .4) }
.paper canvas { position: absolute; inset: 0; width: 100%; height: 100% }
.paper::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 100% at 50% 0%, rgba(255, 240, 210, 0) 55%, rgba(60, 40, 20, .10)), linear-gradient(115deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 40%) }
.faq { padding: 8px 24px 20px; display: grid }
.rule { height: 1px; background: linear-gradient(90deg, rgba(143, 189, 242, 0), rgba(143, 189, 242, .35), rgba(143, 189, 242, 0)); margin: 0 0 36px }
.qa { display: grid; gap: 10px }
.ans { font: 500 17px/1.45 var(--f-body); color: var(--ink-l); margin: 0 0 8px }
.ans b { font-weight: 700; color: var(--goldL) }
.plans { display: grid; gap: 10px; margin-top: 8px }
.plan { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; text-align: left; width: 100%; border: 1px solid var(--hair); background: rgba(255, 255, 255, .035); border-radius: 18px; padding: 16px 18px; cursor: pointer; font-family: var(--f-body); color: var(--ink-l); transition: border-color .25s, background .25s, box-shadow .25s }
.plan[aria-checked="true"] { border-color: rgba(143, 189, 242, .8); background: linear-gradient(180deg, rgba(62, 123, 196, .20), rgba(62, 123, 196, .06)); box-shadow: 0 0 0 1px rgba(143, 189, 242, .25), 0 12px 30px -12px rgba(62, 123, 196, .5) }
.plan:focus-visible { outline: 2px solid var(--goldL); outline-offset: 3px }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); display: grid; place-items: center; transition: border-color .25s }
.plan[aria-checked="true"] .radio { border-color: var(--goldL) } .plan[aria-checked="true"] .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--goldL) }
.plan b { display: block; font: 600 16px/1.3 var(--f-body) } .plan small { display: block; font: 400 13px/1.35 var(--f-body); color: var(--mute-l); margin-top: 2px }
.plan .price { text-align: right; font: 900 22px/1 var(--f-disp); white-space: nowrap; font-variant-numeric: lining-nums } .plan .price small { font: 500 11px var(--f-body); letter-spacing: .08em; text-transform: uppercase; margin-top: 5px }
#offer { position: relative }
.express { margin-top: 18px; min-height: 54px; display: grid; gap: 10px }
/* Stripe's wallet buttons must be rendered to find out whether Apple Pay / Google Pay exist here, so while they're being
   checked they sit out of the flow, invisible (not display:none, which stops the check) */
.express.pending { position: absolute; left: 0; right: 0; visibility: hidden; pointer-events: none }
.express.none { display: none }
.card2 { width: 100%; height: 50px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .22); background: transparent; font: 600 15px var(--f-body); color: var(--ink-l); cursor: pointer; margin-top: 12px }
.express.none + .card2, .express.pending + .card2 { margin-top: 18px }
.express.none + .card2 { height: 54px; border: 0; background: linear-gradient(180deg, #5A93D6, var(--blue) 55%, #3670B5); color: #FFFFFF; font: 800 16px var(--f-app); letter-spacing: .04em; box-shadow: 0 5px 0 var(--blueDk) }
.card2:focus-visible { outline: 2px solid var(--goldL); outline-offset: 3px }
.fine { font: 400 var(--t-cap)/1.5 var(--f-body); color: var(--mute-l); margin: 18px 0 0; text-align: center }
.payerr { font: 500 13.5px/1.45 var(--f-body); color: #FFB4A8; text-align: center; margin: 0; min-height: 0 }
.given { border: 1px solid rgba(143, 189, 242, .35); border-radius: 18px; padding: 18px; background: rgba(62, 123, 196, .10); font: 500 15px/1.5 var(--f-body); color: var(--ink-l) }
.more { margin-top: 36px; border-top: 1px solid var(--hair) }
.more details { border-bottom: 1px solid var(--hair) }
.more summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 18px 2px; font: 800 18px/1.25 var(--f-disp); color: var(--ink-l) }
.more summary::-webkit-details-marker { display: none }
.more summary:focus-visible { outline: 2px solid var(--goldL); outline-offset: 2px; border-radius: 6px }
.more summary i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hair); position: relative; transition: border-color .3s }
.more summary i::before, .more summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: var(--goldL); transition: transform .3s }
.more summary i::after { transform: rotate(90deg) }
.more details[open] summary i { border-color: rgba(143, 189, 242, .5) } .more details[open] summary i::after { transform: rotate(0) }
.more details p { margin: 0; padding: 0 2px 18px; font: 400 14.5px/1.55 var(--f-body); color: var(--mute-l) }
.more details p a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(214, 228, 247, .4) }
.foot { padding: 34px 24px max(56px, calc(env(safe-area-inset-bottom) + 40px)); display: grid; gap: 14px; justify-items: center; text-align: center }
.foot .mark { font: 900 20px var(--f-disp); color: var(--ink-l); letter-spacing: -.01em }
.foot a { font: 500 14px var(--f-body); color: var(--goldL); text-decoration: none; border-bottom: 1px solid rgba(143, 189, 242, .35); padding-bottom: 2px }

/* ── the gift back (19 Oct 2026: no notes back, so the section is the gift and the invitation) ── */
.write { padding: 44px 24px 20px; display: grid; gap: 12px; justify-items: stretch }
.write > .sec-eyebrow, .write > .h2, .write > .p { text-align: center; justify-self: center }
.write > [hidden] { display: none }
.write.inviteOnly { padding-top: 8px }
.write > .p { max-width: 320px; margin-bottom: 10px }
/* the two plans, a year chosen */
.write .qa { margin-top: 6px }
#offer[hidden] { display: none }
/* (20 Oct 2026) the time lapse comes straight after the unwrapping now; the hairline sits above the gift back */
.write { border-top: 1px solid var(--hair) }

/* ── paying by card ── */
/* card: opens in place under the plans, in the page's own flow, so the keyboard behaves as on any form */
.cardForm { height: 0; overflow: hidden; visibility: hidden }
.cardForm.open { visibility: visible }
.cfIn { display: grid; gap: 12px; margin-top: 16px; padding: 18px 18px 16px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid var(--hair) }
.cfHead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 2px }
.cfTitle { font: 900 19px var(--f-disp); color: var(--ink-l) }
.cfX { border: 0; background: none; padding: 8px 2px 8px 10px; margin: -8px -2px -8px 0; font: 500 14px var(--f-body); color: var(--mute-l); cursor: pointer }
.cfX:focus-visible { outline: 2px solid var(--goldL); outline-offset: 2px; border-radius: 6px }
.cfLabel { font: 500 13px var(--f-body); color: var(--mute-l); margin-bottom: -6px }
.cfEmail { margin-bottom: 2px }
.cfEmail { width: 100%; height: 48px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: #12233D; color: var(--ink-l); padding: 0 14px; font: 500 16px var(--f-body); -webkit-appearance: none; appearance: none }
.cfEmail::placeholder { color: rgba(214, 228, 247, .38) }
.cfEmail:focus { outline: none; border-color: var(--goldL); box-shadow: 0 0 0 1px var(--goldL) }
#cardEl { min-height: 150px }
.payBtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px }
.payBtn .lock { width: 15px; height: 15px }
.payBtn:active:not([disabled]) { transform: translateY(3px); box-shadow: 0 2px 0 var(--blueDk) }
.payBtn:focus-visible { outline: 2px solid var(--goldL); outline-offset: 3px }
.secure { margin: 0; text-align: center; font: 400 var(--t-fine)/1.5 var(--f-body); color: var(--mute-l) }
.payBtn { width: 100%; height: 54px; border: 0; border-radius: 14px; cursor: pointer; font: 800 16px var(--f-app); letter-spacing: .06em; color: #FFFFFF; background: linear-gradient(180deg, #5A93D6, var(--blue) 55%, #3670B5); box-shadow: 0 5px 0 var(--blueDk) }
.payBtn[disabled] { opacity: .6; cursor: default }

/* ── the thank-you ── */
.thanks { position: fixed; inset: 0; z-index: 45; background: radial-gradient(120% 70% at 50% 40%, #1D3354 0%, #112139 55%, var(--night) 100%); color: #F3F7FD; opacity: 0; visibility: hidden; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: max(48px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom)); gap: 12px; text-align: center }
.thanks .trays { position: absolute; left: 50%; top: 45%; width: 820px; height: 820px; margin: -410px 0 0 -410px; opacity: 0; pointer-events: none;
  background: center / 100% 100% no-repeat; animation: spin 26s linear infinite }   /* the stage's rays image (gift.js) */
.thanks .gp { position: relative; width: 250px; height: 250px; flex: 0 0 auto; margin-top: 6px }
.thanks .tbtn { margin-top: 6px }
.thanks .gp svg { width: 100%; height: 100%; overflow: visible }
.thanks h3 { font: 900 28px/1.12 var(--f-disp); margin: 0; color: #FFFFFF; text-wrap: balance; max-width: 340px }
.thanks p { font: 400 15px/1.5 var(--f-body); margin: 0; color: rgba(232, 240, 252, .8); max-width: 300px; text-wrap: balance }
.reply { width: 100%; max-width: 340px; background: #FFFDF6; border-radius: 4px; padding: 10px 14px 8px; transform: rotate(-1.5deg); box-shadow: 0 12px 26px rgba(0, 0, 0, .45); text-align: left; position: relative; cursor: text;
  background-image: linear-gradient(90deg, transparent 22px, rgba(226, 120, 130, .35) 22px 23.5px, transparent 23.5px), repeating-linear-gradient(#FFFDF6 0 23px, #E6DECD 23px 24px); background-position: 0 0, 0 7px }
.reply label { display: block; font: 700 10px var(--f-body); letter-spacing: .14em; color: #9A8F7A; text-transform: uppercase; padding-left: 16px }
.reply textarea::placeholder { color: #B4AA96 }
.reply textarea { display: block; width: 100%; height: 72px; border: 0; background: transparent; resize: none; font: 400 16px/24px var(--f-hand); color: #23262B; padding: 0 0 0 16px; outline: none; caret-color: var(--blue) }
.reply .saved { position: absolute; right: 12px; bottom: 8px; font: 700 12px var(--f-body); color: #3C8C5E; opacity: 0 }
.tbtn { width: 100%; max-width: 340px; border: 0; border-radius: 16px; padding: 16px; font: 800 15px var(--f-app); letter-spacing: .1em; cursor: pointer }
.tbtn.gold { background: linear-gradient(180deg, #5A93D6, var(--blue) 55%, #3670B5); color: #FFFFFF; box-shadow: 0 5px 0 var(--blueDk) }
.tbtn:disabled { cursor: default; background: rgba(62, 123, 196, .16); color: #CFE2F8; box-shadow: inset 0 0 0 2px rgba(143, 189, 242, .4) }
.tbtn:focus-visible { outline: 3px solid #fff; outline-offset: 3px }
.receipt { font: 500 13px var(--f-body); color: rgba(232, 240, 252, .62); display: flex; gap: 6px; align-items: center }
.thanks.kb { justify-content: flex-end; padding-bottom: calc(var(--kb, 0px) + 14px) }
.thanks.kb #seal, .thanks.kb #tSub, .thanks.kb .receipt, .thanks.kb #gp { display: none }
.thanks.kb h3 { font-size: 24px }
.thanks .fx2 { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none }

@media (prefers-reduced-motion: reduce) { .brand { animation: none } .cta::after { animation: none } .cue .arrow { animation: none } .thanks .trays { animation: none } .spinner { animation-duration: 3s } }
.receipt[hidden], .thanks .gp[hidden] { display: none }

/* ── what to do next (18 Oct 2026, growth): an invitation for the grown-up, and a way to pass DrawRabbit to a child ── */
.invite { margin-top: 26px; border: 1px solid rgba(143, 189, 242, .32); border-radius: 20px; padding: 18px; display: grid; gap: 14px;
  background: linear-gradient(180deg, rgba(62, 123, 196, .16), rgba(62, 123, 196, .06)) }
.invHead { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center }
.invHead img { border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .1) }
.invT { margin: 0; font: 900 19px/1.2 var(--f-disp); color: #FFFFFF; text-wrap: balance }
.invS { margin: 4px 0 0; font: 400 14px/1.45 var(--f-body); color: var(--mute-l); text-wrap: pretty }
.invBtn { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 14px; text-decoration: none;
  font: 800 15px var(--f-app); letter-spacing: .06em; color: #FFFFFF; background: linear-gradient(180deg, #5A93D6, var(--blue) 55%, #3670B5); box-shadow: 0 4px 0 var(--blueDk) }
.invBtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--blueDk) }
.invBtn:focus-visible, .invShare:focus-visible, .tnBtn:focus-visible, .tnShare:focus-visible { outline: 2px solid var(--blueL); outline-offset: 3px }
.invShare, .tnShare { background: none; border: 0; padding: 4px; cursor: pointer; font: 400 14px/1.4 var(--f-body); color: var(--mute-l); text-align: center }
.invShare b, .tnShare b { font-weight: 700; color: var(--blueL) }
.tnext { width: 100%; max-width: 340px; display: grid; gap: 10px; margin-top: 4px }
.tnext[hidden] { display: none }
.tnBtn { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; text-decoration: none; text-align: left;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(143, 189, 242, .35); color: #FFFFFF }
.tnBtn img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) }
.tnBtn b { display: block; font: 800 15.5px/1.25 var(--f-disp) }
.tnBtn small { display: block; margin-top: 2px; font: 400 12.5px/1.35 var(--f-body); color: rgba(214, 228, 247, .7) }
.tnBtn i { color: var(--blueL); display: grid }
.tnBtn:active { background: rgba(255, 255, 255, .12) }
.retry { margin-top: 14px; border: 0; border-radius: 12px; padding: 12px 22px; cursor: pointer; font: 800 14px var(--f-app); letter-spacing: .08em; color: #FFFFFF;
  background: linear-gradient(180deg, #5A93D6, var(--blue) 55%, #3670B5); box-shadow: 0 4px 0 var(--blueDk) }
.payerr .retry { margin: 8px 0 0; padding: 9px 16px; font-size: 13px }

/* ── reporting a gift (19 Oct 2026, App Review 1.2) ── */
.reportLink { margin-top: 6px; border: 0; background: none; padding: 6px 4px; font: 500 13px var(--f-body); color: var(--mute-l); text-decoration: underline; text-underline-offset: 3px; cursor: pointer }
.reportLink:focus-visible { outline: 2px solid var(--blueL); outline-offset: 3px; border-radius: 6px }
/* the one by the drawing (19 Oct 2026): under the sound control, as quiet as "Unwrap it again", a full 44px to tap; shown
   with it once the drawing is revealed */
/* the pre-contract line under the pay buttons (19 Oct 2026) */
.pre { margin: 8px 0 0; width: 100%; text-align: left; font: 400 var(--t-fine)/1.55 var(--f-body); color: var(--mute-l); text-wrap: pretty }   /* snug under the pay buttons, their width, left aligned (Michael, 20 Oct 2026) */
.pre a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(214, 228, 247, .35) }
/* "works out at £5.00/mo" under the year's price: two short lines rather than one that crowds the plan (19 Oct 2026) */
#pYearPer { white-space: normal; max-width: 8.5em; margin-left: auto; line-height: 1.3; text-wrap: balance }
.report { width: min(92vw, 400px); max-height: 90vh; overflow: auto; margin: auto; padding: 24px 22px 20px; border: 1px solid var(--hair); border-radius: 22px; background: #12233D; color: var(--ink-l); box-shadow: 0 30px 80px rgba(0, 0, 0, .6) }
.report::backdrop { background: rgba(5, 10, 20, .72) }
.report[open] { animation: rpIn .32s cubic-bezier(.2, .8, .2, 1) }
@keyframes rpIn { from { opacity: 0; transform: translateY(12px) scale(.98) } }
.rpT { font: 900 22px/1.2 var(--f-disp); margin: 0 0 6px; color: var(--ink-l) }
.rpP { font: 400 14.5px/1.5 var(--f-body); color: var(--mute-l); margin: 0 0 16px }
.rpP a { color: var(--goldL) }
.rpOpts { display: grid; gap: 8px; margin-bottom: 16px }
.rpOpt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--hair); border-radius: 14px; background: rgba(255, 255, 255, .035); font: 500 15px var(--f-body); cursor: pointer; transition: border-color .2s, background .2s }
.rpOpt:has(input:checked) { border-color: rgba(143, 189, 242, .8); background: rgba(62, 123, 196, .18) }
.rpOpt input, .rpKey input { accent-color: #8FBDF2; width: 18px; height: 18px; margin: 0; flex: none }
.rpKey { display: flex; gap: 12px; align-items: flex-start; font: 400 13.5px/1.45 var(--f-body); color: var(--ink-l); cursor: pointer; margin-bottom: 6px }
.rpKey input { margin-top: 2px }
.rpKey b { display: block; font-weight: 600 } .rpKey small { display: block; color: var(--mute-l); font-size: 12.5px }
.rpErr { font: 500 13px/1.4 var(--f-body); color: #FFB4A8; margin: 8px 0 0; min-height: 0 }
.rpErr:empty { display: none }
.rpBtns { display: flex; gap: 10px; margin-top: 16px }
.rpCancel, .rpSend { flex: 1; height: 50px; border-radius: 14px; font: 800 14px var(--f-app); letter-spacing: .06em; cursor: pointer }
.rpCancel { border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: var(--ink-l); letter-spacing: 0; font: 600 15px var(--f-body) }
.rpSend { border: 0; color: #fff; background: linear-gradient(180deg, #5A93D6, var(--blue) 55%, #3670B5); box-shadow: 0 4px 0 var(--blueDk) }
.rpSend[disabled] { opacity: .45; cursor: default }
.rpCancel:focus-visible, .rpSend:focus-visible { outline: 2px solid var(--blueL); outline-offset: 3px }

/* the year's saving (19 Oct 2026), like the app paywall's badge: a tab sitting across the top of the plan's border */
.plan .save { position: absolute; top: 0; right: 18px; transform: translateY(-50%); padding: 5px 10px; border-radius: 99px; background: linear-gradient(180deg, #FFE38A, #F2C64F); color: #3A2A00;
  font: 900 11px/1 var(--f-app); letter-spacing: .08em; box-shadow: 0 2px 0 #C99A1F, 0 4px 12px rgba(0, 0, 0, .3); pointer-events: none }
.plans { padding-top: 10px }
.plan .save[hidden] { display: none }

/* ── what people say (20 Oct 2026): three short quotes, stacked, the column's width (side by side they'd overflow it) ── */
.says { display: grid; gap: 12px; width: min(340px, 86vw); margin-top: 18px; text-align: left }
.say { margin: 0; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 16px; background: rgba(255, 255, 255, .035); display: grid; gap: 8px }
.say .stars { font: 400 13px/1 var(--f-body); letter-spacing: .12em; color: #F5C542 }
.say blockquote { margin: 0; font: 500 var(--t-body)/1.5 var(--f-body); color: var(--ink-l); text-wrap: pretty }
.say figcaption { font: 400 var(--t-cap)/1.4 var(--f-body); color: var(--mute-l) }
@media (min-width: 700px) { .says { width: 460px } }
