/* ——— Scanalytics landing page ——— */

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --text: #0f0f14;
  --text-muted: #6e6e78;
  --border: #e5e5ea;

  /* brand prism */
  --brand-green:  #0acf83;
  --brand-orange: #f24e1e;
  --brand-purple: #a259ff;
  --brand-red:    #ff7262;
  --brand-blue:   #1abcfe;

  --accent: var(--brand-purple);

  /* tinted section backgrounds = 10% brand hues */
  --tint-green:  #e6faf2;
  --tint-orange: #feede8;
  --tint-purple: #f2e6ff;
  --tint-red:    #ffe9e5;
  --tint-blue:   #e4f7fe;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 8px 24px rgba(15, 15, 20, 0.08);
  --shadow-soft: 0 2px 8px rgba(15, 15, 20, 0.04);
  --shadow-lift: 0 20px 60px rgba(15, 15, 20, 0.12);

  --font-head: "Bricolage Grotesque", "Whyte Inktrap", "PP Editorial New", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Söhne Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ——— type scale ——— */
.display {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h-xl { font-size: 88px; }
.h-lg { font-size: 64px; }
.h-md { font-size: 44px; }
.h-sm { font-size: 32px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}
.lead {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 56ch;
}
.kicker { font-size: 15px; color: var(--text-muted); }

/* ——— buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { filter: brightness(0.92); }
.btn-secondary {
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-secondary:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.btn-ghost {
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-alt); }
.btn-lg {
  padding: 16px 26px;
  font-size: 16px;
}
.btn svg { width: 16px; height: 16px; }

/* ——— nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ——— wordmark ——— */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.wordmark-dot {
  width: 28px; height: 28px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  background: #0f0f14;
}
.wordmark-dot span {
  border-radius: 2px;
  display: block;
}
.wordmark-dot span:nth-child(1) { background: var(--brand-green); }
.wordmark-dot span:nth-child(2) { background: var(--brand-orange); }
.wordmark-dot span:nth-child(3) { background: var(--brand-blue); }
.wordmark-dot span:nth-child(4) { background: var(--brand-purple); border-radius: 2px 2px 2px 6px; }

/* ——— sections ——— */
section {
  padding: 120px 0;
  position: relative;
}
section.tight { padding: 96px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 56px;
}
.section-head .lead { margin-top: 16px; }

/* tinted backgrounds */
.tint-purple { background: var(--tint-purple); }
.tint-green  { background: var(--tint-green); }
.tint-orange { background: var(--tint-orange); }
.tint-blue   { background: var(--tint-blue); }
.tint-red    { background: var(--tint-red); }

/* ——— hero ——— */
.hero {
  --accent: var(--brand-purple);
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero h1 {
  margin-top: 24px;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-purple);
  position: relative;
  display: inline-block;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: 4px;
  height: 12px;
  background: var(--tint-purple);
  z-index: -1;
  border-radius: 999px;
}
.hero-ctas {
  display: flex; gap: 12px;
  margin-top: 32px;
}
.hero-proof {
  margin-top: 40px;
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat-lbl {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* hero illustration */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.hero-blob {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, var(--tint-purple) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, var(--tint-orange) 0%, transparent 60%);
  filter: blur(0);
}
.hero-shape {
  position: absolute;
  border-radius: 999px;
}
.hero-shape.s1 {
  width: 120px; height: 120px;
  background: var(--brand-green);
  top: 8%; right: 6%;
  animation: bobble 6s ease-in-out infinite;
}
.hero-shape.s2 {
  width: 72px; height: 72px;
  background: var(--brand-orange);
  bottom: 10%; left: 4%;
  border-radius: 18px;
  transform: rotate(15deg);
  animation: bobble 7s ease-in-out -2s infinite;
}
.hero-shape.s3 {
  width: 40px; height: 40px;
  background: var(--brand-blue);
  top: 18%; left: 10%;
  animation: bobble 5s ease-in-out -3s infinite;
}
.hero-shape.s4 {
  width: 56px; height: 56px;
  background: var(--brand-red);
  bottom: 22%; right: 4%;
  border-radius: 14px;
  transform: rotate(-12deg);
  animation: bobble 8s ease-in-out -4s infinite;
}
@keyframes bobble {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--r, 0deg)); }
}

/* the illustrated phone+menu+QR */
.hero-scene {
  position: relative;
  width: 78%;
  height: 78%;
  display: grid;
  place-items: center;
}

/* ——— cards ——— */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.card.soft { box-shadow: var(--shadow-soft); }
.card.interactive:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.card-lg {
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ——— how it works ——— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.step-num {
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}
.step h3 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step p {
  color: var(--text-muted);
  font-size: 16px;
}
.step-art {
  margin-top: 24px;
  height: 160px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* ——— dashboard mockups ——— */
.dash {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--text);
  width: 100%;
}
.dash-chrome {
  height: 40px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}
.dash-chrome .dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: #e5e5ea;
}
.dash-chrome .url {
  margin-left: 12px;
  flex: 1;
  height: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0 10px;
  max-width: 280px;
}
.dash-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.dash-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px 8px 0 0;
  cursor: default;
}
.dash-tab.active {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
}
.dash-body {
  padding: 24px;
}

/* feature showcase row */
.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 120px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { grid-template-columns: 1.2fr 0.9fr; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-art { order: 1; }
.feature-copy h2 {
  margin-top: 20px;
  margin-bottom: 20px;
}
.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.feature-bullets li {
  display: flex; gap: 14px;
  align-items: flex-start;
  font-size: 16px;
}
.feature-bullets .tick {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
  margin-top: 2px;
}

/* ——— pricing ——— */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--brand-green);
  box-shadow: var(--shadow-card);
  transform: translateY(-8px);
}
.price-badge {
  position: absolute;
  top: -14px; left: 24px;
  background: var(--brand-green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.price-name {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.price-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
  min-height: 42px;
}
.price-val {
  margin-top: 24px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-val .num {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-val .unit {
  font-size: 15px;
  color: var(--text-muted);
}
.price-features {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.price-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
}
.price-features .check {
  flex-shrink: 0;
  color: var(--brand-green);
  margin-top: 2px;
}
.price-cta { margin-top: 28px; }
.price-cta .btn { width: 100%; justify-content: center; }

/* ——— about ——— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.about-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.about-stat .n {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.about-stat .l {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.about-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* ——— FAQ ——— */
.faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 60px;
  align-items: flex-start;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 180ms ease;
}
.faq-item:hover { box-shadow: var(--shadow-soft); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 500;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.faq-a {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 180ms, transform 180ms;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
}
.faq-item.open .faq-toggle {
  background: var(--brand-blue);
  color: #fff;
  transform: rotate(45deg);
}

/* ——— CTA footer ——— */
.cta {
  background: #0f0f14;
  color: #fff;
  border-radius: 32px;
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
}
.cta h2 {
  color: #fff;
  max-width: 14ch;
  position: relative;
  z-index: 2;
}
.cta h2 em {
  font-style: normal;
  color: var(--brand-orange);
}
.cta .lead {
  color: rgba(255,255,255,0.7);
  margin-top: 20px;
  position: relative; z-index: 2;
}
.cta-ctas {
  margin-top: 36px;
  display: flex; gap: 12px;
  position: relative; z-index: 2;
}
.cta .btn-primary {
  background: var(--brand-orange);
}
.cta .btn-secondary {
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.cta-decor {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.cta-decor.d1 {
  width: 240px; height: 240px;
  background: var(--brand-purple);
  right: -40px; bottom: -80px;
  opacity: 0.5;
  filter: blur(40px);
}
.cta-decor.d2 {
  width: 160px; height: 160px;
  background: var(--brand-green);
  right: 120px; top: -40px;
  opacity: 0.3;
  filter: blur(30px);
}
.cta-decor.d3 {
  width: 80px; height: 80px;
  background: var(--brand-orange);
  border-radius: 20px;
  right: 80px; bottom: 60px;
  opacity: 0.9;
  transform: rotate(18deg);
}

/* page footer */
footer.site-foot {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}
.foot-row {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.foot-links { display: flex; gap: 24px; }
.foot-links a:hover { color: var(--text); }

/* ——— Problem cards ——— */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problem-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--c, var(--brand-red));
}
.problem-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  margin-top: 24px;
}
.problem-card p { color: var(--text-muted); font-size: 15.5px; }
.problem-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c, var(--brand-red)) 14%, white);
  color: var(--c, var(--brand-red));
  display: grid; place-items: center;
}
.problem-icon svg { width: 22px; height: 22px; }

/* ——— Quote section ——— */
.quote-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  box-shadow: var(--shadow-card);
}
.quote-mark {
  font-family: var(--font-head);
  font-size: 120px;
  line-height: 0.6;
  color: var(--brand-purple);
  position: absolute;
  top: 40px; left: 40px;
  opacity: 0.22;
}
.quote-text {
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  position: relative;
  z-index: 2;
}
.quote-attr {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 32px;
}

/* ——— footer columns ——— */
.foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 72px 0 40px;
}
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col li a { color: var(--text); font-size: 14.5px; }
.foot-col li a:hover { color: var(--brand-purple); }
.foot-tag {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 14px;
  max-width: 28ch;
}

/* ——— Auth pages ——— */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
}
.auth-nav {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.auth-nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.auth-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}
.auth-deco {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.6;
}
.auth-deco.a { width: 280px; height: 280px; background: var(--tint-purple); top: 10%; left: 8%; }
.auth-deco.b { width: 320px; height: 320px; background: var(--tint-green); bottom: 6%; right: 10%; }
.auth-deco.c { width: 180px; height: 180px; background: var(--tint-orange); top: 40%; right: 20%; }

.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
}
.auth-card h1 {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.auth-card .lead { font-size: 16px; margin-bottom: 28px; }

.field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.field input, .field select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  transition: border-color 120ms, box-shadow 120ms;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-purple) 15%, transparent);
}
.field .hint { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.field .err { font-size: 12px; color: var(--brand-red); margin-top: 2px; }

.auth-submit { width: 100%; justify-content: center; margin-top: 8px; }
.auth-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-foot a {
  color: var(--brand-purple);
  font-weight: 500;
}
.auth-foot a:hover { text-decoration: underline; }

/* ——— Dashboard app ——— */
.app-shell {
  min-height: 100vh;
  background: var(--bg-alt);
}
.app-nav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.app-user {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text-muted);
}
.app-user strong { color: var(--text); font-weight: 500; }

.app-body {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

.app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.app-title {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.app-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--brand-green);
  animation: livepulse 1.6s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10, 207, 131, 0.4); opacity: 1; }
  50% { box-shadow: 0 0 0 8px rgba(10, 207, 131, 0); opacity: 0.8; }
}

.toggle-group {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.toggle-group button {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-body);
  transition: background 120ms, color 120ms;
}
.toggle-group button.active {
  background: var(--brand-purple);
  color: #fff;
}

.app-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
}
.app-tab {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 120ms, border-color 120ms;
  white-space: nowrap;
}
.app-tab.active {
  color: var(--text);
  border-bottom-color: var(--brand-purple);
}
.app-tab:hover { color: var(--text); }

.sim-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sim-strip .sim-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: auto;
}
.sim-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all 120ms;
}
.sim-btn:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}
.sim-btn.danger:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}
.panel-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.panel-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Insight card (big) */
.insight-card {
  background: linear-gradient(160deg, #f2e6ff 0%, #ffffff 70%);
  border: 1px solid color-mix(in srgb, var(--brand-purple) 25%, white);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.insight-card .deco {
  position: absolute;
  border-radius: 999px;
  opacity: 0.5;
  filter: blur(30px);
  pointer-events: none;
}
.insight-card .deco.d1 { width: 180px; height: 180px; background: var(--brand-orange); top: -40px; right: -40px; opacity: 0.35; }
.insight-card .deco.d2 { width: 140px; height: 140px; background: var(--brand-green); bottom: -40px; left: 40%; opacity: 0.25; }

.insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.insight-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.insight-body {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  position: relative;
  z-index: 2;
  min-height: 180px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.insight-body.empty {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  text-align: center;
  min-height: 180px;
  font-size: 15px;
}
.insight-body p { margin-bottom: 14px; }
.insight-body p:last-child { margin-bottom: 0; }
.insight-body b { color: var(--text); font-weight: 600; }

/* Alerts */
.alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.alert {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--c, var(--brand-blue));
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert.warn   { --c: var(--brand-orange); background: #fff8f5; }
.alert.ok     { --c: var(--brand-green);  background: #f3fcf7; }
.alert.info   { --c: var(--brand-blue);   background: #f3fafe; }
.alert.danger { --c: var(--brand-red);    background: #fff5f3; }

.alert-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--c) 16%, white);
  color: var(--c);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
}
.alert-body .t {
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 2px;
}
.alert-body .d {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Metric cards */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.metric-val {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 8px;
}
.metric-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}
.metric-sub .up { color: var(--brand-green); font-weight: 500; }
.metric-sub .down { color: var(--brand-red); font-weight: 500; }

/* Analytics two-up */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 14px;
  align-items: center;
  font-size: 14px;
}
.bar-name { color: var(--text); }
.bar-track {
  height: 10px;
  background: #f1f1f3;
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--c, var(--brand-purple));
  transition: width 300ms ease;
}
.bar-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  min-width: 36px;
  text-align: right;
}

.pair-list { display: flex; flex-direction: column; gap: 10px; }
.pair-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
}
.pair-row .sep { color: var(--text-muted); font-family: var(--font-mono); font-size: 12px; }
.pair-row .badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-purple);
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-purple) 12%, white);
}

/* Heatmap */
.heatmap {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.heatmap .cell {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: color-mix(in srgb, var(--brand-purple) calc(var(--v, 0) * 100%), #eef0f4);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.9);
}
.heatmap-hours {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 6px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}

.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.dist-list { display: flex; flex-direction: column; gap: 10px; }
.dist-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.dist-row:last-child { border-bottom: none; }
.dist-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); font-weight: 500; }
.dist-pct { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); min-width: 44px; text-align: right; }

/* Pricing summary strip */
.price-summary {
  background: var(--tint-purple);
  border-left: 4px solid var(--brand-purple);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--text);
}
.price-summary b { color: var(--brand-purple); font-weight: 600; }

/* Matrix */
.matrix-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.matrix-wrap {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 1.15 / 1;
}
.matrix-grid {
  position: absolute;
  inset: 24px 24px 36px 44px;
}
.matrix-q {
  position: absolute;
  width: 50%;
  height: 50%;
}
.matrix-q.tl { top: 0; left: 0; background: color-mix(in srgb, var(--brand-orange) 10%, white); }
.matrix-q.tr { top: 0; left: 50%; background: color-mix(in srgb, var(--brand-green) 10%, white); }
.matrix-q.bl { top: 50%; left: 0; background: color-mix(in srgb, var(--brand-red) 10%, white); }
.matrix-q.br { top: 50%; left: 50%; background: color-mix(in srgb, var(--brand-blue) 10%, white); }
.matrix-q .lbl {
  position: absolute;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.matrix-q.tl .lbl, .matrix-q.bl .lbl { left: 14px; color: var(--brand-orange); }
.matrix-q.bl .lbl { color: var(--brand-red); }
.matrix-q.tr .lbl, .matrix-q.br .lbl { right: 14px; color: var(--brand-green); text-align: right; }
.matrix-q.br .lbl { color: var(--brand-blue); }

.matrix-axis-y {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}
.matrix-axis-x {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.matrix-dot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, 50%);
  cursor: pointer;
  z-index: 2;
}
.matrix-dot .d {
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--c);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.matrix-dot .lbl {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255,255,255,0.85);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.matrix-dot:hover .d {
  transform: scale(1.3);
  transition: transform 160ms;
}

.matrix-tooltip {
  position: absolute;
  background: #0f0f14;
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  pointer-events: none;
  z-index: 10;
  min-width: 200px;
  transform: translate(-50%, calc(-100% - 12px));
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.matrix-tooltip .tt-t { font-weight: 600; margin-bottom: 4px; }
.matrix-tooltip .tt-r {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}
.matrix-tooltip .tt-r span:last-child { color: #fff; }

.matrix-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.legend-item {
  display: flex; gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border-radius: 10px;
}
.legend-item .sw {
  width: 12px; height: 12px;
  border-radius: 999px;
  margin-top: 5px;
  flex-shrink: 0;
}

/* Item cards */
.item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.item-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.item-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}
.chip b { color: var(--text); font-weight: 600; }
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.input-row .field { margin-bottom: 0; }
.input-row input {
  padding: 9px 12px;
  font-size: 14px;
}
.advisor-block {
  background: color-mix(in srgb, var(--c, var(--brand-purple)) 10%, white);
  border: 1px solid color-mix(in srgb, var(--c, var(--brand-purple)) 25%, white);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 14px;
}
.confidence {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.conf-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--border);
}
.conf-dot.on { background: var(--brand-green); }
.conf-dot.on.med { background: var(--brand-orange); }
.conf-dot.on.low { background: var(--brand-red); }

.quad-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  color: #fff;
}

/* Final CTA */
.final-cta {
  background: var(--brand-purple);
  color: #fff;
  border-radius: 32px;
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta h2 {
  color: #fff;
  margin: 0 auto 20px;
  max-width: 20ch;
}
.final-cta .lead {
  color: rgba(255,255,255,0.85);
  margin: 0 auto 32px;
}
.final-cta .btn {
  background: #fff;
  color: var(--brand-purple);
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 600;
}
.final-cta .btn:hover { filter: brightness(0.95); }
.final-cta .deco {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.final-cta .deco.a { width: 220px; height: 220px; background: var(--brand-green); top: -60px; left: -60px; opacity: 0.25; filter: blur(30px); }
.final-cta .deco.b { width: 180px; height: 180px; background: var(--brand-orange); bottom: -40px; right: 80px; opacity: 0.4; filter: blur(20px); }
.final-cta .deco.c { width: 60px; height: 60px; background: var(--brand-red); bottom: 80px; right: 100px; border-radius: 16px; transform: rotate(18deg); }

/* Responsive */
@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .two-up, .three-up { grid-template-columns: 1fr; }
  .item-grid { grid-template-columns: 1fr; }
  .problem-grid, .foot-cols { grid-template-columns: 1fr 1fr; }
  .heatmap, .heatmap-hours { grid-template-columns: repeat(9, 1fr); }
  .app-title { font-size: 34px; }
  .quote-text { font-size: 24px; }
}

/* ——— responsive ——— */
@media (max-width: 960px) {
  .h-xl { font-size: 56px; }
  .h-lg { font-size: 44px; }
  .h-md { font-size: 32px; }
  .hero-grid, .about-grid, .feature-row, .feature-row.reverse, .faq-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .feature-row.reverse .feature-copy { order: 1; }
  .feature-row.reverse .feature-art { order: 2; }
  .steps, .price-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  section { padding: 80px 0; }
  .cta { padding: 48px 32px; border-radius: 24px; }
  .nav-links { display: none; }
  .price-card.featured { transform: none; }
}

/* ——— Menu & QR tab ——— */
.menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1100px) {
  .menu-layout { grid-template-columns: 1fr; }
}

.ai-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-purple) 8%, white), #fff 70%);
  border: 1.5px solid color-mix(in srgb, var(--brand-purple) 25%, var(--border));
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 24px;
}
.ai-badge {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-purple);
  color: #fff;
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.menu-editor-header {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.cat-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 14px;
  margin-bottom: 14px;
}
.cat-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.cat-name {
  font-family: var(--font-head);
  font-size: 19px; font-weight: 500;
  letter-spacing: -0.02em;
}
.cat-empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 16px 4px;
  font-style: italic;
}

.menu-item-list {
  display: flex; flex-direction: column;
  gap: 8px;
}
.menu-item-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(0, 2fr) 110px 32px;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid #f0f0f3;
}
.menu-item-row:first-child { border-top: none; }
.mi-name, .mi-desc, .mi-price {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  width: 100%;
}
.mi-name { font-weight: 600; }
.mi-desc { color: var(--text-muted); font-size: 13.5px; }
.mi-name:hover, .mi-desc:hover, .mi-price:hover { background: #fafafa; }
.mi-name:focus, .mi-desc:focus, .mi-price:focus {
  outline: none;
  border-color: var(--brand-purple);
  background: #fff;
}
.mi-price-wrap {
  position: relative;
  display: flex; align-items: center;
}
.mi-euro {
  position: absolute; left: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}
.mi-price { padding-left: 22px; font-family: var(--font-mono); font-size: 13.5px; }
.mi-remove {
  width: 28px; height: 28px;
  border: none; background: transparent;
  border-radius: 6px;
  font-size: 20px; line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 120ms;
}
.mi-remove:hover { background: color-mix(in srgb, var(--brand-red) 12%, white); color: var(--brand-red); }

/* sidebar */
.menu-sidebar {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 16px;
}
@media (max-width: 1100px) {
  .menu-sidebar { position: static; }
}

.qr-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.qr-frame {
  background: linear-gradient(135deg, #fafafa, #f4f4f7);
  border-radius: 12px;
  padding: 16px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
}

.preview-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.preview-toggle {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border: none; background: transparent;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.preview-toggle:hover { background: var(--bg-alt); }

.phone-frame {
  margin: 0 auto 16px;
  width: 280px;
  background: #0f0f14;
  border-radius: 32px;
  padding: 8px;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 18px;
  background: #0f0f14;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.phone-screen {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  height: 460px;
  overflow-y: auto;
  font-family: var(--font-body);
}
.phone-screen::-webkit-scrollbar { width: 4px; }
.phone-screen::-webkit-scrollbar-thumb { background: #e5e5ea; border-radius: 2px; }

.menu-hero {
  padding: 36px 18px 16px;
  background: linear-gradient(135deg, var(--brand-purple), color-mix(in srgb, var(--brand-purple) 60%, var(--brand-blue)));
  color: #fff;
}
.menu-hero-name {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em;
}
.menu-hero-tag {
  font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-top: 4px;
}

.menu-sec { padding: 14px 16px 8px; }
.menu-sec-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-purple);
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f3;
}
.menu-prev-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed #f0f0f3;
}
.menu-prev-item:first-of-type { border-top: none; }
.menu-prev-left { flex: 1; min-width: 0; }
.menu-prev-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.menu-prev-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}
.menu-prev-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-purple);
  flex-shrink: 0;
}

/* ===================================================================== */
/* Real-data refactor additions                                          */
/* ===================================================================== */

.live-dot.loading { background: var(--brand-orange); }
.loading-panel {
  text-align: center; padding: 60px 24px; color: var(--text-muted);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
}

.data-banner {
  background: color-mix(in srgb, var(--brand-blue) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-blue) 26%, #fff);
  color: var(--text); border-radius: 12px;
  padding: 12px 16px; font-size: 13.5px; margin-bottom: 18px; line-height: 1.5;
}
.data-banner.error {
  background: color-mix(in srgb, var(--brand-red) 8%, #fff);
  border-color: color-mix(in srgb, var(--brand-red) 30%, #fff);
}

.empty-hero { text-align: center; padding: 56px 28px; margin-bottom: 24px; }
.empty-hero-mark {
  display: inline-grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 20px;
}
.empty-hero-mark span { width: 22px; height: 22px; border-radius: 6px; opacity: .85; }
.empty-hero-mark span:nth-child(1){ background: var(--brand-green); }
.empty-hero-mark span:nth-child(2){ background: var(--brand-orange); }
.empty-hero-mark span:nth-child(3){ background: var(--brand-blue); }
.empty-hero-mark span:nth-child(4){ background: var(--brand-purple); }
.empty-hero-title {
  font-family: var(--font-head); font-size: 26px; font-weight: 500;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.empty-hero-body {
  color: var(--text-muted); font-size: 15px; line-height: 1.55;
  max-width: 46ch; margin: 0 auto;
}

/* 24-hour heatmap */
.heatmap-24 { grid-template-columns: repeat(24, 1fr); gap: 4px; }
.heatmap-24 .cell-wrap { display: flex; flex-direction: column; gap: 4px; }
.heatmap-24 .cell-lbl {
  font-family: var(--font-mono); font-size: 8.5px; color: var(--text-muted); text-align: center;
}
@media (max-width: 900px){ .heatmap-24 { grid-template-columns: repeat(12, 1fr); } }

/* QR card extras */
.qr-card-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
}
.qr-url {
  text-align: center; font-family: var(--font-mono); font-size: 12px;
  color: var(--text); margin-top: 14px; word-break: break-all;
}
.qr-skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg,#eee,#f6f6f6,#eee);
  background-size: 200% 100%; animation: qrsh 1.2s infinite;
}
@keyframes qrsh { to { background-position: -200% 0; } }
.domain-field { margin-top: 16px; }
.domain-field label {
  display: block; font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 5px;
}
.domain-field input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 9px;
  padding: 9px 12px; font-size: 13px; font-family: var(--font-mono); color: var(--text); background: #fff;
}
.domain-field input:focus { outline: none; border-color: var(--brand-purple); }
.qr-note { font-size: 12px; color: var(--text-muted); margin-top: 14px; line-height: 1.5; }

/* tracking sources */
.src-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px;
  box-shadow: var(--shadow-card);
}
.src-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.src-list { display: flex; flex-direction: column; gap: 14px; }
.src-row { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.src-row:last-child { border-bottom: none; padding-bottom: 0; }
.src-qr {
  flex-shrink: 0; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 5px; display: grid; place-items: center;
}
.src-meta { flex: 1; min-width: 0; }
.src-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 7px 10px; font-size: 14px; font-weight: 500; font-family: var(--font-body); color: var(--text); background: #fff;
}
.src-input:focus { outline: none; border-color: var(--brand-purple); }
.src-code { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin: 5px 0 7px; word-break: break-all; }
.src-actions { display: flex; gap: 8px; }
.src-dl, .src-rm {
  font-family: var(--font-mono); font-size: 11px; padding: 4px 9px; border-radius: 7px;
  border: 1px solid var(--border); background: #fff; transition: all 120ms; cursor: pointer; white-space: nowrap;
}
.src-dl:hover { border-color: var(--brand-purple); color: var(--brand-purple); }
.src-rm:hover { border-color: var(--brand-red); color: var(--brand-red); }

/* ===================================================================== */
/* Self-serve MVP additions: auth/splash, trial, paywall, plans, billing */
/* ===================================================================== */

/* splash loader dots */
.splash-dots { display: flex; gap: 7px; }
.splash-dots span {
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand-purple);
  animation: splashb 1s ease-in-out infinite;
}
.splash-dots span:nth-child(2){ background: var(--brand-orange); animation-delay: .15s; }
.splash-dots span:nth-child(3){ background: var(--brand-blue); animation-delay: .3s; }
@keyframes splashb { 0%,100%{ transform: translateY(0); opacity:.5 } 50%{ transform: translateY(-7px); opacity:1 } }

/* auth form-level error */
.auth-form-error {
  background: color-mix(in srgb, var(--brand-red) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-red) 32%, #fff);
  color: #b21f1f; border-radius: 10px; padding: 10px 14px; font-size: 13.5px;
  margin-bottom: 18px; line-height: 1.45;
}

/* QR source: editable source_id */
.src-id-row { display: flex; align-items: center; gap: 4px; margin: 6px 0 8px; }
.src-id-prefix { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.src-id-input {
  flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 7px;
  padding: 4px 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text); background: #fff;
}
.src-id-input:focus { outline: none; border-color: var(--brand-purple); }

/* trial banner */
.trial-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--brand-purple) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-purple) 26%, #fff);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 22px;
}
.trial-banner.urgent {
  background: color-mix(in srgb, var(--brand-orange) 9%, #fff);
  border-color: color-mix(in srgb, var(--brand-orange) 32%, #fff);
}
.trial-banner-l { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.trial-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-purple); flex-shrink: 0; }
.trial-banner.urgent .trial-dot { background: var(--brand-orange); }
.trial-sub { color: var(--text-muted); }
.trial-cta { padding: 0 18px; height: 40px; }

/* paywall */
.paywall { padding: 8px 0 40px; }
.paywall-head { text-align: center; max-width: 600px; margin: 18px auto 30px; }
.paywall-lock {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 14px;
  display: grid; place-items: center; color: var(--brand-orange);
  background: color-mix(in srgb, var(--brand-orange) 12%, #fff);
}
.paywall-lock svg { width: 26px; height: 26px; }
.paywall-title { font-family: var(--font-head); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.paywall-body { color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.paywall-foot { text-align: center; margin-top: 24px; }

/* plan grid + cards */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px){ .plan-grid { grid-template-columns: 1fr; } }
.plan-card {
  position: relative; background: #fff; border: 1.5px solid var(--border);
  border-radius: 16px; padding: 26px 22px; display: flex; flex-direction: column;
}
.plan-card.rec { border-color: var(--brand-purple); box-shadow: 0 10px 34px -18px color-mix(in srgb, var(--brand-purple) 60%, transparent); }
.plan-card.current { border-color: var(--brand-green); }
.plan-ribbon {
  position: absolute; top: -11px; left: 22px; background: var(--brand-purple); color: #fff;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px;
}
.plan-name { font-family: var(--font-head); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.plan-price { font-family: var(--font-head); font-size: 38px; font-weight: 600; letter-spacing: -0.03em; margin: 8px 0 2px; }
.plan-price span { font-family: var(--font-mono); font-size: 14px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.plan-blurb { color: var(--text-muted); font-size: 13.5px; line-height: 1.45; min-height: 38px; }
.plan-features { list-style: none; padding: 0; margin: 16px 0 20px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.4; }
.pf-check { flex-shrink: 0; color: var(--brand-green); display: inline-flex; margin-top: 1px; }
.pf-check svg { width: 15px; height: 15px; }
.plan-btn { justify-content: center; width: 100%; }

/* billing tab */
.billing-tab { max-width: 980px; }
.billing-status { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.billing-status-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.billing-tier { font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.billing-sub { color: var(--text-muted); font-size: 13px; }
.billing-plans-head { font-family: var(--font-head); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 14px; }
.billing-note { color: var(--text-muted); font-size: 12.5px; margin-top: 18px; text-align: center; }

