/* mantisvis.io/app: the brand area (log in, results, widget, install, billing, account) and, in admin/, the Mantis-only area.
   Owned by the brand-panel session. Uses the site's tokens.css (fonts, colours, glass); the nav copies the site's look.
   Rule (Tiago, 9 Nov): every screen fits one 16:9 frame under the nav, with no page scroll (check 1280x720, 1440x810, 1920x1080). */

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { background: #0B0B0B; color-scheme: dark; }
body {
  margin: 0; overflow: hidden; color: rgba(255,255,255,.92);
  font: 400 13px/1.55 var(--font-mono); letter-spacing: .01em; -webkit-font-smoothing: antialiased;
}
:root {
  --nav: 60px;
  --gutter: clamp(16px, 2.6vw, 44px);
  --white: rgba(255,255,255,.94);
  --white-2: rgba(255,255,255,.72);
  --white-3: rgba(255,255,255,.46);
  --line: rgba(255,255,255,.12);
  --line-2: rgba(255,255,255,.2);
  --card: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.03));
  --card-strong: linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  --series-a: #45A6FF;           /* shoppers who used mantis */
  --series-b: rgba(255,255,255,.34); /* everyone else */
  --ok: #6FD3A2; --warn: #E8B05C; --stop: #F07A6E;
  --pad: clamp(14px, 1.4vw, 22px);
  --gap: clamp(10px, 1vw, 16px);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the calm dark cloth: a woven texture drawn in SVG (no photo, so no image is used twice on the site) ---------- */
.cloth {
  position: fixed; inset: 0; z-index: -2; background-color: #121212;
  background-image:
    radial-gradient(120% 90% at 15% 0%, rgba(69,166,255,.07), transparent 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(0,0,0,.65), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='.012 .9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/></filter><filter id='h'><feTurbulence type='fractalNoise' baseFrequency='.9 .014' numOctaves='2' seed='9'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .22 0'/></filter><rect width='240' height='240' filter='url(%23w)'/><rect width='240' height='240' filter='url(%23h)'/></svg>"),
    linear-gradient(160deg, #1A1A19 0%, #121212 45%, #0C0C0C 100%);
  background-size: auto, auto, 240px 240px, auto;
}
.cloth::after { /* a slow fold of light, as if the cloth lay on a table */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.035) 46%, transparent 62%);
}
.grain { position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06; background-image: var(--grain); background-size: 220px; mix-blend-mode: overlay; }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: 400; color: var(--white); font-size: clamp(30px, 3.4vw, 54px); line-height: 1.02; letter-spacing: -.03em; }
.title { font-family: var(--font-display); font-weight: 400; color: var(--white); font-size: clamp(20px, 1.7vw, 28px); line-height: 1.1; letter-spacing: -.02em; }
.h3 { font-family: var(--font-display); font-weight: 300; color: var(--white); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.2; letter-spacing: -.01em; }
.num { font-family: var(--font-display); font-weight: 300; color: var(--white); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.label { font-size: 11px; letter-spacing: .05em; color: var(--white-2); }
.muted { color: var(--white-2); } .faint { color: var(--white-3); }
.small { font-size: 11.5px; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10px; letter-spacing: .04em; border: 1px dashed rgba(255,255,255,.3); color: var(--white-2); white-space: nowrap; }
.tag.sample { border-color: rgba(232,176,92,.55); color: #EBC38A; }

/* ---------- buttons, fields, switches (the site's pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 18px;
  border-radius: var(--pill); border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.05);
  font-size: 12px; letter-spacing: .04em; color: var(--white); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn.sm { min-height: 30px; padding: 4px 12px; font-size: 11px; }
.btn.danger { border-color: rgba(240,122,110,.5); color: #F6A49B; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--white-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); font-size: 11.5px; }
.link:hover { color: var(--white); }
.link.quiet { color: var(--white-3); text-decoration-color: rgba(255,255,255,.14); font-size: 11px; }
.field { display: grid; gap: 5px; }
.field label, .field .label { font-size: 11px; color: var(--white-2); }
.input {
  width: 100%; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(0,0,0,.28); color: var(--white); transition: border-color var(--t) var(--ease);
}
.input:focus { border-color: rgba(255,255,255,.5); outline: none; }
textarea.input { padding: 10px 14px; min-height: 64px; resize: none; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.6) 50%), linear-gradient(135deg, rgba(255,255,255,.6) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.switch { position: relative; width: 42px; height: 24px; flex: none; border-radius: 999px; border: 0; cursor: pointer; background: rgba(255,255,255,.18); transition: background var(--t) var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--t) var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.seg button { min-height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--white-2); font-size: 11px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: rgba(255,255,255,.92); color: var(--ink); }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(0,0,0,.25); }
.stepper button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; color: var(--white-2); font-size: 15px; }
.stepper input { width: 48px; height: 32px; border: 0; background: none; text-align: center; color: var(--white); font: 300 18px var(--font-display); }
.stepper input:focus { outline: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; background: rgba(255,255,255,.07); border: 1px solid var(--line); white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--white-3); }
.chip.live::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(111,211,162,.18); }
.chip.warn { color: #EBC38A; } .chip.warn::before { background: var(--warn); }
.chip.stop { color: #F6A49B; } .chip.stop::before { background: var(--stop); }
.chip.plain::before { display: none; }

/* ---------- cards ---------- */
.card {
  position: relative; min-width: 0; min-height: 0; padding: var(--pad); border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(130%); backdrop-filter: blur(18px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 40px rgba(0,0,0,.25);
}
.card.strong { background: var(--card-strong); border-color: var(--line-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-head .h3 { display: flex; align-items: center; gap: 8px; }
.meter { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 999px; background: var(--white); transition: width var(--t-slow) var(--ease); }
.meter.accent > i { background: var(--accent); }
.divider { height: 1px; background: var(--line); margin: 10px 0; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 400; font-size: 10.5px; letter-spacing: .05em; color: var(--white-3); padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
td { padding: 9px 8px; border-bottom: 1px solid var(--line); font-size: 12px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.r { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- the app frame: nav + one 16:9 screen ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav);
  display: flex; align-items: center; gap: 18px; padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(8,8,8,.78), rgba(8,8,8,.42));
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid var(--line);
}
.nav .brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.nav .brand img { width: 30px; height: auto; filter: invert(1); opacity: .94; }
.nav .brand span { font-size: 11px; letter-spacing: .06em; color: var(--white-2); }
.nav-links { display: flex; gap: 2px; margin-left: 14px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 12px; letter-spacing: .04em; color: var(--white-2); text-decoration: none; transition: color var(--t) var(--ease), background var(--t) var(--ease); }
.nav-links a:hover { color: var(--white); }
.nav-links a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.09); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who { position: relative; }
.who > button { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); cursor: pointer; font-size: 12px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #E7E2D8; color: var(--ink); font-size: 11px; font-weight: 700; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; border-radius: 14px; background: rgba(20,20,20,.92); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.menu a, .menu button { display: flex; width: 100%; padding: 9px 12px; border-radius: 9px; border: 0; background: none; text-align: left; text-decoration: none; font-size: 12px; color: var(--white-2); cursor: pointer; }
.menu a:hover, .menu button:hover { background: rgba(255,255,255,.07); color: var(--white); }
.menu .sep { height: 1px; margin: 5px 6px; background: var(--line); }

.screen {
  position: fixed; top: var(--nav); left: 0; right: 0; bottom: 0;
  padding: clamp(14px, 2.2vh, 26px) var(--gutter) clamp(14px, 2.4vh, 28px);
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(10px, 1.8vh, 18px);
}
.screen-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.screen-head p { margin-top: 4px; }
.screen-body { min-height: 0; display: grid; gap: var(--gap); }

/* ---------- entry: hero slider + glass frame ---------- */
.entry { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 440px); }
.entry .hero { position: absolute; inset: 0; overflow: hidden; }
.entry .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1200ms var(--ease); }
.entry .slide.on { opacity: 1; }
.entry .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform: scaleX(-1); }
.entry .slide .you { clip-path: inset(0 0 0 100%); transition: clip-path 1400ms var(--ease); }
.entry .slide.flip .you { clip-path: inset(0 0 0 0); }
.entry .seam { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.7); left: 100%; transition: left 1400ms var(--ease), opacity 400ms; opacity: 0; }
.entry .slide.flip .seam { left: 0%; opacity: 1; }
.entry .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,.15) 0%, rgba(8,8,8,.05) 35%, rgba(8,8,8,.55) 68%, rgba(8,8,8,.82) 100%), linear-gradient(0deg, rgba(8,8,8,.75) 0%, transparent 38%); }
.entry .copy { position: absolute; left: var(--gutter); bottom: clamp(28px, 6vh, 64px); z-index: 2; max-width: 520px; display: grid; gap: 14px; }
.entry .pairs { display: flex; gap: 6px; align-items: center; }
.entry .pairs button { width: 28px; height: 3px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,255,255,.3); cursor: pointer; }
.entry .pairs button[aria-current="true"] { background: var(--white); }
.entry .who-tag { display: inline-flex; gap: 8px; font-size: 11px; letter-spacing: .05em; color: var(--white-2); }
.entry .who-tag b { font-weight: 400; color: var(--white); transition: opacity 600ms; }
.entry .top { position: absolute; left: var(--gutter); top: 18px; z-index: 3; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.entry .top img { width: 34px; filter: invert(1); opacity: .94; }
.entry .top span { font-size: 11px; letter-spacing: .06em; color: var(--white-2); }
.frame-wrap { grid-column: 2; position: relative; z-index: 3; display: grid; align-items: center; padding: var(--nav) var(--gutter) 24px 0; }
.frame {
  display: grid; gap: 14px; padding: clamp(20px, 2.2vw, 30px); border-radius: 22px;
  background: linear-gradient(150deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 30px 80px rgba(0,0,0,.45);
}
.frame .google { background: #fff; color: #1f1f1f; border-color: #fff; font-family: system-ui, sans-serif; letter-spacing: 0; font-size: 13px; }
.frame .google:hover { background: #eee; }
.frame .or { display: flex; align-items: center; gap: 10px; font-size: 10.5px; color: var(--white-3); }
.frame .or::before, .frame .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.frame form { display: grid; gap: 10px; }
.frame .fine { font-size: 10.5px; color: var(--white-3); }

/* ---------- start: plan pick (after register) ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.plan { display: grid; align-content: start; gap: 8px; padding: var(--pad); border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); cursor: pointer; text-align: left; transition: border-color var(--t) var(--ease), background var(--t) var(--ease); }
.plan:hover { border-color: var(--line-2); }
.plan[aria-pressed="true"] { border-color: var(--accent); background: linear-gradient(160deg, rgba(69,166,255,.16), rgba(69,166,255,.04)); }
.plan .num { font-size: clamp(26px, 2.4vw, 38px); }
.plan .looks { font-size: 12px; color: var(--white); }

/* ---------- results (brand dashboard) ---------- */
.dash { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, .9fr) minmax(0, 1.5fr); }
.kpi { grid-column: span 3; display: grid; grid-template-rows: auto auto 1fr; gap: 4px; overflow: hidden; }
.kpi .num { font-size: clamp(28px, 2.7vw, 44px); margin-top: 2px; }
.kpi .num small { font-size: .42em; color: var(--white-2); letter-spacing: 0; margin-left: 4px; }
.kpi .delta { font-size: 11px; color: var(--ok); }
.kpi .delta.down { color: var(--stop); }
.kpi svg { width: 100%; height: 100%; min-height: 24px; align-self: end; }
.kpi .pair { display: flex; gap: 18px; align-items: baseline; }
.kpi .pair .num { font-size: clamp(26px, 2.4vw, 40px); }
.conv { grid-column: span 3; grid-row: 1 / 3; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: clamp(8px, 1.4vh, 14px); background: linear-gradient(165deg, rgba(69,166,255,.2), rgba(69,166,255,.05) 55%, rgba(255,255,255,.03)); border-color: rgba(69,166,255,.35); }
.conv .x { font-size: clamp(56px, 6vw, 104px); color: var(--white); }
.conv .x span { font-size: .38em; color: var(--white-2); }
.conv .bars { display: grid; align-content: end; gap: 12px; }
.bar-row { display: grid; gap: 5px; }
.bar-row .top { display: flex; justify-content: space-between; font-size: 11px; color: var(--white-2); }
.bar-row .top b { font-weight: 400; color: var(--white); font-variant-numeric: tabular-nums; }
.bar-row .track { height: 10px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: 4px; background: var(--series-b); transform-origin: left; animation: grow 900ms var(--ease) both; }
.bar-row.a .track i { background: var(--series-a); }
@keyframes grow { from { transform: scaleX(0); } }
.main-chart { grid-column: span 6; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.side-chart { grid-column: span 3; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.legend { display: flex; gap: 14px; font-size: 11px; color: var(--white-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart { position: relative; min-height: 0; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: rgba(255,255,255,.07); }
.chart .axis text { fill: var(--white-3); font: 10px var(--font-mono); }
.chart .hair { stroke: rgba(255,255,255,.4); stroke-dasharray: 2 3; }
.tip { position: fixed; z-index: 120; pointer-events: none; min-width: 170px; padding: 10px 12px; border-radius: 12px; background: rgba(16,16,16,.94); border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(0,0,0,.5); font-size: 11.5px; }
.tip .t { color: var(--white-2); margin-bottom: 6px; font-size: 10.5px; }
.tip .row { display: flex; justify-content: space-between; gap: 16px; }
.tip .row i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.funnel { display: grid; align-content: space-between; gap: 6px; height: 100%; }
.funnel .step { display: grid; gap: 4px; }
.funnel .step .top { display: flex; justify-content: space-between; font-size: 11px; color: var(--white-2); }
.funnel .step .top b { color: var(--white); font-weight: 400; font-variant-numeric: tabular-nums; }
.funnel .step .track { height: 8px; border-radius: 3px; background: rgba(255,255,255,.06); }
.funnel .step .track i { display: block; height: 100%; border-radius: 3px; background: var(--series-a); opacity: .9; transform-origin: left; animation: grow 900ms var(--ease) both; }
.sample-note { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- widget settings ---------- */
.wset { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.wset .left { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto minmax(0, 1fr); gap: var(--gap); min-height: 0; }
.set { display: grid; align-content: start; gap: 8px; }
.set .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.set p { font-size: 11.5px; color: var(--white-2); }
.set.wide { grid-column: 1 / -1; }
.maths { font-size: 11px; color: var(--white-2); padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.25); }
.maths b { color: var(--white); font-weight: 400; }
.preview { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; min-height: 0; }
.device { position: relative; min-height: 0; border-radius: 14px; overflow: hidden; background: #FBF8F3; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 24px 60px rgba(0,0,0,.5); justify-self: center; width: 100%; transition: width var(--t) var(--ease); }
.device.phone { width: min(44%, 300px); border-radius: 26px; border: 7px solid #1b1b1b; }
.device .bar { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #EFEFEF; font: 10px system-ui, sans-serif; color: #777; }
.device .bar i { width: 7px; height: 7px; border-radius: 50%; background: #d4d4d4; }
.device .bar .url { flex: 1; margin-left: 8px; padding: 2px 8px; background: #fff; border-radius: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.device.phone .bar i { display: none; } .device.phone .bar .url { margin: 0; text-align: center; }
.store { position: absolute; inset: 26px 0 0; overflow: hidden; color: #1f1d1a; font-family: Georgia, 'Times New Roman', serif; letter-spacing: 0; }
.store .snav { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 10px; border-bottom: 1px solid #eee5d8; }
.store .snav b { font-weight: 400; letter-spacing: .14em; font-size: 13px; }
.store .pp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; padding: 12px 14px; height: calc(100% - 38px); }
.device.phone .store .pp { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
.store .ph { position: relative; overflow: hidden; border-radius: 3px; background: #eee; min-height: 0; }
.store .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: opacity 700ms var(--ease); }
.store .ph img.me { opacity: 0; }
.store.me .ph img.me { opacity: 1; }
.store .ph .shim { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%); background-size: 250% 100%; animation: shim 1.2s linear infinite; opacity: 0; }
.store.busy .ph .shim { opacity: 1; }
@keyframes shim { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.store .info { display: grid; align-content: start; gap: 6px; font-size: 11px; }
.store .info h4 { margin: 0; font-weight: 400; font-size: 17px; }
.store .atc { padding: 9px; background: #1f1d1a; color: #FBF8F3; text-align: center; font: 9.5px system-ui; letter-spacing: .14em; text-transform: uppercase; }
.device.phone .store .info .sizes { display: none; }
.store .cat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px 14px; height: calc(100% - 38px); }
.device.phone .store .cat { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.store .cat .cell { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 5px; min-height: 0; font: 10px system-ui; }
.store .ph.blank { background: linear-gradient(160deg, #EDE6DA, #DDD3C4); }
.mw { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; padding: 9px 18px; border: 0; background: #1f1d1a; color: #FBF8F3; font: 9.5px system-ui; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; white-space: nowrap; }
.mw-sw { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; display: flex; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.2); font: 9.5px system-ui; letter-spacing: .1em; text-transform: uppercase; }
.mw-sw button { border: 0; padding: 8px 12px; background: none; cursor: pointer; color: #1f1d1a; }
.mw-sw button[aria-pressed="true"] { background: #1f1d1a; color: #FBF8F3; }
.mw-pop { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(20,18,15,.35); }
.mw-pop .in { width: min(280px, 86%); padding: 14px; background: #FBF8F3; color: #1f1d1a; font: 11px/1.45 system-ui; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.mw-pop h5 { margin: 0 0 4px; font: 400 15px Georgia, serif; }
.mw-pop .x { float: right; border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; }
.mw-pop .go { width: 100%; margin-top: 10px; padding: 9px; border: 0; background: #1f1d1a; color: #FBF8F3; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.mw-pop .two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.mw-pop .two span { aspect-ratio: 3/4; background: #e9e1d4; display: grid; place-items: center; color: #8a8174; font-size: 10px; }
.mw-badge { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #e8dfd2; font: 9px var(--font-mono); color: #6d655a; }
.mw-badge img { width: 16px; }
.ribbon { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 6; padding: 8px 12px; border-radius: 10px; background: rgba(17,17,17,.86); color: #F3F3F1; font: 11px var(--font-mono); text-align: center; }

/* ---------- install ---------- */
.inst { grid-template-rows: auto auto minmax(0, 1fr); }
.keybox { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line-2); }
.keybox code { flex: 1; font: 13px var(--font-mono); color: var(--white); overflow: hidden; text-overflow: ellipsis; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--white-2); cursor: pointer; font-size: 12px; }
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); min-height: 0; }
.istep { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); gap: 8px; }
.istep .n { font-family: var(--font-display); font-weight: 300; font-size: 30px; line-height: 1; color: var(--white-3); }
.istep p { font-size: 11.5px; color: var(--white-2); }
.istep p b { color: var(--white); font-weight: 400; }
.path { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 11px; color: var(--white-3); }
.path b { font-weight: 400; color: var(--white); padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.mock { align-self: end; padding: 10px; border-radius: 10px; background: #fff; color: #333; font: 11px system-ui, sans-serif; letter-spacing: 0; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.mock .mt { font-weight: 600; margin-bottom: 6px; }
.mock .mrow { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-radius: 6px; }
.mock .hl { outline: 2px solid var(--accent); background: #F0F7FF; }
.mock .mb { display: inline-block; padding: 5px 10px; border-radius: 6px; background: #333; color: #fff; }
.mock .mb.hl { outline-offset: 2px; background: #333; }
.mock code { display: block; padding: 6px; border-radius: 6px; background: #f3f3f3; font: 9.5px var(--font-mono); word-break: break-all; }
.mock .msw { width: 24px; height: 14px; border-radius: 8px; background: #333; position: relative; }
.mock .msw::after { content: ""; position: absolute; right: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }

/* ---------- billing ---------- */
.bill { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-rows: minmax(0, 1fr) auto; }
.bill .plan-now { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto auto; gap: 12px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 12px; }
.kv dt { color: var(--white-3); } .kv dd { margin: 0; }
.bill .foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }

/* ---------- account (team + store) ---------- */
.acct { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.acct .col { display: grid; gap: var(--gap); grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }

/* ---------- modal (the cancel flow, small confirms) ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal { width: min(560px, 100%); max-height: calc(100svh - 40px); overflow: auto; display: grid; gap: 14px; padding: clamp(20px, 2vw, 28px); border-radius: 20px; background: linear-gradient(160deg, rgba(40,40,40,.97), rgba(20,20,20,.97)); border: 1px solid var(--line-2); box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.dots { display: flex; gap: 6px; }
.dots i { width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); }
.dots i.on { background: var(--white); }
.reasons { display: grid; gap: 8px; }
.reason { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; }
.reason:has(input:checked) { border-color: var(--white); background: rgba(255,255,255,.08); }
.reason input { accent-color: var(--accent); }
.offer { display: grid; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid rgba(69,166,255,.4); background: rgba(69,166,255,.08); }
.tips { display: grid; gap: 6px; font-size: 12px; color: var(--white-2); }
.tips li::before { content: "→ "; color: var(--white-3); }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 130; transform: translate(-50%, 16px); opacity: 0; padding: 10px 18px; border-radius: 999px; background: rgba(240,240,238,.95); color: var(--ink); font-size: 12px; pointer-events: none; transition: all var(--t) var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.sample-banner { position: fixed; right: var(--gutter); bottom: 10px; z-index: 40; }

/* the menu button is for phones only; this rule must come BEFORE the small-screens block (eval BP-02, 19 Nov) */
.nav .menu-btn { display: none; }
/* ---------- small screens: the 16:9 rule is for computers; phones scroll ---------- */
@media (max-width: 900px), (max-height: 520px) {
  body { overflow: auto; overflow-x: hidden; }
  .screen-head { flex-wrap: wrap; align-items: flex-start; }
  .screen-head > * { min-width: 0; max-width: 100%; flex-wrap: wrap; }
  .seg { flex-wrap: wrap; border-radius: 16px; }
  .keybox { flex-wrap: wrap; }
  .keybox code { flex-basis: 100%; }
  .nav .right .chip { display: none; }
  .bill .foot { flex-wrap: wrap; gap: 10px; }
  td, th { padding-inline: 4px; }
  .tag { white-space: normal; height: auto; padding: 3px 8px; }
  .screen { position: static; padding-top: calc(var(--nav) + 16px); }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: fixed; top: var(--nav); left: 0; right: 0; flex-direction: column; padding: 10px var(--gutter); background: rgba(8,8,8,.95); margin: 0; }
  .nav .menu-btn { display: inline-flex; }
  .dash, .wset, .wset .left, .bill, .acct, .steps4, .plans { grid-template-columns: 1fr !important; grid-template-rows: none !important; }
  .dash > *, .kpi, .conv, .main-chart, .side-chart { grid-column: auto !important; grid-row: auto !important; }
  .main-chart, .side-chart { min-height: 260px; }
  .device { height: 420px; }
  .entry { position: static; display: block; min-height: 100svh; }
  .entry .hero { position: fixed; }
  .frame-wrap { padding: 90px 16px 40px; min-height: 100svh; align-items: end; }
  .entry .copy { position: relative; left: 0; bottom: 0; padding: 0 16px 20px; }
}
.nav.onboarding .nav-links, .nav.onboarding .menu-btn, .nav.onboarding #liveChip { display: none; }
.istep .tag, .istep .btn { justify-self: start; }
.dist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-self: end; }
.dist div { display: grid; gap: 4px; font-size: 10.5px; color: var(--white-3); }
.dist .col { height: 44px; display: flex; align-items: flex-end; border-radius: 4px; background: rgba(255,255,255,.05); overflow: hidden; }
.dist .col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--series-a); opacity: .85; transform-origin: bottom; animation: rise 800ms var(--ease) both; }
@keyframes rise { from { transform: scaleY(0); } }
.months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; min-height: 0; }
.months div { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 4px; height: 100%; font-size: 10.5px; color: var(--white-3); text-align: center; }
.months .col { display: flex; align-items: flex-end; min-height: 0; }
.months .col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: rgba(255,255,255,.28); transform-origin: bottom; animation: rise 800ms var(--ease) both; }
.months div:last-child .col i { background: var(--series-a); }
.plan .size { margin-top: auto; display: grid; gap: 5px; }
.plan .size .meter { height: 8px; }
.plan { grid-template-rows: auto auto auto auto auto auto 1fr; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; } }
