:root {
  --bg: #ffffff; --soft: #f6f9fc; --card: #ffffff; --ink: #0a2540; --muted: #425466;
  --line: #e3e8ee; --accent: #635bff; --accent2: #00d4ff; --warn: #b42318; --ok: #1a7f37;
  --shadow: 0 30px 60px -12px rgba(50,50,93,.18), 0 18px 36px -18px rgba(0,0,0,.22);
  --grad: linear-gradient(120deg, #ff6ec4 0%, #7873f5 30%, #00d4ff 60%, #ffcb57 90%);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
h2 { scroll-margin-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
       font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 1.2rem; font-weight: 800; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; letter-spacing: -.01em; }
h2.big { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.025em; margin: .2rem 0 1.4rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
.small { font-size: .95rem; color: var(--muted); }
.warn { color: var(--warn); }
.eyebrow { margin: 0 0 .4rem; font-weight: 700; font-size: .95rem; color: #4b42d6; }
.wrap1 { max-width: 1120px; margin: 0 auto; padding: 2rem 16px 1rem; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.72);
          backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
          border-bottom: 1px solid rgba(227,232,238,.7); }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: .7rem 16px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.topbar nav { display: flex; align-items: center; gap: 1.2rem; }
.topbar nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.topbar nav a.navcta { background: var(--ink); color: #fff; padding: .4rem .9rem; border-radius: 999px; }
@media (max-width: 560px) { .topbar nav a:not(.navcta) { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; z-index: -1; left: -10%; right: -10%; top: -45%; height: 95%;
           background: var(--grad); background-size: 300% 300%; transform: skewY(-9deg);
           animation: flow 14s ease infinite; filter: saturate(1.1); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
                  background: linear-gradient(180deg, rgba(255,255,255,0) 55%, #fff 100%); }
@keyframes flow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-in { max-width: 1120px; margin: 0 auto; padding: 4.5rem 16px 3rem; display: grid;
           grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.hero-copy h1 { color: var(--ink); }
.grad { background: linear-gradient(90deg, #635bff, #ff6ec4 55%, #ff9a3c);
        -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin: 0 0 1.6rem; }
.hero-copy .eyebrow { color: var(--ink); background: rgba(255,255,255,.75); display: inline-block;
                      padding: .2rem .7rem; border-radius: 999px; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; }
.cta { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
       padding: .8rem 1.4rem; border-radius: 999px; box-shadow: 0 8px 20px -6px rgba(99,91,255,.6);
       transition: transform .15s, box-shadow .15s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(99,91,255,.65); }
.cta.ghost { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(10,37,64,.12); }
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.hero-glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, #fff 30%, rgba(255,255,255,0) 70%); }
#heroMug { position: relative; width: 100%; height: 100%; display: block; opacity: 0; transform: scale(.94);
           transition: opacity .8s, transform .8s; }
#heroMug.ready { opacity: 1; transform: none; }
.hero-label { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); white-space: nowrap;
              background: #fff; box-shadow: var(--shadow); border-radius: 999px; padding: .4rem 1rem;
              font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: .5rem; }
.hero-label:empty { display: none; }
.hero-label i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
.hero-label i.white { background: #fff; } .hero-label i.black { background: #111; }
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 2.5rem; text-align: left; }
  .hero-art { max-width: 420px; order: -1; margin-bottom: -1rem; }
  .hero-bg { top: -30%; height: 75%; }
}

/* pricing band */
.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap1 { padding: 3.5rem 16px 2.5rem; }
.pricing { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1rem;
           grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pricing li { background: var(--card); border-radius: 14px; padding: 1.3rem 1.3rem 1.2rem;
              box-shadow: 0 2px 5px -1px rgba(50,50,93,.15), 0 1px 3px -1px rgba(0,0,0,.2);
              transition: transform .2s, box-shadow .2s; }
.pricing li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing li b { display: block; font-size: 1rem; }
.pricing li em { display: block; font-style: normal; font-weight: 800; font-size: 2rem; letter-spacing: -.03em; margin: .2rem 0; }
.pricing li span { display: block; font-size: .88rem; color: var(--muted); }
.pricing li.best { position: relative; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
                   border: 2px solid transparent; }
.pricing li.best::before { content: "Best value"; position: absolute; top: -.75rem; right: 1rem; background: var(--ink);
                           color: #fff; font-size: .75rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; }

/* maker */
.maker-head { padding-top: 4rem; padding-bottom: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px 3rem; display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 820px) { .wrap { grid-template-columns: 1fr; } }
.stage-col { position: sticky; top: 4.5rem; }
@media (max-width: 820px) { .stage-col { position: static; } }
.stage { position: relative; aspect-ratio: 1; background: #fff; border-radius: 18px;
         overflow: hidden; box-shadow: var(--shadow); }
.stage canvas, .stage video { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage video { background: #fff; }
.wm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
      pointer-events: none; font: 800 clamp(1.8rem, 7vw, 4.2rem)/1 system-ui, sans-serif;
      color: rgba(0,0,0,.16); transform: rotate(-24deg); letter-spacing: .05em; }
.loading { position: absolute; inset: auto 0 1rem; text-align: center; color: #666; }
.template-box { margin-top: 1rem; background: var(--card); border: 1px solid var(--line);
                border-radius: 14px; padding: .9rem; }
#tpl { width: 100%; height: auto; display: block; background: repeating-conic-gradient(#e9e9e9 0 25%, #fff 0 50%) 0 0/16px 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: .2rem 1.3rem 1.4rem;
         box-shadow: 0 2px 5px -1px rgba(50,50,93,.1), 0 1px 3px -1px rgba(0,0,0,.12); }
.phone-note { margin-top: 1rem; padding: .7rem; border-radius: 10px; background: #fff4ce; color: #5c4400; font-size: .9rem; }
.welcome-back { margin-top: 1rem; padding: .8rem; border-radius: 10px; background: #e6f4ea; color: #14361f; font-size: 1rem; line-height: 1.5; }
.drop { display: block; border: 2px dashed #c9d2dc; border-radius: 14px; padding: 1.5rem; text-align: center; cursor: pointer;
        background: var(--soft); font-weight: 600; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: #f1f0ff; }
.drop input { display: none; }
.row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.row label { font-size: .92rem; }
.quality { margin: 4px 0 14px; }
.quality label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.quality select { width: 100%; min-height: 44px; font: inherit; padding: 8px 12px;
                  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.quality p { margin: 6px 0 0; }
/* Comfortable tap targets on phones. */
@media (pointer: coarse) {
  .row label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
  .row input[type="radio"] { width: 20px; height: 20px; }
  #clear11 { min-height: 44px; }
}
.opt { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
       padding: .4rem 1rem; cursor: pointer; font: inherit; font-weight: 600; transition: all .15s; }
.opt:hover { border-color: var(--accent); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
        cursor: pointer; padding: 0; transition: transform .15s; }
.chip:hover { transform: scale(1.12); }
.chip[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: 2px; }
button#makeOne, button#makeSet, button#makeAll, .buy button, #tryExample { display: block; width: 100%; margin: .5rem 0; padding: .8rem;
  border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 700 1rem system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(99,91,255,.7); transition: transform .15s; }
button#makeOne:not(:disabled):hover, .buy button:hover, #tryExample:hover { transform: translateY(-1px); }
#tryExample { width: auto; display: inline-block; padding: .8rem 1.6rem; }
button.secondary { background: transparent !important; color: var(--accent) !important; border: 1.5px solid var(--accent) !important; box-shadow: none !important; }
button:disabled { opacity: .45; cursor: default; }
.progress { position: relative; min-height: 28px; background: var(--line); border-radius: 14px; overflow: hidden; }
#bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
#progText { position: relative; display: block; padding: 4px 14px; text-align: center; font-size: .85rem; line-height: 20px; }
.results { list-style: none; padding: 0; }
.results li { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.results a { color: var(--accent); }
.unlock { font-size: .9rem; }
.unlock .ok { color: var(--ok); }
.sizes { border-collapse: collapse; margin: .5rem 0; }
.sizes td, .sizes th { border-bottom: 1px solid var(--line); padding: .2rem .5rem .2rem 0; text-align: left; }
.drop-small { padding: 12px; margin-top: 8px; font-size: 14px; font-weight: 500; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }

/* example + faq */
.example { max-width: 1120px; margin: 0 auto; padding: 3.5rem 16px; }
.example > p { color: var(--muted); max-width: 70ch; }
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.2rem 0; }
.example-grid img { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: var(--shadow); }
.example figure { margin: 0; }
.example figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 640px) { .example-grid { grid-template-columns: 1fr; } }
.faq { padding-bottom: 3rem; }
.faq p { color: var(--muted); max-width: 72ch; }
.faq b { color: var(--ink); }
.foot { text-align: center; padding: 2.5rem 16px; font-size: .88rem; color: var(--muted); background: var(--soft); border-top: 1px solid var(--line); }
.foot a { color: inherit; text-decoration: underline; }
.prose { max-width: 720px; margin: 0 auto; padding: 2rem 16px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } html { scroll-behavior: auto; } }
.resend { margin: 1.2rem 0; padding: 1rem 1.2rem; border: 1px solid var(--line, #E5E7EB); border-radius: 14px; max-width: 72ch; }
.resend form { display: flex; gap: .5rem; flex-wrap: wrap; }
.resend input { flex: 1 1 220px; padding: .6rem .9rem; border: 1px solid #CBD5E1; border-radius: 999px; font: inherit; }
.resend button { padding: .6rem 1.2rem; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.sample-video { max-width: 420px; margin: 1.2rem auto; }
.sample-video video { width: 100%; height: auto; border-radius: 14px; display: block; background: #fff; }
.sample-video figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .4rem; }
