/* Waxlight v2 design system (FS-23, 1 Dec 2026). Apple-inspired, light mode, FazeOne Studios colours.
   Buttons are pills and never underlined. Icons are bold, filled, duotone on colour tiles. No native dialogs. */
:root{
  --plum:#3D2C6E;--plum-2:#2A1E4F;--plum-3:#5B47A0;--coral:#E8553D;--coral-btn:#C44732;--coral-text:#B83A25;--gold:#F4C56D;--gold-2:#E9A93A;
  --lilac:#EEEAF7;--lilac-2:#B9A6F2;--leaf:#2F6B4F;--leaf-2:#E3F1EA;--ink:#1D1D1F;--slate:#585860;--cloud:#F5F5F7;--white:#fff;
  --line:rgba(29,29,31,.08);--shadow:0 1px 2px rgba(29,29,31,.04),0 8px 24px rgba(61,44,110,.08);--shadow-lg:0 20px 60px rgba(61,44,110,.18);
  --r-card:28px;--r-sm:18px;--r-pill:980px;
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",Inter,Roboto,"Helvetica Neue",Arial,sans-serif;
  --safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:#FAFAFC;min-height:100%}
body{margin:0;font-family:var(--font);color:var(--ink);background:#FAFAFC;font-size:17px;line-height:1.45;-webkit-font-smoothing:antialiased}
img,svg{display:block}
a{color:var(--coral-text);text-decoration:none}
a:hover{text-decoration:none}
h1,h2,h3{letter-spacing:-.022em;line-height:1.08;margin:0}
p{margin:0}
.wx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Buttons: pills, whole button tappable, >=44px, never underlined in any state */
.wx-btn,.wx-btn:link,.wx-btn:visited,.wx-btn:hover,.wx-btn:focus,.wx-btn:active{text-decoration:none!important}
.wx-btn{appearance:none;border:0;font:600 17px/1 var(--font);display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 24px;border-radius:var(--r-pill);cursor:pointer;transition:transform .12s ease,background .15s ease,box-shadow .15s ease;white-space:nowrap;color:var(--white);background:var(--coral-btn)}
.wx-btn:hover{background:var(--coral-text)}
.wx-btn svg{width:20px;height:20px;flex:0 0 auto}
.wx-btn--sm svg{width:18px;height:18px}
.wx-btn:active{transform:scale(.97)}
.wx-btn:focus-visible{outline:3px solid var(--lilac-2);outline-offset:2px}
.wx-btn--plum{background:var(--plum)}.wx-btn--plum:hover{background:var(--plum-2)}
.wx-btn--gold{background:var(--gold);color:var(--plum-2)}.wx-btn--gold:hover{background:var(--gold-2)}
.wx-btn--ghost{background:var(--lilac);color:var(--plum)}.wx-btn--ghost:hover{background:#E2DCF3}
.wx-btn--white{background:var(--white);color:var(--plum);border:1.5px solid var(--line)}.wx-btn--white:hover{background:var(--lilac)}
.wx-btn--sm{min-height:44px;font-size:15px;padding:0 16px}
.wx-btn--block{width:100%}
.wx-btn--lg{min-height:58px;font-size:19px;padding:0 24px}
@media (max-width:400px){.wx-btn--lg{padding:0 16px;font-size:17px}}
.wx-btn[disabled]{opacity:.45;cursor:not-allowed}

/* Icon tiles */
.wx-ico{flex:0 0 auto;display:inline-grid;place-items:center;border-radius:14px;width:44px;height:44px}
.wx-ico svg{width:26px;height:26px}
.wx-ico--sm{width:34px;height:34px;border-radius:11px}.wx-ico--sm svg{width:20px;height:20px}
.wx-ico--lg{width:56px;height:56px;border-radius:17px}.wx-ico--lg svg{width:32px;height:32px}
.wx-ico--round{border-radius:50%}
.t-coral{background:var(--coral);color:#fff}.t-gold{background:var(--gold);color:var(--plum-2)}.t-plum{background:var(--plum);color:#fff}
.t-lilac{background:var(--lilac);color:var(--plum)}.t-leaf{background:var(--leaf);color:#fff}.t-pink{background:#E0569B;color:#fff}.t-sky{background:#3E8EDE;color:#fff}.t-violet{background:#7B5CE0;color:#fff}

/* Cards */
.wx-card{background:var(--white);border-radius:var(--r-card);box-shadow:var(--shadow);padding:20px}
.wx-card--cloud{background:var(--cloud);box-shadow:none}
.wx-card--plum{background:linear-gradient(150deg,#4A3684 0%,var(--plum) 55%,var(--plum-2) 100%);color:#fff;box-shadow:var(--shadow-lg)}
.wx-eyebrow{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--coral-text)}
.wx-muted{color:var(--slate)}
.wx-chip,.wx-chip:link,.wx-chip:visited,.wx-chip:hover,.wx-chip:focus,.wx-chip:active{text-decoration:none!important}
.wx-chip{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:var(--r-pill);background:var(--white);border:1px solid var(--line);font:600 15px/1 var(--font);color:var(--ink);cursor:pointer}
.wx-chip:hover{border-color:var(--lilac-2);background:var(--lilac)}
.wx-pill-tag{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:26px;padding:0 11px;border-radius:var(--r-pill);font:700 13px/1 var(--font);white-space:nowrap;text-decoration:none!important}
.tag-leaf{background:var(--leaf-2);color:var(--leaf)}.tag-gold{background:#FDF1D8;color:#8A5A00}.tag-coral{background:#FDE7E3;color:var(--coral-text)}.tag-lilac{background:var(--lilac);color:var(--plum)}

/* Inputs */
.wx-field{width:100%;min-height:56px;border:1.5px solid #DCD8E6;border-radius:18px;padding:14px 18px;font:400 17px/1.4 var(--font);color:var(--ink);background:#fff;outline:none;transition:border-color .15s}
.wx-field:focus{border-color:var(--plum-3);box-shadow:0 0 0 4px var(--lilac)}
textarea.wx-field{resize:none}
label.wx-label{display:block;font-weight:600;font-size:15px;margin:0 0 8px}

/* Bottom sheet (replaces every native dialog) */
.wx-scrim{position:fixed;inset:0;background:rgba(20,14,40,.42);opacity:0;pointer-events:none;transition:opacity .25s;z-index:90}
.wx-scrim.on{opacity:1;pointer-events:auto}
.wx-sheet{position:fixed;left:0;right:0;bottom:0;max-height:92vh;overflow:auto;background:#fff;border-radius:30px 30px 0 0;padding:10px 20px calc(24px + var(--safe-b));transform:translateY(105%);transition:transform .32s cubic-bezier(.2,.9,.25,1);z-index:91;box-shadow:0 -10px 40px rgba(20,14,40,.18);overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.wx-sheet.on{transform:none}
.wx-sheet--dragging{transition:none;touch-action:none}
.wx-sheet__grab{width:40px;height:5px;border-radius:5px;background:#D9D6E0;margin:4px auto 14px;position:relative;touch-action:none;cursor:grab}
.wx-sheet__grab::after{content:"";position:absolute;left:-48px;right:-48px;top:-14px;bottom:-18px}
.wx-sheet__head{touch-action:none;padding-bottom:4px}
.wx-sheet h2{font-size:24px;margin:0 0 6px}
@media(min-width:760px){.wx-sheet{left:50%;right:auto;width:520px;bottom:24px;border-radius:30px;transform:translate(-50%,120%)}.wx-sheet.on{transform:translate(-50%,0)}}
.wx-scrim--confirm{z-index:92}.wx-sheet--confirm{z-index:93}

/* Pull to refresh: branded flame, not the browser's native overscroll refresh. */
html.wx-ptr-root,html.wx-ptr-root body,html.wx-app,html.wx-app body{overscroll-behavior-y:none}
.wx-ptr{position:fixed;left:50%;top:calc(8px + var(--safe-t));width:44px;height:44px;margin:0;border-radius:50%;background:#fff;box-shadow:var(--shadow);display:grid;place-items:center;z-index:80;pointer-events:none;opacity:0;transform:translate(-50%,calc(var(--wx-ptr,0px) - 56px)) scale(.72);transition:opacity .16s ease;--wx-ptr:0px}
.wx-ptr.on{opacity:1}
.wx-ptr--ready{box-shadow:0 8px 24px rgba(61,44,110,.16)}
.wx-ptr__flame{width:22px;height:26px;display:grid;place-items:center;color:var(--coral);transform-origin:50% 90%}
.wx-ptr__flame svg{width:22px;height:22px;display:block}
.wx-ptr--spin .wx-ptr__flame,.wx-flame-loader.wx-ptr__flame{animation:wx-flame-flicker .5s ease-in-out infinite}
@keyframes wx-flame-flicker{0%,100%{transform:scale(1) rotate(-2deg);opacity:1}40%{transform:scale(1.08,1.14) rotate(3deg);opacity:.92}70%{transform:scale(.96,1.04) rotate(-1deg);opacity:1}}
@media (prefers-reduced-motion:reduce){.wx-ptr--spin .wx-ptr__flame{animation:none}}

/* Toast: Apple-style banner from the top. Compact card, one-line title + one-line body, never a mid-screen black blob. */
.wx-toast{position:fixed;top:calc(16px + var(--safe-t));left:50%;transform:translate(-50%,-12px);display:flex;align-items:center;gap:12px;width:calc(100% - 32px);max-width:360px;box-sizing:border-box;padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(20px) saturate(1.4);backdrop-filter:blur(20px) saturate(1.4);box-shadow:0 1px 2px rgba(29,29,31,.06),0 10px 28px rgba(29,29,31,.14);color:var(--ink);text-align:left;font-weight:400;opacity:0;pointer-events:none;z-index:95;transition:transform .32s cubic-bezier(.2,.9,.25,1),opacity .22s}
.wx-toast.on{opacity:1;transform:translate(-50%,0)}
.wx-toast .wx-ico{flex:0 0 auto}
.wx-toast__txt{min-width:0;flex:1;display:grid;gap:2px}
.wx-toast__txt b{display:block;font:700 15px/1.25 var(--font);letter-spacing:-.01em;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wx-toast__txt span{display:block;font:400 13px/1.3 var(--font);color:var(--slate);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wx-toast__txt span:empty{display:none}
/* Celebration toast: bottom of the screen, above the tab bar / safe area. Invoice sent only. */
.wx-toast--win{top:auto;bottom:calc(16px + var(--safe-b) + var(--wx-tabbar, 0px));transform:translate(-50%,22px) scale(.96);overflow:visible;z-index:96}
.wx-toast--win.on{opacity:1;transform:translate(-50%,0) scale(1);transition:transform .55s cubic-bezier(.22,1.25,.36,1),opacity .2s ease}
.wx-toast__mark{position:relative;flex:0 0 auto;width:34px;height:34px;display:grid;place-items:center}
.wx-toast__mark svg{width:34px;height:34px;display:block}
.wx-toast--win .wx-check-draw{stroke-dasharray:1;stroke-dashoffset:1;animation:wx-check-in .45s .12s ease forwards}
@keyframes wx-check-in{to{stroke-dashoffset:0}}
.wx-toast__spark{position:absolute;left:15px;top:15px;width:5px;height:5px;border-radius:50%;pointer-events:none;animation:wx-spark .7s ease-out forwards}
@keyframes wx-spark{0%{transform:translate(0,0) scale(1);opacity:1}100%{transform:translate(var(--sx),var(--sy)) scale(.25);opacity:0}}

/* Brand lockup */
.wx-brand{display:inline-flex;align-items:center;gap:10px;font-weight:800;font-size:22px;letter-spacing:-.03em;color:var(--plum);text-decoration:none!important}
.wx-brand svg{width:34px;height:34px}
.wx-by{font-size:13px;color:var(--slate);font-weight:500;letter-spacing:0}

/* Rings (Apple Fitness inspired) */
.wx-ring{position:relative;width:64px;height:64px;flex:0 0 auto}
.wx-ring svg{width:64px;height:64px;transform:rotate(-90deg)}
.wx-ring .wx-ring__ico{position:absolute;inset:0;display:grid;place-items:center}
.wx-ring .wx-ring__ico svg{transform:none;width:26px;height:26px}

/* Confetti (real wins only) */
.wx-confetti{position:fixed;inset:0;pointer-events:none;z-index:99;overflow:hidden}
.wx-confetti i{position:absolute;top:-12px;width:9px;height:14px;border-radius:3px;animation:wxfall 1.6s ease-in forwards}
@keyframes wxfall{to{transform:translateY(105vh) rotate(540deg);opacity:.9}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Aliases so the shared install hint (pwa.js) matches v2 buttons */
.btn{appearance:none;border:0;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:var(--r-pill);font:600 15px/1 var(--font);cursor:pointer;text-decoration:none!important}
.btn-primary{background:var(--coral);color:#fff}.btn-primary:hover{background:var(--coral-text)}
/* Phone frame used for showcase mockups */
.wx-phone{width:300px;aspect-ratio:9/19.3;border-radius:48px;background:#111;padding:11px;box-shadow:0 40px 80px rgba(61,44,110,.28),inset 0 0 0 2px #333;position:relative}
.wx-phone__screen{width:100%;height:100%;border-radius:38px;overflow:hidden;background:#fff;position:relative}
.wx-phone__island{position:absolute;top:20px;left:50%;transform:translateX(-50%);width:92px;height:26px;border-radius:20px;background:#000;z-index:3}
html.wx-app .web-only{display:none!important}

/* Go-live plan choice (FS-23). Bold tiles, pill buttons, never underlined. */
.gl-h{font-size:26px;font-weight:800;color:var(--plum-2)}
.gl-sub{margin-top:6px}
.gl-toggle{display:grid;grid-template-columns:1fr 1fr;background:#ECE9F2;border-radius:var(--r-pill);padding:4px;margin:16px 0 4px}
.gl-toggle button{appearance:none;border:0;background:transparent;min-height:44px;padding:0 10px;border-radius:var(--r-pill);font:700 15px var(--font);color:var(--slate);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.gl-toggle button.on{background:#fff;color:var(--plum);box-shadow:0 2px 8px rgba(0,0,0,.08)}
.gl-save{display:inline-block;background:var(--leaf-2);color:var(--leaf);border-radius:var(--r-pill);font-size:12px;font-weight:800;padding:3px 8px;line-height:1.2}
.gl-plans{display:grid;gap:12px;margin:14px 0}
.gl-plan{appearance:none;display:block;width:100%;text-align:left;font:inherit;color:inherit;background:#fff;border:2px solid var(--line);border-radius:24px;padding:16px;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}
.gl-plan.on{border-color:var(--coral);box-shadow:0 0 0 4px #FDE7E3}
.gl-plan:focus-visible{outline:3px solid var(--lilac-2);outline-offset:2px}
.gl-top{display:flex;gap:12px;align-items:flex-start}
.gl-name{flex:1;min-width:0}
.gl-name b{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:19px;font-weight:800;color:var(--ink)}
.gl-name small{display:block;color:var(--slate);font-size:14px;line-height:1.35;margin-top:2px}
.gl-rec{background:var(--coral);color:#fff;border-radius:var(--r-pill);font-size:12px;font-weight:800;padding:3px 9px;line-height:1.3}
.gl-radio{flex:0 0 auto;width:28px;height:28px;border-radius:50%;border:2px solid #D3CFDC;display:grid;place-items:center;color:transparent}
.gl-radio svg{width:28px;height:28px}
.gl-plan.on .gl-radio{border-color:transparent;color:var(--coral)}
.gl-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 6px;margin:12px 0 0}
.gl-price b{font-size:26px;font-weight:800;color:var(--plum-2);letter-spacing:-.02em}
.gl-price small{color:var(--slate);font-size:15px;font-weight:600}
.gl-price .gl-save{margin-left:4px;align-self:center}
.gl-feat{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px}
.gl-feat li{display:flex;gap:8px;align-items:flex-start;font-size:14.5px;line-height:1.35;color:var(--ink)}
.gl-feat svg{flex:0 0 auto;width:18px;height:18px;color:var(--leaf);margin-top:1px}
.gl-intro{display:flex;gap:12px;align-items:center;background:#FDF1D8;color:#6B4600;border-radius:18px;padding:12px 14px;margin-bottom:12px;font-size:15px}
.gl-foot{position:sticky;bottom:calc(-24px - var(--safe-b));background:linear-gradient(180deg,rgba(255,255,255,0),#fff 16px);padding:16px 0 calc(32px + var(--safe-b));z-index:2}
.gl-guar{display:flex;gap:10px;align-items:center;background:var(--leaf-2);border:2px solid #BFE0CF;border-radius:18px;padding:10px 12px;color:#1E4D37}
.gl-guar b{display:block;font-size:16px;font-weight:800;line-height:1.2}
.gl-guar small{display:block;font-size:13.5px;line-height:1.3;margin-top:2px}
.gl-err{color:var(--coral-text);font-size:15px;min-height:0;margin:6px 0}
.gl-err:empty{margin:4px 0}
.gl-go{white-space:normal;text-align:center;line-height:1.2;padding:12px 20px}
.gl-free{margin-top:10px;white-space:nowrap;text-align:center}
.gl-fine{display:flex;gap:8px;align-items:flex-start;justify-content:center;color:var(--slate);font-size:13px;line-height:1.4;margin-top:10px;text-align:left}
.gl-fine svg{flex:0 0 auto;width:16px;height:16px;margin-top:1px;color:var(--plum-3)}
html.wx-app .gl{display:none!important}


/* Never leave a lone short word on the last line, and never let wrapping look ragged. */
h1,h2,h3,p,li,.wx-muted,.wx-eyebrow{text-wrap:pretty;overflow-wrap:break-word}
h1,h2{text-wrap:balance}
.wx-btn,.wx-chip,.wx-pill-tag{text-wrap:nowrap;overflow-wrap:normal}
