/* /create/ — Custom Cat Deck flow (GEN-1)
   Implemented from claude.ai/design "Custom Cat Tarot Deck Flow" (founder-approved mockup).
   Theme picker = variant 4a (editorial list), founder-picked 2026-07-12.
   Mobile-first 390×844; desktop gets a centered column. No emoji; inline SVG only. */

:root {
  --ct-ink: #3d1a5c;
  --ct-sub: #6a3f8e;
  --ct-muted: #7c5e96;
  --ct-faint: #9379ad;
  --ct-gold: #c9933a;
  --ct-gold-strong: #d49a2c;
  --ct-gold-soft: #e8c478;
  --ct-kicker: #b07a4a;
  --ct-pink: #d12878;
  --ct-pink-bright: #e8457a;
  --ct-green: #7a9e6e;
  --ct-green-ink: #5e8450;
  --ct-serif: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
  --ct-sans: 'DM Sans', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --ct-cta-grad: linear-gradient(135deg, #6e1d4c 0%, #d12878 45%, #e8a838 100%);
  --ct-back-grad: linear-gradient(155deg, #3d1a5c 0%, #7a1f66 45%, #d12878 100%);
}

html, body { margin: 0; padding: 0; }

body.ct-body {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #fbf1e9 0%, #f6e3e6 55%, #f0d8e6 100%);
  background-attachment: fixed;
  font-family: var(--ct-sans);
  color: var(--ct-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ct-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

@keyframes ctFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ctGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes ctShimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes ctRise { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(0); } }

/* ---------- chrome: top bar + progress ---------- */
.ct-top {
  flex: 0 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) 22px 0;
}
.ct-top-row { display: flex; align-items: center; justify-content: space-between; }
.ct-back {
  width: 38px; height: 38px; border-radius: 13px; border: none;
  background: rgba(255, 255, 255, .72);
  display: flex; align-items: center; justify-content: center;
  color: var(--ct-ink); cursor: pointer; padding: 0;
  text-decoration: none;
}
.ct-kicker {
  font-size: 10.5px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ct-kicker);
}
.ct-top-slot { width: 38px; display: flex; justify-content: flex-end; }
.ct-lang {
  font-size: 11px; font-weight: 700; color: var(--ct-faint);
  text-decoration: none; padding: 6px 2px;
}
.ct-progress {
  margin-top: 11px; height: 4px; border-radius: 4px;
  background: rgba(61, 26, 92, .1); overflow: hidden;
}
.ct-progress-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #e8457a, #c9933a);
  transition: width .3s ease;
}

/* ---------- scroll body + footer ---------- */
.ct-scroll {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 16px 22px 18px;
  scrollbar-width: none;
}
.ct-scroll::-webkit-scrollbar { display: none; }

.ct-foot {
  flex: 0 0 auto;
  padding: 12px 22px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(240, 216, 230, .96) 62%, rgba(240, 216, 230, 0));
}

.ct-cta {
  width: 100%; padding: 16px; border: none; border-radius: 100px;
  background: var(--ct-cta-grad); color: #fdf6ee;
  font-family: var(--ct-sans); font-size: 15px; font-weight: 600; letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 16px 32px -10px rgba(209, 40, 120, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.ct-cta:disabled {
  background: rgba(61, 26, 92, .12); color: rgba(61, 26, 92, .4);
  box-shadow: none; cursor: default;
}
.ct-foot-hint { margin: 9px 0 0; text-align: center; font-size: 11.5px; color: var(--ct-faint); }
.ct-foot-link {
  display: block; margin: 10px auto 0; padding: 4px; border: none; background: transparent;
  color: var(--ct-faint); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}

/* ---------- shared text ---------- */
.ct-h2 {
  margin: 0; font-family: var(--ct-serif); font-weight: 600; font-size: 26px;
  color: var(--ct-ink); letter-spacing: -.01em; line-height: 1.15;
}
.ct-sub { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--ct-sub); }
.ct-label {
  margin: 18px 0 0; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ct-kicker);
}

.ct-card {
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px; padding: 16px 17px;
  box-shadow: 0 10px 28px -12px rgba(61, 26, 92, .24);
}
.ct-card-title {
  margin: 0 0 11px; font-family: var(--ct-serif); font-style: italic; font-weight: 600;
  font-size: 17px; color: var(--ct-ink);
}

/* ---------- intro ---------- */
.ct-intro-kicker {
  margin: 8px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ct-gold);
}
.ct-intro-title {
  margin: 8px 0 0; font-family: var(--ct-serif); font-weight: 600; font-size: 31px;
  line-height: 1.12; color: var(--ct-ink); white-space: pre-line; letter-spacing: -.01em;
}
.ct-hero {
  position: relative; height: 214px; margin: 18px 0 6px;
  display: flex; align-items: center; justify-content: center;
}
.ct-hero-side {
  position: absolute; width: 120px; height: 170px; border-radius: 15px;
  background: var(--ct-back-grad);
  box-shadow: 0 22px 40px -18px rgba(61, 26, 92, .7);
  border: .5px solid var(--ct-gold-soft);
}
.ct-hero-main {
  position: relative; width: 132px; height: 188px; border-radius: 16px;
  background: var(--ct-back-grad);
  box-shadow: 0 28px 46px -16px rgba(61, 26, 92, .8);
  border: .5px solid var(--ct-gold-soft);
  animation: ctFloat 5s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center;
}
.ct-hero-main .ct-inner-frame { position: absolute; inset: 7px; border: .5px solid rgba(232, 196, 120, .55); border-radius: 10px; }
.ct-hero-m { font-family: var(--ct-serif); font-style: italic; font-size: 44px; color: var(--ct-gold-soft); }
.ct-hero-tag {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-size: 8px; letter-spacing: .14em; color: rgba(232, 196, 120, .7); text-transform: uppercase;
}

.ct-get-row { display: flex; align-items: center; gap: 11px; }
.ct-get-row + .ct-get-row { margin-top: 10px; }
.ct-get-ico {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  background: rgba(201, 147, 58, .14); color: var(--ct-gold);
  display: flex; align-items: center; justify-content: center;
}
.ct-get-txt { font-size: 13.5px; color: var(--ct-ink); font-weight: 500; }

.ct-anchor {
  margin-top: 12px; border-radius: 18px; padding: 16px 17px;
  background: linear-gradient(150deg, rgba(201, 147, 58, .14), rgba(232, 69, 122, .1));
  border: 1px solid rgba(201, 147, 58, .28);
}
.ct-anchor-line {
  margin: 0; font-family: var(--ct-serif); font-style: italic; font-weight: 600;
  font-size: 19px; line-height: 1.2; color: var(--ct-ink);
}
.ct-anchor-price { display: flex; align-items: baseline; gap: 9px; margin-top: 8px; }
.ct-anchor-thb { font-family: var(--ct-serif); font-weight: 700; font-size: 28px; color: var(--ct-ink); }
.ct-anchor-usd { font-size: 13px; color: var(--ct-muted); }
.ct-anchor-note { margin: 5px 0 0; font-size: 11.5px; color: var(--ct-muted); }

.ct-theme-strip-title {
  margin: 20px 0 10px; font-family: var(--ct-serif); font-style: italic; font-weight: 600;
  font-size: 17px; color: var(--ct-ink);
}
.ct-theme-strip {
  display: flex; gap: 11px; overflow-x: auto; margin: 0 -22px; padding: 2px 22px 6px;
  scrollbar-width: none;
}
.ct-theme-strip::-webkit-scrollbar { display: none; }
.ct-strip-item { flex: 0 0 auto; width: 108px; }
.ct-strip-art {
  width: 108px; height: 150px; border-radius: 13px; position: relative; overflow: hidden;
  border: .5px solid rgba(232, 196, 120, .6);
  box-shadow: 0 12px 24px -12px rgba(61, 26, 92, .45);
}
.ct-strip-name {
  margin: 7px 0 0; font-family: var(--ct-serif); font-weight: 600; font-size: 12.5px;
  color: var(--ct-ink); line-height: 1.1;
}
.ct-strip-th { margin: 1px 0 0; font-size: 10px; color: var(--ct-muted); }

.ct-sample-hatch { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 7px, transparent 7px 14px); }
.ct-sample-frame { position: absolute; inset: 6px; border: .5px solid rgba(255, 255, 255, .28); border-radius: 8px; }
.ct-sample-tag {
  position: absolute; bottom: 7px; left: 0; right: 0; text-align: center;
  font-size: 7.5px; letter-spacing: .12em; color: rgba(255, 255, 255, .72); text-transform: uppercase;
}

.ct-trust { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.ct-trust-row { display: flex; align-items: flex-start; gap: 10px; }
.ct-trust-row svg { flex: 0 0 auto; margin-top: 1px; }
.ct-trust-txt { font-size: 12px; line-height: 1.45; color: var(--ct-sub); }

/* ---------- upload ---------- */
.ct-slots { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 11px; margin-top: 18px; }
.ct-slot {
  position: relative; aspect-ratio: 3 / 4; border-radius: 14px; padding: 0; border: none;
  cursor: pointer; background: transparent; overflow: hidden;
}
.ct-slot-empty {
  position: absolute; inset: 0; border-radius: 14px;
  border: 1.5px dashed rgba(61, 26, 92, .28); background: rgba(255, 255, 255, .42);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  color: var(--ct-faint);
}
.ct-slot-empty span { font-size: 9.5px; font-weight: 600; }
.ct-slot-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 14px; border: .5px solid rgba(255, 255, 255, .5);
  box-shadow: 0 10px 22px -10px rgba(61, 26, 92, .5);
}
.ct-slot-x {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(20, 16, 25, .5); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ct-slot-main {
  position: absolute; bottom: 6px; left: 6px; font-size: 8px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 100px;
  background: rgba(61, 26, 92, .82); color: #fdf6ee;
}

.ct-tip-row { display: flex; align-items: center; gap: 10px; }
.ct-tip-row + .ct-tip-row { margin-top: 10px; }
.ct-tip-check {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(201, 147, 58, .16); color: var(--ct-gold);
  display: flex; align-items: center; justify-content: center;
}
.ct-tip-txt { font-size: 12.5px; color: var(--ct-ink); }

.ct-privacy {
  margin-top: 12px; background: rgba(196, 168, 240, .14); border: 1px solid rgba(164, 135, 196, .3);
  border-radius: 16px; padding: 14px 15px; display: flex; gap: 12px; align-items: flex-start;
}
.ct-privacy-ico {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px;
  background: rgba(61, 26, 92, .1); color: var(--ct-sub);
  display: flex; align-items: center; justify-content: center;
}
.ct-privacy-title { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--ct-ink); }
.ct-privacy-txt { margin: 4px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ct-sub); }

/* ---------- name ---------- */
.ct-name-card {
  margin-top: 22px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px; padding: 20px 18px;
  box-shadow: 0 10px 26px -14px rgba(61, 26, 92, .24);
}
.ct-name-input {
  width: 100%; box-sizing: border-box; border: none; background: transparent;
  font-family: var(--ct-serif); font-weight: 600; font-size: 27px; color: var(--ct-ink);
  text-align: center; outline: none;
}
.ct-name-input::placeholder { color: rgba(61, 26, 92, .3); }
.ct-name-rule { height: 1.5px; background: linear-gradient(90deg, transparent, rgba(201, 147, 58, .55), transparent); margin-top: 8px; }

.ct-name-preview-wrap { display: flex; flex-direction: column; align-items: center; margin: 26px 0 6px; }
.ct-name-preview {
  position: relative; width: 148px; height: 206px; border-radius: 16px;
  background: var(--ct-back-grad);
  box-shadow: 0 26px 44px -18px rgba(61, 26, 92, .7); border: .5px solid var(--ct-gold-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ct-name-preview .ct-inner-frame { position: absolute; inset: 8px; border: .5px solid rgba(232, 196, 120, .5); border-radius: 10px; }
.ct-name-of { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: rgba(232, 196, 120, .75); }
.ct-name-shown {
  margin-top: 8px; padding: 0 12px; text-align: center;
  font-family: var(--ct-serif); font-style: italic; font-weight: 600; font-size: 26px;
  line-height: 1.05; color: #f4e3c4; word-break: break-word;
}
.ct-name-m { position: absolute; bottom: 12px; font-family: var(--ct-serif); font-style: italic; font-size: 15px; color: rgba(232, 196, 120, .85); }

/* ---------- theme picker (variant 4a: editorial list) ---------- */
.ct-theme-list { display: flex; flex-direction: column; gap: 11px; margin-top: 14px; }
.ct-theme-row {
  display: flex; gap: 13px; align-items: center; text-align: left; padding: 11px;
  border-radius: 18px; cursor: pointer; background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(61, 26, 92, .1);
  box-shadow: 0 10px 24px -15px rgba(61, 26, 92, .34);
  font-family: inherit;
}
.ct-theme-row.selected { border: 2.5px solid var(--ct-gold-strong); padding: 9.5px; }
.ct-theme-thumb {
  flex: 0 0 auto; position: relative; width: 92px; height: 138px; border-radius: 11px;
  object-fit: cover;
  border: .5px solid rgba(232, 196, 120, .5); overflow: hidden;
  box-shadow: 0 8px 16px -8px rgba(61, 26, 92, .4);
}
.ct-theme-body { flex: 1; min-width: 0; }
.ct-theme-name { display: block; font-family: var(--ct-serif); font-weight: 600; font-size: 18px; color: var(--ct-ink); line-height: 1.05; }
.ct-theme-thname { display: block; font-size: 11px; color: var(--ct-faint); margin-top: 1px; }
.ct-theme-detail { display: block; font-size: 11.5px; color: var(--ct-sub); line-height: 1.38; margin-top: 7px; }
.ct-theme-detail b { color: var(--ct-ink); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.ct-theme-custom-thumb { display:flex; flex-direction:column; align-items:center; justify-content:center; background:linear-gradient(145deg,#fff9ef,#eee2f2); color:var(--ct-gold-strong); }
.ct-theme-custom-thumb span { font-size:32px; font-weight:300; }
.ct-theme-custom-thumb small { font-size:9px; letter-spacing:.12em; }
.ct-custom-style { margin:-3px 3px 5px; padding:15px; border-radius:16px; background:rgba(255,255,255,.74); border:1px solid rgba(201,147,58,.32); }
.ct-style-upload { width:100%; min-height:52px; margin-top:12px; border:1px dashed rgba(61,26,92,.28); border-radius:12px; background:#fffaf3; color:var(--ct-ink); font:600 12px var(--ct-sans); display:flex; align-items:center; justify-content:center; gap:10px; overflow:hidden; }
.ct-style-upload img { width:48px; height:64px; object-fit:cover; border-radius:7px; }
.ct-custom-help { margin:9px 2px 0; color:var(--ct-sub); font-size:10.5px; line-height:1.45; }
.ct-theme-radio { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(61, 26, 92, .2); }
.ct-theme-check {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ct-gold-strong); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 12px -4px rgba(201, 147, 58, .7);
}

/* ---------- note ---------- */
.ct-note-card {
  margin-top: 16px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 16px; padding: 14px 15px;
  box-shadow: 0 8px 22px -12px rgba(61, 26, 92, .2);
}
.ct-note-input {
  width: 100%; box-sizing: border-box; border: none; background: transparent; resize: none;
  font-family: var(--ct-sans); font-size: 14px; line-height: 1.55; color: var(--ct-ink); outline: none;
}
.ct-note-input::placeholder { color: rgba(61, 26, 92, .32); }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.ct-chip {
  display: flex; align-items: center; gap: 5px; padding: 8px 13px; border-radius: 100px;
  border: 1px solid rgba(61, 26, 92, .16); background: rgba(255, 255, 255, .7);
  color: var(--ct-ink); font-family: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
}

/* ---------- package (3 selectable tiers) ---------- */
.ct-pkg-list { display: flex; flex-direction: column; gap: 13px; margin-top: 20px; }
.ct-pkg {
  position: relative; border-radius: 20px; padding: 16px 17px 15px; cursor: pointer;
  background: rgba(255, 255, 255, .82);
  border: 1.5px solid rgba(61, 26, 92, .12);
  box-shadow: 0 10px 24px -15px rgba(61, 26, 92, .3);
}
.ct-pkg.selected {
  background: linear-gradient(160deg, rgba(255, 255, 255, .94), rgba(255, 248, 236, .94));
  border: 2px solid var(--ct-gold-strong); padding: 15.5px 16.5px 14.5px;
  box-shadow: 0 16px 34px -16px rgba(201, 147, 58, .4);
}
.ct-pkg-tag {
  position: absolute; top: -10px; left: 18px; padding: 4px 11px; border-radius: 100px;
  background: var(--ct-gold-strong); color: #fff; font-size: 9px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.ct-pkg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ct-pkg-name { font-family: var(--ct-serif); font-weight: 600; font-size: 20px; color: var(--ct-ink); line-height: 1.1; }
.ct-pkg-price { text-align: right; flex: 0 0 auto; }
.ct-pkg-thb { font-family: var(--ct-serif); font-weight: 700; font-size: 24px; color: var(--ct-ink); }
.ct-pkg-usd { display: block; font-size: 11px; color: var(--ct-muted); margin-top: 1px; }
.ct-pkg-rule { height: 1px; background: rgba(201, 147, 58, .25); margin: 12px 0; }
.ct-inc-row { display: flex; align-items: center; gap: 10px; }
.ct-inc-row + .ct-inc-row { margin-top: 8px; }
.ct-inc-row svg { flex: 0 0 auto; color: var(--ct-gold); }
.ct-inc-txt { font-size: 13px; color: var(--ct-ink); }
.ct-pkg-foot { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ct-sub); }
.ct-pkg-save {
  margin: 10px 0 0; font-size: 11.5px; font-weight: 700; color: var(--ct-green-ink);
}

/* reversed add-on toggle — nested inside the Upright deck card */
.ct-rev {
  width: 100%; box-sizing: border-box; text-align: left; margin-top: 12px;
  border-radius: 14px; padding: 12px 13px;
  cursor: pointer; font-family: inherit; display: flex; gap: 12px; align-items: center;
  background: rgba(61, 26, 92, .05); border: 1.5px solid rgba(61, 26, 92, .1);
}
.ct-rev.on {
  background: linear-gradient(160deg, rgba(232, 196, 120, .22), rgba(232, 69, 122, .12));
  border: 1.5px solid var(--ct-gold-strong);
}
.ct-rev:disabled {
  opacity: .55; cursor: default;
  pointer-events: none; /* taps fall through to the card and select the package */
}
.ct-rev-optional { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ct-kicker); }
.ct-rev-line { display: flex; align-items: baseline; gap: 7px; margin-top: 3px; flex-wrap: wrap; }
.ct-rev-name { font-family: var(--ct-serif); font-weight: 600; font-size: 16px; color: var(--ct-ink); }
.ct-rev-price { font-size: 12px; font-weight: 700; color: var(--ct-pink); }
.ct-rev-desc { display: block; font-size: 11.5px; line-height: 1.45; color: var(--ct-sub); margin-top: 5px; }
.ct-toggle { flex: 0 0 auto; width: 44px; height: 26px; border-radius: 100px; background: rgba(61, 26, 92, .18); position: relative; transition: background .15s ease; }
.ct-rev.on .ct-toggle { background: var(--ct-gold-strong); }
.ct-toggle-knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); transition: left .15s ease;
}
.ct-rev.on .ct-toggle-knob { left: 21px; }

.ct-info {
  margin-top: 12px; background: rgba(255, 255, 255, .6); border: 1px dashed rgba(61, 26, 92, .18);
  border-radius: 16px; padding: 14px 15px; display: flex; gap: 11px; align-items: flex-start;
}
.ct-info-title { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--ct-ink); }
.ct-info-txt { margin: 4px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ct-sub); }
.ct-token-coin {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f3d98c, #d49a2c);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 7px -2px rgba(192, 131, 39, .6);
}
.ct-token-coin span { width: 13px; height: 13px; border-radius: 50%; background: var(--ct-ink); }

.ct-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 11px; padding: 0 4px; }
.ct-total-label { font-size: 13px; color: var(--ct-sub); }
.ct-total-amt { font-family: var(--ct-serif); font-weight: 700; font-size: 23px; color: var(--ct-ink); }

/* ---------- pay ---------- */
.ct-summary {
  margin-top: 16px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 16px; padding: 14px 15px;
}
.ct-summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ct-ink); }
.ct-summary-row + .ct-summary-row { margin-top: 7px; }
.ct-summary-rule { height: 1px; background: rgba(61, 26, 92, .1); margin: 11px 0; }
.ct-summary-total { display: flex; justify-content: space-between; align-items: baseline; }
.ct-summary-total-label { font-size: 13px; font-weight: 600; color: var(--ct-ink); }
.ct-summary-total-amt { font-family: var(--ct-serif); font-weight: 700; font-size: 21px; color: var(--ct-ink); }

.ct-soon {
  margin-top: 16px; border-radius: 18px; padding: 18px 17px; text-align: center;
  background: linear-gradient(150deg, rgba(201, 147, 58, .12), rgba(232, 69, 122, .08));
  border: 1px solid rgba(201, 147, 58, .3);
}
.ct-soon-title { margin: 0; font-family: var(--ct-serif); font-style: italic; font-weight: 600; font-size: 19px; color: var(--ct-ink); }
.ct-soon-txt { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ct-sub); }

.ct-assure { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ct-assure-row { display: flex; align-items: center; gap: 9px; }
.ct-assure-txt { font-size: 11.5px; color: var(--ct-sub); }

/* ---------- tablet + desktop (2026-08-01) ----------
   Was: a 430px phone-shaped sheet floating on the page — i.e. a blown-up
   mobile view with a visible frame. From 720px up the frame is gone: the
   content sits directly on the page background in a centered column, the
   page itself scrolls, and the footer CTA stops being a full-bleed bar. */
@media (min-width: 720px) {
  body.ct-body { background: radial-gradient(120% 90% at 50% 0%, #f7ece1 0%, #efe2d4 60%, #e6d8c8 100%); }
  .ct-shell {
    width: 100%; max-width: 688px; box-sizing: border-box;
    margin: 0 auto; padding: 0 24px 64px;
    min-height: 0; height: auto;
    background: none; border-radius: 0; box-shadow: none; overflow: visible;
  }
  .ct-top { padding: 30px 0 0; }
  .ct-scroll { flex: none; overflow: visible; padding: 20px 0 0; }
  .ct-foot { background: none; padding: 26px 0 0; }
  .ct-cta { display: block; max-width: 360px; margin: 0 auto; }
  .ct-total-row { max-width: 360px; margin-left: auto; margin-right: auto; }
  .ct-foot-hint, .ct-foot-link { text-align: center; }
  /* strip is an edge-bleeding h-scroller on mobile; on a wide page a clipped
     row reads as broken, so it wraps into a grid instead */
  .ct-theme-strip {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px; margin: 0; padding: 2px 0 6px; overflow: visible;
  }
  /* specificity: the base .ct-strip-img sizing rule sits later in this file */
  .ct-theme-strip .ct-strip-item { width: auto; }
  .ct-theme-strip .ct-strip-img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
  /* mobile type scale reads undersized once the frame is gone */
  .ct-h2 { font-size: 30px; }
  .ct-sub { font-size: 14.5px; }
  .ct-get-txt, .ct-tip-txt { font-size: 14px; }
  .ct-trust-txt, .ct-assure-txt { font-size: 13px; }
}

/* ---------- PAY-3 PromptPay block ---------- */
.ct-pp { margin: 18px 0 6px; display: flex; flex-direction: column; gap: 14px; }
.ct-pp-preview {
  align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
  color: #8a5a00; background: #fdeeC8; border: 1px solid #e8c97a; border-radius: 6px; padding: 4px 8px;
}
.ct-pp-card {
  background: #fff; border: 1px solid var(--ct-line, #e6dff0); border-radius: 16px;
  padding: 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: 0 4px 18px rgba(60, 34, 96, 0.06);
}
.ct-pp-scan { margin: 0; font-size: 13px; font-weight: 600; color: var(--ct-ink, #241a3d); }
.ct-pp-qr { width: min(220px, 62vw); height: auto; display: block; }
.ct-pp-amount {
  margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ct-sub, #6f6486);
}
.ct-pp-amount b { font-size: 21px; color: var(--ct-ink, #241a3d); }
.ct-pp-steps { margin: 0; padding-left: 20px; font-size: 12.5px; line-height: 1.7; color: var(--ct-sub, #6f6486); }
.ct-pp-wait { margin: 14px 0; text-align: center; font-size: 13.5px; color: var(--ct-sub, #6f6486); }
.ct-pp-signin { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ct-sub, #6f6486); }
.ct-pp-error { margin: 0; font-size: 12.5px; line-height: 1.6; color: #a33; }

/* ---------- Studio redesign 2026-07-29 (hard-copy flow) ---------- */

/* Intro hero: three real style renders fanned like the mockup */
.ct-hero-side-img {
  position: absolute; width: 116px; border-radius: 14px;
  box-shadow: 0 22px 40px -18px rgba(61, 26, 92, .7);
  border: .5px solid var(--ct-gold-soft);
}
.ct-hero-main-img {
  position: relative; width: 132px; border-radius: 16px;
  box-shadow: 0 28px 46px -16px rgba(61, 26, 92, .8);
  border: .5px solid var(--ct-gold-soft);
  animation: ctFloat 5s ease-in-out infinite;
}
.ct-strip-img {
  /* 2:3 box: the cards ARE 2:3, so a shorter box made object-fit crop the art's
     own drawn border off the top and bottom (visible on pixel/scribble/toy). */
  width: 108px; height: 162px; object-fit: cover; border-radius: 13px; display: block;
  border: .5px solid rgba(232, 196, 120, .6);
  box-shadow: 0 12px 24px -12px rgba(61, 26, 92, .45);
}

/* Package cards: founding price + crossed-out list price */
.ct-pkg-list-price { font-size: 10.5px; color: var(--ct-faint); }
.ct-pkg-list-price s { color: var(--ct-faint); }

.ct-digital-note {
  margin-top: 14px; display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .6); border: 1px dashed rgba(61, 26, 92, .18);
}
.ct-digital-note p { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--ct-sub); }

/* ---------- shipping address ---------- */
.ct-addr-chips { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ct-chip-free {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 100px;
  background: rgba(122, 158, 110, .16); color: var(--ct-green-ink);
}
.ct-chip-made {
  font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 100px;
  background: rgba(184, 137, 92, .14); color: #8d6a14;
}
.ct-addr-form { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.ct-addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-addr-field {
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(61, 26, 92, .12);
  border-radius: 14px; padding: 10px 14px 11px;
}
.ct-addr-field.bad { border-color: rgba(176, 48, 80, .55); }
.ct-addr-label {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ct-kicker);
}
.ct-addr-input {
  width: 100%; border: none; background: transparent; outline: none;
  font-family: var(--ct-sans); font-size: 14px; color: var(--ct-ink);
  margin-top: 3px; padding: 0;
}
.ct-addr-input::placeholder { color: var(--ct-faint); }
.ct-addr-bad { display: block; margin-top: 3px; font-size: 10.5px; color: #b03050; }

/* ---------- order confirmed (dark celebration screen) ---------- */
.ct-cf {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: calc(48px + env(safe-area-inset-top)) 28px 34px;
  background: linear-gradient(180deg, #3a3160 0%, #4a3d78 30%, #6a5498 62%, #a583c4 88%, #d9a9cf 100%);
  color: #fdf6e9;
}
.ct-cf-badge {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(242, 217, 152, .15); border: 1px solid rgba(242, 217, 152, .5);
  display: flex; align-items: center; justify-content: center; color: #f2d998;
}
.ct-cf-kicker {
  margin: 14px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: #f2d998;
}
.ct-cf-title {
  margin: 8px 0 0; font-family: var(--ct-serif); font-style: italic; font-weight: 500;
  font-size: 29px; line-height: 1.1; color: #fdf6e9;
}
.ct-cf-sub { margin: 8px 0 0; font-size: 13px; line-height: 1.7; color: rgba(253, 246, 233, .8); }
.ct-cf-order {
  margin-top: 13px; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  padding: 7px 16px; border-radius: 100px;
  background: rgba(253, 246, 233, .1); border: 1px solid rgba(242, 217, 152, .4); color: #f2d998;
}
.ct-cf-timeline {
  width: 100%; margin-top: 22px; text-align: left;
  background: rgba(253, 246, 233, .08); border: 1px solid rgba(242, 217, 152, .3);
  border-radius: 20px; padding: 18px;
}
.ct-cf-step { display: flex; align-items: center; gap: 12px; opacity: .55; }
.ct-cf-step.done, .ct-cf-step.active { opacity: 1; }
.ct-cf-dot {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid rgba(253, 246, 233, .5); color: #f2d998;
  display: flex; align-items: center; justify-content: center;
}
.ct-cf-step.done .ct-cf-dot { background: #f2d998; border-color: #f2d998; color: #3a3160; }
.ct-cf-step.active .ct-cf-dot { border-color: #f2d998; animation: ctGlow 2s ease-in-out infinite; }
.ct-cf-step.active .ct-cf-txt { color: #f2d998; }
.ct-cf-txt { font-size: 13px; font-weight: 600; }
.ct-cf-rule { width: 1.5px; height: 14px; background: rgba(253, 246, 233, .25); margin: 3px 0 3px 12px; }
.ct-cf-digital { margin: 18px 0 0; font-size: 12px; line-height: 1.7; color: rgba(253, 246, 233, .7); }
.ct-cf-cta { display: block; width: 100%; margin-top: 16px; text-decoration: none; box-sizing: border-box; }
.ct-cf-home {
  margin-top: 12px; font-size: 13px; font-weight: 600; color: #f2d998; text-decoration: none;
  padding: 10px 22px; border-radius: 100px; border: 1px solid rgba(242, 217, 152, .5);
  background: rgba(253, 246, 233, .08);
}

/* ── "ตัวอย่างจริง" showcase (intro step) — the delivered หนมผิง deck.
   Dark plum panel matches the post-payment atelier screens so the real
   dark-academia art reads rich against it. */
.ct-real {
  margin-top: 18px; border-radius: 20px; padding: 16px 16px 14px;
  background: linear-gradient(160deg, #241b3e 0%, #3a3160 55%, #4a3d78 100%);
  border: 1px solid rgba(242, 217, 152, .35);
  box-shadow: 0 18px 36px -18px rgba(30, 18, 55, .55);
  color: #fdf6e9;
}
.ct-real-kicker {
  margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: #f2d998;
}
.ct-real-title { margin: 5px 0 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.ct-real-sub { margin: 4px 0 0; font-size: 12px; line-height: 1.65; color: rgba(253, 246, 233, .78); }
.ct-real-cards { display: flex; gap: 10px; margin-top: 12px; }
.ct-real-card { margin: 0; flex: 1 1 0; min-width: 0; }
.ct-real-img {
  display: block; width: 100%; border-radius: 10px;
  border: 1px solid rgba(242, 217, 152, .5);
  box-shadow: 0 12px 24px -12px rgba(20, 12, 40, .8);
}
.ct-real-cap {
  margin: 6px 0 0; text-align: center; font-size: 10px; letter-spacing: .06em;
  color: rgba(253, 246, 233, .65);
}
.ct-real-note { margin: 10px 0 0; font-size: 11px; text-align: center; color: rgba(242, 217, 152, .85); }

/* ---------- multi-cat upload: CAT GROUPS (2026-08-01) ----------
   A deck holds 1–3 cats; each group = name + 1–3 photos + save toggle.
   Groups stack vertically in the 430px column. */
.ct-catgroup {
  margin-top: 16px; border-radius: 18px; padding: 14px 15px 15px;
  background: rgba(255, 255, 255, .66); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 28px -14px rgba(61, 26, 92, .22);
}
.ct-catgroup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ct-catgroup-kicker {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ct-kicker);
}
.ct-catgroup-remove {
  display: flex; align-items: center; gap: 4px; padding: 4px 2px; border: none;
  background: transparent; color: var(--ct-faint); cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 700;
}
.ct-catgroup .ct-slots { margin-top: 12px; }

/* Saved-profile group: photos already live server-side — filled tiles, no re-upload */
.ct-slot-saved {
  position: absolute; inset: 0; border-radius: 14px;
  border: 1.5px solid rgba(122, 158, 110, .5); background: rgba(122, 158, 110, .12);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--ct-green-ink);
}
.ct-slot-saved span { font-size: 9px; font-weight: 700; letter-spacing: .04em; }

/* "Another cat at home?" — appends the next group (hidden at 3) */
.ct-addcat {
  width: 100%; box-sizing: border-box; margin-top: 14px; padding: 13px 15px;
  border: 1.5px dashed rgba(61, 26, 92, .28); border-radius: 16px;
  background: rgba(255, 255, 255, .5); color: var(--ct-ink); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.45; text-align: left;
  display: flex; align-items: center; gap: 11px;
}
.ct-addcat-ico {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px;
  background: rgba(201, 147, 58, .14); color: var(--ct-gold-strong);
  display: flex; align-items: center; justify-content: center;
}

/* per-group "save this cat" checkbox row + one-line consent note */
.ct-save-row {
  width: 100%; box-sizing: border-box; margin-top: 12px; padding: 10px 11px;
  border-radius: 12px; border: 1px solid rgba(61, 26, 92, .12);
  background: rgba(255, 255, 255, .55); cursor: pointer;
  font-family: inherit; text-align: left; display: flex; gap: 10px; align-items: flex-start;
}
.ct-save-row.on {
  border-color: var(--ct-gold-strong);
  background: linear-gradient(160deg, rgba(232, 196, 120, .18), rgba(232, 69, 122, .08));
}
.ct-savebox {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  border: 1.5px solid rgba(61, 26, 92, .3); background: #fff; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ct-save-row.on .ct-savebox { background: var(--ct-gold-strong); border-color: var(--ct-gold-strong); }
.ct-save-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ct-ink); }
.ct-save-consent { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.45; color: var(--ct-sub); }

/* buyer's label for the saved profile — revealed by the toggle above it */
.ct-savename {
  margin-top: 8px; border-color: rgba(201, 147, 58, .34);
  background: rgba(255, 255, 255, .92);
  animation: ctRise .22s ease both;
}
.ct-savename-hint { display: block; margin-top: 4px; font-size: 10.5px; line-height: 1.45; color: var(--ct-sub); }

/* "Special options" — the non-cat escape hatch, folded away by default */
.ct-special {
  display: flex; align-items: center; gap: 5px;
  margin: 10px 0 0; padding: 4px 2px; border: none; background: transparent;
  font-family: inherit; font-size: 11.5px; font-weight: 600; color: var(--ct-faint);
  cursor: pointer;
}
.ct-special:hover { color: var(--ct-sub); }
.ct-special-caret { display: inline-flex; transition: transform .18s ease; }
.ct-special-caret.open { transform: rotate(90deg); }
.ct-noncat { margin-top: 6px; animation: ctRise .22s ease both; }
.ct-noncat.on {
  border-color: rgba(164, 135, 196, .75);
  background: linear-gradient(160deg, rgba(196, 168, 240, .22), rgba(232, 69, 122, .07));
}
.ct-noncat.on .ct-savebox { background: #7a5aa8; border-color: #7a5aa8; }

/* compact saved-cats picker at the top of the upload step */
.ct-saved {
  margin-top: 14px; border-radius: 16px; padding: 12px 13px;
  background: rgba(196, 168, 240, .14); border: 1px solid rgba(164, 135, 196, .3);
}
.ct-saved-title { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--ct-ink); }
.ct-saved-hint { margin: 3px 0 0; font-size: 11px; line-height: 1.45; color: var(--ct-sub); }
.ct-saved-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.ct-saved-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 8px 7px 13px;
  border-radius: 100px; border: 1px solid rgba(61, 26, 92, .16);
  background: rgba(255, 255, 255, .8); color: var(--ct-ink);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.ct-saved-chip.used { border-color: var(--ct-gold-strong); background: rgba(232, 196, 120, .2); }
.ct-saved-chip-check { display: flex; color: var(--ct-green-ink); }
.ct-saved-chip-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-saved-chip-x {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(61, 26, 92, .08); color: var(--ct-faint);
}

/* Early intro CTA (audit 2026-08-01): same pill as the footer CTA, placed
   right after the price anchor so mobile visitors can act above the fold. */
.ct-cta-top { margin: 16px 0 6px; }

/* ---------- true desktop (>=1024px, 2026-08-01) ----------
   Flow steps run as a 680px reading column on the page (the .ct-card blocks
   are the only surfaces); the intro becomes a real two-column landing
   (pitch left, art right) at the same 1120px width as the site navbar. */
@media (min-width: 1024px) {
  body.ct-body {
    background:
      radial-gradient(900px 480px at 82% -8%, rgba(232, 196, 120, .28) 0%, rgba(232, 196, 120, 0) 60%),
      radial-gradient(120% 90% at 50% 0%, #f7ece1 0%, #efe2d4 60%, #e6d8c8 100%);
  }
  .ct-shell { max-width: 648px; padding-bottom: 84px; }
  .ct-top { padding-top: 40px; }
  .ct-scroll { padding-top: 24px; }

  /* Intro: wide two-column landing */
  .ct-shell[data-step='intro'] { max-width: 1168px; }
  .ct-shell[data-step='intro'] .ct-scroll {
    display: grid; grid-template-columns: 1.04fr .96fr;
    column-gap: 64px; align-content: start;
    padding: 30px 0 6px;
  }
  .ct-shell[data-step='intro'] .ct-intro-kicker,
  .ct-shell[data-step='intro'] .ct-intro-title,
  .ct-shell[data-step='intro'] .ct-sub,
  .ct-shell[data-step='intro'] .ct-anchor,
  .ct-shell[data-step='intro'] .ct-cta-top,
  .ct-shell[data-step='intro'] .ct-trust { grid-column: 1; }
  /* Keep the left pitch stacked tight — the taller right column drives total
     height, and spreading the left blocks to fill it just breaks the read. */
  .ct-shell[data-step='intro'] .ct-anchor { align-self: start; margin-top: 22px; }
  .ct-shell[data-step='intro'] .ct-cta-top { align-self: start; max-width: 340px; }
  .ct-shell[data-step='intro'] .ct-trust { align-self: start; }
  .ct-shell[data-step='intro'] .ct-intro-title { font-size: 40px; line-height: 1.12; }
  .ct-shell[data-step='intro'] .ct-sub { max-width: 40em; }
  /* Right column must co-terminate with the left one (6 left rows), or the
     slack pools as dead space under the last left block. */
  .ct-shell[data-step='intro'] .ct-hero {
    grid-column: 2; grid-row: 1 / span 3; align-self: center; justify-self: center;
    margin: 8px 0 0; transform: scale(1.08); transform-origin: center top;
  }
  .ct-shell[data-step='intro'] .ct-real {
    grid-column: 2; grid-row: 4 / span 3; align-self: end; margin-top: 18px;
  }
  /* Landing chrome sits at the page edge, not centred over 1120px */
  .ct-shell[data-step='intro'] .ct-kicker { margin-left: 14px; }
  .ct-shell[data-step='intro'] .ct-top-row { justify-content: flex-start; }
  .ct-shell[data-step='intro'] .ct-top-slot { margin-left: auto; }
  .ct-shell[data-step='intro'] .ct-theme-strip-title { grid-column: 1 / -1; margin-top: 34px; font-size: 19px; }
  .ct-shell[data-step='intro'] .ct-theme-strip {
    grid-column: 1 / -1; grid-template-columns: repeat(6, 1fr); gap: 18px;
  }
  .ct-shell[data-step='intro'] .ct-strip-name { font-size: 14px; }
  .ct-shell[data-step='intro'] .ct-strip-th { font-size: 11.5px; }
  .ct-shell[data-step='intro'] .ct-foot { max-width: 360px; margin: 0 auto; width: 100%; }
}

/* ---------- site navbar on /create/ (Studio joins the app shell) ----------
   Markup injected by /js/bottom-nav.js (renderBottomNav — mobile floating pill
   ≤768px, fixed liquid-glass top navbar >768px). This standalone surface does
   not load styles.css / phase-3-redesign.css, so the nav rules those sheets
   carry are duplicated here scoped to body.ct-body (pill) / the mt-desktop-nav
   classes (top bar). Keep visually in sync with css/phase-3-redesign.css §
   liquid-glass pill and css/styles.css .mt-desktop-nav. */

@media (max-width: 768px) {
  body.ct-body .bottom-nav--phase5 {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 110;
    height: auto;
    padding: 10px 8px 12px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: center;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(26px) saturate(1.8);
    -webkit-backdrop-filter: blur(26px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 28px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.85),
      inset 0 0 0 1px rgba(255, 255, 255, 0.35),
      0 -2px 16px -6px rgba(61, 26, 92, 0.1),
      0 12px 28px -12px rgba(61, 26, 92, 0.22);
  }
  body.ct-body .bottom-nav--phase5 .bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--mt-plum-pale, #a487c4);
    font-family: var(--ct-sans);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none;
    padding: 6px 4px;
    border-radius: 14px;
    transition: color 160ms ease, transform 140ms ease;
    -webkit-tap-highlight-color: transparent;
  }
  body.ct-body .bottom-nav--phase5 .bottom-nav__item:active { transform: scale(0.96); }
  body.ct-body .bottom-nav--phase5 .bottom-nav__item.is-active {
    color: var(--mt-plum, #3d1a5c);
    font-weight: 600;
  }
  body.ct-body .bottom-nav--phase5 .bottom-nav__icon {
    height: 24px;
    width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 160ms ease;
  }
  body.ct-body .bottom-nav--phase5 .bottom-nav__item.is-active .bottom-nav__icon { opacity: 1; }
  body.ct-body .bottom-nav--phase5 .bottom-nav__icon svg {
    display: block;
    width: 22px;
    height: 22px;
  }
  body.ct-body .bottom-nav--phase5 .bottom-nav__label {
    font-size: 10.5px;
    letter-spacing: 0.02em;
  }
  /* The shell is a 100dvh flex column with its own footer CTA, so clearance for
     the floating pill goes INSIDE the shell, not on body: the footer lifts its
     CTA above the pill, and footless steps pad the scroll end instead. */
  body.ct-body.has-bottom-nav .ct-foot {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  body.ct-body.has-bottom-nav .ct-shell:not(:has(.ct-foot)) .ct-scroll {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

.mt-desktop-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 20px -12px rgba(61, 26, 92, 0.25);
}
.mt-desktop-nav__inner {
  max-width: 1120px; margin: 0 auto; height: 62px;
  padding: 0 110px 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.mt-desktop-nav__brand {
  font-family: var(--ct-serif);
  font-style: italic; font-weight: 600; font-size: 25px; line-height: 1;
  color: var(--mt-plum, #3d1a5c); text-decoration: none; white-space: nowrap;
}
.mt-desktop-nav__links { display: flex; align-items: center; gap: 6px; }
.mt-desktop-nav__item {
  font-family: var(--ct-sans);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--mt-plum-mid, #6b4a86); text-decoration: none;
  padding: 8px 16px; border-radius: 100px;
  transition: background 150ms ease, color 150ms ease;
}
.mt-desktop-nav__item:hover { background: rgba(123, 74, 134, 0.10); color: var(--mt-plum, #3d1a5c); }
.mt-desktop-nav__item.is-active { background: var(--mt-plum, #3d1a5c); color: #fff8ec; }
body.ct-body.has-top-nav { padding-top: 62px; }

/* ---------- proof gate (2026-08-01): the one card a buyer judges before the deck ---------- */
.ct-proof, .ct-proof-wait { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 0 6px; }
.ct-proof-wait { padding-top: 46px; }
.ct-proof-kicker {
  margin: 14px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ct-gold);
}
.ct-proof-title {
  margin: 9px 0 0; font-family: var(--ct-serif); font-weight: 600; font-size: 27px;
  line-height: 1.15; color: var(--ct-ink); letter-spacing: -.01em;
}
.ct-proof-sub { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--ct-sub); max-width: 34em; }
.ct-proof-note {
  margin: 20px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ct-muted);
  max-width: 30em; padding: 12px 15px; border-radius: 14px;
  background: rgba(255, 255, 255, .55); border: 1px dashed rgba(61, 26, 92, .18);
}
/* The wait is the product doing something, so show it moving rather than a dead page. */
.ct-proof-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid rgba(61, 26, 92, .14); border-top-color: var(--ct-gold-strong);
  animation: ctSpin 900ms linear infinite;
}
@keyframes ctSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ct-proof-spinner { animation-duration: 2.4s; }
}
.ct-proof-done {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--ct-green); color: #fdf6ee;
}
.ct-proof-art {
  width: min(280px, 78%); height: auto; margin: 20px 0 0; border-radius: 14px;
  border: .5px solid var(--ct-gold-soft);
  box-shadow: 0 26px 44px -20px rgba(61, 26, 92, .6);
}
.ct-proof-defect {
  margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: var(--ct-sub); max-width: 32em;
  padding: 11px 14px; border-radius: 13px;
  background: rgba(122, 158, 110, .12); border: 1px solid rgba(122, 158, 110, .3);
}
.ct-proof-field { width: 100%; margin-top: 16px; text-align: left; }
.ct-proof-textarea { resize: vertical; min-height: 76px; line-height: 1.5; font-family: var(--ct-sans); }
.ct-proof-hint { display: block; margin-top: 5px; font-size: 10.5px; line-height: 1.45; color: var(--ct-faint); }
.ct-proof-cta { margin-top: 18px; max-width: 340px; }
.ct-proof-home { margin-top: 22px; max-width: 300px; text-align: center; text-decoration: none; }
.ct-proof-rounds { margin: 10px 0 0; font-size: 11.5px; color: var(--ct-faint); }
.ct-proof-error { margin: 12px 0 0; font-size: 12.5px; color: #b03050; }
.ct-proof-choice { display: flex; flex-direction: column; align-items: center; margin-top: 26px; width: 100%; }
.ct-proof-choice-q { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--ct-sub); }
.ct-proof-skip { margin-top: 2px; text-decoration: underline; text-underline-offset: 3px; }
.ct-proof-skipwarn {
  margin: 0; max-width: 30em; font-size: 12.5px; line-height: 1.6; color: var(--ct-ink);
  padding: 12px 15px; border-radius: 14px;
  background: rgba(201, 147, 58, .14); border: 1px solid rgba(201, 147, 58, .34);
}
