:root {
  --sp-navy: #0f2533; --sp-navy2: #173a4d; --sp-teal: #2fb4c6; --sp-teal-d: #1f97a8; --sp-mint: #e8f7f9;
  --sp-ink: #13232e; --sp-muted: #5c6f7b; --sp-line: #dfe7ec;
  --font-ui: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font-ui); color: var(--sp-ink); background: #f4f8fa; font-size: 17px; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }

/* ===================== Demo shell (Solvpath-branded screens) ===================== */
.shell { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1200px 600px at 85% -10%, #d9f3f7 0%, rgba(217,243,247,0) 60%), radial-gradient(900px 500px at -10% 110%, #e3eefc 0%, rgba(227,238,252,0) 60%), #f6fafb; }
.shell-top { display: flex; align-items: center; justify-content: space-between; padding: 26px 56px; }
.sp-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; letter-spacing: -0.5px; color: var(--sp-navy); }
.sp-logo .sp-logo-img { height: 28px; width: auto; display: block; }
.sp-logo .mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--sp-teal), #1c6f9c); display: grid; place-items: center; color: #fff; font-size: 20px; }
.sp-logo small { font-weight: 600; font-size: 12.5px; color: var(--sp-muted); letter-spacing: 0; margin-left: 4px; padding: 4px 10px; border: 1px solid var(--sp-line); border-radius: 999px; background: #fff; white-space: nowrap; }
.shell-main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 10px 56px 56px; }
.stepper { display: flex; gap: 10px; align-items: center; }
.stepper .dot { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #8aa0ad; }
.stepper .dot i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: #e4edf1; color: #6b8290; font-size: 13px; }
.stepper .dot.on { color: var(--sp-navy); } .stepper .dot.on i { background: var(--sp-teal); color: #fff; }
.stepper .dot.done i { background: var(--sp-navy); color: #fff; }
.stepper .bar { width: 28px; height: 2px; background: #d5e1e7; }
.ghost-btn { background: #fff; border: 1px solid var(--sp-line); color: var(--sp-navy); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; }
.ghost-btn:hover { border-color: var(--sp-teal); }

.hero-title { font-size: 64px; line-height: 1.04; letter-spacing: -2px; font-weight: 800; margin: 40px 0 18px; text-align: center; color: var(--sp-navy); max-width: 1000px; }
.hero-title em { font-style: normal; background: linear-gradient(90deg, var(--sp-teal), #2c6fd6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 23px; color: var(--sp-muted); text-align: center; max-width: 820px; margin: 0 0 40px; line-height: 1.45; }
.url-card { width: 100%; max-width: 920px; background: #fff; border-radius: 28px; padding: 14px; box-shadow: 0 20px 60px rgba(15,37,51,.12), 0 2px 6px rgba(15,37,51,.06); display: flex; gap: 12px; align-items: center; border: 2px solid transparent; transition: border-color .2s; }
.url-card:focus-within { border-color: var(--sp-teal); }
.url-card .globe { width: 64px; height: 64px; display: grid; place-items: center; color: var(--sp-teal); flex: none; }
.url-card input { flex: 1; border: none; outline: none; font-size: 28px; padding: 18px 4px; color: var(--sp-navy); background: transparent; min-width: 0; }
.url-card input::placeholder { color: #a9bac4; }
.big-btn { background: var(--sp-navy); color: #fff; border: none; border-radius: 20px; padding: 0 34px; height: 76px; font-size: 22px; font-weight: 700; display: inline-flex; align-items: center; gap: 12px; transition: transform .1s, background .2s; white-space: nowrap; }
.big-btn:hover { background: var(--sp-navy2); } .big-btn:active { transform: scale(.98); }
.big-btn.teal { background: var(--sp-teal); } .big-btn.teal:hover { background: var(--sp-teal-d); }
.big-btn[disabled] { opacity: .45; cursor: not-allowed; }
.url-error { color: #c43d3d; font-weight: 600; margin-top: 14px; min-height: 24px; font-size: 17px; }
.chips { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; justify-content: center; color: var(--sp-muted); font-size: 16px; }
.chip { background: #fff; border: 1px solid var(--sp-line); border-radius: 999px; padding: 10px 18px; font-size: 16px; font-weight: 600; color: var(--sp-navy); }
.chip:hover { border-color: var(--sp-teal); color: var(--sp-teal-d); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; width: 100%; max-width: 1100px; margin-top: 64px; }
.how-card { background: rgba(255,255,255,.75); border: 1px solid var(--sp-line); border-radius: 24px; padding: 28px; display: flex; gap: 18px; align-items: flex-start; }
.how-card .n { width: 52px; height: 52px; border-radius: 16px; background: var(--sp-mint); color: var(--sp-teal-d); display: grid; place-items: center; flex: none; }
.how-card h4 { margin: 2px 0 6px; font-size: 21px; color: var(--sp-navy); }
.how-card p { margin: 0; color: var(--sp-muted); font-size: 16.5px; line-height: 1.45; }

/* processing */
.proc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; width: 100%; max-width: 1240px; margin-top: 30px; align-items: start; }
.proc h1 { font-size: 46px; letter-spacing: -1.2px; margin: 0 0 10px; color: var(--sp-navy); line-height: 1.1; }
.proc .lead { font-size: 20px; color: var(--sp-muted); margin: 0 0 30px; }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--sp-line); border-radius: 20px; padding: 20px 24px; font-size: 21px; font-weight: 600; color: #8ea2ae; transition: all .3s; }
.step .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #eef3f6; flex: none; }
.step.active { color: var(--sp-navy); border-color: var(--sp-teal); box-shadow: 0 8px 24px rgba(47,180,198,.18); }
.step.done { color: var(--sp-navy); } .step.done .ic { background: var(--sp-teal); color: #fff; }
.step.error .ic { background: #f6e3c8; color: #a8620e; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #cfe8ec; border-top-color: var(--sp-teal); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pbar { height: 10px; background: #e2ecf0; border-radius: 99px; overflow: hidden; margin: 26px 0 0; }
.pbar > div { height: 100%; background: linear-gradient(90deg, var(--sp-teal), #2c6fd6); border-radius: 99px; transition: width .5s; }
.found { background: #fff; border-radius: 28px; padding: 32px; border: 1px solid var(--sp-line); box-shadow: 0 20px 50px rgba(15,37,51,.08); min-height: 560px; }
.found h3 { margin: 0 0 22px; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sp-muted); }
.found-row { padding: 18px 0; border-top: 1px solid #edf2f5; display: flex; gap: 20px; align-items: center; min-height: 92px; }
.found-row:first-of-type { border-top: none; }
.found-row .lab { width: 120px; font-weight: 700; color: var(--sp-muted); font-size: 16px; flex: none; }
.found-row .val { flex: 1; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 19px; font-weight: 600; }
.found-row .wait { color: #b4c3cc; font-weight: 500; font-size: 16px; }
.swatch { width: 54px; height: 54px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); animation: pop .35s ease; }
.found-logo { max-height: 60px; max-width: 260px; animation: pop .35s ease; }
.pthumb { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: #f1f4f6; border: 1px solid #edf2f5; animation: pop .35s ease; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* theme picker */
.page-title { font-size: 48px; letter-spacing: -1.4px; font-weight: 800; margin: 24px 0 10px; color: var(--sp-navy); text-align: center; }
.page-sub { font-size: 21px; color: var(--sp-muted); margin: 0 0 30px; text-align: center; }
.found-summary { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.found-summary span { background: #fff; border: 1px solid var(--sp-line); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; color: var(--sp-navy); display: inline-flex; gap: 8px; align-items: center; }
.found-summary span b { color: var(--sp-teal-d); }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; width: 100%; max-width: 1300px; }
.theme-card { background: #fff; border-radius: 26px; border: 3px solid transparent; padding: 16px 16px 22px; box-shadow: 0 10px 34px rgba(15,37,51,.09); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; text-align: left; }
.theme-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(15,37,51,.14); }
.theme-card.sel { border-color: var(--sp-teal); box-shadow: 0 18px 44px rgba(47,180,198,.28); }
.theme-card .tc-head { display: flex; justify-content: space-between; align-items: center; margin: 18px 6px 4px; }
.theme-card h3 { margin: 0; font-size: 25px; color: var(--sp-navy); }
.theme-card p { margin: 4px 6px 0; color: var(--sp-muted); font-size: 16px; }
.theme-card .sw { display: flex; gap: 6px; }
.theme-card .sw i { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.theme-card .check { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #d3dee4; display: grid; place-items: center; color: transparent; }
.theme-card.sel .check { background: var(--sp-teal); border-color: var(--sp-teal); color: #fff; }
.mini-wrap { height: 320px; border-radius: 16px; overflow: hidden; position: relative; border: 1px solid #e6edf1; }
.mini-wrap > .portal { position: absolute; top: 0; left: 0; width: 1000px; transform: scale(.395); transform-origin: top left; pointer-events: none; min-height: 900px; }
.bottom-bar { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1300px; margin-top: 34px; }

/* setup questions */
.q-wrap { width: 100%; max-width: 1060px; display: flex; flex-direction: column; align-items: center; }
.q-count { font-weight: 700; color: var(--sp-teal-d); letter-spacing: 1.5px; text-transform: uppercase; font-size: 15px; margin-top: 30px; }
.q-title { font-size: 54px; letter-spacing: -1.6px; font-weight: 800; color: var(--sp-navy); margin: 14px 0 12px; text-align: center; line-height: 1.08; }
.q-help { font-size: 21px; color: var(--sp-muted); margin: 0 0 40px; text-align: center; max-width: 760px; }
.q-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; width: 100%; }
.q-opts.three { grid-template-columns: repeat(3, 1fr); }
.q-opt { background: #fff; border: 3px solid #e1e9ee; border-radius: 28px; padding: 36px 30px; text-align: left; display: flex; flex-direction: column; gap: 14px; min-height: 250px; transition: all .15s; box-shadow: 0 8px 24px rgba(15,37,51,.06); position: relative; }
.q-opt:hover { border-color: #a9dfe7; transform: translateY(-2px); }
.q-opt.sel { border-color: var(--sp-teal); background: linear-gradient(180deg, #f2fbfc, #fff); box-shadow: 0 16px 40px rgba(47,180,198,.22); }
.q-opt .qi { width: 70px; height: 70px; border-radius: 20px; background: var(--sp-mint); color: var(--sp-teal-d); display: grid; place-items: center; }
.q-opt.no .qi { background: #f1f3f5; color: #6c7c86; }
.q-opt h3 { margin: 6px 0 0; font-size: 36px; color: var(--sp-navy); letter-spacing: -.8px; }
.q-opt p { margin: 0; color: var(--sp-muted); font-size: 18px; line-height: 1.45; }
.q-opt .tick { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #d3dee4; display: grid; place-items: center; color: transparent; }
.q-opt.sel .tick { background: var(--sp-teal); border-color: var(--sp-teal); color: #fff; }
.q-progress { display: flex; gap: 8px; margin-top: 14px; }
.q-progress i { width: 46px; height: 7px; border-radius: 9px; background: #dbe6eb; }
.q-progress i.on { background: var(--sp-teal); }

/* moment picker */
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; width: 100%; max-width: 1260px; }
.moment { background: #fff; border: 3px solid #e3ebef; border-radius: 26px; padding: 28px; text-align: left; display: flex; flex-direction: column; gap: 12px; min-height: 250px; transition: all .15s; position: relative; box-shadow: 0 8px 24px rgba(15,37,51,.05); }
.moment:hover { border-color: var(--mc, var(--sp-teal)); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,37,51,.12); }
.moment .mi { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--mbg); color: var(--mc); }
.moment h3 { margin: 4px 0 0; font-size: 27px; color: var(--sp-navy); letter-spacing: -.5px; }
.moment p { margin: 0; color: var(--sp-muted); font-size: 17px; line-height: 1.45; flex: 1; }
.moment .goal { align-self: flex-start; font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--mbg); color: var(--mc); letter-spacing: .3px; }
.moment.disabled { opacity: .45; cursor: not-allowed; }
.moment.disabled:hover { transform: none; border-color: #e3ebef; box-shadow: none; }
.moment .lock { position: absolute; top: 20px; right: 22px; font-size: 13px; font-weight: 700; color: #7b8c96; background: #f1f4f6; padding: 5px 10px; border-radius: 999px; }

/* ===================== Demo toolbar over the portal ===================== */
.demo-bar { position: sticky; top: 0; z-index: 50; background: var(--sp-navy); color: #fff; display: flex; align-items: center; gap: 12px; padding: 10px 18px; font-size: 15px; box-shadow: 0 4px 16px rgba(0,0,0,.18); flex-wrap: wrap; max-width: 100vw; overflow-x: hidden; }
.demo-bar .sp-logo { color: #fff; font-size: 19px; }
.demo-bar .sp-logo .sp-logo-img { height: 22px; filter: brightness(0) invert(1); }
.demo-bar .sp-logo small { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #cfe4ea; font-size: 11.5px; padding: 3px 8px; }
.demo-bar .sp-logo .mark { width: 30px; height: 30px; font-size: 16px; border-radius: 8px; }
.demo-bar .tag { color: #9fc3cf; font-weight: 600; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar > * { flex-shrink: 0; } .demo-bar .tag, .demo-bar .setup-pills { flex-shrink: 1; min-width: 0; }
.demo-bar .db-btn, .demo-bar select { white-space: nowrap; }
.demo-bar .sep { flex: 1; }
.demo-bar .ctl { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 8px 6px 16px; }
.demo-bar .ctl label { color: #9fc3cf; font-weight: 600; font-size: 14px; }
.demo-bar select { background: #fff; color: var(--sp-navy); border: none; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 15px; cursor: pointer; }
.demo-bar .tsw { display: flex; gap: 6px; }
.demo-bar .tsw button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); padding: 0; }
.demo-bar .tsw button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--sp-teal); }
.demo-bar .db-btn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 8px; align-items: center; }
.demo-bar .db-btn:hover { background: rgba(255,255,255,.1); }
.demo-bar .db-btn.solid { background: var(--sp-teal); border-color: var(--sp-teal); }
.setup-pills { display: flex; gap: 6px; }
.setup-pills span { white-space: nowrap; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.1); color: #cfe4ea; }
.setup-pills span.off { color: #7f9aa5; text-decoration: line-through; }

/* ===================== Branded portal ===================== */
.portal { --primary: #2a9d6f; font-family: var(--font-body, var(--font-ui)); background: var(--pageBg, var(--bg)); color: var(--text); min-height: calc(100vh - 56px); font-size: 17px; }
.portal h1, .portal h2, .portal h3, .portal h4, .portal .hfont { font-family: var(--font-heading, var(--font-body, var(--font-ui))); }
.p-header { background: var(--headerBg); border-bottom: 1px solid var(--border); height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; gap: 16px; }
.p-header.dark { background: var(--annBg); }
.p-header img.logo { height: 52px; width: auto; max-width: 300px; object-fit: contain; }
.p-header .wordmark { font-size: 34px; font-weight: 800; letter-spacing: -.5px; color: var(--primaryInk); }
.p-ann { background: var(--annBg); color: var(--onAnn); text-align: center; font-weight: 600; font-size: 13.5px; padding: 7px 20px; letter-spacing: .3px; }
.p-body { max-width: 1280px; margin: 0 auto; padding: 32px 36px 40px; display: grid; grid-template-columns: 256px 1fr; gap: 30px; align-items: start; }
.p-side h2 { font-size: 25px; margin: 4px 0 18px; color: var(--text); letter-spacing: -.3px; }
.nav-block { width: 100%; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; color: var(--text); font-size: 16px; font-weight: 600; text-align: left; transition: all .15s; }
.nav-block:hover { border-color: var(--solid, var(--primary)); }
.nav-block.on { background: var(--navActiveBg); border-color: var(--solid, var(--primary)); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.nav-block .nb-l { flex: 1; white-space: nowrap; } .nav-block svg { flex: none; }
.nav-block.dim { opacity: .5; }
.nav-block .off-tag { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #eef0f2; color: #6e7b84; }
.p-main { min-width: 0; }
.p-main > h2.ptitle { font-size: 30px; margin: 4px 0 22px; letter-spacing: -.4px; display: flex; align-items: center; gap: 12px; }
.back { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--text); }
.card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 24px 26px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.035); }
.card.hl { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primaryTint), 0 8px 28px rgba(0,0,0,.06); }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 16px; }
.between { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--primarySoft); color: var(--primaryInk); white-space: nowrap; }
.badge.green { background: #e3f5ea; color: #1e7a45; } .badge.yellow { background: #fdf0c8; color: #8a6200; } .badge.red { background: #fde4e1; color: #b3261e; }
.badge.gray { background: #eef0f2; color: #5d6970; } .badge.blue { background: #e2edfc; color: #1f5bb5; } .badge.accent { background: var(--accentSoft); color: var(--accentInk); }
.btn { border-radius: 999px; font-weight: 700; font-size: 16.5px; padding: 0 22px; height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--primary); transition: filter .15s, transform .1s, background .15s; white-space: nowrap; font-family: inherit; }
.btn { border-color: var(--solid, var(--primary)); }
.btn.solid { background: var(--solid, var(--primary)); color: var(--onSolid, var(--onPrimary)); }
.btn.solid:hover { filter: brightness(.93); }
.btn.outline { background: var(--surface); color: var(--solid, var(--primaryInk)); border-color: var(--solid, var(--primary)); }
.btn.outline:hover { background: var(--primaryTint); }
.btn.danger { background: var(--surface); color: #b3261e; border-color: #e8b9b4; }
.btn.danger:hover { background: #fdf1ef; }
.btn.accent { background: var(--accent); color: var(--onAccent); border-color: var(--accent); }
.btn.link { border: none; background: none; color: var(--primaryInk); height: auto; padding: 6px 4px; text-decoration: underline; font-weight: 600; }
.btn.block { width: 100%; }
.btn.lg { height: 56px; font-size: 18px; padding: 0 30px; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn .caret { margin-left: 2px; }
.ctrl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 20px; }
.ctrl-grid.four { grid-template-columns: repeat(4, 1fr); } .ctrl-grid.three { grid-template-columns: repeat(3, 1fr); } .ctrl-grid.two { grid-template-columns: repeat(2, 1fr); }
.ctrl-grid .wide2 { grid-column: span 2; } .ctrl-grid .wide3 { grid-column: span 3; }
.ctrl-grid .btn { width: 100%; }
.pimg { width: 108px; height: 108px; border-radius: 12px; object-fit: cover; background: #f2f3f5; border: 1px solid var(--border); flex: none; }
.pimg.sm { width: 76px; height: 76px; }
.pimg-ph { display: grid; place-items: center; color: var(--primaryInk); background: var(--primaryTint); font-weight: 800; font-size: 30px; }
.item { display: flex; gap: 20px; align-items: center; }
.item h4 { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.item .meta { color: var(--muted); font-size: 16px; }
.total-row { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px solid var(--border); margin-top: 20px; padding-top: 16px; }
.total-row b { font-size: 20px; }
.details-x { margin-top: 14px; background: var(--primaryTint); border-radius: 12px; padding: 14px 18px; font-size: 16px; }
.details-x div { display: flex; justify-content: space-between; padding: 4px 0; }
.list-card .lc-top { display: flex; justify-content: space-between; gap: 20px; }
.list-card .lc-btns { display: flex; flex-direction: column; gap: 10px; width: 210px; flex: none; }
.tabs { display: flex; gap: 26px; border-bottom: 1.5px solid var(--border); margin-bottom: 22px; }
.tabs button { background: none; border: none; font-size: 18px; font-weight: 600; color: var(--muted); padding: 10px 2px; border-bottom: 3px solid transparent; margin-bottom: -1.5px; font-family: inherit; }
.tabs button.on { color: var(--primaryInk); border-bottom-color: var(--primary); }
.divider { border-top: 1.5px solid var(--border); margin: 20px 0; }
.note { display: flex; gap: 10px; align-items: center; background: var(--primaryTint); color: var(--text); border-radius: 12px; padding: 12px 16px; font-size: 15.5px; margin-top: 16px; }
.note.warn { background: #fff6e0; color: #6e5200; }

/* moment card */
.mcard { border-radius: 18px; padding: 26px 28px; margin-bottom: 24px; position: relative; overflow: hidden; border: 1.5px solid var(--border); background: var(--surface); }
.mcard .mtag { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--primaryInk); }
.mcard h3 { font-size: 28px; margin: 10px 0 6px; letter-spacing: -.4px; }
.mcard p { margin: 0; color: var(--muted); font-size: 17.5px; }
.mcard .mbtns { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.mcard .mimg { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); width: 150px; height: 150px; border-radius: 16px; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.mcard.has-img .mc-text { padding-right: 190px; }
.mcard.alert { background: linear-gradient(135deg, #fff5f3, #fff); border-color: #f1c1bb; }
.mcard.alert .mtag { color: #b3261e; }
.mcard.win { background: linear-gradient(135deg, var(--primaryTint), var(--surface)); border-color: var(--primary); }
.mcard.win .big-off { font-size: 54px; font-weight: 800; color: var(--primaryInk); letter-spacing: -2px; line-height: 1; }
.tracker { display: flex; align-items: center; margin-top: 20px; max-width: 640px; }
.tracker .ts { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); width: 90px; text-align: center; }
.tracker .ts i { width: 26px; height: 26px; border-radius: 50%; background: #e5e9ec; display: grid; place-items: center; color: #fff; }
.tracker .ts.on { color: var(--text); } .tracker .ts.on i { background: var(--primary); color: var(--onPrimary); }
.tracker .tl { flex: 1; height: 4px; background: #e5e9ec; border-radius: 4px; margin-bottom: 22px; }
.tracker .tl.on { background: var(--primary); }

/* home sections */
.banner { border-radius: 16px; overflow: hidden; background: var(--bannerBg); color: var(--onBanner); display: grid; grid-template-columns: 1.05fr 1fr; min-height: 330px; position: relative; margin-bottom: 24px; border: 3px solid var(--primarySoft); }
.banner .bl { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.banner .eyebrow { font-size: 13.5px; letter-spacing: 1.6px; text-transform: uppercase; opacity: .85; font-weight: 600; }
.banner h2 { font-size: 44px; line-height: 1.05; margin: 14px 0 12px; letter-spacing: -1px; font-weight: 700; }
.banner p { margin: 0 0 24px; opacity: .9; font-size: 18px; }
.banner .cta { align-self: flex-start; background: var(--onBanner); color: var(--bannerBg); border: none; border-radius: 10px; height: 50px; padding: 0 26px; font-weight: 700; font-size: 17px; font-family: inherit; }
.banner .br { position: relative; }
.banner .br .arc { position: absolute; inset: -40px -40px -40px 0; border-radius: 50% 0 0 50% / 60% 0 0 60%; background: var(--accent); transform: translateX(-14px); }
.banner .br img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 48% 0 0 48% / 70% 0 0 70%; }
.ti { display: grid; grid-template-columns: 1fr 1.15fr; gap: 30px; align-items: center; }
.ti img { width: 100%; height: 280px; object-fit: cover; border-radius: 12px; background: var(--primaryTint); }
.ti h3 { color: var(--primaryInk); font-size: 30px; margin: 0 0 12px; }
.ti p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }
.faq-item { border-top: 1.5px solid var(--border); }
.faq-item:first-of-type { border-top: none; }
.faq-q { width: 100%; background: none; border: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 18px; font-weight: 600; color: var(--text); text-align: left; font-family: inherit; }
.faq-a { padding: 0 0 18px; color: var(--muted); line-height: 1.55; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.col-card { border: 1.5px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.col-card img, .col-card .pimg { width: 100%; height: 190px; border-radius: 10px; object-fit: cover; }
.col-card h4 { margin: 0; font-size: 17.5px; font-weight: 600; min-height: 46px; }
.section-h { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 16px; }
.section-h h3 { margin: 0; font-size: 24px; }

/* ===================== Modal / popover / toast ===================== */
.overlay { position: fixed; inset: 0; background: rgba(10,22,30,.5); z-index: 100; display: grid; place-items: center; animation: fade .15s; padding: 30px; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface, #fff); color: var(--text, #13232e); border-radius: 24px; width: 640px; max-width: 100%; max-height: calc(100vh - 60px); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: up .2s ease; font-family: var(--font-body, var(--font-ui)); }
.modal.wide { width: 880px; }
@keyframes up { from { transform: translateY(16px); opacity: 0; } }
.modal .mh { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px 6px; }
.modal .mh h3 { margin: 0; font-size: 26px; font-family: var(--font-heading, inherit); letter-spacing: -.3px; }
.modal .x { width: 40px; height: 40px; border-radius: 50%; border: none; background: #f0f3f5; font-size: 22px; color: #44545e; display: grid; place-items: center; }
.modal .mb { padding: 12px 28px 8px; font-size: 17px; line-height: 1.5; }
.modal .mf { display: flex; gap: 12px; justify-content: flex-end; padding: 18px 28px 26px; flex-wrap: wrap; }
.modal .mf .btn { min-width: 150px; }
.success { text-align: center; padding: 18px 10px 4px; }
.success .big-check { width: 92px; height: 92px; border-radius: 50%; background: var(--primary); color: var(--onPrimary); display: grid; place-items: center; margin: 0 auto 18px; animation: pop .35s ease; }
.success h3 { font-size: 28px; margin: 0 0 10px; font-family: var(--font-heading, inherit); }
.success p { margin: 0 auto; color: var(--muted); max-width: 470px; }
.kv { background: var(--primaryTint, #f2f6f8); border-radius: 14px; padding: 14px 18px; margin: 18px auto 0; text-align: left; max-width: 480px; font-size: 16px; }
.kv div { display: flex; justify-content: space-between; padding: 5px 0; gap: 20px; }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.pick { border: 2.5px solid var(--border, #e3e8eb); border-radius: 16px; padding: 12px; background: var(--surface, #fff); text-align: left; font-family: inherit; color: inherit; display: flex; flex-direction: column; gap: 8px; }
.pick img, .pick .pimg { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }
.pick b { font-size: 15.5px; line-height: 1.3; font-weight: 600; }
.pick.sel { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primaryTint); }
.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt { border: 2px solid var(--border, #e3e8eb); border-radius: 14px; padding: 16px 18px; background: var(--surface, #fff); text-align: left; font-size: 17px; font-weight: 600; color: inherit; font-family: inherit; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.opt small { display: block; font-weight: 500; color: var(--muted); font-size: 15px; margin-top: 3px; }
.opt.sel { border-color: var(--primary); background: var(--primaryTint); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 15px; color: var(--muted); }
.field input, .field select { height: 52px; border: 2px solid var(--border, #e3e8eb); border-radius: 12px; padding: 0 16px; font-size: 18px; color: inherit; background: #fff; }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 40px; border: none; background: var(--surface); font-size: 20px; color: var(--primaryInk); }
.qty span { width: 36px; text-align: center; font-weight: 700; }
.run-steps { display: flex; flex-direction: column; gap: 12px; margin: 10px 0; }
.run-step { display: flex; gap: 14px; align-items: center; font-size: 18px; font-weight: 600; color: #9aa7af; }
.run-step .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #eef1f3; flex: none; }
.run-step.done { color: var(--text); } .run-step.done .ic { background: var(--primary); color: var(--onPrimary); }
.gift { display: flex; gap: 22px; align-items: center; background: var(--primaryTint); border-radius: 18px; padding: 18px; margin-top: 8px; }
.gift img, .gift .pimg { width: 130px; height: 130px; border-radius: 14px; object-fit: cover; }
.gift .free { display: inline-block; background: var(--accent); color: var(--onAccent); font-weight: 800; font-size: 13px; letter-spacing: 1px; padding: 5px 10px; border-radius: 999px; }
.pop { position: fixed; z-index: 120; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.2); padding: 8px; min-width: 280px; animation: up .12s ease; font-family: var(--font-body, var(--font-ui)); border: 1px solid #e6ebee; }
.pop button { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; text-align: left; background: none; border: none; padding: 13px 16px; border-radius: 10px; font-size: 17px; font-weight: 600; color: var(--text, #13232e); font-family: inherit; }
.pop button small { color: var(--muted, #6b7b85); font-weight: 500; font-size: 14.5px; }
.pop button:hover { background: var(--primaryTint, #f2f6f8); }
.pop button.cur { color: var(--primaryInk); }
.pop button > span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.pop button small { white-space: nowrap; }
.pop button.danger { color: #b3261e; border-top: 1px solid #eef0f2; border-radius: 0 0 10px 10px; margin-top: 4px; }
.pop button.danger:hover { background: #fdf1ef; }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--sp-navy); color: #fff; padding: 16px 26px; border-radius: 999px; font-weight: 600; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: up .2s; font-size: 16.5px; }
.empty { text-align: center; padding: 50px 30px; }
.empty h3 { font-size: 26px; margin: 14px 0 8px; }
.empty p { color: var(--muted); margin: 0 auto 22px; max-width: 460px; }
.coach { display: inline-flex; align-items: center; gap: 8px; background: var(--sp-navy); color: #fff; font-family: var(--font-ui); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(15,37,51,.2); }
.coach b { color: #7fe0ec; }

/* ===================== Home v2 (SØREN-style brand home) ===================== */
.p-main > * + * { margin-top: 0; }
.p-main .card { border-radius: 14px; border: 1px solid color-mix(in srgb, var(--border) 80%, #000 4%); box-shadow: 0 2px 10px rgba(30,20,10,.05); padding: 20px 22px; margin-bottom: 18px; }
.p-main .muted { font-size: 15px; }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--solid); color: var(--onSolid); border: none; border-radius: 999px; height: 40px; padding: 0 20px; font-weight: 700; font-size: 14.5px; letter-spacing: .3px; font-family: inherit; transition: filter .15s, transform .1s; white-space: nowrap; }
.pill-btn:hover { filter: brightness(1.15); } .pill-btn:active { transform: scale(.97); }
.pill-btn.sm { height: 34px; padding: 0 16px; font-size: 13.5px; }
.pill-btn.lg { height: 50px; padding: 0 28px; font-size: 16px; letter-spacing: 1.2px; text-transform: uppercase; }
.pill-btn.block { width: 100%; }
.pill-btn.done { background: #1e7a45; color: #fff; }
.link-btn { background: none; border: none; color: var(--muted); font-weight: 600; font-size: 14px; font-family: inherit; padding: 4px 6px; }
.link-btn:hover { color: var(--text); text-decoration: underline; }
.section-h p { margin: 4px 0 0; }

/* hero banner */
.hero-b { position: relative; border-radius: 16px; overflow: hidden; background: var(--cream); min-height: 420px; margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--border) 80%, #000 4%); box-shadow: 0 4px 18px rgba(30,20,10,.07); display: flex; align-items: center; }
.hero-b .hb-img { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; }
.hero-b .hb-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-b .hb-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream) 0%, color-mix(in srgb, var(--cream) 80%, transparent) 20%, transparent 58%); }
.hero-b.contain .hb-img { width: auto; aspect-ratio: auto; }
.hero-b.contain .hb-img img { width: auto; height: 100%; max-width: none; }
.hero-b.contain .hb-img::after { background: linear-gradient(90deg, var(--cream) 0%, color-mix(in srgb, var(--cream) 40%, transparent) 18%, transparent 40%); }
.hero-b .hb-text { position: relative; z-index: 2; width: 50%; padding: 36px 0 36px 40px; color: var(--stripInk); }
.hero-b.no-img .hb-text { width: 100%; padding-right: 40px; }
.hb-logo { max-height: 42px; max-width: 200px; object-fit: contain; display: block; }
.hb-word { font-family: var(--font-heading); font-size: 30px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; display: block; }
.hb-rule { display: block; width: 56px; height: 2px; background: var(--star); margin: 16px 0 18px; opacity: .8; }
.hero-b h2 { font-size: 40px; line-height: 1.04; font-weight: 800; text-transform: uppercase; letter-spacing: -.5px; margin: 0 0 12px; color: var(--stripInk); }
.hero-b p { margin: 0 0 22px; font-size: 16.5px; line-height: 1.45; color: color-mix(in srgb, var(--stripInk) 80%, transparent); max-width: 400px; }
.hb-feats { display: flex; margin: 0 0 24px; }
.hb-f { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 14px; border-left: 1px solid color-mix(in srgb, var(--stripInk) 22%, transparent); text-align: center; max-width: 104px; }
.hb-f:first-child { border-left: none; padding-left: 0; }
.hb-f span { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; line-height: 1.2; }

/* related products */
.rel-card .section-h { align-items: flex-start; margin: 0 0 14px; }
.rel-card .section-h h3 { font-size: 21px; }
.rel-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--strip); color: var(--stripInk); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel-tile { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); transition: box-shadow .15s, border-color .15s; }
.rel-tile:hover { box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.rel-tile.added { border-color: #1e7a45; box-shadow: 0 0 0 3px #e3f5ea; }
.rel-img { position: relative; }
.rel-img .pimg { width: 100%; height: 170px; border-radius: 9px; object-position: center 22%; }
.rel-img .off { position: absolute; top: 8px; left: 8px; background: var(--solid); color: var(--onSolid); font-size: 11.5px; font-weight: 800; letter-spacing: .5px; padding: 4px 9px; border-radius: 999px; }
.rel-tile h4 { margin: 2px 0 0; font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.rel-price { display: flex; gap: 8px; align-items: baseline; }
.rel-price s { color: var(--muted); font-size: 14px; } .rel-price b { font-size: 17px; color: #b3261e; }

/* moment card v2 */
.mcard.v2 { padding: 0; border-radius: 14px; border: 2px solid color-mix(in srgb, var(--solid) 22%, var(--border)); background: var(--surface); box-shadow: 0 4px 18px rgba(30,20,10,.07); margin-bottom: 18px; overflow: hidden; }
.mcard.v2 .mc-head { background: var(--strip); color: var(--stripInk); font-weight: 700; font-size: 15px; padding: 12px 20px; }
.mcard.v2.alert .mc-head { background: #fde4e1; color: #8c1d16; }
.mcard.v2.alert { border-color: #f1c1bb; }
.mcard.v2.win .mc-head { background: var(--solid); color: var(--onSolid); }
.mcard.v2 .mc-body { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 20px; align-items: stretch; }
.mcard.v2 .mc-tile .mc-pimg { width: 150px; height: 100%; min-height: 150px; max-height: 190px; border-radius: 12px; background: #f1f2f4; object-fit: cover; }
.mcard.v2 .mc-tile .pimg-ph { color: #9aa3ad; background: #eef0f3; font-size: 40px; }
.mcard.v2 .mc-main { min-width: 0; display: flex; flex-direction: column; }
.mcard.v2 .mc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.mcard.v2 h3 { margin: 2px 0 0; font-size: 20px; letter-spacing: -.2px; line-height: 1.25; }
.mcard.v2 .mc-more { font-size: 14px; color: var(--muted); font-weight: 600; }
.mcard.v2 .mc-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.mcard.v2 .addon { display: inline-flex; align-items: center; gap: 4px; color: #1e7a45; font-weight: 700; }
.mc-meta { display: flex; gap: 28px; flex-wrap: wrap; margin: 14px 0 16px; }
.mc-meta .mm { display: flex; align-items: center; gap: 9px; color: var(--text); }
.mc-meta .mm svg { color: var(--stripInk); opacity: .85; flex: none; }
.mc-meta small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.2; }
.mc-meta b { font-size: 15px; font-weight: 700; } .mc-meta b s { color: var(--muted); font-weight: 500; margin-right: 4px; }
.mc-note { display: flex; gap: 10px; align-items: center; background: #fff6e0; color: #6e5200; border-radius: 10px; padding: 10px 14px; font-size: 14.5px; margin: -4px 0 14px; }
.mcard.v2 .tracker { margin: -2px 0 16px; max-width: 560px; }
.mcard.v2 .tracker .ts { font-size: 12px; width: 80px; }
.mc-btns { display: grid; gap: 10px; margin-top: auto; }
.mbtn { height: 44px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; font-size: 14.5px; font-family: inherit; border: 1.5px solid var(--solid); padding: 0 8px; white-space: nowrap; transition: filter .15s, transform .1s, background .15s; min-width: 0; }
.mbtn span { overflow: hidden; text-overflow: ellipsis; }
.mbtn.solid { background: var(--solid); color: var(--onSolid); }
.mbtn.solid:hover { filter: brightness(1.18); }
.mbtn.outline { background: var(--surface); color: var(--solid); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.mbtn.outline:hover { background: var(--strip); }
.mbtn:active { transform: scale(.97); }
.spill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; flex: none; }
.spill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.spill.green { background: #e3f5ea; color: #1e7a45; } .spill.green i { background: #22b45a; }
.spill.yellow { background: #fdf0c8; color: #8a6200; } .spill.blue { background: #e2edfc; color: #1f5bb5; }
.spill.purple { background: #ece6fb; color: #5b3fb5; } .spill.red { background: #fde4e1; color: #b3261e; } .spill.gray { background: #eef0f2; color: #5d6970; }
.p-main .coach { margin-bottom: 10px; }

/* education */
.edu-txt h3 { margin: 0 0 8px; font-size: 18px; }
.edu-txt p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.edu-grid .card { margin-bottom: 0; text-align: center; display: flex; flex-direction: column; align-items: center; padding: 16px 16px 20px; }
.edu-img { width: 100%; height: 200px; border-radius: 10px; overflow: hidden; background: var(--strip); margin-bottom: 14px; }
.edu-img { position: relative; }
.edu-img img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.edu-img.fit::before { content: ''; position: absolute; inset: -20px; background: var(--bgimg) center/cover; filter: blur(18px) saturate(1.1); opacity: .55; }
.edu-img.fit img { object-fit: contain; }
.edu-card h4 { margin: 0 0 6px; font-size: 17px; }
.edu-card p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; line-height: 1.5; max-width: 380px; }

/* FAQ */
.faq-card .section-h { margin: 0 0 14px; }
.faq-card .section-h h3 { font-size: 18px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.faq-box { background: color-mix(in srgb, var(--strip) 45%, var(--surface)); border: 1px solid var(--border); border-radius: 10px; }
.faq-box .faq-q { padding: 13px 14px; font-size: 14.5px; font-weight: 600; gap: 12px; }
.faq-box .faq-ic { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--muted); color: var(--muted); display: grid; place-items: center; flex: none; transition: transform .2s; font-style: normal; }
.faq-box.open .faq-ic { transform: rotate(45deg); color: var(--text); border-color: var(--text); }
.faq-box .faq-a { padding: 0 14px 14px; font-size: 14.5px; }

/* exclusive offer */
.offer-card { display: flex; gap: 16px; align-items: flex-start; background: color-mix(in srgb, var(--strip) 30%, var(--surface)); border: 1px solid color-mix(in srgb, var(--star) 35%, var(--border)); border-top: 3px solid var(--star); border-radius: 14px; padding: 20px 22px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(30,20,10,.05); }
.oc-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); color: var(--stripInk); display: grid; place-items: center; flex: none; border: 1px solid color-mix(in srgb, var(--star) 40%, var(--border)); }
.oc-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: color-mix(in srgb, var(--star) 70%, #000); }
.offer-card h3 { margin: 4px 0 6px; font-size: 18px; }
.offer-card p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }

/* reviews (sample copy for the demo) */
.rev-wrap { margin-bottom: 18px; }
.rev-h { text-align: center; font-size: 22px; margin: 0; }
.rev-note { text-align: center; color: var(--muted); font-size: 12.5px; margin: 4px 0 16px; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rev-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(30,20,10,.05); }
.rev-card .stars { color: var(--star); display: flex; gap: 2px; }
.rev-card h4 { margin: 10px 0 8px; font-size: 16.5px; line-height: 1.3; }
.rev-card p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; color: color-mix(in srgb, var(--text) 85%, transparent); flex: 1; }
.rev-card .who { font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.rev-prod { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; }
.rev-prod .pimg.xs { width: 40px; height: 40px; border-radius: 8px; font-size: 16px; }
.rev-prod b { display: block; font-size: 13.5px; line-height: 1.25; } .rev-prod small { color: var(--muted); font-size: 12.5px; }
.powered { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 8px 0 4px; font-family: var(--font-ui); }
.powered .pw-logo { height: 18px; width: auto; display: block; opacity: .9; }
.powered .pw-mark { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, var(--sp-teal), #1c6f9c); color: #fff; display: grid; place-items: center; }
.powered b { color: var(--sp-navy); font-weight: 800; letter-spacing: -.2px; }


/* ===================== Layout: sticky left nav (default) ===================== */
.p-body.layout-left { display: grid; grid-template-columns: 256px 1fr; gap: 30px; align-items: start; }
.portal.layout-left .p-side { position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 88px); overflow: auto; }
.p-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.p-header .ph-left { display: flex; align-items: center; min-width: 0; }
.logout-link { background: none; border: none; color: #8a96a0; font-size: 13.5px; font-weight: 600; padding: 8px 4px; font-family: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.logout-link:hover { color: #5d6970; }
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e11d2e; color: #fff; font-size: 11.5px; font-weight: 800; margin-left: 4px; }
.nav-block .nav-badge { margin-right: 4px; }
.select-cta { text-align: center; font-weight: 700; color: var(--sp-navy); font-size: 16px; margin: -8px 0 18px; }
.theme-bottom { flex-direction: column; gap: 14px; align-items: center; }
.theme-bottom .big-btn { width: min(520px, 100%); justify-content: center; }
.theme-bottom .ghost-btn { order: 2; }

/* Shop marketplace */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shop-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 2px 10px rgba(30,20,10,.04); font-family: inherit; color: inherit; }
.shop-tile:hover { border-color: var(--solid, var(--primary)); transform: translateY(-2px); }
.shop-img { border-radius: 10px; overflow: hidden; background: var(--strip); aspect-ratio: 1; }
.shop-img .pimg { width: 100%; height: 100%; object-fit: cover; }
.shop-tile h4 { margin: 0; font-size: 15.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.shop-price b { font-size: 17px; }
.shop-cta { pointer-events: none; text-align: center; }
.product-detail .pd-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.pd-img .pimg, .pd-img .pimg-ph { width: 100%; height: 360px; border-radius: 14px; object-fit: cover; }
.pd-info h3 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.4px; }
.pd-price { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.pd-trust { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 16px; }
.pd-trust > div { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* Checkout drawer */
.co-root { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.co-root.on { pointer-events: auto; }
.co-backdrop { position: absolute; inset: 0; background: rgba(10,20,28,.45); opacity: 0; transition: opacity .2s; }
.co-root.on .co-backdrop { opacity: 1; }
.co-drawer { position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; box-shadow: -12px 0 40px rgba(0,0,0,.18); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .22s ease; font-family: var(--font-ui); color: var(--text, #13232e); }
.co-root.on .co-drawer { transform: translateX(0); }
.co-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid #e8eef1; }
.co-head h3 { margin: 0; font-size: 20px; }
.co-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e3e8eb; background: #fff; display: grid; place-items: center; }
.co-body { flex: 1; overflow: auto; padding: 18px 20px; }
.co-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; margin-bottom: 14px; }
.co-item .pimg, .co-item .pimg-ph { width: 64px; height: 64px; border-radius: 10px; }
.co-summary { border-top: 1px solid #e8eef1; padding-top: 12px; margin: 8px 0 18px; }
.co-summary > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.co-total { border-top: 1px solid #e8eef1; margin-top: 6px; padding-top: 10px !important; font-size: 17px; }
.co-pay { display: flex; flex-direction: column; gap: 12px; }
.co-card, .co-ship { display: flex; gap: 12px; align-items: flex-start; background: #f5f8fa; border-radius: 12px; padding: 12px 14px; }
.co-foot { padding: 16px 20px 22px; border-top: 1px solid #e8eef1; display: flex; flex-direction: column; gap: 8px; }
.co-foot .btn.block, .btn.block { width: 100%; justify-content: center; }
.co-success { text-align: center; padding: 24px 8px; }
.co-success h3 { margin: 12px 0 6px; font-size: 24px; }
.mob-nav-item.muted { color: #8a96a0; font-weight: 500; margin-top: 4px; border-top: 1px solid #eef2f4; border-radius: 0; }

/* Support card */
.support-card { margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; box-shadow: 0 2px 8px rgba(30,20,10,.04); }
.support-card .sc-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--strip); color: var(--stripInk); display: grid; place-items: center; flex: none; }
.support-card b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.support-card p { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.support-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--strip); color: var(--stripInk); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13.5px; min-height: 40px; font-family: inherit; white-space: nowrap; }
.support-chip:hover { filter: brightness(.97); }
.support-modal { text-align: left; }
.support-modal .sm-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--strip); color: var(--stripInk); display: grid; place-items: center; margin-bottom: 12px; }

/* Mobile nav (hidden on desktop) */
.mob-nav { display: none; }

/* Win-back promo strip on moment cards */
.mc-promo { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, var(--strip), color-mix(in srgb, var(--solid) 12%, var(--surface))); border: 1px solid color-mix(in srgb, var(--solid) 28%, var(--border)); border-radius: 12px; padding: 12px 14px; margin: -4px 0 14px; }
.mc-promo.alert { background: #fff6e0; border-color: #f0d59a; color: #6e5200; }
.mc-promo > svg { flex: none; color: var(--solid); }
.mc-promo.alert > svg { color: #a8620e; }
.mc-promo div { flex: 1; min-width: 0; }
.mc-promo b { display: block; font-size: 14.5px; line-height: 1.25; }
.mc-promo span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.mc-promo.alert span { color: #6e5200; }
.mc-promo-off { flex: none; font-size: 22px; font-weight: 800; letter-spacing: -1px; color: var(--solid); line-height: 1; }
.mc-promo.alert .mc-promo-off { color: #b3261e; }
.spill.accent { background: var(--accentSoft, var(--strip)); color: var(--accentInk, var(--stripInk)); }

/* Instagram card */
.ig-card { padding: 18px 18px 14px !important; }
.ig-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.ig-brand { display: flex; gap: 12px; align-items: center; }
.ig-brand b { display: block; font-size: 16px; }
.ig-brand span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ig-cell { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--strip); }
.ig-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-cell.ph { display: grid; place-items: center; color: var(--muted); font-weight: 800; font-size: 22px; }
.ig-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 10px; }

/* Hero mobile image layers */
.hb-img-m { display: none; }
.hb-img-d { display: block; }

/* Offer pop-up (Rosabella-style) */
.offer-ov { padding: 24px; align-items: center; }
.offer-modal { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; width: min(920px, 100%); max-height: calc(100vh - 48px); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: up .22s ease; font-family: var(--font-body, var(--font-ui)); color: var(--text, #13232e); }
.om-x { position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: #44545e; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.om-left { background: #e8f4f6; min-height: 480px; display: grid; place-items: center; overflow: hidden; }
.om-left img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.om-left.ph, .om-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 72px; font-weight: 800; color: #9bb8c0; background: linear-gradient(135deg, #dceef2, #f4fafb); }
.om-right { padding: 36px 36px 28px; overflow: auto; display: flex; flex-direction: column; align-items: stretch; }
.om-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.om-logo-img, .om-logo .logo { max-height: 36px; max-width: 180px; object-fit: contain; }
.om-logo .wordmark { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.om-badge { align-self: center; background: #e11d2e; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.om-h { margin: 0 0 10px; font-size: 28px; line-height: 1.15; letter-spacing: -.4px; text-align: center; font-family: var(--font-heading, inherit); color: #143a5c; }
.om-body { margin: 0 0 18px; text-align: center; color: #6b7b85; font-size: 15px; line-height: 1.45; }
.om-price { text-align: center; margin-bottom: 10px; }
.om-off { font-size: 42px; font-weight: 800; color: #e11d2e; letter-spacing: -1.5px; line-height: 1; }
.om-amt { margin-top: 6px; font-size: 18px; }
.om-amt s { color: #8aa0ad; margin-right: 8px; }
.om-amt b { color: #e11d2e; font-size: 22px; }
.om-once { font-size: 12.5px; color: #8aa0ad; margin-top: 4px; }
.om-urg { display: flex; justify-content: center; align-items: center; gap: 6px; color: #e11d2e; font-weight: 700; font-size: 13.5px; margin: 8px 0 14px; }
.om-qty { display: inline-flex; align-self: center; align-items: center; border: 2px solid #e3e8eb; border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.om-qty button { width: 44px; height: 44px; border: none; background: #fff; display: grid; place-items: center; color: #143a5c; }
.om-qty span { width: 40px; text-align: center; font-weight: 800; font-size: 17px; }
.om-cta { width: 100%; min-height: 54px; border: none; border-radius: 10px; background: #e11d2e; color: #fff; font-weight: 800; font-size: 15.5px; letter-spacing: .4px; padding: 0 18px; font-family: inherit; }
.om-cta:hover { filter: brightness(.95); }
.om-no { background: none; border: none; color: #1a7a7a; text-decoration: underline; font-weight: 600; font-size: 14.5px; margin: 14px auto 18px; padding: 8px; font-family: inherit; min-height: 40px; }
.om-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #f3f5f7; border-radius: 12px; padding: 12px 10px; margin-top: auto; }
.om-trust > div { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11.5px; font-weight: 600; color: #5d6970; line-height: 1.25; }
.om-trust svg { color: #1a7a7a; }

/* Skip-to-cancel compliance control */
.skip-cancel { display: block; width: 100%; margin: 14px 0 4px; padding: 12px 14px; min-height: 44px; border: 1px dashed #c9d2d7; border-radius: 10px; background: #f7f9fa; color: #5d6970; font-weight: 700; font-size: 14.5px; font-family: inherit; text-align: center; }
.skip-cancel:hover { border-color: #b3261e; color: #b3261e; background: #fdecea; }

/* Offer popup: frequency + payment form */
.om-freq { margin: 0 0 12px; }
.om-freq label { display: block; text-align: center; font-size: 13px; font-weight: 700; color: #5d6970; margin-bottom: 8px; }
.om-freq-opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.om-freq-btn { border: 1.5px solid #d5dee8; background: #fff; border-radius: 999px; padding: 8px 14px; min-height: 40px; font-weight: 700; font-size: 13.5px; color: #143a5c; font-family: inherit; }
.om-freq-btn.on { border-color: #e11d2e; background: #e11d2e; color: #fff; }
.om-pay { display: flex; flex-direction: column; align-items: stretch; padding-top: 4px; }
.om-pay-form { text-align: left; margin: 8px 0 14px; }
.om-pay-form .field { margin-bottom: 10px; }
.om-pay .om-h { font-size: 22px; }
.om-success .big-check { width: 64px; height: 64px; border-radius: 50%; background: #e3f5ea; color: #1e7a45; display: grid; place-items: center; }


/* ===================== Responsive: tablet ===================== */
@media (max-width: 960px) {
  .shell-top, .shell-main { padding-left: 24px; padding-right: 24px; }
  .hero-title { font-size: 40px; letter-spacing: -1.2px; }
  .url-card { flex-wrap: wrap; } .url-card input { font-size: 22px; } .big-btn { width: 100%; justify-content: center; height: 64px; }
  .how, .themes, .moments, .q-opts, .q-opts.three, .proc { grid-template-columns: 1fr; }
  .mini-wrap { height: 260px; }
  .demo-bar { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .demo-bar .tag, .demo-bar .setup-pills { display: none; }
  .demo-bar .sp-logo small { display: none; } /* avoid Interactive Demo wrapping awkwardly */
  .p-body, .p-body.layout-left { display: block; padding: 16px 14px 28px; max-width: 100%; }
  .portal .p-side { display: none !important; }
  .logout-link { display: none; } /* mobile logout lives in Welcome dropdown */
  .found-summary { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 8px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .found-summary span { flex: none; font-size: 12.5px; padding: 6px 10px; white-space: nowrap; }
  .page-title, .theme-h { font-size: 28px; letter-spacing: -.8px; margin: 12px 0 8px; }
  .page-sub, .theme-sub { font-size: 15.5px; margin: 0 0 16px; line-height: 1.35; }
  .select-cta { font-size: 14.5px; margin: 0 0 14px; }
  .q-count { margin-top: 8px; font-size: 13px; }
  .q-title { font-size: 26px; letter-spacing: -.6px; margin: 8px 0 6px; }
  .q-help { font-size: 14.5px; margin: 0 0 16px; line-height: 1.35; }
  .q-opt { padding: 16px 14px; min-height: 0; border-radius: 16px; gap: 10px; }
  .q-opt.compact { flex-direction: row; align-items: center; }
  .q-opt .qi { width: 44px; height: 44px; border-radius: 12px; flex: none; }
  .q-opt h3 { font-size: 18px; margin: 0; }
  .q-opt p { font-size: 13.5px; }
  .q-opt .tick { width: 28px; height: 28px; top: 12px; right: 12px; }
  .q-opt .q-lab { flex: 1; min-width: 0; }
  .q-opts { gap: 12px; }
  .q-opts.three { grid-template-columns: 1fr; }
  .bottom-bar, .q-bottom, .theme-bottom { margin-top: 18px; flex-direction: column; gap: 10px; }
  .bottom-bar .big-btn, .theme-bottom .big-btn { width: 100%; height: 54px; font-size: 17px; justify-content: center; }
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-detail .pd-grid { grid-template-columns: 1fr; gap: 16px; }
  .pd-img .pimg, .pd-img .pimg-ph { height: 240px; }
  .co-drawer { width: 100%; border-radius: 18px 18px 0 0; height: auto; max-height: 92vh; top: auto; bottom: 0; transform: translateY(104%); }
  .co-root.on .co-drawer { transform: translateY(0); }
  .mob-nav { display: block; position: sticky; top: 0; z-index: 40; background: #eceff1; border-bottom: 1px solid var(--border, #dfe3e6); }
  /* sits under the sticky demo-bar when both are pinned */
  .portal .mob-nav { top: 0; }
  /* stick below demo-bar: demo-bar is sticky too; mob-nav follows content */
  .mob-nav-bar { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #eceff1; border: none; padding: 12px 16px; min-height: 48px; font-family: inherit; color: var(--text, #13232e); font-size: 15px; }
  .mnb-l, .mnb-r { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
  .mnb-l b { font-weight: 700; }
  .mnb-r { color: #5d6970; }
  .mob-nav-drop { background: #fff; border-bottom: 1px solid var(--border, #dfe3e6); padding: 8px 10px 12px; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
  .mob-nav-item { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: none; border-radius: 10px; padding: 12px 14px; min-height: 48px; font-weight: 600; font-size: 16px; color: var(--text); font-family: inherit; text-align: left; }
  .mob-nav-item.on { background: var(--navActiveBg, #eef6f8); color: var(--primaryInk, var(--text)); }
  .mob-nav-help { padding: 6px 8px 4px; }
  .p-header { height: 64px; }
  .p-header img.logo { height: 40px; max-width: 200px; }
  .p-header .wordmark { font-size: 24px; }
  .hero-b { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-b .hb-img-d { display: none; }
  .hero-b .hb-img-m { display: block; position: relative; width: 100%; height: 220px; }
  .hero-b .hb-img-m img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
  .hero-b .hb-img-m::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--cream) 100%); }
  .hero-b .hb-text { width: 100%; padding: 18px 18px 24px; }
  .hero-b h2 { font-size: 26px; }
  .hero-b p { max-width: none; font-size: 15px; }
  .hb-feats { flex-wrap: wrap; gap: 10px 0; }
  .hb-f { max-width: 48%; flex: 1 1 40%; border-left: none; padding: 0 6px; }
  .pill-btn.lg { width: 100%; min-height: 48px; }
  .rel-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .rel-tile { flex: 0 0 72%; max-width: 280px; scroll-snap-align: start; }
  .rel-img .pimg { height: 150px; }
  .mcard.v2 .mc-body { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .mcard.v2 .mc-tile .mc-pimg { width: 100%; height: 180px; max-height: none; }
  .mc-btns { grid-template-columns: 1fr 1fr !important; }
  .mbtn { min-height: 48px; height: 48px; font-size: 14px; }
  .mc-promo { flex-wrap: wrap; }
  .edu-grid, .ig-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid, .rev-grid { grid-template-columns: 1fr; }
  .offer-modal { grid-template-columns: 1fr; width: 100%; max-width: 100%; max-height: calc(100vh - 16px); overflow: auto; border-radius: 18px; }
  .om-left { min-height: 120px; max-height: 140px; }
  .om-right { padding: 14px 14px 18px; gap: 0; }
  .om-logo { margin-bottom: 8px; }
  .om-badge { margin-bottom: 8px; font-size: 10.5px; padding: 5px 10px; }
  .om-h { font-size: 18px; margin-bottom: 6px; }
  .om-body { font-size: 13.5px; margin-bottom: 10px; line-height: 1.35; }
  .om-off { font-size: 28px; }
  .om-amt { font-size: 16px; }
  .om-amt b { font-size: 18px; }
  .om-urg { display: none; }
  .om-qty { margin-bottom: 10px; }
  .om-cta { min-height: 50px; font-size: 14.5px; }
  .om-no { margin: 10px auto 12px; font-size: 13.5px; }
  .om-trust { grid-template-columns: 1fr; gap: 8px; padding: 10px; }
  .om-trust > div { flex-direction: row; justify-content: flex-start; text-align: left; font-size: 12.5px; }
  .om-freq-opts { gap: 6px; }
  .om-freq-btn { padding: 7px 12px; font-size: 12.5px; min-height: 36px; }
  .skip-cancel { font-size: 13.5px; padding: 11px 12px; margin-top: 12px; }
  .modal { width: 100%; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .modal .mh { position: sticky; top: 0; background: var(--surface, #fff); z-index: 2; }
  .overlay { align-items: flex-end; padding: 0; }
  .offer-ov { align-items: flex-end; padding: 0; }
  .offer-ov .offer-modal { border-radius: 18px 18px 0 0; width: 100%; max-width: 100%; }
  .pick-grid { grid-template-columns: 1fr 1fr; }
  .ctrl-grid, .ctrl-grid.four, .ctrl-grid.five, .ctrl-grid.three { grid-template-columns: 1fr 1fr; }
  .list-card .lc-top { flex-direction: column; }
  .list-card .lc-btns { width: 100%; }
  .cols { grid-template-columns: 1fr; }
}

/* ===================== Responsive: phone ~390 ===================== */
@media (max-width: 480px) {
  .chips { gap: 8px; justify-content: center; }
  .chip { padding: 8px 12px; font-size: 13.5px; }
  .demo-bar .ctl label { display: none; }
  .demo-bar select { font-size: 13px; padding: 7px 10px; max-width: 130px; }
  .demo-bar .db-btn { padding: 7px 12px; font-size: 13px; }
  .demo-bar .sp-logo .sp-logo-img { height: 18px; }
  .edu-grid, .faq-grid, .rev-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: 1fr 1fr; }
  .rel-tile { flex-basis: 84%; }
  .hero-b .hb-img-m { height: 200px; }
  .hero-b h2 { font-size: 22px; }
  .p-ann { font-size: 12px; padding: 8px 12px; }
  .card { padding: 16px !important; }
  .mc-meta { gap: 14px; }
  body { overflow-x: hidden; }
  .portal, .shell { overflow-x: hidden; }
}

/* Prevent horizontal scroll globally in portal */
.portal { overflow-x: hidden; }
.p-main { overflow-x: hidden; }

@media (max-width: 1320px) {
  .demo-bar .setup-pills, .demo-bar .tag { display: none; }
  .demo-bar { gap: 10px; padding: 10px 14px; }
}

/* v5 mobile shell/header polish */
@media (max-width: 960px) {
  .shell-top { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .shell-top .sp-logo small { display: none; }
  .shell-top .stepper { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .shell-top .stepper .dot { font-size: 12px; }
  .shell-top .stepper .bar { width: 16px; }
  .shell-main { padding: 8px 16px 40px; }
  .page-title.theme-h, .theme-h { font-size: 26px; }
}
@media (max-width: 480px) {
  .found-summary span b { max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
}

/* ===================== v7 polish ===================== */
.p-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.p-header .ph-side { display: flex; align-items: center; min-width: 0; }
.p-header .ph-left { justify-content: flex-start; }
.p-header .ph-right { justify-content: flex-end; }
.p-header .ph-center { display: flex; justify-content: center; align-items: center; min-width: 0; }
.p-header .ph-center img.logo { height: 52px; max-width: min(280px, 70vw); width: auto; object-fit: contain; }
.p-header img.logo.logo-boxed { mix-blend-mode: multiply; background: transparent; }
.p-header.dark img.logo.logo-boxed { mix-blend-mode: screen; }

/* Returns badge — snug next to label, soft brand-tinted */
.nav-badge {
  display: inline-grid; place-items: center;
  min-width: 17px; height: 17px; padding: 0 5px; margin-left: 6px; vertical-align: middle;
  border-radius: 999px;
  background: #fce8e6; color: #b42318; font-size: 11px; font-weight: 800; line-height: 1;
  border: 1px solid #f3c4be; box-shadow: none;
}
.nav-block .nb-l { display: inline-flex; align-items: center; flex: 1; white-space: nowrap; }
.nav-block .nav-badge { margin-right: 0; }
.mob-nav-item span, .mnb-l b { display: inline-flex; align-items: center; gap: 0; }

/* Sale labeling */
.sale-flag {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: #e11d2e; color: #fff; font-size: 10.5px; font-weight: 900;
  letter-spacing: .8px; padding: 4px 8px; border-radius: 6px;
}
.rel-img, .pick-img { position: relative; }
.rel-img .off { top: auto; bottom: 8px; left: 8px; }
.pick-img .off {
  position: absolute; bottom: 8px; left: 8px;
  background: var(--solid, #13232e); color: var(--onSolid, #fff);
  font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
}
.pick-img .sale-flag { top: 8px; right: 8px; }
.pick-img .pimg, .pick-img img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; display: block; }
.pick-price { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.pick-price s { color: var(--muted, #7a8790); font-size: 13px; }
.pick-price strong { font-size: 16px; color: #b3261e; font-weight: 800; }
.pick-price em { font-style: normal; font-size: 12px; font-weight: 800; color: #1e7a45; background: #e3f5ea; padding: 2px 7px; border-radius: 999px; }
.rel-price em { font-style: normal; font-size: 12px; font-weight: 800; color: #1e7a45; background: #e3f5ea; padding: 2px 7px; border-radius: 999px; }

/* Exchange settlement */
.ex-settle { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f5f8fa; border: 1px solid #e3e8eb; font-size: 14px; position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -8px 20px rgba(0,0,0,.06); }
.ex-settle .ex-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.ex-settle .ex-badge { font-size: 11.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: #eef2f4; color: #44525c; }
.ex-settle p { margin: 6px 0 0; color: #5d6970; font-size: 14px; line-height: 1.4; }
.ex-settle.pay { background: #fff6e8; border-color: #f0d59a; }
.ex-settle.pay .ex-badge { background: #fde8c8; color: #8a6200; }
.ex-settle.credit { background: #eef8f1; border-color: #c6e6d0; }
.ex-settle.credit .ex-badge { background: #d8f0e0; color: #1e7a45; }
.ex-settle.even { background: #eef3fb; border-color: #c9d8f2; }
.ex-settle.even .ex-badge { background: #dbe6f8; color: #1f5bb5; }

/* Tracking map UI */
.track-hero { border-radius: 16px; padding: 16px 16px 12px; margin: 0 0 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--solid, #1f6feb) 10%, #f4f7fa), #fff); border: 1px solid color-mix(in srgb, var(--solid, #1f6feb) 22%, #e3e8eb); }
.track-status { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.track-status .ts-pill { align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--solid, #1f6feb) 16%, #fff); color: var(--solid, #1f5bb5); }
.track-status b { font-size: 20px; letter-spacing: -.3px; }
.track-hero.tone-delivered .ts-pill { background: #e3f5ea; color: #1e7a45; }
.track-hero.tone-pending .ts-pill { background: #fdf0c8; color: #8a6200; }
.track-map { color: var(--solid, #1f6feb); }
.tm-svg { width: 100%; height: 110px; display: block; }
.tm-dot { fill: #fff; stroke: currentColor; stroke-width: 3; opacity: .45; }
.tm-dot.on { opacity: 1; fill: currentColor; stroke: #fff; stroke-width: 2; }
.tm-cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.tm-cities > div { text-align: center; opacity: .45; }
.tm-cities > div.on { opacity: 1; }
.tm-cities b { display: block; font-size: 12.5px; font-weight: 800; }
.tm-cities span { font-size: 11.5px; color: var(--muted, #6e7b84); }
.track-kv { max-width: none; margin: 4px 0 16px; }

/* Richpanel-style chat dock */
.rp-root { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.rp-root.on { pointer-events: auto; }
.rp-backdrop { position: absolute; inset: 0; background: rgba(10,20,28,.28); opacity: 0; transition: opacity .18s; }
.rp-root.on .rp-backdrop { opacity: 1; }
.rp-panel {
  position: absolute; top: 16px; right: 16px; bottom: 16px;
  width: min(380px, calc(100vw - 24px));
  background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.28);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(110%); transition: transform .22s ease;
  font-family: var(--font-ui); color: #13232e;
}
.rp-root.on .rp-panel { transform: translateX(0); }
.rp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 12px; background: linear-gradient(135deg, #0f2a3a, #1c6f9c); color: #fff; }
.rp-brand { display: flex; gap: 10px; align-items: center; min-width: 0; }
.rp-mark { width: 32px; height: 32px; border-radius: 10px; background: #fff; object-fit: contain; padding: 3px; }
.rp-brand b { display: block; font-size: 15px; letter-spacing: -.2px; }
.rp-brand span { display: block; font-size: 11.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.rp-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; flex: none; }
.rp-msgs { flex: 1; overflow: auto; padding: 14px; background: #f3f6f8; display: flex; flex-direction: column; gap: 10px; }
.rp-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.rp-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.rp-av { width: 26px; height: 26px; border-radius: 50%; background: #1c6f9c; color: #fff; display: grid; place-items: center; flex: none; }
.rp-bubble { background: #fff; border: 1px solid #e3e8eb; border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 14px; line-height: 1.4; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.rp-msg.me .rp-bubble { background: #1c6f9c; color: #fff; border-color: #1c6f9c; border-radius: 14px 14px 4px 14px; }
.rp-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rp-quick button { border: 1px solid #cfe0e8; background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 12.5px; font-weight: 700; color: #1c6f9c; font-family: inherit; }
.rp-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #e3e8eb; background: #fff; }
.rp-input input { flex: 1; border: 1px solid #d7e0e6; border-radius: 999px; padding: 11px 14px; font-size: 14.5px; font-family: inherit; outline: none; }
.rp-input input:focus { border-color: #1c6f9c; box-shadow: 0 0 0 3px rgba(28,111,156,.15); }
.rp-send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #1c6f9c; color: #fff; display: grid; place-items: center; flex: none; }
.rp-foot { text-align: center; font-size: 11px; color: #8a96a0; padding: 0 12px 10px; background: #fff; }

@media (max-width: 960px) {
  .p-header { height: 64px; padding: 0 14px; }
  .p-header .ph-center img.logo { height: 40px; max-width: 180px; }
  .logout-link { display: none; } /* still in mobile welcome menu */
  .rp-panel { top: auto; right: 0; left: 0; bottom: 0; width: 100%; max-height: min(88vh, 720px); border-radius: 18px 18px 0 0; }
  .tm-svg { height: 88px; }
  .track-status b { font-size: 17px; }
  .tm-cities b { font-size: 11.5px; }
}

/* ===================== Schedule-a-demo pop-up (v10: 60s portal timer) ===================== */
.lead-overlay { z-index: 120; padding: 16px; background: rgba(12,28,38,.42); }
.lead-modal {
  position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 24px; padding: 30px 30px 22px;
  box-shadow: 0 30px 80px rgba(15,37,51,.32); animation: up .22s ease;
  font-family: var(--font-ui); color: var(--sp-ink);
}
.lead-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: none; background: #f0f3f5; font-size: 26px; line-height: 1; color: #44545e; display: grid; place-items: center; cursor: pointer; }
.lead-mark { width: 52px; height: 52px; border-radius: 16px; background: var(--sp-mint); color: var(--sp-teal-d); display: grid; place-items: center; margin: 2px auto 14px; }
.lead-mark.ok { background: #e3f5ea; color: #1e7a45; }
.lead-modal h2 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; letter-spacing: -.5px; text-align: center; color: var(--sp-navy); }
.lead-sub { margin: 0 0 22px; text-align: center; color: #4e5d66; font-size: 18px; line-height: 1.45; }
.lead-sub b { color: var(--sp-navy); }
.lead-form .field { margin-bottom: 14px; }
.lead-form label { display: block; font-size: 15px; font-weight: 700; color: #3f4d55; margin-bottom: 6px; }
.lead-form input {
  width: 100%; border: 1.5px solid var(--sp-line); border-radius: 12px; padding: 14px 15px;
  font-size: 17px; color: var(--sp-navy); background: #fff; outline: none;
}
.lead-form input:focus { border-color: var(--sp-teal); box-shadow: 0 0 0 3px rgba(47,180,198,.18); }
.lead-err { color: #c0392b; font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.lead-ferr { color: #c0392b; font-size: 14.5px; font-weight: 600; margin: 6px 2px 0; line-height: 1.35; }
.lead-form input.bad { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214,69,69,.14); }
.lead-cta { width: 100%; height: 58px; border-radius: 14px; font-size: 18px; justify-content: center; margin-top: 6px; }
.lead-later {
  display: block; width: 100%; margin-top: 10px; background: none; border: none; cursor: pointer;
  color: #1a7a7a; text-decoration: underline; font-weight: 600; font-size: 16px; padding: 12px; font-family: inherit;
}
.lead-fine { margin: 8px 0 0; text-align: center; font-size: 14px; color: #7d8a93; line-height: 1.4; }
.lead-thanks .lead-cta { margin-top: 8px; }
.lead-book { display: flex; text-decoration: none; box-sizing: border-box; }
@media (max-width: 640px) {
  .lead-overlay { padding: 0; align-items: end; }
  .lead-modal { width: 100%; border-radius: 22px 22px 0 0; padding: 24px 20px calc(16px + env(safe-area-inset-bottom)); max-height: calc(100vh - 12px); }
  .lead-mark { width: 44px; height: 44px; margin-bottom: 10px; }
  .lead-modal h2 { font-size: 26px; padding: 0 30px; }
  .lead-sub { font-size: 17px; margin-bottom: 18px; }
  .lead-form .field { margin-bottom: 12px; }
  .lead-cta { height: 56px; font-size: 18px; }
}

/* ===================== v11: Start screen (scoped to .start-screen) ===================== */
.start-screen { width: 100%; display: flex; flex-direction: column; align-items: center; }
.start-screen .start-title { font-size: clamp(30px, 8.4vw, 62px); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; max-width: 900px; margin: 28px 0 16px; }
.start-screen .start-title em { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--sp-teal-d); -webkit-text-fill-color: var(--sp-teal-d); }
.start-screen .start-sub { font-size: clamp(17px, 4.5vw, 22px); line-height: 1.4; text-wrap: balance; max-width: 640px; margin: 0 0 32px; }
.start-screen .how { margin-top: 48px; }
.start-screen .how-short { display: none; }
@media (max-width: 960px) {
  .start-screen .how { margin-top: 36px; }
}
@media (max-width: 480px) {
  .shell:has(.start-screen) .stepper { display: none; }
  .shell:has(.start-screen) .shell-top { padding-top: 16px; padding-bottom: 4px; }
  .shell:has(.start-screen) .shell-main { padding: 4px 20px 36px; }
  .start-screen .start-title { margin: 14px 0 10px; letter-spacing: -0.035em; }
  .start-screen .start-sub { font-size: 16.5px; letter-spacing: -0.01em; margin-bottom: 20px; max-width: 100%; }
  .start-screen .url-card { padding: 10px; gap: 8px; border-radius: 22px; }
  .start-screen .url-card .globe { width: 40px; height: 40px; }
  .start-screen .url-card .globe svg { width: 26px; height: 26px; }
  .start-screen .url-card input { font-size: 20px; padding: 12px 2px; }
  .start-screen .url-card .big-btn { height: 58px; font-size: 20px; border-radius: 16px; }
  .start-screen .url-error { margin-top: 8px; min-height: 18px; font-size: 15px; }
  .start-screen .chips { margin-top: 2px; }
  .start-screen .how { margin-top: 28px; gap: 12px; }
  .start-screen .how-card { padding: 16px 18px; gap: 14px; }
  .start-screen .how-card h4 { font-size: 18px; margin-bottom: 2px; }
  .start-screen .how-card p { font-size: 16px; line-height: 1.4; }
  .start-screen .how-long { display: none; }
  .start-screen .how-short { display: inline; }
}
@media (max-width: 380px) {
  .shell:has(.start-screen) .shell-main { padding-left: 16px; padding-right: 16px; }
  .start-screen .start-sub { font-size: 16px; }
}

/* ===================== v12: variant swap drawer + item picker (reuses the checkout quick-drawer shell) ===================== */
.vd-root { z-index: 85; }
.vd-drawer .co-head h3 { font-size: 21px; }
.vd-label { font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted, #6e7b84); margin: 18px 0 10px; }
.vd-label:first-child { margin-top: 2px; }
.vd-one { margin-bottom: 4px; }
.vd-one b { font-size: 16px; line-height: 1.3; }
.vd-one .muted { font-size: 15px; margin-top: 2px; }
.vd-items { display: flex; flex-direction: column; gap: 8px; }
.vd-item { display: grid; grid-template-columns: 56px 1fr 26px; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--surface, #fff); border: 2px solid var(--border, #e3e8eb); border-radius: 14px; padding: 8px 12px 8px 8px; font-family: inherit; color: inherit; }
.vd-item .pimg, .vd-item .pimg-ph { width: 56px; height: 56px; border-radius: 10px; font-size: 20px; }
.vd-item b { display: block; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vd-item small { display: block; color: var(--muted, #6e7b84); font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.vd-item.on { border-color: var(--solid, var(--primary)); background: var(--primaryTint, #f2f6f8); }
.vd-radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cfd8de; display: grid; place-items: center; color: var(--onSolid, #fff); }
.vd-item.on .vd-radio { background: var(--solid, var(--primary)); border-color: var(--solid, var(--primary)); }
.vchips { display: grid; gap: 10px; }
.vchips.named { grid-template-columns: 1fr 1fr; }
.vchips.sizes { grid-template-columns: repeat(4, 1fr); }
.vchip { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border: 2px solid var(--border, #e3e8eb); border-radius: 12px; background: var(--surface, #fff); font-family: inherit; font-size: 16px; font-weight: 700; color: var(--text, #13232e); text-align: left; line-height: 1.2; transition: border-color .12s, background .12s; }
.vchips.sizes .vchip { justify-content: center; text-align: center; padding: 10px 4px; }
.vchip span { min-width: 0; overflow-wrap: anywhere; }
.vchip:hover { border-color: color-mix(in srgb, var(--solid, #13232e) 45%, #e3e8eb); }
.vchip.on { border-color: var(--solid, var(--primary)); background: var(--primaryTint, #f2f6f8); box-shadow: 0 0 0 3px var(--primaryTint, #eef3f6); }
.vchip em { position: absolute; top: -9px; right: 8px; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; background: var(--surface, #fff); color: var(--muted, #6e7b84); border: 1px solid var(--border, #e3e8eb); border-radius: 999px; padding: 1px 7px; }
.vsw { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.14); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.vd-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 15px; font-weight: 600; color: #1e7a45; }
.vd-root .co-success .big-check { width: 80px; height: 80px; border-radius: 50%; background: var(--solid, var(--primary)); color: var(--onSolid, #fff); display: grid; place-items: center; margin: 0 auto 6px; animation: pop .35s ease; }
.vd-root .co-success p { font-size: 17px; line-height: 1.45; margin: 0; }
.vd-root .co-foot .btn[disabled] { opacity: .45; }
.mcard.v2 .vtag { display: inline-flex; align-items: center; font-weight: 700; color: var(--text, #13232e); background: #eef0f2; border-radius: 999px; padding: 2px 10px; font-size: 13px; margin-right: 4px; }
/* item picker (cancel / remove which product) */
.vd-pick .opt { padding: 10px 14px 10px 10px; }
.vp-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.vp-row .pimg { width: 60px; height: 60px; border-radius: 10px; }
.vp-txt { min-width: 0; }
.vp-txt b { display: block; font-size: 16px; line-height: 1.3; }
.vp-all { width: 60px; height: 60px; border-radius: 10px; background: var(--primaryTint, #f2f6f8); color: var(--primaryInk, #13232e); display: grid; place-items: center; flex: none; }
.vd-rm { margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; background: none; border: none; padding: 4px 0; font-family: inherit; font-size: 14px; font-weight: 700; color: #b3261e; cursor: pointer; }
@media (max-width: 960px) {
  .vd-drawer .co-head { padding: 14px 16px; }
  .vd-drawer .co-body { padding: 14px 16px; }
  .vd-drawer .co-foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .vchips.sizes { grid-template-columns: repeat(3, 1fr); }
}
/* v12 fix (pre-existing on phones): detail control grids overflowed the card (nowrap labels) and wide3 made a hidden 3rd column that swallowed "Skip" */
@media (max-width: 960px) {
  .ctrl-grid, .ctrl-grid.four, .ctrl-grid.five, .ctrl-grid.three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ctrl-grid .wide2, .ctrl-grid .wide3 { grid-column: 1 / -1; }
  .ctrl-grid .btn { padding: 0 10px; font-size: 15.5px; white-space: normal; line-height: 1.15; text-align: center; min-width: 0; }
  .ctrl-grid .btn svg { flex: none; }
}

/* v12.1: phone modal footers - buttons share the row, or stack full-width when labels are long (no ragged wrap) */
@media (max-width: 520px) {
  .modal .mf .btn { flex: 1 1 auto; min-width: 140px; }
}

@media (max-width: 960px) { .modal.wide { width: 100%; max-width: 100%; } }

/* ===================== v13: laptop-height fit pass (desktop widths only; phone layout untouched) =====================
   Laptop browsers often have 620-860px of usable height. These tiers cut vertical whitespace, image heights and
   headline sizes so step screens and pop-ups fit without page scroll. Body copy stays >= 15px. */

/* demo toolbar: keep it on one row on laptop widths (the setup pills wrapped it to 2 rows between 1321-1700px) */
@media (min-width: 961px) and (max-width: 1700px) { .demo-bar .setup-pills { display: none; } }

/* modals/pop-ups (desktop): use the dynamic viewport so nothing is cut off behind browser UI */
@media (min-width: 961px) {
  .modal { max-height: calc(100dvh - 60px); }
  .offer-modal, .offer-modal .om-right { max-height: calc(100dvh - 48px); }
  .lead-modal { max-height: calc(100dvh - 32px); }
}

/* desktop: portal fills the window below the demo toolbar exactly (was 15px too tall -> stray scroll on short pages) */
@media (min-width: 961px) { .portal { min-height: calc(100dvh - 72px); } }

@media (min-width: 961px) and (max-height: 900px) {
  .shell { min-height: 100dvh; }
  .shell-top { padding: 14px 48px; }
  .shell-main { padding: 0 48px 22px; }
  /* start */
  .start-screen .start-title { font-size: clamp(44px, 6.6dvh, 58px); margin: 14px 0 12px; }
  .start-screen .start-sub { margin-bottom: 24px; }
  .start-screen .how { margin-top: 30px; }
  .how-card { padding: 20px 22px; }
  .url-card input { padding: 14px 4px; }
  .big-btn { height: 68px; }
  /* processing */
  .proc { margin-top: 8px; gap: 32px; }
  .proc h1 { font-size: 40px; margin-bottom: 6px; }
  .proc .lead { margin-bottom: 18px; font-size: 19px; }
  .steps { gap: 8px; }
  .step { padding: 11px 20px; font-size: 19px; border-radius: 16px; }
  .step .ic { width: 36px; height: 36px; }
  .pbar { margin-top: 16px; }
  .found { min-height: 0; padding: 22px 28px; }
  .found h3 { margin-bottom: 8px; }
  .found-row { min-height: 70px; padding: 10px 0; }
  .swatch { width: 46px; height: 46px; }
  .pthumb { width: 60px; height: 60px; }
  .found-logo { max-height: 48px; }
  /* theme picker */
  .page-title { font-size: 40px; margin: 8px 0 6px; }
  .page-sub { font-size: 19px; margin-bottom: 14px; }
  .found-summary { margin-bottom: 12px; }
  .select-cta { margin: 0 0 10px; }
  .themes { gap: 22px; }
  .theme-card { padding: 12px 12px 14px; }
  .theme-card .tc-head { margin: 10px 4px 2px; }
  .theme-card p { margin: 2px 4px 0; line-height: 1.35; }
  .mini-wrap { height: clamp(170px, calc(100dvh - 520px), 320px); }
  .bottom-bar { margin-top: 16px; }
  .theme-bottom { gap: 8px; }
  .theme-bottom .big-btn { height: 60px; font-size: 20px; }
  /* setup questions */
  .q-count { margin-top: 10px; }
  .q-title { font-size: 46px; margin: 10px 0 8px; }
  .q-help { margin-bottom: 26px; }
  .q-opt { min-height: 0; padding: 26px 26px; gap: 10px; }
  .q-opt .qi { width: 60px; height: 60px; }
  .q-opt h3 { font-size: 32px; margin-top: 2px; }
  /* moment picker */
  .moments { gap: 16px; }
  .moment { min-height: 0; padding: 20px 22px; gap: 8px; }
  .moment .mi { width: 50px; height: 50px; border-radius: 14px; }
  .moment .mi svg { width: 26px; height: 26px; }
  .moment h3 { font-size: 24px; margin-top: 2px; }
  .moment p { font-size: 16px; line-height: 1.4; }

  /* portal chrome */
  .demo-bar { padding-top: 8px; padding-bottom: 8px; }
  .p-header { height: 60px; }
  .p-header img.logo, .p-header .ph-center img.logo { height: 40px; }
  .p-header .wordmark { font-size: 30px; }
  .p-ann { padding: 5px 20px; }
  .p-body, .p-body.layout-left { padding-top: 14px; gap: 26px; }
  .portal.layout-left .p-side { top: 62px; max-height: calc(100dvh - 72px); }
  .p-side h2 { font-size: 23px; margin: 2px 0 12px; }
  .nav-block { padding: 9px 14px; margin-bottom: 8px; }
  .support-card { margin-top: 12px; }
  .p-main > h2.ptitle { margin: 2px 0 14px; }
  .portal { min-height: calc(100dvh - 66px); }
  /* home: banner, related products, moment card */
  .hero-b { min-height: 0; margin-bottom: 14px; }
  .hero-b .hb-text { padding: 20px 0 20px 34px; }
  .hb-logo { max-height: 32px; }
  .hb-word { font-size: 26px; }
  .hb-rule { margin: 8px 0 10px; }
  .hero-b h2 { font-size: 32px; margin-bottom: 6px; }
  .hero-b p { margin-bottom: 12px; line-height: 1.4; }
  .hb-feats { margin-bottom: 12px; }
  .hb-f svg { width: 22px; height: 22px; }
  .pill-btn.lg { height: 46px; }
  .p-main .card { margin-bottom: 14px; }
  .rel-card { padding-top: 16px !important; padding-bottom: 16px !important; }
  .rel-card .section-h { margin-bottom: 10px; }
  .rel-grid { gap: 14px; }
  .rel-tile { padding: 10px; gap: 6px; }
  .rel-img .pimg { height: 104px; }
  .rel-tile h4 { min-height: 0; }
  .p-main .coach { margin-bottom: 8px; padding: 6px 12px; }
  .mcard.v2 { margin-bottom: 14px; }
  .mcard.v2 .mc-head { padding: 10px 20px; }
  .mcard.v2 .mc-body { padding: 16px 20px; }
  .mcard.v2 .mc-tile .mc-pimg { min-height: 130px; max-height: 170px; }
  .mc-meta { margin: 10px 0 12px; }

  /* modals */
  .overlay { padding: 20px; }
  .modal { max-height: calc(100dvh - 40px); }
  .modal .mh { padding: 18px 26px 4px; }
  .modal .mh h3 { font-size: 24px; }
  .modal .mb { padding: 10px 26px 6px; }
  .modal .mf { padding: 12px 26px 18px; }
  .opt-list { gap: 8px; }
  .opt { padding: 12px 18px; }
  .skip-cancel { margin-top: 10px; }
  .pick img, .pick .pimg, .pick-img .pimg, .pick-img img { height: 118px; }
  .gift img, .gift .pimg { width: 110px; height: 110px; }
  .success { padding-top: 8px; }
  .success .big-check { width: 76px; height: 76px; margin-bottom: 12px; }
  /* track modal: details in one row, timeline in two columns (wide modal has the room) */
  .track-hero { padding: 12px 16px 10px; margin-bottom: 12px; }
  .track-status { margin-bottom: 4px; }
  .tm-svg { height: 84px; }
  .track-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 20px; margin: 0 0 12px; padding: 10px 16px; }
  .track-kv div { flex-direction: column; gap: 2px; padding: 0; }
  .modal .run-steps { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 4px 0; }
  .run-step .ic { width: 30px; height: 30px; }
  /* lead pop-up */
  .lead-modal { padding: 24px 28px 16px; }
  .lead-mark { width: 44px; height: 44px; margin-bottom: 10px; }
  .lead-modal h2 { font-size: 28px; }
  .lead-sub { margin-bottom: 16px; }
  .lead-form .field { margin-bottom: 10px; }
  .lead-form input { padding: 12px 14px; }
  .lead-cta { height: 54px; }
  .lead-later { margin-top: 4px; padding: 8px; }
  .lead-fine { margin-top: 4px; }
  /* offer pop-up */
  .offer-ov { padding: 20px; }
  .offer-modal, .offer-modal .om-right { max-height: calc(100dvh - 40px); }
  .om-left { min-height: 0; }
  .om-right { padding: 28px 32px 20px; }
  .om-logo, .om-badge { margin-bottom: 10px; }
  .om-body { margin-bottom: 12px; }
  .om-urg { margin: 6px 0 10px; }
  .om-qty, .om-freq { margin-bottom: 10px; }
  .om-no { margin: 8px auto 10px; }
  /* drawers */
  .co-head { padding: 14px 20px; }
  .co-foot { padding: 12px 20px 16px; }
}

@media (min-width: 961px) and (max-height: 780px) {
  .shell-top { padding: 10px 44px; }
  .start-screen .start-title { font-size: clamp(40px, 6.6dvh, 50px); margin: 6px 0 10px; }
  .start-screen .start-sub { margin-bottom: 18px; }
  .start-screen .how { margin-top: 22px; }
  .how-card { padding: 16px 20px; }
  .how-card .n { width: 46px; height: 46px; }
  .url-card { padding: 10px; }
  .url-card .globe { width: 54px; height: 54px; }
  .url-card input { font-size: 26px; padding: 10px 4px; }
  .big-btn { height: 62px; font-size: 21px; }
  .url-error { margin-top: 8px; min-height: 20px; }
  /* processing */
  .proc h1 { font-size: 36px; }
  .proc .lead { margin-bottom: 12px; font-size: 18px; }
  .steps { gap: 6px; }
  .step { padding: 8px 18px; font-size: 18px; }
  .step .ic { width: 32px; height: 32px; }
  .found { padding: 16px 26px; }
  .found-row { min-height: 60px; padding: 7px 0; }
  .swatch { width: 40px; height: 40px; border-radius: 12px; }
  .pthumb { width: 52px; height: 52px; }
  .found-logo { max-height: 42px; }
  /* theme */
  .page-title { font-size: 36px; margin: 4px 0 4px; }
  .page-sub { font-size: 18px; margin-bottom: 10px; }
  .found-summary { margin-bottom: 8px; }
  .found-summary span { padding: 6px 14px; }
  .select-cta { margin: 0 0 8px; }
  .mini-wrap { height: clamp(150px, calc(100dvh - 486px), 300px); }
  .theme-card .tc-head { margin-top: 8px; }
  .theme-card h3 { font-size: 23px; }
  .bottom-bar { margin-top: 12px; }
  .theme-bottom .big-btn { height: 54px; font-size: 19px; }
  .theme-bottom .ghost-btn { padding: 8px 18px; }
  /* setup */
  .q-count { margin-top: 4px; }
  .q-progress { margin-top: 10px; }
  .q-title { font-size: 42px; margin: 8px 0 6px; }
  .q-help { margin-bottom: 20px; font-size: 19px; }
  .q-opt { padding: 22px 24px; }
  .q-opt .qi { width: 54px; height: 54px; border-radius: 16px; }
  .q-opt h3 { font-size: 30px; }
  /* moment picker */
  .page-sub + .select-cta { margin-bottom: 8px; }
  .moments { gap: 14px; }
  .moment { padding: 16px 20px; gap: 6px; border-radius: 22px; }
  .moment .mi { width: 44px; height: 44px; border-radius: 12px; }
  .moment .mi svg { width: 24px; height: 24px; }
  .moment h3 { font-size: 22px; }
  .moment p { line-height: 1.35; }
  .moment .goal { padding: 5px 11px; }
  /* portal */
  .p-header { height: 56px; }
  .p-header img.logo, .p-header .ph-center img.logo { height: 36px; }
  .p-header .wordmark { font-size: 27px; }
  .p-body, .p-body.layout-left { padding-top: 14px; }
  .nav-block { padding: 8px 14px; margin-bottom: 6px; }
  .p-side h2 { font-size: 22px; margin-bottom: 10px; }
  .support-card { padding: 12px; }
  .hero-b { margin-bottom: 12px; }
  .hero-b .hb-text { padding: 18px 0 18px 32px; }
  .hb-logo { max-height: 30px; }
  .hb-word { font-size: 25px; }
  .hb-rule { margin: 8px 0 10px; }
  .hero-b h2 { font-size: 31px; margin-bottom: 6px; }
  .hero-b p { margin-bottom: 10px; font-size: 16px; line-height: 1.4; }
  .hb-feats { margin-bottom: 10px; }
  .hb-f { gap: 4px; }
  .hb-f svg { width: 20px; height: 20px; }
  .pill-btn.lg { height: 44px; }
  .p-main .card { margin-bottom: 12px; }
  .rel-card { padding-top: 14px !important; padding-bottom: 14px !important; }
  .rel-card .section-h { margin-bottom: 8px; }
  .rel-card .section-h p { margin-top: 2px; }
  .rel-img .pimg { height: 104px; }
  .rel-tile { gap: 5px; }
  .mcard.v2 .mc-body { padding: 14px 18px; gap: 18px; }
  .mcard.v2 .mc-tile .mc-pimg { min-height: 120px; max-height: 150px; }
  .mc-meta { margin: 8px 0 10px; }
  .mbtn { height: 42px; }
  /* modals */
  .overlay { padding: 14px; }
  .modal { max-height: calc(100dvh - 28px); }
  .modal .mh { padding: 14px 24px 2px; }
  .modal .mb { padding: 8px 24px 4px; }
  .modal .mf { padding: 10px 24px 14px; }
  .modal .mf .btn { height: 46px; }
  .modal .mf .btn.lg { height: 50px; }
  .opt { padding: 10px 16px; }
  .opt-list { gap: 7px; }
  .pick { padding: 10px; gap: 6px; }
  .pick img, .pick .pimg, .pick-img .pimg, .pick-img img { height: 100px; }
  .pick-grid { gap: 12px; }
  .tm-svg { height: 70px; }
  .track-hero { padding: 10px 14px 8px; }
  .lead-overlay { padding: 12px; }
  .lead-modal { padding: 18px 26px 12px; max-height: calc(100dvh - 24px); }
  .lead-mark { width: 38px; height: 38px; margin: 0 auto 8px; border-radius: 12px; }
  .lead-mark svg { width: 22px; height: 22px; }
  .lead-modal h2 { font-size: 26px; margin-bottom: 6px; }
  .lead-sub { font-size: 17px; margin-bottom: 12px; line-height: 1.4; }
  .lead-form .field { margin-bottom: 8px; }
  .lead-form label { margin-bottom: 4px; }
  .lead-form input { padding: 10px 14px; }
  .lead-cta { height: 52px; margin-top: 4px; }
  .offer-ov { padding: 14px; }
  .offer-modal, .offer-modal .om-right { max-height: calc(100dvh - 28px); }
  .om-right { padding: 22px 30px 16px; }
  .om-logo { margin-bottom: 8px; }
  .om-logo-img, .om-logo .logo { max-height: 30px; }
  .om-badge { margin-bottom: 8px; }
  .om-h { font-size: 26px; margin-bottom: 6px; }
  .om-off { font-size: 38px; }
  .om-cta { min-height: 50px; }
  .om-trust { padding: 10px; }
  .om-pay-form .field { margin-bottom: 8px; }
  .om-pay-form .field input { height: 46px; }
}

/* very short laptop windows (e.g. 1366x768 screen minus browser toolbars, ~650px) */
@media (min-width: 961px) and (max-height: 680px) {
  .shell-top { padding: 8px 40px; }
  .start-screen .start-title { font-size: 40px; margin: 2px 0 8px; }
  .start-screen .start-sub { margin-bottom: 14px; font-size: 19px; }
  .start-screen .how { margin-top: 16px; }
  .how-card { padding: 14px 18px; gap: 14px; }
  .how-card h4 { font-size: 19px; }
  .how-card p { font-size: 16px; }
  .big-btn { height: 58px; }
  .url-card input { font-size: 24px; }
  .proc h1 { font-size: 32px; }
  .step { padding: 6px 16px; font-size: 17px; }
  .step .ic { width: 30px; height: 30px; }
  .found-row { min-height: 52px; padding: 5px 0; }
  .pthumb { width: 46px; height: 46px; }
  .swatch { width: 36px; height: 36px; }
  .page-title { font-size: 32px; }
  .page-sub { font-size: 17px; margin-bottom: 8px; }
  .mini-wrap { height: clamp(140px, calc(100dvh - 450px), 300px); }
  .theme-card p { font-size: 15px; }
  .theme-bottom .big-btn { height: 50px; }
  .q-title { font-size: 38px; }
  .q-help { margin-bottom: 16px; font-size: 18px; }
  .q-opt { padding: 18px 22px; gap: 8px; }
  .q-opt h3 { font-size: 28px; }
  .q-opt p { font-size: 16.5px; }
  .moment { padding: 14px 18px; }
  .moment .mi { width: 40px; height: 40px; }
  .moment h3 { font-size: 21px; }
  .moment p { font-size: 15px; }
  .hero-b h2 { font-size: 28px; }
  .rel-img .pimg { height: 92px; }
  .tm-svg { height: 60px; }
  .track-status b { font-size: 18px; }
  .om-urg { display: none; }
  .om-body { margin-bottom: 8px; }
  .om-no { margin: 4px auto 6px; min-height: 36px; }
}
