/* ═══════════════════════════════════════════════════
   v4 — component & utility classes
   Tokens from ../shared/styles/tokens.css are already
   loaded. All values here reference those tokens.
═══════════════════════════════════════════════════ */

/* ── Custom fonts ── */
@font-face {
  font-family: 'Cornella';
  src: url('../fonts/cornella-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Logo ── */
.logo         { display: flex; align-items: center; gap: 8px; }
.logo__mark   { width: 30px; height: 30px; border-radius: 8px; background: var(--color-ink); display: flex; align-items: center; justify-content: center; }
.logo__letter { color: #fff; font-weight: var(--font-weight-black); font-size: 13px; }
.logo__text   { font-weight: var(--font-weight-extrabold); font-size: 16px; color: var(--color-ink); }
.logo__text--dark { color: #fff; }
.logo__accent { color: var(--color-brand); }
.logo-home,
.logo-clickable { cursor: pointer; }

/* ── Card ── */
.card {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

/* ── Sidebar nav ── */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-muted);
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
  position: relative;
}
.nav-item:hover { background: var(--color-surface); color: var(--color-ink); }
.nav-item.active {
  background: var(--color-brand-light);
  color: var(--color-brand);
  font-weight: var(--font-weight-bold);
}
.nav-item.active::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-brand);
}
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.nav-icon svg { width: 18px; height: 18px; }
.nav-item__label { flex: 1; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  line-height: 1;
}
.badge-success { background: var(--color-success-light); color: var(--color-success); }
.badge-brand   { background: var(--color-brand-light);   color: var(--color-brand);   }
.badge-error   { background: var(--color-error-light);   color: var(--color-error);   }
.badge-warning { background: var(--color-warning-light); color: var(--color-warning); }
.badge-neutral { background: var(--color-border);         color: var(--color-muted);   }
.badge-lg      { padding: 5px 12px; font-size: var(--font-size-sm); }

/* ── Section label ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand);
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Toggle (Monthly / Annual) ── */
.toggle-group {
  display: inline-flex;
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-pill);
  padding: 3px;
  box-shadow: var(--shadow-card);
}
.toggle-btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, color .2s;
  background: transparent;
  color: var(--color-muted);
}
.toggle-btn.active { background: var(--color-ink); color: var(--color-canvas); }

/* ── POS category tab ── */
.category-tab {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  font-family: inherit;
  cursor: pointer;
  background: var(--color-canvas);
  color: var(--color-muted);
  border: 1px solid var(--color-divider);
  transition: background .15s, color .15s, border-color .15s;
}
.category-tab.active {
  background: var(--color-brand);
  color: var(--color-canvas);
  border-color: var(--color-brand);
}

/* ── Card hover lift ── */
.card-hoverable { transition: border-color .2s, box-shadow .2s; cursor: pointer; }
.card-hoverable:hover {
  border-color: var(--color-brand) !important;
  box-shadow: var(--shadow-hover) !important;
}

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-family: inherit;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: opacity .15s, background .15s;
  white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: default; }

/* Sizes */
.btn-sm  { padding: 6px 14px;  font-size: var(--font-size-xs);  border-radius: var(--radius-sm); }
.btn-md  { padding: 8px 16px;  font-size: var(--font-size-base); border-radius: var(--radius-sm); }
.btn-lg  { padding: 10px 22px; font-size: var(--font-size-md);  border-radius: var(--radius-md); }
.btn-xl  { padding: 13px 32px; font-size: 15px;                  border-radius: var(--radius-md); }
.btn-full { width: 100%; }

/* Variants */
.btn-ink     { background: var(--color-ink);     color: #fff; }
.btn-ink:hover { background: var(--color-ink-dark); }
.btn-brand   { background: var(--color-brand);   color: #fff; }
.btn-brand:hover { background: var(--color-brand-hover); }
.btn-success { background: var(--color-success); color: #fff; }
.btn-outline { background: var(--color-canvas); border: 1px solid var(--color-divider); color: var(--color-ink-soft); }
.btn-ghost   { background: none; color: var(--color-brand); padding-left: 0; padding-right: 0; }
.btn-ghost-white { background: transparent; border: 1px solid rgba(255,255,255,.2); color: var(--color-subtle); }
.btn-white   { background: #fff; color: var(--color-ink); }

/* ════════════════════════════════════════════
   FORM ELEMENTS
════════════════════════════════════════════ */
.input, .select {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: var(--font-size-md);
  font-family: inherit;
  color: var(--color-ink);
}
.input:focus, .select:focus { outline: none; border-color: var(--color-brand); }
.input { margin-bottom: 10px; }
.select {
  margin-bottom: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  color-scheme: light;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}
.select option {
  font-family: inherit;
  font-size: var(--font-size-base);
  background: var(--color-canvas);
  color: var(--color-ink);
  padding: 8px 14px;
}

/* ════════════════════════════════════════════
   PAGE LAYOUTS
════════════════════════════════════════════ */
.page-light   { background: var(--color-canvas); min-height: 100vh; }
.page-surface { background: var(--color-surface); min-height: 100vh; }

.page-wrap    { max-width: var(--max-width-page);    margin: 0 auto; padding: 32px 24px; }
.page-wrap-lg { max-width: var(--max-width-pricing); margin: 0 auto; padding: 32px 24px; }

/* ── Shared page topbar ── */
.topbar-page {
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-divider);
  padding: 14px 24px;
}
.topbar-page__inner {
  max-width: var(--max-width-page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-page__inner--wide { max-width: var(--max-width-pricing); }
.topbar-page__actions { display: flex; gap: 10px; }

/* ════════════════════════════════════════════
   LANDING
════════════════════════════════════════════ */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.landing-nav__inner {
  max-width: var(--max-width-shell);
  margin: 0 auto;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-nav__links {
  display: flex;
  gap: 28px;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-muted);
}
.landing-nav__links span { cursor: pointer; }
.landing-nav__actions { display: flex; gap: 10px; align-items: center; }
.nav-login { font-size: var(--font-size-md); color: var(--color-muted); cursor: pointer; }

/* Hero */
.hero {
  padding: 130px 24px 60px;
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-muted);
  margin-bottom: 28px;
}
.hero__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-teal); }
.hero__title {
  font-size: clamp(44px, 6vw, 70px);
  font-weight: var(--font-weight-black);
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 20px;
  color: var(--color-ink);
}
.hero__title-accent { color: var(--color-brand); }
.hero__subtitle {
  font-size: 17px;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

/* Analysis form */
.hero-form {
  max-width: 540px;
  margin: 0 auto;
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow-float);
}
.hero-form__label {
  font-size: var(--font-size-base);
  color: var(--color-muted);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 14px;
}
.hero-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.hero-form__note { font-size: 11px; color: var(--color-subtle); text-align: center; margin-top: 10px; }

/* Upload zone — Google Maps screenshot */
.upload-zone {
  position: relative;
  border: 1.5px dashed var(--color-divider);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.015);
  transition: border-color .15s ease, background .15s ease;
}
.upload-zone:hover { border-color: var(--color-brand); background: rgba(37,99,235,0.04); }
.upload-zone--drag { border-color: var(--color-brand); background: rgba(37,99,235,0.08); border-style: solid; }
.upload-zone--filled { border-style: solid; background: var(--color-canvas); }

.upload-zone__empty {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.upload-zone__empty[hidden],
.upload-zone__filled[hidden] { display: none; }
.upload-zone__icon {
  font-size: 20px;
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
}
.upload-zone__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.upload-zone__text strong { font-size: 13.5px; color: var(--color-text); font-weight: 600; line-height: 1.3; }
.upload-zone__text span { font-size: 11.5px; color: var(--color-subtle); line-height: 1.3; }
.upload-zone__hint {
  font-size: 11px; color: var(--color-brand); font-weight: 600;
  background: rgba(37,99,235,0.08);
  padding: 4px 10px; border-radius: 999px;
  flex-shrink: 0;
}

.upload-zone__filled { display: flex; align-items: center; gap: 12px; }
.upload-zone__preview {
  width: 44px; height: 44px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-divider);
  background: var(--color-border);
}
.upload-zone__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.upload-zone__filename {
  font-size: 13px; color: var(--color-text); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upload-zone__filesize { font-size: 11px; color: var(--color-subtle); }
.upload-zone__remove {
  background: transparent; border: none; cursor: pointer;
  color: var(--color-subtle);
  font-size: 14px;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.upload-zone__remove:hover { background: rgba(0,0,0,0.06); color: var(--color-text); }

/* Stats bar */
.stats-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding: 36px 24px;
  margin: 40px 0 0;
}
.stats-bar__grid {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 0;
}
.stats-bar__item     { padding: 0 24px; }
.stats-bar__item--sep { border-right: 1px solid var(--color-divider); }
.stats-bar__icon { font-size: 26px; margin-bottom: 10px; }
.stat-num   { font-size: 34px; font-weight: var(--font-weight-black); color: var(--color-ink); letter-spacing: -1.5px; line-height: 1; }
.stat-label { font-size: 12px; color: var(--color-muted); margin-top: 6px; font-weight: var(--font-weight-medium); }

/* ════════════════════════════════════════════
   STATEMENT + STATS (below hero)
════════════════════════════════════════════ */
.statement-section {
  background: var(--color-canvas);
}
.statement-inner {
  max-width: var(--max-width-page);
  margin: 0 auto;
  padding: var(--space-20) 24px;
  text-align: center;
}
.statement-text {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  letter-spacing: -0.8px;
  color: var(--color-ink);
  margin-bottom: var(--space-12);
}
.statement-stats { display: flex; gap: 52px; align-items: flex-start; justify-content: center; }
.statement-stat__num {
  font-size: clamp(52px, 6vw, 80px);
  font-weight: var(--font-weight-black);
  letter-spacing: -3px;
  line-height: 1;
  color: var(--color-ink);
}
.statement-stat__label {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--font-weight-medium);
  margin-top: 8px;
}

/* Sections */
.section,
.section-sm { padding: var(--space-20) 24px; max-width: var(--max-width-page); margin: 0 auto; }
.section__header { text-align: center; margin-bottom: var(--space-12); }
.section__title  { font-size: clamp(28px, 4vw, 40px); font-weight: var(--font-weight-extrabold); letter-spacing: -1.5px; margin-top: var(--space-2); }

/* ── Grid utilities ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Industry pills */
.industry-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--color-canvas);
  border: 1.5px solid var(--color-divider);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  user-select: none;
}
.industry-pill:hover {
  border-color: var(--color-brand);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.industry-pill__emoji { font-size: 22px; line-height: 1; }
.industry-pill__name  { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); color: var(--color-text); white-space: nowrap; }
.industry-pill__arrow { font-size: 14px; color: var(--color-muted); transition: transform 0.18s, color 0.18s; }
.industry-pill:hover .industry-pill__arrow { transform: translateX(3px); color: var(--color-brand); }

/* How it works — modern circle style */
.hiw-section { padding: var(--space-20) 24px; background: var(--color-canvas); }
.hiw-section .section__header { max-width: 640px; margin: 0 auto; }

.hiw-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 780px;
  margin: var(--space-12) auto 0;
}

.hiw-step {
  flex: 1;
  text-align: center;
  max-width: 220px;
}

.hiw-circle-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.hiw-circle {
  width: 88px; height: 88px;
  background: var(--color-brand-light);
  border-radius: 50%;
  border: 1.5px solid var(--color-brand-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-brand);
  margin: 0 auto;
}
.hiw-circle--dashed {
  background: transparent;
  border: 1.5px dashed var(--color-brand-border);
}

.hiw-step-label {
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-brand);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hiw-connector {
  flex-shrink: 0;
  padding-top: 44px;
  width: 100px;
}

.hiw-title { font-size: var(--font-size-xl); font-weight: var(--font-weight-bold); margin-bottom: 8px; }
.hiw-desc  { font-size: var(--font-size-base); color: var(--color-muted); line-height: 1.65; }

/* ════════════════════════════════════════════
   SITE FOOTER
════════════════════════════════════════════ */
/* ── Footer CTA card ── */
.ftcta {
  padding: var(--space-20) 24px;
  background: var(--color-canvas);
}
.ftcta__inner {
  max-width: var(--max-width-shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, #0d1f2d 0%, #1a2f3a 50%, #1c2230 100%);
  border-radius: 24px;
  padding: 56px 60px;
  position: relative;
  overflow: hidden;
}
.ftcta__inner::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  background: rgba(20,184,166,.22);
  border-radius: 50%;
  filter: blur(90px);
  top: -80px; left: 60px;
  pointer-events: none;
}
.ftcta__inner::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  background: rgba(185,28,28,.18);
  border-radius: 50%;
  filter: blur(90px);
  bottom: -60px; right: 80px;
  pointer-events: none;
}
.ftcta__left      { position: relative; z-index: 1; color: #fff; }
.ftcta__heading   { font-size: clamp(26px,3.2vw,38px); font-weight: var(--font-weight-black); letter-spacing: -1px; line-height: 1.2; margin-bottom: 16px; }
.ftcta__sub       { font-size: var(--font-size-md); color: rgba(255,255,255,.6); line-height: 1.65; margin-bottom: 28px; max-width: 360px; }
.ftcta__contact   { display: flex; flex-direction: column; gap: 4px; margin-bottom: 28px; }
.ftcta__contact span { font-size: var(--font-size-base); color: rgba(255,255,255,.55); }
.ftcta__proof     { display: flex; align-items: center; gap: 14px; }
.ftcta__avatars   { display: flex; }
.ftcta__av        { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #1a2f3a; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; margin-left: -8px; }
.ftcta__av:first-child { margin-left: 0; }
.ftcta__rating    { font-size: var(--font-size-sm); color: #fff; }
.ftcta__rating strong { font-weight: 700; }
.ftcta__customers { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 2px; }

.ftcta__form-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 28px 24px;
  backdrop-filter: blur(10px);
}

/* Stepper header */
.ftcta__stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.ftcta__steps { display: flex; align-items: center; gap: 8px; }
.ftcta__step {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  color: rgba(255,255,255,.45);
  transition: background .2s, color .2s, border-color .2s;
}
.ftcta__step--active {
  background: #F5C842;
  border-color: #F5C842;
  color: #111;
}
.ftcta__step-line {
  width: 28px; height: 2px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
}
.ftcta__step-count {
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
}

/* Step panel */
.ftcta__step-title { font-size: var(--font-size-lg); font-weight: var(--font-weight-extrabold); color: #fff; margin-bottom: 4px; }
.ftcta__step-sub   { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 18px; }

.ftcta__form-label { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.ftcta__form-label-opt { color: rgba(255,255,255,.35); font-weight: var(--font-weight-normal); }

/* Back / Next button row */
.ftcta__btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.ftcta__btn-row .ftcta__btn { flex: 1; }
.ftcta__btn-back {
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  padding: 12px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ftcta__btn-back:hover { background: rgba(255,255,255,.05); color: #fff; }
.ftcta__input {
  width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 10px 14px; font-size: var(--font-size-base);
  font-family: inherit; color: #fff; margin-bottom: 14px; box-sizing: border-box;
}
.ftcta__input::placeholder { color: rgba(255,255,255,.3); }
.ftcta__input:focus { outline: none; border-color: rgba(255,255,255,.3); }
select.ftcta__input {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  color-scheme: light;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}
.ftcta__input option {
  font-family: inherit;
  font-size: var(--font-size-base);
  color: var(--color-ink);
  background: var(--color-canvas);
  padding: 8px 14px;
}
.ftcta__btn {
  width: 100%; padding: 12px 20px; border: none; border-radius: var(--radius-md);
  background: #F5C842; color: #111; font-family: inherit;
  font-size: var(--font-size-md); font-weight: var(--font-weight-bold);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 4px; transition: opacity .15s;
}
.ftcta__btn:hover { opacity: .9; }
.ftcta__btn-arrow { font-size: 18px; }
.ftcta__hint { font-size: 11px; color: rgba(255,255,255,.4); text-align: center; margin-top: 10px; }

/* ── Footer bottom ── */
.site-footer {
  padding: 0 24px;
  background: #F4F3EF;
  color: var(--color-ink);
}
.footer-main {
  max-width: var(--max-width-shell);
  margin: 0 auto;
  padding: 56px 0 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: start;
}
.footer-left-col  { display: flex; flex-direction: column; gap: 0; }
.footer-nl-label  { font-size: var(--font-size-md); font-weight: var(--font-weight-bold); color: var(--color-ink); margin-bottom: 12px; }
.footer-nl-row    {
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: 380px;
  margin-bottom: 24px;
}
.footer-nl-input  {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;   /* override .input { margin-bottom: 10px } */
  background: var(--color-canvas);
}
.footer-socials   { display: flex; gap: 10px; margin-bottom: 32px; }
.footer-social    {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-canvas); border: 1px solid var(--color-divider);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-ink-soft); text-decoration: none; transition: border-color .15s, color .15s;
}
.footer-social:hover { border-color: var(--color-ink); color: var(--color-ink); }
.footer-big-email { font-size: clamp(22px, 3.5vw, 38px); font-weight: var(--font-weight-black); color: var(--color-ink); letter-spacing: -1px; }

.footer-right-col  { padding-top: 4px; }
.footer-nav-head   { font-size: 11px; font-weight: var(--font-weight-bold); color: var(--color-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-nav-list   { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-item   { font-size: var(--font-size-md); color: var(--color-ink-soft); cursor: pointer; transition: color .15s; }
.footer-nav-item:hover { color: var(--color-ink); }

.footer-bar {
  max-width: var(--max-width-shell);
  margin: 0 auto;
  padding: 16px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-muted);
  border-top: 1px solid var(--color-divider);
}
.footer-bar__links { display: flex; gap: 20px; }
.footer-bar__links span { cursor: pointer; transition: color .15s; }
.footer-bar__links span:hover { color: var(--color-ink); }

/* ════════════════════════════════════════════
   ANALYZING SCREEN
════════════════════════════════════════════ */
.analyzing-screen {
  background: var(--color-ink-dark);
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.analyzing__box   { text-align: center; max-width: 400px; width: 100%; }
.analyzing__logo  {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--color-brand);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 24px;
  font-weight: var(--font-weight-black);
  color: #fff;
}
.analyzing__title { font-size: var(--font-size-2xl); font-weight: var(--font-weight-extrabold); margin-bottom: 6px; }
.analyzing__sub   { color: var(--color-muted); font-size: var(--font-size-base); margin-bottom: 14px; }
.analyzing__email {
  display: inline-flex;
  align-items: center;
  background: var(--color-brand-light);
  color: var(--color-brand-text);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.analyzing__email strong { font-weight: var(--font-weight-bold); margin-left: 4px; }

.progress-bar      { background: var(--color-ink-mid); border-radius: var(--radius-pill); height: 5px; margin-bottom: 24px; overflow: hidden; }
.progress-bar__fill { height: 5px; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--color-brand), var(--color-teal)); transition: width .5s ease; }

.steps-list          { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.step-item           { display: flex; align-items: center; gap: 10px; font-size: var(--font-size-base); transition: color .3s; }
.step-item--done     { color: var(--color-teal); }
.step-item--active   { color: #fff; }
.step-item--pending  { color: var(--color-ink-soft); }
.step-item__icon     { font-size: var(--font-size-md); min-width: 18px; }

/* ════════════════════════════════════════════
   REPORT
════════════════════════════════════════════ */
/* Report hero card — score on left, info on right */
.rpt-hero {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: 24px;
  padding: 36px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
}
.rpt-hero__score {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.rpt-hero__eyebrow {
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-muted);
  letter-spacing: .12em;
}
.rpt-hero__ring { display: flex; justify-content: center; }
.rpt-hero__status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}
.rpt-hero__status-pill--success { background: var(--color-success-light); color: var(--color-success); }
.rpt-hero__status-pill--warning { background: #FFFBEB; color: var(--color-warning); }
.rpt-hero__status-pill--error   { background: var(--color-error-light); color: var(--color-error); }

.rpt-hero__title { font-size: clamp(28px, 4vw, 40px); font-weight: var(--font-weight-extrabold); letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 8px; }
.rpt-hero__addr  { color: var(--color-muted); font-size: var(--font-size-md); margin-bottom: 22px; }

.rpt-insight {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--color-brand-light);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-lg);
}
.rpt-insight__icon {
  width: 36px; height: 36px;
  background: var(--color-canvas);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-brand);
  flex-shrink: 0;
}
.rpt-insight__title { display: block; font-size: var(--font-size-base); font-weight: var(--font-weight-bold); color: var(--color-brand-text); margin-bottom: 4px; }
.rpt-insight__body  { font-size: var(--font-size-base); color: #1E40AF; line-height: 1.55; margin: 0; }

/* KPI cards — modern */
.rpt-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.rpt-kpi {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  padding: 20px;
}
.rpt-kpi__label {
  display: block;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  color: var(--color-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.rpt-kpi__value {
  font-size: 32px;
  font-weight: var(--font-weight-black);
  color: var(--color-ink);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 8px;
}
.rpt-kpi__sub { font-size: 12px; color: var(--color-muted); }

/* Section: head + card */
.rpt-section { margin-bottom: 36px; }
.rpt-section__head { margin-bottom: 16px; }
.rpt-section__title { font-size: var(--font-size-xl); font-weight: var(--font-weight-extrabold); letter-spacing: -.5px; margin-bottom: 4px; }
.rpt-section__sub   { font-size: var(--font-size-base); color: var(--color-muted); }
.rpt-section__card  {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  padding: 24px;
}

/* Competitor: gap summary cards */
.rpt-cmp-gaps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.rpt-cmp-gap {
  background: var(--color-error-light);
  border: 1px solid var(--color-error-border);
  border-radius: 16px;
  padding: 20px 22px;
}
.rpt-cmp-gap__label {
  display: block;
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-error);
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.rpt-cmp-gap__row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.rpt-cmp-gap__value {
  font-size: 44px;
  font-weight: var(--font-weight-black);
  color: var(--color-error);
  letter-spacing: -2px;
  line-height: 1;
}
.rpt-cmp-gap__value span { font-size: 22px; margin-left: 2px; }
.rpt-cmp-gap__detail { display: flex; flex-direction: column; gap: 2px; }
.rpt-cmp-gap__detail strong { font-size: var(--font-size-md); color: var(--color-ink); font-weight: var(--font-weight-bold); }
.rpt-cmp-gap__detail span   { font-size: 12px; color: var(--color-muted); }

/* Competitor chart */
.rpt-cmp-chart { padding: 24px 28px; }
.rpt-cmp-chart__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-divider);
}
.rpt-cmp-chart__title { font-size: var(--font-size-base); font-weight: var(--font-weight-bold); color: var(--color-ink); }
.rpt-cmp-chart__legend { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; color: var(--color-muted); }
.rpt-cmp-chart__dot {
  display: inline-block;
  width: 10px; height: 10px; border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.rpt-cmp-chart__dot--gray  { background: var(--color-subtle); }
.rpt-cmp-chart__dot--brand { background: var(--color-brand); }

.rpt-cmp-chart__body {
  position: relative;
  padding-top: 22px;
}
.rpt-cmp-bench {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rpt-cmp-bench__label {
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-brand);
  background: var(--color-brand-light);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .04em;
}
.rpt-cmp-bench__line {
  flex: 1;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--color-brand) 0 4px, transparent 4px 8px);
  margin-top: 2px;
}

.rpt-cmp-bar {
  display: grid;
  grid-template-columns: 200px 1fr 80px;
  gap: 20px;
  align-items: center;
  padding: 10px 0;
}
.rpt-cmp-bar--you {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-divider);
}
.rpt-cmp-bar__info { display: flex; flex-direction: column; gap: 2px; }
.rpt-cmp-bar__name { font-size: var(--font-size-base); color: var(--color-ink); }
.rpt-cmp-bar__sub  { font-size: 12px; color: var(--color-warning); font-weight: var(--font-weight-bold); }
.rpt-cmp-bar__track {
  background: var(--color-surface);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}
.rpt-cmp-bar__fill {
  height: 100%;
  background: var(--color-subtle);
  border-radius: 999px;
  transition: width .6s ease-out;
}
.rpt-cmp-bar__fill--brand { background: var(--color-brand); }
.rpt-cmp-bar__count {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rpt-cmp-chart__footnote {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-divider);
  font-size: var(--font-size-base);
  color: var(--color-muted);
  text-align: center;
}
.rpt-cmp-chart__footnote strong { color: var(--color-brand); font-weight: var(--font-weight-bold); }

/* Recommendations grid */
.rpt-recs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rpt-rec {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.rpt-rec__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.rpt-rec__icon {
  width: 40px; height: 40px;
  background: var(--color-surface);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.rpt-rec__impact {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  color: var(--color-success);
  background: var(--color-success-light);
  padding: 5px 12px;
  border-radius: 999px;
}
.rpt-rec__title { font-size: var(--font-size-md); font-weight: var(--font-weight-bold); margin-bottom: 6px; }
.rpt-rec__desc  { font-size: var(--font-size-base); color: var(--color-muted); line-height: 1.55; margin-bottom: 14px; flex: 1; }
.rpt-rec__cta   {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0;
  color: var(--color-brand); font-family: inherit;
  font-size: var(--font-size-base); font-weight: var(--font-weight-bold);
  cursor: pointer; transition: gap .15s;
}
.rpt-rec__cta:hover { gap: 10px; }
.rpt-rec__cta span { font-size: 14px; }

/* Final CTA — dark gradient with bokeh */
.rpt-cta {
  margin-top: 8px;
  margin-bottom: 24px;
}
.rpt-cta__inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1f2d 0%, #1a2f3a 50%, #1c2230 100%);
  border-radius: 24px;
  padding: 48px 56px;
  color: #fff;
  text-align: center;
}
.rpt-cta__inner::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  background: rgba(37,99,235,.25);
  border-radius: 50%;
  filter: blur(90px);
  top: -100px; left: 10%;
  pointer-events: none;
}
.rpt-cta__inner::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  background: rgba(20,184,166,.18);
  border-radius: 50%;
  filter: blur(90px);
  bottom: -80px; right: 10%;
  pointer-events: none;
}
.rpt-cta__eyebrow {
  position: relative; z-index: 1;
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
  color: rgba(255,255,255,.55);
  letter-spacing: .12em;
}
.rpt-cta__title { position: relative; z-index: 1; font-size: clamp(24px,3.2vw,34px); font-weight: var(--font-weight-extrabold); letter-spacing: -1px; line-height: 1.25; margin: 12px 0 12px; }
.rpt-cta__sub   { position: relative; z-index: 1; font-size: var(--font-size-md); color: rgba(255,255,255,.6); max-width: 480px; margin: 0 auto 28px; line-height: 1.55; }
.rpt-cta__btns  { position: relative; z-index: 1; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rpt-cta__btn   {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  border: none;
  transition: opacity .15s, background .15s;
}
.rpt-cta__btn--primary { background: #fff; color: var(--color-ink); }
.rpt-cta__btn--primary:hover { opacity: .9; }
.rpt-cta__btn--ghost   { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.rpt-cta__btn--ghost:hover { background: rgba(255,255,255,.08); }

/* Responsive */
@media (max-width: 768px) {
  .rpt-hero { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .rpt-kpis { grid-template-columns: repeat(2,1fr); }
  .rpt-cmp-gaps    { grid-template-columns: 1fr; }
  .rpt-cmp-bar     { grid-template-columns: 1fr; gap: 6px; }
  .rpt-cmp-bar__count { text-align: left; }
  .rpt-cmp-bench   { display: none; }
  .rpt-cmp-chart__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rpt-recs { grid-template-columns: 1fr; }
  .rpt-cta__inner { padding: 36px 28px; }
}

/* ════════════════════════════════════════════
   PRICING
════════════════════════════════════════════ */
.pricing-header { max-width: var(--max-width-pricing); margin: 0 auto; padding: calc(52px + var(--nav-height)) 24px 0; text-align: center; }
.pricing-title  { font-size: clamp(28px,4vw,42px); font-weight: var(--font-weight-black); letter-spacing: -1.5px; margin: 8px 0 10px; }
.pricing-sub    { color: var(--color-muted); font-size: var(--font-size-md); margin-bottom: 28px; }
.pricing-wrap   { max-width: var(--max-width-pricing); margin: 0 auto; padding: 48px 24px 80px; }

/* Pricing cards — new style */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pc-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

/* Horizontal scroll variant — for 4-card pricing page */
.pc-scroll { position: relative; }
.pc-grid--scroll {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: minmax(290px, 1fr);
  overflow-x: auto;
  padding: 24px 4px 32px;
  margin: -24px -4px -32px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
}
.pc-grid--scroll::-webkit-scrollbar { display: none; }
.pc-grid--scroll.pc-grid--dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
.pc-grid--scroll.pc-grid--dragging .pc-card { pointer-events: none; }
.pc-grid--scroll > .pc-card { scroll-snap-align: start; min-width: 0; }

/* Edge fades — visual hints content is scrollable.
   Extend by -24px to overlap .pricing-wrap's horizontal padding,
   so fade reaches the visible page edge. */
.pc-scroll::before,
.pc-scroll::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 84px;
  pointer-events: none;
  z-index: 2;
}
.pc-scroll::before { left:  -24px; background: linear-gradient(to left,  transparent, var(--color-surface)); opacity: 0; transition: opacity .2s; }
.pc-scroll::after  { right: -24px; background: linear-gradient(to right, transparent, var(--color-surface)); }
.pc-scroll:has(.pc-arrow--left:not([hidden]))::before { opacity: 1; }
.pc-scroll:has(.pc-arrow--right[hidden])::after { opacity: 0; }

/* Arrow buttons */
.pc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  color: var(--color-ink);
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, box-shadow .15s, opacity .2s;
}
.pc-arrow:hover { transform: translateY(-50%) scale(1.05); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.pc-arrow:active { transform: translateY(-50%) scale(.95); }
.pc-arrow[hidden] { display: none; }
.pc-arrow--left  { left:  4px; }
.pc-arrow--right { right: 4px; }

.pc-card {
  position: relative;
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.pc-card--highlight {
  border-color: var(--color-brand);
  box-shadow: 0 8px 32px rgba(37,99,235,.14);
  transform: translateY(-10px);
}

/* Floating pill badge — sits above card top, doesn't add height */
.pc-banner {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-brand), #60A5FA);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: .06em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
  z-index: 1;
}

.pc-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.pc-icon {
  width: 38px; height: 38px;
  background: var(--color-surface);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-ink-soft);
  flex-shrink: 0;
}
.pc-icon--brand {
  background: var(--color-brand-light);
  color: var(--color-brand);
}
.pc-name { font-size: var(--font-size-lg); font-weight: var(--font-weight-extrabold); }

.pc-price  { font-size: 38px; font-weight: var(--font-weight-black); letter-spacing: -1px; margin-bottom: 8px; line-height: 1; }
.pc-period { font-size: var(--font-size-base); font-weight: var(--font-weight-medium); color: var(--color-muted); }

.pc-desc { font-size: var(--font-size-base); color: var(--color-muted); line-height: 1.55; margin-bottom: 20px; min-height: 64px; }

.pc-cta {
  width: 100%; padding: 12px;
  border: none; border-radius: var(--radius-md);
  font-family: inherit; font-size: var(--font-size-md); font-weight: var(--font-weight-bold);
  cursor: pointer;
  background: var(--color-ink); color: #fff;
  transition: opacity .15s;
  margin-bottom: 20px;
}
.pc-cta:hover   { opacity: .88; }
.pc-cta--brand  { background: var(--color-brand); }

.pc-divider { border: none; border-top: 1px solid var(--color-divider); margin-bottom: 18px; }

.pc-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pc-feature  { display: flex; align-items: flex-start; gap: 8px; font-size: var(--font-size-base); color: var(--color-ink-soft); line-height: 1.5; }
.pc-feature strong { color: var(--color-ink); font-weight: var(--font-weight-bold); }
.pc-check    { color: var(--color-muted); margin-top: 1px; flex-shrink: 0; }

/* Landing pricing section */
.pc-section       { background: var(--color-surface); padding: var(--space-20) 24px; }
.pc-section__sub  { color: var(--color-muted); font-size: var(--font-size-md); margin-top: 8px; }
.pc-section__all  { text-align: center; margin-top: 28px; color: var(--color-muted); font-size: var(--font-size-base); }
.pc-section__link { color: var(--color-brand); font-weight: var(--font-weight-bold); cursor: pointer; }
.pc-section__link:hover { text-decoration: underline; }

/* ════════════════════════════════════════════
   DASHBOARD SHELL
════════════════════════════════════════════ */
.dashboard { display: flex; background: var(--color-surface); min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: var(--color-canvas);
  border-right: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  padding: 16px 10px;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  z-index: 20;
}
.sidebar__logo   { padding-left: 8px; margin-bottom: 18px; }
.sidebar__biz    { padding: 0 6px; margin-bottom: 14px; }
.sidebar__label  {
  display: block;
  margin-bottom: 4px;
  padding: 0;
  background: none;
  color: var(--color-muted);
}
.sidebar__label::before { display: none; }
/* Custom dropdown component */
.dd { position: relative; }
.dd__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: var(--font-size-md);
  font-family: inherit;
  color: var(--color-ink);
  cursor: pointer;
  transition: border-color .15s;
}
/* Compact size — for sidebars, dense UIs */
.dd--sm .dd__trigger {
  padding: 8px 10px;
  font-size: var(--font-size-base);
  border-radius: var(--radius-sm);
}
.dd__trigger:hover { border-color: var(--color-ink-soft); }
.dd--open .dd__trigger { border-color: var(--color-brand); }
.dd__label  { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd__caret  { color: var(--color-muted); transition: transform .18s, color .18s; flex-shrink: 0; }
.dd--open .dd__caret { transform: rotate(180deg); color: var(--color-brand); }

.dd__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  padding: 6px;
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
}
.dd__opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 12px;
  font-size: var(--font-size-base);
  font-family: inherit;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.dd__opt:hover { background: var(--color-surface); }
.dd__opt[aria-selected="true"] {
  background: var(--color-brand-light);
  color: var(--color-brand);
  font-weight: var(--font-weight-bold);
}
.dd__opt[aria-selected="true"]::after {
  content: '✓';
  margin-left: auto;
  font-size: var(--font-size-base);
  color: var(--color-brand);
}

/* Dark variant — for use on dark backgrounds (footer CTA) */
.dd--dark .dd__trigger {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.1);
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.dd--dark .dd__trigger:hover { border-color: rgba(255,255,255,.25); }
.dd--dark.dd--open .dd__trigger { border-color: rgba(255,255,255,.4); }
.dd--dark .dd__caret { color: rgba(255,255,255,.6); }
.dd--dark.dd--open .dd__caret { color: #fff; }
.sidebar__nav    { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 8px 4px; overflow-y: auto; }
.sidebar__nav-group { display: flex; flex-direction: column; gap: 2px; }
.sidebar__nav-label {
  display: block;
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-subtle);
  letter-spacing: .12em;
  padding: 6px 12px 4px;
}
.sidebar__promo {
  position: relative;
  overflow: hidden;
  margin: 8px 6px 0;
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-brand) 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 14px;
  color: #fff;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
}
.sidebar__promo::before {
  content: ''; position: absolute; width: 140px; height: 140px;
  background: rgba(255,255,255,.18); border-radius: 50%; filter: blur(40px);
  top: -60px; right: -40px; pointer-events: none;
}
.sidebar__promo-body { position: relative; z-index: 1; }
.sidebar__promo:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37,99,235,.32); }

.sidebar__promo-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: .08em;
  background: rgba(255,255,255,.22);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.sidebar__promo-title {
  font-size: 14px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -.2px;
  margin-bottom: 4px;
}
.sidebar__promo-sub {
  font-size: 11px;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
  margin-bottom: 10px;
}
.sidebar__promo-cta {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  background: #fff;
  color: var(--color-ink);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: -.1px;
}
.sidebar__promo-gift {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: .55;
  pointer-events: none;
  user-select: none;
}

.dash-main { margin-left: var(--sidebar-width); flex: 1; }
.dash-topbar {
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-divider);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.dash-topbar__greet {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.dash-topbar__hello {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-ink);
  letter-spacing: -.1px;
}
.dash-topbar__date {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  font-weight: var(--font-weight-semibold);
}
.dash-topbar__actions { display: flex; align-items: center; gap: var(--space-2); position: relative; }

/* Icon buttons in topbar (notif + settings) */
.dash-topbar__icon-btn {
  position: relative;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  color: var(--color-ink-soft);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.dash-topbar__icon-btn:hover {
  background: var(--color-surface);
  border-color: var(--color-ink-soft);
  color: var(--color-ink);
}
.dash-topbar__icon-btn[aria-expanded="true"] {
  background: var(--color-surface);
  border-color: var(--color-ink-soft);
  color: var(--color-ink);
}
.dash-topbar__notif-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 8px; height: 8px;
  background: var(--color-error);
  border: 2px solid var(--color-canvas);
  border-radius: 50%;
}

/* Notification popover (dropdown panel anchored to bell) */
.dash-topbar__popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  z-index: 100;
  overflow: hidden;
  animation: dash-pop-in .18s ease;
}
@keyframes dash-pop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dash-topbar__popover-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.dash-topbar__popover-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-ink);
}
.dash-topbar__popover-mark {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}
.dash-topbar__popover-mark:hover { background: var(--color-brand-light); }
.dash-topbar__popover-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 340px;
  overflow-y: auto;
}
.dash-topbar__notif {
  display: flex;
  gap: var(--space-3);
  padding: 10px var(--space-4);
  cursor: pointer;
  transition: background .12s;
}
.dash-topbar__notif:hover { background: var(--color-surface); }
.dash-topbar__notif-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--font-size-base);
}
.dash-topbar__notif-icon--success { background: var(--color-success-light); }
.dash-topbar__notif-icon--warning { background: var(--color-warning-light); }
.dash-topbar__notif-icon--brand   { background: var(--color-brand-light); }
.dash-topbar__notif-icon--error   { background: var(--color-error-light); }
.dash-topbar__notif-body { flex: 1; min-width: 0; }
.dash-topbar__notif-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-ink);
  line-height: 1.35;
}
.dash-topbar__notif-time {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin-top: 2px;
}
.dash-view  { padding: 24px; }

.settings-placeholder { padding: 40px 0; }
.settings-placeholder h2 { font-size: var(--font-size-2xl); font-weight: var(--font-weight-extrabold); }
.settings-placeholder p  { color: var(--color-muted); margin-top: 4px; }

/* ════════════════════════════════════════════
   DASHBOARD HOME (modern)
════════════════════════════════════════════ */
.dh-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}
.dh-greeting { font-size: 28px; font-weight: var(--font-weight-extrabold); letter-spacing: -.5px; margin-bottom: 4px; }
.dh-sub      { font-size: var(--font-size-md); color: var(--color-muted); }
.dh-sub strong { color: var(--color-ink); font-weight: var(--font-weight-bold); }
.dh-header__date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 8px 14px;
}
.dh-header__date-label { font-size: 10px; font-weight: var(--font-weight-extrabold); color: var(--color-muted); letter-spacing: .12em; }
.dh-header__date-value { font-size: var(--font-size-base); color: var(--color-ink); font-weight: var(--font-weight-bold); margin-top: 2px; }

/* KPI cards */
.dh-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.dh-kpi {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  padding: 18px 20px;
}
.dh-kpi__label {
  display: block;
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-muted);
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.dh-kpi__value {
  font-size: 32px;
  font-weight: var(--font-weight-black);
  color: var(--color-ink);
  letter-spacing: -1px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.dh-kpi__delta {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}
.dh-kpi__delta--success { color: var(--color-success); }
.dh-kpi__delta--muted   { color: var(--color-muted); }
.dh-kpi__sub { font-weight: var(--font-weight-medium); color: var(--color-muted); }

/* Row: chart + score side-by-side */
.dh-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 12px;
  margin-bottom: 16px;
}
.dh-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  padding: 22px 24px;
}
.dh-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.dh-card__title { font-size: var(--font-size-lg); font-weight: var(--font-weight-extrabold); }
.dh-card__sub   { font-size: 12px; color: var(--color-muted); margin-top: 2px; }

.dh-badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}
.dh-badge--success { background: var(--color-success-light); color: var(--color-success); }

/* Chart card */
.dh-chart__canvas { height: 220px; position: relative; }

/* Score card */
.dh-score { display: flex; flex-direction: column; align-items: center; text-align: center; }
.dh-score .dh-card__head { width: 100%; }
.dh-score__ring { margin: 6px 0 14px; }
.dh-score__pill {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  background: var(--color-brand-light);
  color: var(--color-brand);
}

/* AI action card — featured row */
.dh-action {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}
.dh-action::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(37,99,235,.08), transparent 70%);
  right: -80px; top: -80px;
  pointer-events: none;
}
.dh-action__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
}
.dh-action__eyebrow { font-size: 11px; font-weight: var(--font-weight-extrabold); color: var(--color-brand); letter-spacing: .1em; }
.dh-action__impact {
  background: var(--color-success-light);
  color: var(--color-success);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
  padding: 5px 12px;
  border-radius: 999px;
}
.dh-action__body {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
}
.dh-action__icon {
  width: 52px; height: 52px;
  background: var(--color-surface);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.dh-action__title { font-size: var(--font-size-lg); font-weight: var(--font-weight-extrabold); margin-bottom: 4px; }
.dh-action__desc  { font-size: var(--font-size-base); color: var(--color-muted); line-height: 1.6; }
.dh-action__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-divider);
  position: relative;
}
.dh-action__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: opacity .15s;
}
.dh-action__cta:hover { opacity: .88; }
.dh-action__cta span { font-size: 16px; }
.dh-action__meta { font-size: 12px; color: var(--color-muted); }

/* Responsive */
@media (max-width: 1024px) {
  .dh-row { grid-template-columns: 1fr; }
  .dh-score { padding: 22px; }
}
@media (max-width: 768px) {
  .dh-header { flex-direction: column; align-items: flex-start; }
  .dh-kpis { grid-template-columns: repeat(2, 1fr); }
  .dh-kpi__value { font-size: 26px; }
  .dh-action__footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ════════════════════════════════════════════
   DASHBOARD OVERVIEW v2  (AETHER-inspired 65/35)
   Classes: dh-overview / dh-grid-65-35 / dh-hero / dh-kpi-tile /
            dh-side / dh-score-card / dh-pro / dh-trend / dh-recs /
            dh-rec / dh-activity
   All colors from design tokens (--color-brand, semantic-light, neutrals).
════════════════════════════════════════════ */
.dh-overview {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.dh-grid-65-35 {
  display: grid;
  grid-template-columns: 1.85fr 1fr;   /* ~65/35 */
  gap: var(--space-5);
}
.dh-grid-65-35 > * { min-width: 0; }

/* ── HERO (left) ── */
.dh-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.dh-hero__greeting {
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -.6px;
  margin: 0 0 var(--space-2);
  color: var(--color-ink);
}
.dh-hero__sub {
  font-size: var(--font-size-md);
  color: var(--color-muted);
  margin: 0;
}

/* KPI tiles — 2x2 pastel grid with arrow buttons */
.dh-kpis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.dh-kpi-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4) var(--space-8);
  border-radius: var(--radius-lg);
  min-height: 140px;
}
.dh-kpi-tile--peach { background: var(--color-warning-light); }
.dh-kpi-tile--blue  { background: var(--color-brand-light); }
.dh-kpi-tile--mint  { background: var(--color-success-light); }
.dh-kpi-tile--cream { background: var(--color-surface); }

.dh-kpi-tile__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-ink-soft);
}
.dh-kpi-tile__value {
  font-size: 32px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -.6px;
  color: var(--color-ink);
  margin-top: auto;
}
.dh-kpi-tile__meta {
  display: flex; gap: 4px; align-items: baseline;
  font-size: var(--font-size-xs);
}
.dh-kpi-tile__delta { color: var(--color-success); font-weight: var(--font-weight-bold); }
.dh-kpi-tile__sub   { color: var(--color-muted); }

.dh-kpi-tile__cta {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-ink);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.dh-kpi-tile__cta svg { width: 14px; height: 14px; }
.dh-kpi-tile__cta:hover { background: var(--color-ink-mid); transform: translate(-1px, -1px); }

/* ── SIDE (right column: score + pro) ── */
.dh-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Score card — dark */
.dh-score-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 1.5px) 0 0 / 20px 20px,
    linear-gradient(135deg, var(--color-ink-dark) 0%, var(--color-ink-mid) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.dh-score-card::before {
  content: ''; position: absolute; width: 200px; height: 200px;
  background: rgba(37,99,235,.25); border-radius: 50%; filter: blur(80px);
  top: -60px; right: -60px; pointer-events: none;
}
.dh-score-card::after {
  content: ''; position: absolute; width: 160px; height: 160px;
  background: rgba(139,92,246,.18); border-radius: 50%; filter: blur(60px);
  bottom: -50px; left: -50px; pointer-events: none;
}
.dh-score-card > * { position: relative; z-index: 1; }
.dh-score-card__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-2);
}
.dh-score-card__label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dh-score-card__pill {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  background: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.dh-score-card__ring {
  display: flex; justify-content: center; align-items: center;
  margin: var(--space-2) 0;
  flex: 1;
}
.dh-score-card__sub {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,.55);
  text-align: center;
  margin: 0;
}

/* Pro upgrade card — brand gradient + dot pattern, click opens upgrade modal */
.dh-pro {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.09) 1px, transparent 1.5px) 0 0 / 18px 18px,
    linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-hover) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.dh-pro:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(37,99,235,.35), inset 0 0 0 1px rgba(255,255,255,.14);
}
.dh-pro::before {
  content: ''; position: absolute; width: 180px; height: 180px;
  background: rgba(255,255,255,.14); border-radius: 50%; filter: blur(40px);
  top: -60px; right: -40px; pointer-events: none;
}
.dh-pro::after {
  content: ''; position: absolute; width: 140px; height: 140px;
  background: rgba(139,92,246,.32); border-radius: 50%; filter: blur(50px);
  bottom: -50px; left: -30px; pointer-events: none;
}
.dh-pro > * { position: relative; z-index: 1; }
.dh-pro__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: .12em;
  background: rgba(255,255,255,.18);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}
.dh-pro__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -.3px;
  margin: 0 0 var(--space-1);
  max-width: 180px;
  line-height: 1.3;
}
.dh-pro__sub {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.75);
  line-height: 1.5;
  margin: 0 50px 0 0;
}
.dh-pro__cta {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-ink);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform .15s;
}
.dh-pro__cta svg { width: 14px; height: 14px; }
.dh-pro__cta:hover { transform: translate(-1px, -1px); }

/* ── TREND chart (Row 2 left) ── */
.dh-trend {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.dh-trend__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: var(--space-5);
}
.dh-trend__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  margin: 0 0 2px;
  color: var(--color-ink);
}
.dh-trend__subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin: 0;
}
.dh-trend__filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-ink-soft);
  cursor: pointer;
}
.dh-trend__summary {
  display: flex; align-items: baseline; gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.dh-trend__total {
  font-size: 28px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -.5px;
  color: var(--color-ink);
}
.dh-trend__delta {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-success);
  background: var(--color-success-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.dh-trend__total-sub {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}
.dh-trend__chart {
  height: 220px;
  position: relative;
}

/* ── RECOMMENDATIONS (Row 2 right) ── */
.dh-recs {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.dh-recs__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  margin: 0;
  color: var(--color-ink);
}
.dh-rec {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-3);
  align-items: flex-start;
}
.dh-rec__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.dh-rec__icon--brand   { background: var(--color-brand-light); }
.dh-rec__icon--warning { background: var(--color-warning-light); }
.dh-rec__icon--success { background: var(--color-success-light); }
.dh-rec__title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  margin: 0 0 2px;
}
.dh-rec__desc {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0 0 var(--space-2);
}
.dh-rec__link {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-text);
  text-decoration: none;
}
.dh-rec__link:hover { text-decoration: underline; }

/* ── RECENT ACTIVITY table (Row 3, full width) ── */
.dh-activity {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.dh-activity__head {
  margin-bottom: var(--space-5);
}
.dh-activity__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  margin: 0 0 2px;
  color: var(--color-ink);
}
.dh-activity__sub {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin: 0;
}
.dh-activity__table {
  width: 100%;
  border-collapse: collapse;
}
.dh-activity__table th,
.dh-activity__table td {
  padding: var(--space-3) 0;
  text-align: left;
  font-size: var(--font-size-base);
  border-bottom: 1px solid var(--color-border);
}
.dh-activity__table th {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dh-activity__table tbody tr:last-child td { border-bottom: 0; }
.dh-activity__table td:first-child {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--color-ink);
  font-weight: var(--font-weight-medium);
}
.dh-activity__action-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.dh-activity__date {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
}
.dh-activity__result {
  color: var(--color-ink-soft);
  font-weight: var(--font-weight-semibold);
}
.dh-activity__status {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.dh-activity__status--success { background: var(--color-success-light); color: var(--color-success); }
.dh-activity__status--brand   { background: var(--color-brand-light);   color: var(--color-brand-text); }
.dh-activity__status--warning { background: var(--color-warning-light); color: var(--color-warning); }
.dh-activity__status--error   { background: var(--color-error-light);   color: var(--color-error); }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .dh-grid-65-35 { grid-template-columns: 1fr; }
  .dh-side { flex-direction: row; }
  .dh-side > * { flex: 1; }
}
@media (max-width: 720px) {
  .dh-kpis-grid  { grid-template-columns: 1fr; }
  .dh-side       { flex-direction: column; }
  .dh-trend      { padding: var(--space-5); }
  .dh-activity   { padding: var(--space-5); }
  .dh-activity__table th:nth-child(2),
  .dh-activity__table td:nth-child(2) { display: none; }   /* hide Date column on mobile */
}

/* ════════════════════════════════════════════
   DASHBOARD CHATBOT  (cb-*)
   Floating bubble bottom-right of viewport, only rendered in dashboard shell.
════════════════════════════════════════════ */
.cb-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-hover));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,99,235,.4);
  z-index: 1000;
  transition: transform .2s ease;
}
.cb-fab:hover  { transform: scale(1.06); }
.cb-fab:active { transform: scale(.96); }
.cb-fab svg    { width: 24px; height: 24px; }
.cb-fab[hidden] { display: none; }

.cb-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 560px;
  max-height: calc(100vh - 48px);
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}
.cb-panel[hidden] { display: none; }

.cb-panel__head {
  padding: var(--space-4) var(--space-4) var(--space-3);
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--color-border);
}
.cb-panel__title {
  display: flex; align-items: center; gap: var(--space-2);
  font-weight: var(--font-weight-extrabold);
  font-size: var(--font-size-base);
  color: var(--color-ink);
}
.cb-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-hover));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.cb-close {
  width: 28px; height: 28px;
  background: var(--color-surface);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cb-close:hover { background: var(--color-divider); color: var(--color-ink); }

.cb-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cb-msg {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  line-height: 1.55;
  word-wrap: break-word;
}
.cb-msg--bot {
  align-self: flex-start;
  background: var(--color-surface);
  color: var(--color-ink);
  border-bottom-left-radius: 4px;
}
.cb-msg--bot strong { color: var(--color-ink); font-weight: var(--font-weight-bold); }
.cb-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--color-brand-text);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--color-brand-border);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.cb-link:hover { text-decoration-color: var(--color-brand); }
.cb-msg--user {
  align-self: flex-end;
  background: var(--color-brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.cb-typing {
  display: inline-flex; gap: 4px;
  padding: 12px 16px;
}
.cb-typing-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-subtle);
  animation: cb-typing-blink 1.2s infinite ease-in-out;
}
.cb-typing-dot:nth-child(2) { animation-delay: .15s; }
.cb-typing-dot:nth-child(3) { animation-delay: .30s; }
@keyframes cb-typing-blink {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

.cb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 var(--space-4) var(--space-3);
}
.cb-chip {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: var(--font-size-xs);
  font-family: inherit;
  color: var(--color-ink-soft);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.cb-chip:hover {
  background: var(--color-brand-light);
  color: var(--color-brand-text);
  border-color: var(--color-brand-border);
}

.cb-input-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
}
.cb-input {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: inherit;
  font-size: var(--font-size-sm);
  color: var(--color-ink);
}
.cb-input::placeholder { color: var(--color-subtle); }
.cb-input:focus { outline: none; border-color: var(--color-brand); background: var(--color-canvas); }

.cb-send {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.cb-send:hover { background: var(--color-brand-hover); }
.cb-send svg   { width: 16px; height: 16px; }

@media (max-width: 480px) {
  .cb-panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 12px;
    height: calc(100vh - 24px);
  }
  .cb-fab { right: 16px; bottom: 16px; }
}

/* ════════════════════════════════════════════
   GO CHECK-IN  (chk-*)
   Kiosk-centric layout: fits one viewport. 3-col main row with
   landscape kiosk device in the center.
════════════════════════════════════════════ */
.chk-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: calc(100vh - 110px);  /* fill viewport: topbar ~62 + dash-view pad 48 */
}

/* Hero band — compact, with decorative orb */
.chk-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, var(--color-canvas) 0%, var(--color-brand-light) 280%);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
}
.chk-hero::before {
  content: ''; position: absolute;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(37,99,235,.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px; right: -40px;
  pointer-events: none;
}
.chk-hero__main { position: relative; z-index: 1; }
.chk-hero__title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -.5px;
  margin: 0 0 2px;
  color: var(--color-ink);
}
.chk-hero__sub {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin: 0;
}
.chk-hero__sub strong { color: var(--color-ink); font-weight: var(--font-weight-bold); }
.chk-hero__meta {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.chk-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-success);
  background: var(--color-success-light);
  border: 1px solid var(--color-success-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.5;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.chk-hero__status:hover { background: var(--color-canvas); border-color: var(--color-success); box-shadow: var(--shadow-card); }
.chk-hero__status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px var(--color-success-light);
}
.chk-hero__status-arrow {
  margin-left: 2px;
  font-weight: var(--font-weight-bold);
  transition: transform .15s;
}
.chk-hero__status:hover .chk-hero__status-arrow { transform: translateX(2px); }
@keyframes chk-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.4); }
}

/* Flow strip — explains check-in → SMS → rating → Reviews so users entering
   Go Check-in first understand where the data flows next */
.chk-flow-strip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.chk-flow-strip__eyebrow {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding-right: var(--space-3);
  border-right: 1px solid var(--color-divider);
}
.chk-flow-strip__step {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  text-align: left;
  color: var(--color-ink-soft);
  flex: 1 1 0;
  min-width: 0;
}
.chk-flow-strip__icon {
  font-size: var(--font-size-xl);
  line-height: 1;
  flex-shrink: 0;
}
.chk-flow-strip__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chk-flow-strip__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  line-height: 1.3;
}
.chk-flow-strip__sub {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  line-height: 1.3;
}
.chk-flow-strip__arrow {
  color: var(--color-subtle);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}
.chk-flow-strip__step--cta {
  cursor: pointer;
  background: var(--color-brand-light);
  border: 1px solid var(--color-brand-border);
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.chk-flow-strip__step--cta:hover {
  background: var(--color-canvas);
  border-color: var(--color-brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.chk-flow-strip__step--cta .chk-flow-strip__label { color: var(--color-brand-text); }
.chk-flow-strip__step--cta .chk-flow-strip__sub   { color: var(--color-brand); font-weight: var(--font-weight-semibold); }

/* KPI strip — pastel tiles with icon, value, trend */
.chk-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.chk-kpi {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: default;
}
.chk-kpi::after {
  content: ''; position: absolute;
  width: 100px; height: 100px;
  border-radius: 50%;
  bottom: -50px; right: -30px;
  pointer-events: none;
  opacity: .55;
}
.chk-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }

.chk-kpi--peach { background: linear-gradient(135deg, #FFF7ED 0%, #FED7AA 220%); }
.chk-kpi--peach::after { background: radial-gradient(circle, rgba(245,158,11,.25), transparent 70%); }
.chk-kpi--blue  { background: linear-gradient(135deg, #EFF6FF 0%, #BFDBFE 220%); }
.chk-kpi--blue::after  { background: radial-gradient(circle, rgba(37,99,235,.22),  transparent 70%); }
.chk-kpi--mint  { background: linear-gradient(135deg, #F0FDF4 0%, #BBF7D0 220%); }
.chk-kpi--mint::after  { background: radial-gradient(circle, rgba(22,163,74,.22),  transparent 70%); }
.chk-kpi--blush { background: linear-gradient(135deg, #FEF2F2 0%, #FECACA 220%); }
.chk-kpi--blush::after { background: radial-gradient(circle, rgba(220,38,38,.20),  transparent 70%); }

.chk-kpi > * { position: relative; z-index: 1; }
.chk-kpi__top { display: flex; justify-content: space-between; align-items: flex-start; }
.chk-kpi__label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-ink-soft);
}
.chk-kpi__icon {
  display: inline-flex;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.85);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.chk-kpi__icon svg { width: 16px; height: 16px; }
.chk-kpi__value-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.chk-kpi__value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -.6px;
  color: var(--color-ink);
  line-height: 1;
}
.chk-kpi__bottom {
  display: flex; justify-content: space-between; align-items: center;
}
.chk-kpi__sub {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  font-weight: var(--font-weight-medium);
}
.chk-kpi__sub--warn { color: var(--color-error); font-weight: var(--font-weight-bold); }
.chk-kpi__trend { width: 22px; height: 22px; flex-shrink: 0; }
.chk-kpi__trend--up   { color: var(--color-success); }
.chk-kpi__trend--down { color: var(--color-error); }

/* Main 3-column grid — customize | kiosk (focus) | prompts + feed */
.chk-main-grid {
  display: grid;
  grid-template-columns: 290px 1fr 290px;
  gap: var(--space-4);
  flex: 1;
  min-height: 0;
}
.chk-main-grid > * { min-width: 0; min-height: 0; }

/* Left column wrapper */
.chk-left { display: flex; min-width: 0; min-height: 0; }
.chk-left > .chk-card { width: 100%; flex: 1; }

/* Card base */
.chk-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.chk-card__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}
.chk-card__title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-extrabold);
  margin: 0 0 2px;
  color: var(--color-ink);
}
.chk-card__sub {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin: 0;
}

/* Recent check-ins feed */
.chk-feed__live { gap: 6px; }
.chk-feed__live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  animation: chk-pulse 2s infinite;
  display: inline-block;
}
.chk-feed__list {
  list-style: none;
  margin: 0; padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.chk-feed__list::-webkit-scrollbar { width: 4px; }
/* Modern customer card — vertical stack: identity header → contact lines → tier pill + visits.
   Plain white card, soft border, no left stripe; tier shows up in the bottom pill. */
.chk-feed__row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  transition: box-shadow .2s, transform .15s, border-color .15s;
  cursor: pointer;
}
.chk-feed__row:hover {
  border-color: var(--color-divider);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
  transform: translateY(-1px);
}

/* Newest row — soft brand wash + subtle ring (preserved from prior design) */
.chk-feed__row.is-just-now {
  background:
    linear-gradient(135deg, var(--color-brand-light) 0%, var(--color-canvas) 70%),
    var(--color-canvas);
  border-color: var(--color-brand-border);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .08);
}
.chk-feed__row.is-just-now:hover {
  box-shadow: 0 8px 20px rgba(37, 99, 235, .12);
}

/* ── Header row: avatar + name/time stack + 3-dot menu ── */
.chk-feed__head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: var(--space-2);
  align-items: center;
}
.chk-feed__avatar {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-extrabold);
  box-shadow: 0 0 0 2px var(--color-canvas), 0 2px 6px rgba(0, 0, 0, .08);
}
.chk-feed__row.is-just-now .chk-feed__avatar::after {
  /* Pulse ring on the newest avatar — same effect as before, draws the eye */
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--color-success);
  animation: chk-feed-pulse 1.6s ease-out infinite;
  pointer-events: none;
}
@keyframes chk-feed-pulse {
  0%   { transform: scale(1);    opacity: .8; }
  100% { transform: scale(1.45); opacity: 0;  }
}
.chk-feed__id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chk-feed__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chk-feed__time {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 1px;
}
.chk-feed__row.is-just-now .chk-feed__time {
  color: var(--color-success);
  font-weight: var(--font-weight-semibold);
}
.chk-feed__menu {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.chk-feed__menu svg { width: 16px; height: 16px; }
.chk-feed__menu:hover { background: var(--color-surface); color: var(--color-ink); }

/* ── Contact lines: phone + email, icon-prefixed, muted ── */
.chk-feed__lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chk-feed__line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-xs);
  color: var(--color-ink-soft);
  min-width: 0;
}
.chk-feed__line svg {
  width: 13px;
  height: 13px;
  color: var(--color-muted);
  flex-shrink: 0;
}
.chk-feed__line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Footer row: tier pill (left) + lifetime visits (right) ── */
.chk-feed__foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}
.chk-feed__pill {
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: .3px;
}
.chk-feed__pill--vip {
  background: var(--color-brand-light);
  color: var(--color-brand);
}
.chk-feed__pill--new {
  background: rgba(34, 197, 94, .12);
  color: var(--color-success);
}
.chk-feed__pill--regular {
  background: var(--color-surface);
  color: var(--color-muted);
}
.chk-feed__visits {
  font-size: 11px;
  color: var(--color-muted);
}

.chk-feed__foot {
  padding-top: var(--space-3);
  margin-top: auto;
  border-top: 1px solid var(--color-border);
}
.chk-feed__more {
  width: 100%;
  background: transparent;
  border: none;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.chk-feed__more:hover { background: var(--color-brand-light); }

/* Fly-to-feed ghost — green check badge that animates from the kiosk's
   success screen to the new feed row (add-to-cart cue). */
.chk-fly-ghost {
  position: fixed;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(34, 197, 94, .45);
  will-change: transform, opacity;
}
.chk-fly-ghost svg { width: 18px; height: 18px; }

/* New row pulse — fires when the fly ghost lands, draws the eye one more
   beat before settling. Overshoot easing gives the "popped in" feel. */
.chk-feed__row.is-just-added {
  animation: chk-row-pop .65s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes chk-row-pop {
  0%   { transform: scale(.96); box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); }
  50%  { transform: scale(1.025); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ──────────────────────────────────────────────
   AI promo suggestion popover — fixed below the 3-dot button on a feed row
────────────────────────────────────────────── */
.chk-promo-menu {
  position: fixed;
  z-index: 9000;
  min-width: 300px;
  max-width: 340px;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .06);
  padding: 6px;
  animation: chk-pop-in .15s ease-out;
}
@keyframes chk-pop-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chk-promo-menu__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4px;
}
.chk-promo-menu__ai {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--color-brand);
}
.chk-promo-menu__ai::before { content: '✨'; font-size: 11px; }
.chk-promo-menu__name {
  font-size: 11px;
  color: var(--color-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 160px;
}
.chk-promo-menu__item {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background .15s;
}
.chk-promo-menu__item:hover { background: var(--color-surface); }
.chk-promo-menu__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.chk-promo-menu__icon svg { width: 16px; height: 16px; }
.chk-promo-menu__icon--brand   { background: var(--color-brand-light);     color: var(--color-brand);   }
.chk-promo-menu__icon--success { background: rgba(34, 197, 94, .12);       color: var(--color-success); }
.chk-promo-menu__icon--warning { background: rgba(245, 158, 11, .15);      color: var(--color-warning); }
.chk-promo-menu__body { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.chk-promo-menu__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-ink);
}
.chk-promo-menu__desc {
  font-size: 11px; line-height: 1.35;
  color: var(--color-muted);
}
.chk-promo-menu__pill {
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  letter-spacing: .3px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-ink);
  white-space: nowrap;
}

/* ──────────────────────────────────────────────
   Promo SMS preview modal — full-screen overlay + centered card.
   SaaS-leaning: airy spacing, soft shadows, editable message textarea,
   inline character counter, two-state body (form ↔ success).
────────────────────────────────────────────── */
.chk-modal-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-5);
  animation: chk-fade-in .15s ease-out;
}
@keyframes chk-fade-in { from { opacity: 0; } to { opacity: 1; } }
.chk-modal {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  background: var(--color-canvas);
  border-radius: 20px;
  box-shadow:
    0 32px 80px rgba(15, 23, 42, .24),
    0 8px 24px rgba(15, 23, 42, .08);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: chk-pop-in .2s cubic-bezier(.16, 1, .3, 1);
}

/* ── Header ── */
.chk-modal__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--space-5) var(--space-5) var(--space-4);
  gap: var(--space-3);
}
.chk-modal__head-info { min-width: 0; }
.chk-modal__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-ink);
  margin: 0;
  letter-spacing: -.2px;
}
.chk-modal__sub {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px;
}
.chk-ai-chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  letter-spacing: .4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--color-brand-light);
  color: var(--color-brand);
}
.chk-modal__suggestion {
  font-size: var(--font-size-xs);
  color: var(--color-ink-soft);
  font-weight: var(--font-weight-semibold);
}
.chk-modal__close {
  width: 32px; height: 32px;
  background: transparent; border: 0; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.chk-modal__close:hover { background: var(--color-surface); color: var(--color-ink); }
.chk-modal__close svg { width: 18px; height: 18px; }

/* ── Body (form state) ── */
.chk-modal__body {
  padding: 0 var(--space-5) var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
/* The [hidden] attribute is `display: none` in UA styles (specificity 0,1,0).
   `.chk-modal__body` / `.chk-modal__foot` have the same specificity but win
   by source order, defeating the toggle. Re-attach hidden with higher
   specificity so the form↔success view swap works. */
.chk-modal__body[hidden],
.chk-modal__foot[hidden] { display: none; }

/* Generic form field used inside modals (label above input). */
.upgrade-field { display: flex; flex-direction: column; gap: 6px; }
.upgrade-field__label { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--color-ink-soft); }
.upgrade-field__input { margin-bottom: 0; }
.chk-modal-overlay[hidden] { display: none; }

/* Upgrade plan modal — two-step wizard (pick plan → enter details). */
.upgrade-modal { max-width: 480px; }

.upgrade-steps {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px;
}
.upgrade-step-dot {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1.5px solid var(--color-divider);
  color: var(--color-muted);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  transition: background .15s, border-color .15s, color .15s;
}
.upgrade-step-dot.is-active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}
.upgrade-step-line {
  width: 28px; height: 2px;
  background: var(--color-divider);
  border-radius: 999px;
}

.upgrade-step-panel {
  display: flex; flex-direction: column; gap: var(--space-4);
  animation: upgrade-step-in .2s ease-out;
}
.upgrade-step-panel[hidden] { display: none; }
@keyframes upgrade-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.upgrade-step-sub {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin: 0;
}

.upgrade-step-actions {
  display: flex; gap: 10px; margin-top: 4px;
}

/* ──────────────────────────────────────────────
   BACK TO TOP — floating button (bottom-right),
   fades in once scrolled past ~400px.
────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-ink);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .18);
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--color-ink-dark, #000);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .25);
}
.back-to-top svg { width: 18px; height: 18px; }

/* ──────────────────────────────────────────────
   TRY DEMO MODAL — small "capture lead" popup
   fired from the Try Demo CTA in header/footer.
────────────────────────────────────────────── */
.try-demo-overlay {
  position: fixed; inset: 0; z-index: 9200;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-5);
  animation: try-demo-fade-in .18s ease-out;
}
@keyframes try-demo-fade-in { from { opacity: 0; } to { opacity: 1; } }
.try-demo-overlay.is-closing { animation: try-demo-fade-out .18s ease-out forwards; }
@keyframes try-demo-fade-out { to { opacity: 0; } }

.try-demo {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--color-canvas);
  border-radius: 24px;
  padding: var(--space-8) var(--space-6) var(--space-6);
  text-align: center;
  box-shadow:
    0 32px 80px rgba(15, 23, 42, .28),
    0 8px 24px rgba(15, 23, 42, .08);
  animation: try-demo-pop .25s cubic-bezier(.16, 1, .3, 1);
}
@keyframes try-demo-pop {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.try-demo__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: transparent; border: 0; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.try-demo__close:hover { background: var(--color-surface); color: var(--color-ink); }
.try-demo__close svg { width: 18px; height: 18px; }

.try-demo__icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-brand) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .28);
}

.try-demo__title {
  font-size: 22px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -.4px;
  color: var(--color-ink);
  margin-bottom: var(--space-2);
}
.try-demo__sub {
  font-size: var(--font-size-base);
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0 auto var(--space-5);
  max-width: 320px;
}

.try-demo__form {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: var(--space-3);
}
.try-demo__input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-divider);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--font-size-md);
  color: var(--color-ink);
  background: var(--color-canvas);
  transition: border-color .15s, box-shadow .15s;
}
.try-demo__input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.try-demo__input::placeholder { color: var(--color-subtle); }

.try-demo__cta {
  display: flex; align-items: center; justify-content: center;
  padding: 13px 24px;
  background: var(--color-ink);
  color: #fff;
  border: 0; border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.try-demo__cta:hover { opacity: .92; transform: translateY(-1px); }

.try-demo__skip {
  background: transparent; border: 0;
  font-family: inherit;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.try-demo__skip:hover { color: var(--color-ink); background: var(--color-surface); }

/* Plan picker — radio rows with name on the left, price on the right. */
.upgrade-plans { display: flex; flex-direction: column; gap: 8px; }
.upgrade-plan {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.upgrade-plan:hover { border-color: var(--color-ink-mid); }
.upgrade-plan__input { position: absolute; opacity: 0; pointer-events: none; }
.upgrade-plan__radio {
  width: 18px; height: 18px;
  border: 2px solid var(--color-divider);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color .15s;
}
.upgrade-plan:has(.upgrade-plan__input:checked) {
  border-color: var(--color-brand);
  background: var(--color-brand-light);
}
.upgrade-plan:has(.upgrade-plan__input:checked) .upgrade-plan__radio { border-color: var(--color-brand); }
.upgrade-plan:has(.upgrade-plan__input:checked) .upgrade-plan__radio::after {
  content: ''; position: absolute; inset: 3px;
  background: var(--color-brand); border-radius: 50%;
}
.upgrade-plan__main { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.upgrade-plan__name { font-size: var(--font-size-base); font-weight: var(--font-weight-bold); color: var(--color-ink); }
.upgrade-plan__badge {
  font-size: 10px; font-weight: var(--font-weight-bold); letter-spacing: .04em;
  padding: 2px 8px; border-radius: 999px;
  background: var(--color-brand); color: #fff;
  text-transform: uppercase;
}
.upgrade-plan__price { font-size: var(--font-size-md); font-weight: var(--font-weight-extrabold); color: var(--color-ink); }
.upgrade-plan__period { font-size: var(--font-size-sm); font-weight: var(--font-weight-normal); color: var(--color-muted); }
.chk-modal__recipient {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}
.chk-modal__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: var(--font-weight-extrabold);
  font-size: var(--font-size-sm);
}
.chk-modal__rec-meta { min-width: 0; }
.chk-modal__rec-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
}
.chk-modal__rec-phone {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

/* Editable message field */
.chk-modal__field {
  display: flex; flex-direction: column;
  gap: 6px;
}
.chk-modal__field-head {
  display: flex; justify-content: space-between; align-items: baseline;
}
.chk-modal__field-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  letter-spacing: .2px;
}
.chk-modal__count {
  font-size: 11px;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
.chk-modal__count.is-over .chk-modal__count-val { color: var(--color-error); font-weight: var(--font-weight-bold); }
.chk-modal__bubble {
  width: 100%;
  background: var(--color-canvas);
  color: var(--color-ink);
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: var(--font-size-sm);
  line-height: 1.55;
  resize: vertical;
  min-height: 110px;
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.chk-modal__bubble:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-light);
}
.chk-modal__field-hint {
  margin: 0;
  font-size: 11px;
  color: var(--color-muted);
}

/* ── AI-flavored message field — soft gradient + label group + regenerate ── */
.chk-modal__field--ai {
  padding: 12px;
  background:
    linear-gradient(135deg, #F5F3FF 0%, #EEF2FF 50%, #ECFEFF 100%);
  border: 1px solid #E0E7FF;
  border-radius: 12px;
  gap: 8px;
}
.chk-modal__field--ai .chk-modal__field-head { align-items: center; }
.chk-modal__label-group {
  display: inline-flex; align-items: center; gap: 6px;
}
.chk-ai-chip--xs {
  font-size: 9px;
  padding: 2px 6px;
}
.chk-modal__field-actions {
  display: inline-flex; align-items: center; gap: 8px;
}
.chk-modal__regen {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  color: var(--color-brand);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chk-modal__regen:hover {
  background: var(--color-brand-light);
  border-color: var(--color-brand);
}
.chk-modal__regen:disabled { opacity: .55; cursor: wait; }
.chk-modal__regen svg { width: 12px; height: 12px; }
.chk-modal__regen.is-spinning svg {
  animation: chk-spin .65s linear infinite;
}
@keyframes chk-spin { to { transform: rotate(360deg); } }

/* Brief shimmer on the textarea while "AI is rewriting" — purely cosmetic */
.chk-modal__bubble.is-regenerating {
  color: transparent;
  background:
    linear-gradient(90deg,
      var(--color-canvas) 0%,
      #EEF2FF 50%,
      var(--color-canvas) 100%);
  background-size: 200% 100%;
  animation: chk-shimmer .8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes chk-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Discount chip selector — segmented control feel; active chip filled brand */
.chk-modal__pcts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.chk-modal__pct {
  padding: 8px 0;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chk-modal__pct:hover {
  border-color: var(--color-subtle, var(--color-divider));
  background: var(--color-surface);
}
.chk-modal__pct.is-active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

/* Inline "Code THANKS10" display next to the Discount label */
.chk-modal__code-inline {
  font-size: 11px;
  color: var(--color-muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.chk-modal__code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-ink);
  letter-spacing: .8px;
  padding: 2px 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

/* ── Body (success state) ── */
.chk-modal__body--success {
  align-items: center;
  text-align: center;
  padding: 32px var(--space-5) var(--space-5);
  gap: var(--space-3);
}
.chk-modal__success-ring {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 197, 94, .35);
  animation: chk-success-pop .55s cubic-bezier(.16, 1, .3, 1);
  position: relative;
}
.chk-modal__success-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, .35);
  animation: chk-success-ring 1.4s ease-out infinite;
}
@keyframes chk-success-pop {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes chk-success-ring {
  0%   { transform: scale(1);    opacity: .7; }
  100% { transform: scale(1.35); opacity: 0;  }
}
.chk-modal__success-ring svg { width: 36px; height: 36px; }
.chk-modal__success-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-ink);
  margin: 4px 0 0;
  letter-spacing: -.3px;
}
.chk-modal__success-sub {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-ink-soft);
}
.chk-modal__success-sub strong {
  color: var(--color-ink);
  font-weight: var(--font-weight-bold);
}
.chk-modal__success-code {
  margin-top: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-ink-soft);
  padding: 8px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-weight: var(--font-weight-semibold);
}
.chk-modal__success-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: .8px;
  color: var(--color-ink);
}

/* ── Footer ── */
.chk-modal__foot {
  padding: var(--space-3) var(--space-5) var(--space-4);
  display: flex; gap: var(--space-3); justify-content: flex-end;
  border-top: 1px solid var(--color-border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .015));
}
.chk-modal__foot--success { justify-content: center; }
.chk-modal__foot--success .btn { min-width: 140px; }

/* ──────────────────────────────────────────────
   Campaign builder modal — larger sibling of the SMS modal.
   Opens from an AI promotion request CTA. Layout: campaign info card →
   AI message field → chat strip; three views (form / confirm / success).
────────────────────────────────────────────── */
.chk-camp-modal { max-width: 600px; }

/* "AI Generated" larger chip — uses an extra spark icon vs the inline xs */
.chk-ai-chip--gen {
  font-size: 11px;
  padding: 4px 10px;
}

/* Campaign info card — soft wash + 2-col info grid */
.chk-camp-card {
  padding: var(--space-4);
  border-radius: 14px;
  border: 1px solid transparent;
}
/* Accents mirror the prompt-card gradients so the campaign card the user
   clicked into reads as the same palette: peach=warning (birthday),
   pink=error (winback), indigo=brand (VIP). */
.chk-camp-card--peach  { background: linear-gradient(135deg, #FFF7ED 0%, #FED7AA 100%); border-color: #FDBA74; }
.chk-camp-card--pink   { background: linear-gradient(135deg, #FEF2F2 0%, #FECACA 100%); border-color: #FCA5A5; }
.chk-camp-card--indigo { background: linear-gradient(135deg, #EFF6FF 0%, #BFDBFE 100%); border-color: #93C5FD; }

.chk-camp-card__title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-ink);
  margin: 0 0 4px;
  letter-spacing: -.2px;
}
.chk-camp-card__title span { margin-left: 4px; }
.chk-camp-card__desc {
  margin: 0;
  font-size: var(--font-size-xs);
  color: var(--color-ink-soft);
  line-height: 1.5;
}
.chk-camp-card__divider {
  height: 0;
  border-top: 1px dashed rgba(0, 0, 0, .12);
  margin: var(--space-3) 0;
}
.chk-camp-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.chk-camp-info { min-width: 0; }
.chk-camp-info__label {
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 2px;
}
.chk-camp-info__value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-ink);
  line-height: 1.25;
}
.chk-camp-info__sub {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 1px;
}

/* Body padding adjustments — bigger modal, more breathing room */
.chk-camp-body { gap: var(--space-3); }

/* ── Campaign chat strip — input + post-send toast ── */
.chk-camp-chat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.chk-chat__input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 6px 6px 6px 14px;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: border-color .15s, box-shadow .15s;
}
.chk-chat__input-row:focus-within {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-light);
}
.chk-chat__input {
  background: transparent;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: var(--font-size-sm);
  color: var(--color-ink);
}
.chk-chat__input::placeholder { color: var(--color-muted); }
.chk-chat__send {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.chk-chat__send:hover { background: var(--color-brand-hover); }
.chk-chat__send:active { transform: scale(.95); }
.chk-chat__send svg { width: 14px; height: 14px; }

/* Post-send toast — confirms the tweak landed and links to the chatbot
   for full history. Sits inline below the chat input so it doesn't
   obscure the campaign card. */
.chk-camp-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-success-light);
  border: 1px solid #BBF7D0;
  border-radius: 999px;
  font-size: var(--font-size-xs);
  color: var(--color-ink);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s;
}
.chk-camp-toast.is-in { opacity: 1; transform: translateY(0); }
/* `display: flex` above overrides UA [hidden] { display: none } via source
   order at equal specificity. Re-attach with higher specificity so the toast
   takes no space until the first send. */
.chk-camp-toast[hidden] { display: none; }
.chk-camp-toast__check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-success);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chk-camp-toast__check svg { width: 11px; height: 11px; }
.chk-camp-toast__text {
  font-weight: var(--font-weight-semibold);
}
.chk-camp-toast__link {
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand);
  cursor: pointer;
}
.chk-camp-toast__link:hover { color: var(--color-brand-hover); }

/* ── Chat view (data-view="chat" inside the campaign modal) ── */
.chk-camp-chat-view {
  gap: var(--space-3);
  min-height: 380px;
}
.chk-camp-chat-head {
  display: grid;
  grid-template-columns: 32px 40px 1fr;
  align-items: center;
  gap: 10px;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.chk-camp-chat-back {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: var(--color-ink-soft);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  transition: background .15s, color .15s;
}
.chk-camp-chat-back:hover { background: var(--color-surface); color: var(--color-ink); }
.chk-camp-chat-back svg { width: 18px; height: 18px; }
.chk-camp-chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand-light) 0%, #DBEAFE 100%);
  color: var(--color-brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.chk-camp-chat-id { min-width: 0; }
.chk-camp-chat-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-ink);
  line-height: 1.2;
}
.chk-camp-chat-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 2px;
}
.chk-camp-chat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  display: inline-block;
}

.chk-camp-chat-history {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
  max-height: 360px;
  min-height: 200px;
}
.chk-camp-chat-history:empty::before {
  content: 'Start typing to tweak this campaign…';
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin: auto;
  text-align: center;
}
.chk-camp-chat-bubble {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 85%;
  word-wrap: break-word;
  animation: chk-bubble-in .2s ease-out;
}
@keyframes chk-bubble-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chk-camp-chat-bubble--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #F472B6 0%, #EC4899 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chk-camp-chat-bubble--ai {
  align-self: flex-start;
  background: var(--color-canvas);
  border: 1px solid #DDD6FE;
  color: var(--color-ink);
  border-bottom-left-radius: 4px;
}
.chk-camp-chat-bubble--ai.is-loading {
  padding: 12px 16px;
}

/* "AI thinking" 3-dot indicator */
.chk-camp-chat-dots { display: inline-flex; align-items: center; gap: 4px; }
.chk-camp-chat-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
  opacity: .35;
  animation: chk-camp-dot 1.2s ease-in-out infinite;
}
.chk-camp-chat-dots span:nth-child(2) { animation-delay: .15s; }
.chk-camp-chat-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes chk-camp-dot {
  0%, 60%, 100% { opacity: .25; transform: translateY(0);    }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* "What changed" card — nested inside an AI bubble */
.chk-camp-change {
  margin-top: 10px;
  border: 1px solid #E0E7FF;
  border-radius: 10px;
  overflow: hidden;
  font-size: var(--font-size-xs);
}
.chk-camp-change__head {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  background: linear-gradient(135deg, #F5F3FF 0%, #EEF2FF 100%);
  border-bottom: 1px solid #E0E7FF;
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
}
.chk-camp-change__icon {
  width: 20px; height: 20px;
  border-radius: 5px;
  background: var(--color-brand-light);
  color: var(--color-brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.chk-camp-change__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: var(--color-canvas);
}
.chk-camp-change__label {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--color-ink-soft);
}
.chk-camp-change__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-warning);
  display: inline-block;
}
.chk-camp-change__value {
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

/* ── Confirm view ── */
.chk-camp-body--confirm {
  align-items: center;
  text-align: center;
  padding: 32px var(--space-5);
}
.chk-camp-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  max-width: 380px;
}
.chk-camp-confirm__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-warning-light);
  color: var(--color-warning);
  display: inline-flex; align-items: center; justify-content: center;
}
.chk-camp-confirm__icon svg { width: 28px; height: 28px; }
.chk-camp-confirm__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-ink);
  margin: 4px 0 0;
}
.chk-camp-confirm__sub {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-ink-soft);
  line-height: 1.55;
}

/* Smart prompts — richer cards with gradient + decorative blob */
.chk-prompts__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.chk-prompts__foot {
  padding-top: var(--space-2);
  margin-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}
.chk-prompts__more {
  width: 100%;
  background: transparent;
  border: none;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.chk-prompts__more:hover { background: var(--color-brand-light); }
.chk-prompt {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.chk-prompt::after {
  content: ''; position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  top: -60px; right: -50px;
  pointer-events: none;
  opacity: .6;
}
.chk-prompt:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }

.chk-prompt--warning { background: linear-gradient(135deg, #FFF7ED 0%, #FED7AA 100%); }
.chk-prompt--warning::after { background: radial-gradient(circle, rgba(245,158,11,.35), transparent 70%); }
.chk-prompt--error   { background: linear-gradient(135deg, #FEF2F2 0%, #FECACA 100%); }
.chk-prompt--error::after   { background: radial-gradient(circle, rgba(220,38,38,.3), transparent 70%); }
.chk-prompt--brand   { background: linear-gradient(135deg, #EFF6FF 0%, #BFDBFE 100%); }
.chk-prompt--brand::after   { background: radial-gradient(circle, rgba(37,99,235,.3), transparent 70%); }

.chk-prompt > * { position: relative; z-index: 1; }
.chk-prompt__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.chk-prompt__icon svg { width: 18px; height: 18px; }
.chk-prompt__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-ink);
  margin-bottom: 2px;
  letter-spacing: -.2px;
}
.chk-prompt__desc {
  font-size: var(--font-size-xs);
  color: var(--color-ink-soft);
  line-height: 1.45;
  margin: 0 0 var(--space-2);
}
/* Prompt CTA — uses .btn.btn-ink.btn-sm (styleguide). No custom styling. */

/* Stage — center column hosting the kiosk preview. Same card chrome as
   .chk-card so the Customize button has a surface to anchor against. */
.chk-stage {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}
.chk-stage__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}
.chk-stage__title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-ink);
  margin: 0;
}
.chk-stage__actions { display: flex; gap: 8px; }

/* Right column wrapper — stacks AI prompts + Recent check-ins.
   Cards collapse to PREVIEW_COUNT items by default so the page fits without
   scrolling. Each card grows on demand when its "View more" toggle is clicked. */
.chk-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  min-height: 0;
}
.chk-right > .chk-card {
  width: 100%;
  flex: 0 0 auto;
  padding: var(--space-4);
}
.chk-right > .chk-card:last-child { flex: 1 0 auto; }
.chk-right > .chk-card .chk-card__head { margin-bottom: var(--space-3); }

/* ── Tablet device frame (landscape 16:10) ── */
.chk-device {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}
.chk-device__frame {
  position: relative;
  background: linear-gradient(145deg, var(--color-ink-dark) 0%, var(--color-ink-mid) 100%);
  border-radius: 28px;
  /* Asymmetric padding keeps the inner screen at exactly 1280:800 aspect
     (the kiosk's native ratio) — symmetric padding would leave horizontal
     letterboxing since the frame is 1.6 ratio but reduced by equal margins. */
  padding: 10px 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.chk-device--landscape .chk-device__frame {
  width: 100%;
  max-width: 820px;
  aspect-ratio: 1280 / 800;
  display: flex;
  flex-direction: column;
}
.chk-device__notch {
  position: absolute;
  left: 6px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 60px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.chk-device__screen {
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  flex: 1;
  position: relative;
}

/* ── Kiosk preview — rendered at native Figma 1280×800 scale.
   .kiosk-wrap fills the device screen; .kiosk-inner is a fixed 1280×800
   surface scaled via JS (see bindKioskScale in checkin.js). Every metric
   below is 1:1 with the source design.                                  */
.kiosk-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* The kiosk surface — all themable values are CSS variables defined here with
   Christmas (v1) as the default fallback. applyTheme() overrides via inline
   style.setProperty(). Brand themes set image vars to `none` and use solid
   colors / gradients for bg + reward cards.                                  */
.kiosk-inner {
  /* ─ Tokens — pre-theme fallback values ─
     Image URLs are deliberately omitted at this layer: any url() declared
     here would resolve against this stylesheet's location (/v4/styles/),
     while url() declared via inline style in JS resolves against the
     document. Mixing the two creates 404s. The JS layer (applyTheme) always
     provides absolute URLs for image vars, so the only defaults that need
     to make sense here are colors / gradients / fonts — the values brand
     themes inherit when they don't override. */
  --k-bg-color:           #000;
  --k-bg-image:           none;
  --k-text-primary:       #FFDB9C;
  --k-text-highlight:     #FFE0AB;
  --k-text-on-bg:         #FFFFFF;
  --k-text-on-reverse:    #111111;
  --k-bg-primary:         #FFDB9C;
  --k-bg-primary-soft:    rgba(255, 255, 255, 0.07);
  --k-border-primary:     #FFDB9C;
  --k-border-highlight:   #FFFFFF;
  --k-link:               #FFDB9C;
  --k-font-highlight:     'Great Vibes', cursive;
  --k-font-heading:       'Graduate', Georgia, serif;
  --k-font-body:          'Graduate', Georgia, serif;
  --k-font-text:          'Plus Jakarta Sans', sans-serif;
  /* Reward cards: vibrant promo gradients as ultimate fallback. Each theme
     overrides with its own palette-matched gradient (brand) or url (seasonal). */
  --k-reward-top-bg:      transparent;
  --k-reward-top-image:   linear-gradient(135deg, #2DD4BF 0%, #14B8A6 100%);
  --k-reward-bot-bg:      transparent;
  --k-reward-bot-image:   linear-gradient(135deg, #FB923C 0%, #EF4444 100%);
  --k-key-glow-image:     none;
  --k-key-glow-alt-image: none;
  --k-key-shadow:         drop-shadow(0 0 8px #111);

  position: absolute;
  top: 0; left: 0;
  width: 1280px;
  height: 800px;
  transform-origin: top left;
  will-change: transform;
  background-color: var(--k-bg-color);
  background-image: var(--k-bg-image);
  background-size: cover;
  background-position: center;
}

/* ── Multi-screen router ──
   The screens frame is the viewport; each .kiosk-screen is absolutely
   positioned inside. CSS states drive slide transitions (see goToScreen in
   checkin.js). Adding a new screen = new .kiosk-screen--xxx layout block.   */
.kiosk-screens-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.kiosk-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  transform: translateX(100%);  /* default: off-screen right */
}
.kiosk-screen.is-active { transform: translateX(0); }
.kiosk-screen.is-prev   { transform: translateX(-100%); }
.kiosk-screen.is-next   { transform: translateX(100%); }

.kiosk-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 24px 0;
  height: 100%;
  box-sizing: border-box;
}

/* TOP */
.kiosk-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kiosk-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.kiosk-statusbar-left {
  display: flex;
  gap: 8px;
  font-family: var(--k-font-text);
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  color: var(--k-text-primary);
}
.kiosk-statusbar-right {
  display: inline-flex;
  align-items: center;
  height: 12px;
  width: 67px;
  color: var(--k-text-primary);
}
.kiosk-statusbar-right svg { width: 100%; height: 100%; }

.kiosk-header-block { display: flex; flex-direction: column; }
.kiosk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -40px;
}
.kiosk-logo-wrap { width: 220px; display: flex; align-items: center; }
.kiosk-logo-img  { height: 32px; width: auto; display: block; }
.kiosk-logo-text {
  font-family: var(--k-font-heading);
  font-size: 22px;
  line-height: 32px;
  color: var(--k-text-primary);
  letter-spacing: .02em;
}
.kiosk-skip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--k-border-primary);
  border-radius: 4px;
  padding: 4px 20px 4px 24px;
  font-family: var(--k-font-heading);
  font-size: 20px;
  line-height: 32px;
  color: var(--k-text-primary);
  cursor: pointer;
}
.kiosk-skip-arrow {
  display: inline-flex;
  width: 20px;
  height: 14px;
  color: inherit;
}
.kiosk-skip-arrow svg { width: 100%; height: 100%; }

.kiosk-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  color: var(--k-text-primary);
  white-space: nowrap;
}
.kiosk-heading-script {
  font-family: var(--k-font-highlight);
  font-size: var(--k-heading-script-size, 64px);
  line-height: var(--k-heading-script-line, 64px);
  font-weight: 400;
  text-transform: var(--k-heading-script-case, none);
  letter-spacing: var(--k-heading-script-spacing, normal);
}
.kiosk-heading-main {
  font-family: var(--k-font-heading);
  font-size: var(--k-heading-main-size, 44px);
  line-height: var(--k-heading-main-line, 52px);
  text-transform: uppercase;
}

/* MAIN */
.kiosk-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-right: 90px;
  width: 100%;
}
.kiosk-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding-left: 16px;
}

.kiosk-rewards {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 360px;
}
.kiosk-rewards-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.kiosk-arrow {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: var(--k-text-primary);
}
.kiosk-arrow svg { width: 100%; height: 100%; }

.kiosk-reward {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}
.kiosk-reward--top {
  width: 360px;
  height: 201px;
  background-color: var(--k-reward-top-bg);
  background-image: var(--k-reward-top-image);
}
.kiosk-reward--bot {
  width: 312px;
  height: 177px;
  background-color: var(--k-reward-bot-bg);
  background-image: var(--k-reward-bot-image);
}
.kiosk-reward-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.kiosk-reward-points {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--k-text-highlight);
  font-family: var(--k-font-heading);
  width: 92px;
}
.kiosk-reward-num   { font-size: 48px; line-height: 56px; width: 100%; }
.kiosk-reward-label { font-size: 20px; line-height: 28px; width: 100%; }
.kiosk-reward-desc {
  font-family: var(--k-font-body);
  font-size: 24px;
  line-height: 20px;
  color: var(--k-text-on-bg);
  width: 360px;
}

.kiosk-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 652px;
}
.kiosk-consent { display: flex; gap: 24px; align-items: flex-start; }
.kiosk-consent-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--k-text-on-bg);
}
.kiosk-consent-icon svg { width: 100%; height: 100%; }
.kiosk-consent-text {
  margin: 0;
  font-family: var(--k-font-text);
  font-size: 14px;
  line-height: 20px;
  color: var(--k-text-on-bg);
  width: 604px;
}
.kiosk-consent-link { color: var(--k-link); }
.kiosk-version {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--k-font-text);
  font-size: 14px;
  color: var(--k-text-on-bg);
}
.kiosk-version-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  padding: 2px;
  color: var(--k-text-on-bg);
  transform: rotate(180deg);
}
.kiosk-version-icon svg { width: 100%; height: 100%; }

/* RIGHT */
.kiosk-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.kiosk-input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  padding: var(--k-input-padding, 0 24px);
  background: var(--k-input-bg, var(--k-bg-primary));
  border: var(--k-input-border-width, 1px) solid var(--k-input-border, var(--k-border-highlight));
  border-radius: 12px;
  font-family: var(--k-font-body);
  font-size: 36px;
  line-height: 36px;
  color: var(--k-input-color, var(--k-text-on-reverse));
  text-align: center;
  transition: background-color .2s, border-color .2s, color .2s, padding .2s;
}
/* Empty state — hide the box entirely until the user types a digit.
   We still reserve the 72px height so the keypad below doesn't jump up. */
.kiosk-input:empty {
  background: transparent;
  border-color: transparent;
  padding: 0;
}
.kiosk-input.is-error {
  border-color: var(--color-error);
  color: var(--color-error);
  animation: kiosk-shake .35s ease;
}
@keyframes kiosk-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.kiosk-keypad {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 112px);
  grid-template-rows: repeat(4, 112px);
  gap: 16px;
  width: 368px;
  height: 496px;
}
.kiosk-key {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  padding: 0;
  border: 1.5px solid var(--k-border-primary);
  border-radius: 60px;
  background-color: var(--k-bg-primary-soft);
  font-family: var(--k-font-heading);
  font-size: 48px;
  line-height: 56px;
  color: var(--k-key-color, var(--k-text-primary));
  cursor: pointer;
  overflow: hidden;
}
/* Pseudo provides the optional decorative glow (Christmas key-ellipse art).
   Brand themes set --k-key-glow-image: none and the layer becomes invisible. */
.kiosk-key::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--k-key-glow-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .9;
  pointer-events: none;
}
.kiosk-key--alt::before { background-image: var(--k-key-glow-alt-image, none); }
.kiosk-key > span {
  position: relative;
  z-index: 1;
  padding-top: 4px;
}
.kiosk-key--next {
  background-color: var(--k-bg-primary);
  background-image: var(--k-next-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--k-text-on-reverse);
  border-color: var(--k-border-primary);
  filter: var(--k-key-shadow);
  font-family: var(--k-font-body);
  font-size: 28px;
  line-height: 36px;
}
.kiosk-key--next::before { display: none; }
.kiosk-key--next > span { padding-top: 4px; }
.kiosk-key--next.is-disabled { opacity: .45; }

/* ── SCREEN 2: Enter Name ──
   Layout from Figma Christmas Test-Theme-2 (node 2:12946). Back button is
   absolutely positioned top-left; the form (heading + line input + NEXT
   button) is anchored to the geometric center of the screen.               */
/* Nav buttons — circular outline buttons positioned at a top corner of the
   screen. .kiosk-back lives top-left (Enter Name / Birthday / Email), .kiosk-close
   lives top-right (Success). Identical shape + theme-aware colors; only the
   corner anchor and the inner icon size differ. */
.kiosk-back,
.kiosk-close {
  position: absolute;
  top: 40px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--k-nav-bg, transparent);
  border: 1px solid var(--k-nav-border, var(--k-border-primary));
  border-radius: 24px;
  color: var(--k-text-primary);
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: opacity .15s;
}
.kiosk-back  { top: 60px; left: 40px; }
.kiosk-close { right: 40px; }
.kiosk-back:hover,
.kiosk-close:hover { opacity: .85; }

.kiosk-back-icon,
.kiosk-close-icon {
  display: inline-flex;
  color: inherit;
}
.kiosk-back-icon svg,
.kiosk-close-icon svg { width: 100%; height: 100%; }
.kiosk-back-icon  { width: 20px; height: 14px; transform: rotate(180deg); }  /* skip-arrow flipped to point left */
.kiosk-close-icon { width: 20px; height: 20px; }

.kiosk-name-form {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  /* .kiosk-content has z-index:1 and covers the full screen — without an
     explicit z-index here, the form (and its input) sits beneath it in the
     stacking order, so user clicks on the input fall through to the content
     layer instead of reaching the input. */
  z-index: 2;
}
.kiosk-name-group {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}
.kiosk-name-heading {
  font-family: var(--k-font-heading);
  font-size: 44px;
  line-height: 52px;
  text-transform: uppercase;
  text-align: center;
  color: var(--k-text-primary);
  width: 100%;
}
.kiosk-name-input-wrap {
  border-bottom: 1px solid var(--k-line-border, var(--k-border-primary));
  padding: 0 10px 12px;
  width: 100%;
}
.kiosk-name-input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-family: var(--k-font-heading);
  font-size: 64px;
  line-height: 72px;
  color: var(--k-text-primary);
  text-align: center;
  text-transform: uppercase;
  padding: 0;
  caret-color: var(--k-text-primary);
}
.kiosk-name-input::placeholder {
  color: var(--k-text-primary);
  opacity: .35;
  text-transform: none;
}
.kiosk-name-input.is-error,
.kiosk-name-input.is-error::placeholder {
  color: var(--color-error);
  animation: kiosk-shake .35s ease;
}

.kiosk-name-next {
  width: 560px;
  height: 112px;
  background-color: var(--k-bg-primary);
  background-image: var(--k-name-next-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  border-radius: 8px;
  font-family: var(--k-font-body);
  font-size: 40px;
  line-height: 48px;
  color: var(--k-text-on-reverse);
  cursor: pointer;
  padding-top: 4px;
  filter: var(--k-key-shadow);
  transition: opacity .15s;
}
.kiosk-name-next.is-disabled { opacity: .45; cursor: not-allowed; }
.kiosk-name-next:not(.is-disabled):hover { filter: var(--k-key-shadow) brightness(1.05); }

/* ── Virtual iPad keyboard ──
   Mimics iPadOS native keyboard for desktop preview. Slides up from the
   bottom of the kiosk screen when Enter Name becomes active. The keyboard
   is *cosmetic-fidelity* — it doesn't respect theme color tokens because
   iPad's keyboard chrome is identical across all apps. */
.kiosk-keyboard {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 300px;
  background: linear-gradient(180deg, #D7DAE0 0%, #C5C8CE 100%);
  padding: 8px 6px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(100%);
  /* Slight delay so the screen slide finishes first, then the keyboard
     rises up — same staggered feel as iPadOS. Delay applies on entrance
     only; when the user dismisses with Enter we want an immediate drop. */
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  z-index: 10;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  user-select: none;
}
.kiosk-keyboard.is-open {
  transform: translateY(0);
  transition-delay: .15s;
}
.kiosk-kbd-row {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex: 1;
  min-height: 0;
}
/* Row 2 has 9 keys (A-L) — center them, same widths as row 1 */
.kiosk-kbd-row--2 { padding: 0 60px; }
.kiosk-kbd-key {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 26px;
  font-weight: 400;
  color: #000;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  padding: 0;
  transition: background-color .05s, transform .05s;
}
.kiosk-kbd-key:hover { background: #F2F4F7; }
.kiosk-kbd-key:active {
  background: #C8CCD2;
  transform: translateY(1px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.kiosk-kbd-key--wide   { flex: 1.6; }
.kiosk-kbd-key--space  { flex: 5; }
.kiosk-kbd-key--mod    { background: #ABB0B8; color: #000; font-size: 20px; }
.kiosk-kbd-key--mod:hover { background: #B6BAC1; }
.kiosk-kbd-key--return {
  background: var(--k-bg-primary, #007AFF);
  color: var(--k-text-on-reverse, #fff);
  font-size: 22px;
  font-weight: 500;
}
.kiosk-kbd-key--return:hover { filter: brightness(1.08); background: var(--k-bg-primary, #007AFF); }
.kiosk-kbd-key-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  color: currentColor;
}
.kiosk-kbd-key-icon svg { width: 100%; height: 100%; }

/* Push the form up a bit so the keyboard doesn't overlap the NEXT button */
.kiosk-screen--name .kiosk-name-form {
  top: calc(50% - 130px);
}

/* ── Birthday screen ── */
.kiosk-bd-form {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1040px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  z-index: 2;
}
.kiosk-bd-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: var(--k-text-primary);
}
.kiosk-bd-heading-script {
  font-family: var(--k-font-heading);
  font-size: 36px;
  line-height: 44px;
  opacity: .85;
}
.kiosk-bd-heading-main {
  font-family: var(--k-font-heading);
  font-size: 44px;
  line-height: 52px;
}

.kiosk-bd-pickers {
  display: flex;
  gap: 80px;
  align-items: center;
  justify-content: center;
}
.kiosk-bd-col {
  width: 240px;
  display: flex;
  flex-direction: column;
  user-select: none;
  cursor: grab;
  touch-action: none;
  /* Hint the browser this layer transforms a lot — avoids jank on drag */
  will-change: transform;
}
.kiosk-bd-col:active { cursor: grabbing; }
.kiosk-bd-item {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--k-font-heading);
  font-size: 44px;
  color: var(--k-text-primary);
  border-radius: 10px;
  cursor: pointer;
  transition: opacity .15s ease, background-color .15s ease, color .15s ease;
}
.kiosk-bd-item[data-off="-2"],
.kiosk-bd-item[data-off="2"]  { opacity: .25; }
.kiosk-bd-item[data-off="-1"],
.kiosk-bd-item[data-off="1"]  { opacity: .55; }
.kiosk-bd-item.is-selected {
  background-color: var(--k-bd-active-bg, var(--k-bg-primary));
  background-image: none;
  color: var(--k-text-on-reverse);
  opacity: 1;
}

.kiosk-bd-actions {
  display: flex;
  gap: 32px;
  margin-top: 12px;
}
.kiosk-bd-btn {
  width: 360px;
  height: 104px;
  font-family: var(--k-font-body);
  font-size: 32px;
  line-height: 40px;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: filter .15s, background-color .15s;
}
.kiosk-bd-skip {
  background-color: var(--k-nav-bg, transparent);
  background-image: var(--k-skip-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--k-text-primary);
  border: 1px solid var(--k-border-primary);
}
.kiosk-bd-skip:hover { background: rgba(255, 255, 255, 0.06); }
.kiosk-bd-next {
  background-color: var(--k-bg-primary);
  background-image: var(--k-bd-next-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--k-text-on-reverse);
  border: none;
  filter: var(--k-key-shadow);
}
.kiosk-bd-next:hover { filter: var(--k-key-shadow) brightness(1.05); }
.kiosk-bd-next.is-disabled { opacity: .45; cursor: not-allowed; }
.kiosk-bd-next.is-disabled:hover { filter: var(--k-key-shadow); }

/* ── Email screen ──
   Reuses the .kiosk-bd-btn buttons (same SKIP / NEXT shape as birthday).
   Form is pushed up so the virtual keyboard (300px tall) doesn't overlap. */
.kiosk-email-form {
  position: absolute;
  top: calc(50% - 130px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  z-index: 2;
}
.kiosk-email-heading {
  font-family: var(--k-font-heading);
  font-size: 44px;
  line-height: 52px;
  text-align: center;
  color: var(--k-text-primary);
}
.kiosk-email-input-wrap {
  border-bottom: 1px solid var(--k-line-border, var(--k-border-primary));
  padding: 0 10px 12px;
  width: 720px;
}
.kiosk-email-input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-family: var(--k-font-heading);
  font-size: 48px;
  line-height: 56px;
  color: var(--k-text-primary);
  text-align: center;
  padding: 0;
  caret-color: var(--k-text-primary);
}
.kiosk-email-input::placeholder {
  color: var(--k-text-primary);
  opacity: .35;
}
.kiosk-email-input.is-error,
.kiosk-email-input.is-error::placeholder {
  color: var(--color-error);
  animation: kiosk-shake .35s ease;
}

.kiosk-email-domains {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: nowrap;
}
.kiosk-email-domain {
  flex: 1 1 0;
  min-width: 0;
  height: 64px;
  padding: 0 12px;
  background-color: var(--k-bg-primary);
  background-image: none;
  color: var(--k-text-on-reverse);
  border: none;
  border-radius: 8px;
  font-family: var(--k-font-body);
  font-size: 22px;
  line-height: 28px;
  cursor: pointer;
  filter: var(--k-key-shadow);
  transition: filter .15s, transform .1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kiosk-email-domain:hover  { filter: var(--k-key-shadow) brightness(1.05); }
.kiosk-email-domain:active { transform: translateY(1px); }

.kiosk-email-actions {
  display: flex;
  gap: 32px;
  margin-top: 4px;
}

/* ── Success screen ──
   Theme-driven via --k-success-* tokens. Seasonal swaps in image artwork
   for the divider, coupon background, and gift icon; brand themes use a
   solid color + the shared confetti gift SVG.
   Close button (.kiosk-close) shares its rule with .kiosk-back — see the
   "Nav buttons" block earlier in this file. */
.kiosk-success-body {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1040px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  z-index: 2;
}
.kiosk-success-check {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kiosk-success-check svg { width: 100%; height: 100%; }
.kiosk-success-heading {
  font-family: var(--k-font-heading);
  font-size: 44px;
  line-height: 52px;
  text-align: center;
  color: var(--k-text-primary);
  margin: 0;
}
.kiosk-success-divider {
  width: 680px;
  height: var(--k-success-divider-height, 1px);
  background-color: var(--k-success-divider-color);
  background-image: var(--k-success-divider-image, none);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.kiosk-success-points {
  font-family: var(--k-font-heading);
  font-size: 36px;
  line-height: 44px;
  color: var(--k-success-points-color, var(--k-text-primary));
  text-align: center;
}
.kiosk-success-coupon {
  position: relative;
  width: 680px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 36px 48px;
  background-color: var(--k-success-coupon-bg);
  background-image: var(--k-success-coupon-image, none);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: var(--k-success-coupon-radius, 16px);
  box-sizing: border-box;
}
.kiosk-success-coupon-icon {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  background-image: var(--k-success-gift-image);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.kiosk-success-coupon-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.kiosk-success-coupon-amount {
  font-family: var(--k-font-heading);
  font-size: 56px;
  line-height: 64px;
  color: var(--k-success-coupon-amount-color, var(--k-bg-primary));
  font-weight: 800;
}
.kiosk-success-coupon-redeem {
  font-family: var(--k-font-body);
  font-size: 24px;
  line-height: 32px;
  color: var(--k-success-coupon-redeem-color, var(--k-text-on-bg, var(--k-text-primary)));
  opacity: .85;
}

/* Interactive affordances — pointer cursor on clickable kiosk elements */
.kiosk-arrow,
.kiosk-consent-icon { cursor: pointer; user-select: none; }
.kiosk-arrow:hover,
.kiosk-consent-icon:hover { opacity: .8; }
.kiosk-consent-icon.is-unchecked svg polyline { display: none; }

/* Reward carousel — physical card slide. The whole .kiosk-reward (including
   its gradient bg) translates up/down. Mid-animation each card sits fully
   outside the visible clip — JS swaps content + gradient there so the new
   reward appears to "push in" from the opposite edge. The .kiosk-rewards-clip
   wrapper has overflow:hidden so sliding cards don't bleed into the arrows. */
.kiosk-rewards-clip {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  overflow: hidden;
}
/* Translate distance is larger than the tallest card (201px) so the card is
   fully off-screen at midpoint. The 0.01% step from keyframe 49.99→50 is a
   sub-frame instant "teleport" — invisible because the card is clipped by
   .kiosk-rewards-clip overflow on both ends. Material's standard curve
   (cubic-bezier(.4 0 .2 1)) gives a calmer acceleration/deceleration. */
@keyframes kiosk-card-up {
  0%      { transform: translateY(0); }
  49.99%  { transform: translateY(-320px); }
  50%     { transform: translateY(320px); }
  100%    { transform: translateY(0); }
}
@keyframes kiosk-card-down {
  0%      { transform: translateY(0); }
  49.99%  { transform: translateY(320px); }
  50%     { transform: translateY(-320px); }
  100%    { transform: translateY(0); }
}
.kiosk-reward.is-slide-up   { animation: kiosk-card-up   .6s cubic-bezier(.4, 0, .2, 1); }
.kiosk-reward.is-slide-down { animation: kiosk-card-down .6s cubic-bezier(.4, 0, .2, 1); }

/* ── Customize panel (left column) ── */
.chk-cust__tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}
.chk-cust__tab {
  flex: 1;
  padding: 6px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.chk-cust__tab.is-active {
  background: var(--color-canvas);
  color: var(--color-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.chk-cust__hint {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin: 0 0 var(--space-3);
  line-height: 1.45;
}

/* Theme grid */
.chk-theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  overflow-y: auto;
  /* flex: 1; */
  min-height: 0;
  padding-right: 4px;
}
.chk-theme-grid::-webkit-scrollbar { width: 4px; }

.chk-theme {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 8px;
  background: var(--color-canvas);
  border: 1.5px solid var(--color-divider);
  border-radius: var(--radius-md);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, transform .1s;
  height: fit-content;
}
.chk-theme:hover  { border-color: var(--color-subtle); }
.chk-theme:active { transform: scale(.98); }
.chk-theme.is-active { border-color: var(--color-brand); }

/* Brand: 3-swatch strip + name + font-family preview */
.chk-theme__swatch {
  display: flex;
  gap: 3px;
  height: 38px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.chk-theme__sw         { flex: 1; }
.chk-theme__sw--bg     { flex: 2; }
.chk-theme__meta       { display: flex; flex-direction: column; gap: 2px; }
.chk-theme__font       { font-size: 13px; color: var(--color-muted); line-height: 1.1; }

/* Seasonal: image preview */
.chk-theme__preview {
  height: 58px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
}

.chk-theme__name {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  line-height: 1.2;
}
.chk-theme__check {
  position: absolute;
  top: 6px; right: 6px;
  width: 18px; height: 18px;
  background: var(--color-brand);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
}
.chk-theme.is-active .chk-theme__check { display: flex; }

/* Responsive */
@media (max-width: 1200px) {
  .chk-main-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
  }
  .chk-stage { order: -1; }
}
@media (max-width: 720px) {
  .chk-kpis { grid-template-columns: repeat(2, 1fr); }
  .chk-card { padding: var(--space-4); }
}

/* ════════════════════════════════════════════
   VIEW COMMON HEADER
════════════════════════════════════════════ */
.view-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.view-title  { font-size: var(--font-size-2xl); font-weight: var(--font-weight-extrabold); margin-bottom: 4px; }
.view-sub    { font-size: var(--font-size-base); color: var(--color-muted); }

/* State screens (payment done / booking confirmed) */
.state-screen        { text-align: center; padding: 80px 24px; }
.state-screen__icon  { font-size: 52px; margin-bottom: 16px; }
.state-screen__title { font-size: 24px; font-weight: var(--font-weight-extrabold); margin-bottom: 6px; }
.state-screen__sub   { color: var(--color-muted); margin-bottom: 4px; }
.state-screen__note  { color: var(--color-success); font-size: var(--font-size-base); margin-bottom: 24px; }

/* ════════════════════════════════════════════
   POS
════════════════════════════════════════════ */
.pos-layout   { display: grid; grid-template-columns: 1fr 280px; height: calc(100vh - 140px); }
.pos-items    { padding-right: 16px; }
.pos-cats     { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pos-grid     { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.pos-item     { text-align: center; padding: 16px; }
.pos-item__icon  { width: 44px; height: 44px; border-radius: 10px; background: var(--color-surface); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 20px; }
.pos-item__name  { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); margin-bottom: 3px; }
.pos-item__price { font-size: var(--font-size-md); font-weight: var(--font-weight-extrabold); color: var(--color-brand); }

.pos-cart         { background: var(--color-canvas); border-left: 1px solid var(--color-divider); display: flex; flex-direction: column; padding: 16px; }
.pos-cart__header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.pos-cart__title  { font-weight: var(--font-weight-bold); font-size: var(--font-size-md); }
.pos-cart__items  { flex: 1; overflow-y: auto; }
.pos-cart__empty  { color: var(--color-subtle); font-size: var(--font-size-base); text-align: center; padding: 20px 0; }
.pos-cart__row    { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: var(--font-size-base); }
.pos-cart__name   { font-weight: var(--font-weight-semibold); }
.pos-cart__qty    { color: var(--color-muted); font-size: 11px; }
.pos-cart__price  { font-weight: var(--font-weight-bold); }
.pos-cart__actions { display: flex; align-items: center; gap: 8px; }
.pos-cart__remove { background: none; border: none; color: var(--color-subtle); cursor: pointer; font-size: 16px; font-family: inherit; }
.pos-totals          { border-top: 1px solid var(--color-divider); padding-top: 10px; }
.pos-totals__row     { display: flex; justify-content: space-between; font-size: var(--font-size-base); color: var(--color-muted); margin-bottom: 4px; }
.pos-totals__row--total { font-weight: var(--font-weight-extrabold); font-size: var(--font-size-lg); color: var(--color-ink); margin-bottom: 12px; }
.pos-totals__row--total span:last-child { color: var(--color-ink); }

/* POS payment layout */
.pos-pay-layout { display: grid; grid-template-columns: 180px 1fr 280px; height: calc(100vh - 140px); }
.pay-methods    { display: flex; flex-direction: column; gap: 8px; padding-right: 8px; }
.pay-method {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  cursor: pointer;
  color: var(--color-ink);
  transition: background .2s, border-color .2s, color .2s;
}
.pay-method.is-selected { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.pay-method__row   { display: flex; justify-content: space-between; }
.pay-method__name  { font-weight: var(--font-weight-extrabold); font-size: 15px; }
.pay-method__icon  { font-size: var(--font-size-lg); }
.pay-method__price { font-size: var(--font-size-md); font-weight: var(--font-weight-bold); margin-top: 4px; }
.pay-method__save  {
  font-size: 10px;
  background: var(--color-success-light);
  color: var(--color-success);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  margin-top: 4px;
  display: inline-block;
}
.pay-method.is-selected .pay-method__save { background: rgba(255,255,255,.2); color: #fff; }

.pay-keypad            { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.pay-keypad__method    { font-size: var(--font-size-base); color: var(--color-muted); margin-bottom: 4px; }
.pay-keypad__amount    { font-size: 42px; font-weight: var(--font-weight-black); margin-bottom: 12px; }
.pay-keypad__bills     { display: flex; gap: 6px; margin-bottom: 14px; }
.pay-keypad__bill      {
  background: var(--color-brand-light);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand);
  cursor: pointer;
  font-family: inherit;
}
.pay-keypad__grid { display: grid; grid-template-columns: repeat(3, 60px); gap: 6px; }
.pay-keypad__key  {
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
  background: var(--color-canvas);
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  font-family: inherit;
}
.pay-keypad__hint { color: var(--color-muted); font-size: var(--font-size-md); margin-top: 16px; }

.receipt-panel        { background: var(--color-surface); border-left: 1px solid var(--color-divider); padding: 16px; display: flex; flex-direction: column; font-size: var(--font-size-base); }
.receipt-panel__title { font-weight: var(--font-weight-bold); margin-bottom: 10px; }
.receipt-panel__items { flex: 1; }
.receipt-panel__row   { display: flex; justify-content: space-between; margin-bottom: 6px; }
.receipt-panel__price { font-weight: var(--font-weight-semibold); }
.receipt-panel__totals { border-top: 1px solid var(--color-divider); padding-top: 10px; }
.receipt-panel__line  { display: flex; justify-content: space-between; color: var(--color-muted); margin-bottom: 4px; }
.receipt-panel__total { display: flex; justify-content: space-between; font-weight: var(--font-weight-extrabold); font-size: 15px; margin-bottom: 14px; }

/* ════════════════════════════════════════════
   AI VIEW
════════════════════════════════════════════ */
/* AI Agent view — modern */
.ai-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}
.ai-header__title { font-size: 28px; font-weight: var(--font-weight-extrabold); letter-spacing: -.5px; margin-bottom: 4px; }
.ai-header__sub   { font-size: var(--font-size-md); color: var(--color-muted); }
.ai-header__sub strong { color: var(--color-ink); font-weight: var(--font-weight-bold); }

.ai-header__upside {
  background: var(--color-ink);
  color: #fff;
  border-radius: 14px;
  padding: 14px 22px;
  text-align: right;
  flex-shrink: 0;
}
.ai-header__upside-label {
  display: block;
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  color: rgba(255,255,255,.55);
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.ai-header__upside-value { font-size: 28px; font-weight: var(--font-weight-black); letter-spacing: -1px; line-height: 1; }
.ai-header__upside-value span { font-size: 14px; font-weight: var(--font-weight-medium); color: rgba(255,255,255,.55); margin-left: 4px; }

/* Stats row */
.ai-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.ai-stat {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  padding: 20px 22px;
}
.ai-stat__label {
  display: block;
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-muted);
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.ai-stat__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.ai-stat__value {
  font-size: 36px;
  font-weight: var(--font-weight-black);
  color: var(--color-ink);
  letter-spacing: -1.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ai-stat__value--brand { color: var(--color-brand); }
.ai-stat__unit { font-size: 16px; font-weight: var(--font-weight-medium); color: var(--color-muted); letter-spacing: 0; }
.ai-stat__sub  { font-size: 12px; color: var(--color-muted); }
.ai-stat__meta { font-size: 11px; color: var(--color-subtle); margin-top: 4px; }

.ai-stat__bar {
  background: var(--color-surface);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}
.ai-stat__bar-fill {
  height: 100%;
  background: var(--color-brand);
  border-radius: 999px;
  transition: width .6s ease;
}

/* Actions header */
.ai-actions-head { margin-bottom: 14px; }
.ai-actions-head__title { font-size: var(--font-size-xl); font-weight: var(--font-weight-extrabold); letter-spacing: -.5px; }
.ai-actions-head__sub   { font-size: var(--font-size-base); color: var(--color-muted); margin-top: 2px; }

/* Action cards */
.ai-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ai-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.ai-card:hover { border-color: var(--color-ink-soft); box-shadow: var(--shadow-card); }

/* Priority-colored accent stripe on left */
.ai-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.ai-card--high::before   { background: var(--color-error); }
.ai-card--medium::before { background: var(--color-warning); }
.ai-card--low::before    { background: var(--color-subtle); }

.ai-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.ai-card__priority {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: .1em;
}
.ai-card__priority-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.ai-card--high   .ai-card__priority       { color: var(--color-error); }
.ai-card--high   .ai-card__priority-dot   { background: var(--color-error); }
.ai-card--medium .ai-card__priority       { color: var(--color-warning); }
.ai-card--medium .ai-card__priority-dot   { background: var(--color-warning); }
.ai-card--low    .ai-card__priority       { color: var(--color-muted); }
.ai-card--low    .ai-card__priority-dot   { background: var(--color-subtle); }

.ai-card__impact {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-black);
  color: var(--color-success);
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}

.ai-card__body {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  flex: 1;
}
.ai-card__icon {
  width: 44px; height: 44px;
  background: var(--color-surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.ai-card__title { font-size: var(--font-size-md); font-weight: var(--font-weight-extrabold); margin-bottom: 4px; }
.ai-card__desc  { font-size: var(--font-size-base); color: var(--color-muted); line-height: 1.6; }

.ai-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-divider);
}
.ai-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--color-ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: opacity .15s;
}
.ai-card__cta:hover { opacity: .85; }
.ai-card__cta span { font-size: 15px; }
.ai-card__meta { font-size: 12px; color: var(--color-muted); }

/* Responsive */
@media (max-width: 1024px) {
  .ai-stats   { grid-template-columns: 1fr; }
  .ai-actions { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ai-header { flex-direction: column; align-items: flex-start; }
  .ai-header__upside { align-self: stretch; text-align: left; }
  .ai-card__footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ════════════════════════════════════════════
   BOOKING VIEW
════════════════════════════════════════════ */
.booking-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
.booking-dates { display: flex; gap: 8px; }

.booking-date-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
  background: var(--color-canvas);
  color: var(--color-ink);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s, background .2s, color .2s;
}
.booking-date-btn.is-selected { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.booking-date-btn__day { font-size: 10px; font-weight: var(--font-weight-semibold); margin-bottom: 4px; opacity: .7; }
.booking-date-btn__num { font-size: var(--font-size-lg); font-weight: var(--font-weight-extrabold); }

.booking-time-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.booking-time-slot {
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-divider);
  background: var(--color-canvas);
  color: var(--color-ink-soft);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.booking-time-slot.is-selected { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.booking-time-slot.is-busy     { background: var(--color-border); border-color: var(--color-border); color: var(--color-subtle); cursor: not-allowed; }

.booking-schedule      { display: flex; flex-direction: column; gap: 10px; }
.booking-appt          { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--color-surface); border-radius: var(--radius-md); }
.booking-appt__time    { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--color-brand-light); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: var(--font-weight-bold); color: var(--color-brand); flex-shrink: 0; }
.booking-appt__body    { flex: 1; }
.booking-appt__name    { font-weight: var(--font-weight-bold); font-size: var(--font-size-base); }
.booking-appt__service { font-size: 11px; color: var(--color-muted); }
.booking-appt__t       { font-size: 10px; color: var(--color-muted); margin-top: 2px; }

/* ════════════════════════════════════════════
   WEBSITE VIEW
════════════════════════════════════════════ */
.view-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--color-divider); }
.view-tab  {
  padding: 8px 16px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s, border-color .2s;
  margin-bottom: -1px;
}
.view-tab.active { color: var(--color-brand); font-weight: var(--font-weight-bold); border-bottom-color: var(--color-brand); }

.seo-layout        { display: grid; grid-template-columns: 1fr 280px; gap: 16px; }
.seo-header        { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.seo-header__title { font-size: var(--font-size-md); font-weight: var(--font-weight-bold); }
.seo-header__count { font-size: var(--font-size-base); font-weight: var(--font-weight-bold); color: var(--color-brand); }
.seo-progress      { background: var(--color-divider); border-radius: var(--radius-pill); height: 6px; margin-bottom: 16px; }
.seo-progress__fill { height: 6px; background: var(--color-brand); border-radius: var(--radius-pill); transition: width .5s; }

.seo-items      { display: flex; flex-direction: column; gap: 10px; }
.seo-item       { display: flex; align-items: center; gap: 10px; font-size: var(--font-size-base); }
.seo-item__check { width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; }
.seo-item__check--done { background: var(--color-success-border); color: var(--color-success); }
.seo-item__check--todo { background: var(--color-border); color: var(--color-subtle); }
.seo-item__label--done { color: var(--color-ink-soft); }
.seo-item__label--todo { color: var(--color-subtle); }
.seo-fix { margin-left: auto; background: var(--color-brand-light); color: var(--color-brand); border: none; border-radius: 6px; padding: 3px 10px; font-size: 11px; font-weight: var(--font-weight-bold); cursor: pointer; font-family: inherit; }

.seo-stats         { display: flex; flex-direction: column; gap: 12px; }
.seo-stat__label   { font-size: 12px; color: var(--color-muted); margin-bottom: 4px; }
.seo-stat__val     { font-weight: var(--font-weight-bold); font-size: var(--font-size-md); margin-bottom: 2px; }
.seo-stat__big     { font-weight: var(--font-weight-extrabold); font-size: 24px; color: var(--color-brand); }
.seo-stat__change  { font-size: 11px; color: var(--color-success); }

.pages-list         { display: flex; flex-direction: column; gap: 10px; }
.page-row           { display: flex; align-items: center; gap: 16px; }
.page-row__icon     { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--color-border); display: flex; align-items: center; justify-content: center; font-size: var(--font-size-md); }
.page-row__body     { flex: 1; }
.page-row__name     { font-weight: var(--font-weight-bold); font-size: var(--font-size-md); }
.page-row__slug     { font-size: 12px; color: var(--color-muted); }
.page-row__visits   { text-align: right; }
.page-row__visits-num   { font-weight: var(--font-weight-bold); font-size: var(--font-size-md); }
.page-row__visits-label { font-size: 11px; color: var(--color-muted); }

.browser-mockup    { overflow: hidden; }
.browser-titlebar  { background: var(--color-ink); padding: 10px 16px; display: flex; align-items: center; gap: 8px; }
.browser-dots      { display: flex; gap: 5px; }
.browser-dot       { width: 10px; height: 10px; border-radius: var(--radius-pill); }
.browser-urlbar    { flex: 1; background: var(--color-ink-soft); border-radius: 6px; padding: 4px 12px; font-size: 11px; color: var(--color-muted); }
.browser-body      { background: var(--color-canvas); padding: 32px 24px; text-align: center; }
.browser-body__title { font-size: 28px; font-weight: var(--font-weight-black); margin-bottom: 8px; }
.browser-body__addr  { color: var(--color-muted); font-size: var(--font-size-md); margin-bottom: 20px; }
.browser-body__logo  { margin-bottom: 24px; }
.browser-btns      { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ════════════════════════════════════════════
   LOCKED VIEW
════════════════════════════════════════════ */
.locked-view         { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.locked-view__inner  { max-width: 440px; text-align: center; padding: 0 24px; }
.locked-icon         { font-size: 52px; margin-bottom: 16px; }
.locked-title        { font-size: 24px; font-weight: var(--font-weight-extrabold); margin-bottom: 8px; }
.locked-desc         { color: var(--color-muted); font-size: var(--font-size-md); line-height: 1.7; margin-bottom: 24px; }
.locked-features     { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: 14px; padding: 18px 20px; margin-bottom: 28px; text-align: left; }
.locked-features__plan { margin-bottom: 10px; }
.locked-features__list { display: flex; flex-direction: column; gap: 7px; list-style: none; padding: 0; }
.locked-features__item { display: flex; align-items: center; gap: 8px; font-size: var(--font-size-base); color: var(--color-ink-soft); }
.locked-features__check { color: var(--color-success); }
.locked-note         { font-size: 12px; color: var(--color-subtle); }

/* ════════════════════════════════════════════
   BOOKING VIEW — week-strip style
════════════════════════════════════════════ */
.booking-week-strip {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.booking-week-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
  background: var(--color-canvas);
  cursor: pointer;
  font-family: inherit;
  color: var(--color-ink);
  transition: border-color .2s, background .2s, color .2s;
}
.booking-week-day:hover { border-color: var(--color-brand); }
.booking-week-day.is-selected {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}
.booking-week-day__label {
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  opacity: .7;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.booking-week-day__num {
  font-size: 18px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
}
.booking-week-day__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-brand);
  margin-top: 5px;
}
.booking-week-day__dot--active { background: #fff; }

.booking-day-grid--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.booking-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-divider);
}
.booking-day-header__title { font-size: var(--font-size-md); font-weight: var(--font-weight-bold); }
.booking-day-header__count { font-size: var(--font-size-sm); color: var(--color-muted); }
.booking-day-body  { padding: 8px 0; }
.booking-empty     { padding: 24px 16px; text-align: center; color: var(--color-muted); font-size: var(--font-size-base); }

.booking-appt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.booking-appt-row--border { border-bottom: 1px solid var(--color-divider); }
.booking-appt-row__time {
  width: 60px;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-muted);
  flex-shrink: 0;
}
.booking-appt-row__body   { flex: 1; }
.booking-appt-row__name   { font-size: var(--font-size-base); font-weight: var(--font-weight-bold); }
.booking-appt-row__detail { font-size: 11px; color: var(--color-muted); margin-top: 2px; }

.booking-form         { display: flex; flex-direction: column; }
.booking-form__field  { margin-bottom: 12px; }
.booking-form__label  {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-muted);
  margin-bottom: 5px;
}
.booking-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-preview-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 480px;
  box-shadow: var(--shadow-float);
}
.booking-preview-card__header {
  background: var(--color-brand);
  padding: 20px 24px;
  color: #fff;
}
.booking-preview-card__title { font-size: var(--font-size-lg); font-weight: var(--font-weight-extrabold); }
.booking-preview-card__sub   { font-size: var(--font-size-base); opacity: .8; margin-top: 2px; }
.booking-preview-card__body  { padding: 20px 24px; }
.booking-preview__section-title {
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-muted);
  margin-bottom: 10px;
}
.booking-preview-service {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  font-size: var(--font-size-base);
}
.booking-preview-service__price { font-weight: var(--font-weight-bold); color: var(--color-brand); }
.booking-preview-times { display: flex; gap: 8px; flex-wrap: wrap; }
.booking-preview-time {
  padding: 7px 14px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-ink);
  cursor: pointer;
}
.booking-preview-cta {
  margin-top: 16px;
  background: var(--color-brand);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 13px;
  text-align: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  cursor: pointer;
}

/* ════════════════════════════════════════════
   WEBSITE VIEW — tabs + preview
════════════════════════════════════════════ */
.website-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.website-tab {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  font-family: inherit;
  cursor: pointer;
  background: var(--color-canvas);
  color: var(--color-muted);
  border: 1px solid var(--color-divider);
  transition: background .15s, color .15s, border-color .15s;
}
.website-tab.is-active {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}

.website-preview-card { overflow: hidden; padding: 0; }

.website-hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #3B82F6 100%);
  padding: 40px 32px;
  text-align: center;
  color: #fff;
}
.website-hero__eyebrow { font-size: 12px; opacity: .7; margin-bottom: 8px; letter-spacing: .05em; }
.website-hero__title   { font-size: 28px; font-weight: var(--font-weight-black); margin-bottom: 12px; }
.website-hero__sub     { font-size: var(--font-size-md); opacity: .85; max-width: 440px; margin: 0 auto 20px; line-height: 1.6; }
.website-hero__btns    { display: flex; gap: 10px; justify-content: center; }
.website-hero__btn-primary {
  background: #fff;
  color: var(--color-brand);
  border-radius: var(--radius-md);
  padding: 9px 20px;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  cursor: pointer;
}
.website-hero__btn-outline {
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 9px 20px;
  font-size: var(--font-size-base);
  cursor: pointer;
}

.website-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-divider);
  border-top: 1px solid var(--color-divider);
}
.website-info__item  { background: var(--color-canvas); padding: 16px 20px; }
.website-info__label { font-size: 11px; color: var(--color-muted); margin-bottom: 4px; font-weight: var(--font-weight-semibold); }
.website-info__value { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }

.website-services        { padding: 20px 24px; }
.website-services__title { font-size: var(--font-size-md); font-weight: var(--font-weight-bold); margin-bottom: 12px; }
.website-services__grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.website-service-item { background: var(--color-surface); border-radius: var(--radius-md); padding: 12px; text-align: center; }
.website-service-item__name  { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); margin-bottom: 4px; }
.website-service-item__price { font-size: var(--font-size-md); font-weight: var(--font-weight-extrabold); color: var(--color-brand); }

.website-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding: 12px 24px;
  text-align: center;
  font-size: 11px;
  color: var(--color-muted);
}

/* SEO dashboard grid */
.seo-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.seo-checklist-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: var(--font-size-base); }
.seo-checklist-item__ok         { color: var(--color-success); font-weight: var(--font-weight-bold); }
.seo-checklist-item__fail       { color: var(--color-error);   font-weight: var(--font-weight-bold); }
.seo-checklist-item__label      { color: var(--color-ink-soft); }
.seo-checklist-item__label--fail { color: var(--color-muted); }

.seo-kw-grid { display: flex; flex-direction: column; gap: 10px; }
.seo-kw-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}
.seo-kw-item__kw    { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }
.seo-kw-item__stats { display: flex; gap: 10px; align-items: center; }
.seo-kw-item__pos   { font-size: var(--font-size-md); font-weight: var(--font-weight-extrabold); color: var(--color-brand); }
.seo-kw-item__trend { font-size: 12px; color: var(--color-success); font-weight: var(--font-weight-semibold); }

/* Google preview tab */
.google-preview {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}
.google-preview__url   { font-size: 12px; color: var(--color-success); margin-bottom: 4px; }
.google-preview__title { font-size: 18px; font-weight: var(--font-weight-semibold); color: #1A0DAB; margin-bottom: 4px; cursor: pointer; }
.google-preview__desc  { font-size: var(--font-size-base); color: var(--color-muted); line-height: 1.6; margin-bottom: 8px; }
.google-preview__meta  { display: flex; gap: 12px; font-size: 12px; color: var(--color-muted); }

.google-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.google-panel-stat { background: var(--color-surface); border-radius: var(--radius-md); padding: 14px; }
.google-panel-stat__label  { font-size: 12px; color: var(--color-muted); margin-bottom: 4px; }
.google-panel-stat__value  { font-size: 24px; font-weight: var(--font-weight-extrabold); }
.google-panel-stat__change { font-size: 12px; color: var(--color-success); margin-top: 2px; }

/* ════════════════════════════════════════════
   FEATURE SHOWCASE
════════════════════════════════════════════ */
.feature-section { background: var(--color-surface); padding: var(--space-20) 24px; }
.feature-section .section__header { max-width: var(--max-width-page); margin-left: auto; margin-right: auto; }

/* Bento grid */
.feature-bento {
  max-width: var(--max-width-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.fbc--bottom-narrow { grid-column: 1; }
.fbc--bottom-wide   { grid-column: 2 / 4; }

.feature-bento-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: 20px;
  padding: 28px 28px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fbc__text  { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding-bottom: 22px; }
.fbc__title { font-size: var(--font-size-xl); font-weight: var(--font-weight-extrabold); margin-bottom: 6px; }
.fbc__desc  { font-size: var(--font-size-base); color: var(--color-muted); line-height: 1.6; }
.fbc__vis   { background: var(--color-surface); border-radius: 14px; margin: 0 -24px 4px; overflow: hidden; }
.fbc__img   { width: 100%; height: 200px; object-fit: cover; object-position: top; display: block; }

/* KPI row */
.fbv-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.fbv-kpi  { background: var(--color-canvas); border-radius: var(--radius-md); padding: 10px; text-align: center; }
.fbv-kpi__val { font-size: var(--font-size-lg); font-weight: var(--font-weight-extrabold); }
.fbv-kpi__val--brand   { color: var(--color-brand); }
.fbv-kpi__val--success { color: var(--color-success); }
.fbv-kpi__lbl { font-size: 10px; color: var(--color-muted); margin-top: 2px; }

/* Competitor bars */
.fbv-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 12px; }
.fbv-bar-row > span:first-child { width: 66px; color: var(--color-muted); flex-shrink: 0; }
.fbv-bar-row > span:last-child  { width: 24px; font-weight: 700; flex-shrink: 0; }
.fbv-bar-track { flex: 1; background: #E5E7EB; border-radius: 999px; height: 7px; overflow: hidden; }
.fbv-bar-fill  { height: 100%; background: #D1D5DB; border-radius: 999px; }
.fbv-bar-fill--brand { background: var(--color-brand); }

/* Rating flow */
.fbv-rating-flow  { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.fbv-rating-badge { flex: 1; background: var(--color-canvas); border-radius: var(--radius-md); padding: 12px; text-align: center; border: 1.5px solid var(--color-divider); }
.fbv-rating-badge--bright { border-color: #FCD34D; background: #FFFBEB; }
.fbv-rating-stars { font-size: 14px; margin-bottom: 2px; color: var(--color-warning); }
.fbv-rating-num   { font-size: 22px; font-weight: 900; color: var(--color-text); }
.fbv-rating-lbl   { font-size: 10px; color: var(--color-muted); margin-top: 2px; }
.fbv-rating-arrow { font-size: 20px; color: var(--color-subtle); flex-shrink: 0; }
.fbv-sms-bubble   { background: var(--color-brand); color: #fff; border-radius: 14px 14px 14px 2px; padding: 10px 14px; font-size: 12px; line-height: 1.55; }

/* Receipt */
.fbv-receipt { background: var(--color-canvas); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 10px; }
.fbv-receipt-item  { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; border-bottom: 1px solid var(--color-divider); }
.fbv-receipt-item span:last-child { font-weight: 600; }
.fbv-receipt-total { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; padding-top: 7px; }
.fbv-dual-price  { font-size: 11px; color: var(--color-success); font-weight: 600; text-align: center; padding: 6px 0; }

/* Week calendar */
.fbv-week     { display: flex; gap: 5px; margin-bottom: 14px; }
.fbv-week-day {
  flex: 1; height: 32px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--color-muted);
  border-radius: 8px; background: var(--color-canvas); position: relative;
}
.fbv-week-day--today { background: var(--color-brand); color: #fff; }
.fbv-week-day--dot::after { content: '·'; position: absolute; bottom: 0px; font-size: 16px; font-weight: 900; color: var(--color-brand); line-height: 1; }
.fbv-week-day--today.fbv-week-day--dot::after { color: rgba(255,255,255,.7); }
.fbv-appt-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; background: var(--color-canvas); border-radius: var(--radius-md); padding: 10px 12px; }

/* Gauge */
.fbv-gauge-layout { display: flex; align-items: center; gap: 20px; }
.fbv-gauge-svg    { width: 160px; flex-shrink: 0; }
.fbv-gauge-stats  { display: flex; flex-direction: column; gap: 14px; }
.fbv-gauge-stat__val { font-size: var(--font-size-xl); font-weight: var(--font-weight-extrabold); }
.fbv-gauge-stat__lbl { font-size: 11px; color: var(--color-muted); margin-top: 1px; }

/* ── OLD TABS (kept for reference, hidden) ── */
.feature-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.feature-tab:hover { background: var(--color-canvas); }
.feature-tab.is-active {
  background: var(--color-canvas);
  border-color: var(--color-divider);
  box-shadow: var(--shadow-card);
}
.feature-tab__icon-wrap {
  width: 46px; height: 46px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: background .18s;
}
.feature-tab.is-active .feature-tab__icon-wrap { background: var(--color-brand-light); }
.feature-tab__body  { flex: 1; min-width: 0; }
.feature-tab__title { font-size: var(--font-size-md); font-weight: var(--font-weight-bold); margin-bottom: 2px; }
.feature-tab__desc  { font-size: var(--font-size-base); color: var(--color-muted); line-height: 1.5; }
.feature-tab__arrow { font-size: 20px; color: var(--color-subtle); flex-shrink: 0; transition: color .18s; }
.feature-tab.is-active .feature-tab__arrow { color: var(--color-brand); }

/* Right: preview panes */
.feature-preview { position: sticky; top: 80px; }
.feature-pane    { display: none; }
.feature-pane.is-active { display: block; }

/* Feature mock cards */
.feat-mock { padding: 24px; }
.feat-mock__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.feat-mock__title  { font-size: var(--font-size-md); font-weight: var(--font-weight-bold); }

.feat-mock__kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.feat-mock__kpi  { background: var(--color-surface); border-radius: var(--radius-md); padding: 12px; text-align: center; }
.feat-mock__kpi-v { font-size: var(--font-size-xl); font-weight: var(--font-weight-extrabold); }
.feat-mock__kpi-l { font-size: 10px; color: var(--color-muted); margin-top: 3px; }

.feat-mock__cmp-label { font-size: 11px; font-weight: var(--font-weight-bold); color: var(--color-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.feat-mock__cmp-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; }
.feat-mock__cmp-row > span:first-child { width: 60px; color: var(--color-muted); text-align: right; flex-shrink: 0; }
.feat-mock__cmp-row > span:last-child  { width: 22px; font-weight: var(--font-weight-bold); flex-shrink: 0; }
.feat-mock__cmp-track { flex: 1; background: var(--color-surface); border-radius: 999px; height: 8px; overflow: hidden; }
.feat-mock__cmp-fill  { height: 100%; width: 85%; background: var(--color-subtle); border-radius: 999px; }

.feat-mock__items { display: flex; flex-direction: column; gap: 0; margin-bottom: 14px; }
.feat-mock__item  { display: flex; justify-content: space-between; align-items: center; font-size: var(--font-size-base); padding: 10px 0; border-bottom: 1px solid var(--color-divider); }
.feat-mock__item span:last-child { font-weight: var(--font-weight-bold); }
.feat-mock__total { display: flex; justify-content: space-between; font-weight: var(--font-weight-extrabold); font-size: var(--font-size-lg); margin-bottom: 14px; padding-top: 4px; }
.feat-mock__cta   { background: var(--color-brand); color: #fff; border-radius: var(--radius-md); padding: 13px; text-align: center; font-weight: var(--font-weight-bold); font-size: var(--font-size-base); cursor: pointer; }

.feat-mock__days { display: flex; gap: 5px; margin-bottom: 14px; }
.feat-mock__day  {
  flex: 1; text-align: center;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-muted);
  background: var(--color-surface);
  position: relative;
}
.feat-mock__day--active { background: var(--color-brand); color: #fff; }
.feat-mock__day--dot::after { content: '·'; position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); font-size: 14px; font-weight: 900; color: var(--color-brand); line-height: 1; }
.feat-mock__day--active.feat-mock__day--dot::after { color: rgba(255,255,255,.6); }
.feat-mock__appt { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--color-divider); font-size: var(--font-size-base); }

.feat-mock__checks { display: flex; flex-direction: column; gap: 9px; }
.feat-mock__check  { font-size: var(--font-size-base); display: flex; align-items: center; gap: 10px; }

/* ════════════════════════════════════════════
   TESTIMONIALS — infinite marquee
════════════════════════════════════════════ */
.testimonials-section {
  background: var(--color-canvas);
  padding: var(--space-20) 0;
  overflow: hidden;
}
.testimonials-section .section__header {
  max-width: var(--max-width-page);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

/* Marquee outer — constrains width + applies fade */
.marquee-outer {
  max-width: 1020px;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

/* Marquee rows */
.marquee-wrap {
  overflow: visible;
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee-left 32s linear infinite;
}
.marquee-track--rev { animation: marquee-right 28s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Individual card */
.marquee-card {
  flex-shrink: 0;
  width: 320px;
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.marquee-card__stars { color: var(--color-warning); font-size: 14px; letter-spacing: 3px; margin-bottom: 12px; }
.marquee-card__quote {
  font-size: var(--font-size-base);
  color: var(--color-ink-soft);
  line-height: 1.7;
  margin-bottom: 18px;
}
.marquee-card__author { display: flex; align-items: center; gap: 10px; }
.marquee-card__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-brand-light);
  color: var(--color-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}
.marquee-card__name { font-size: var(--font-size-base); font-weight: var(--font-weight-bold); color: var(--color-ink); }
.marquee-card__biz  { font-size: 11px; color: var(--color-muted); margin-top: 1px; }


.testi-stat       { flex: 1; text-align: center; padding: 12px 16px; }
.testi-stat__num  { font-size: 46px; font-weight: var(--font-weight-black); letter-spacing: -2px; color: var(--color-ink); line-height: 1; }
.testi-stat__label { font-size: 13px; color: var(--color-muted); margin-top: 6px; }
.testi-stat__sep  { width: 1px; height: 52px; background: var(--color-divider); flex-shrink: 0; }

/* ════════════════════════════════════════════
   RESPONSIVE — landing page
════════════════════════════════════════════ */

/* Tablet landscape — tighten layouts */
@media (max-width: 1024px) {
  .ftcta__inner       { padding: 44px 40px; gap: 32px; grid-template-columns: 1fr 360px; }
  .footer-main        { gap: 48px; }
  .feature-bento      { gap: 12px; }
  .feature-bento-card { padding: 24px 24px 0; }
  .fbc__vis           { margin: 0 -20px 4px; border-radius: 12px; }
}

/* Tablet portrait & below — major stacking */
@media (max-width: 768px) {
  /* Section padding */
  .section, .section-sm,
  .hiw-section, .feature-section, .pc-section, .ftcta,
  .testimonials-section { padding: var(--space-12) 20px; }
  .testimonials-section { padding-left: 0; padding-right: 0; }

  /* Nav */
  .landing-nav__links { display: none; }
  .landing-nav__inner { padding: 0 16px; }

  /* Hero */
  .hero               { padding: 100px 20px 40px; }
  .hero-form__row     { grid-template-columns: 1fr; gap: 10px; }
  .hero-form__row .input { margin-bottom: 0; }
  .upload-zone__hint  { display: none; }
  .upload-zone__text strong { font-size: 13px; }
  .upload-zone__text span   { font-size: 11px; }

  /* Stats */
  .statement-stats    { flex-direction: column; gap: 24px; }
  .statement-inner    { padding: var(--space-12) 20px; }

  /* How it works — vertical stack */
  .hiw-row            { flex-direction: column; gap: 36px; max-width: 320px; }
  .hiw-step           { max-width: 100%; }
  .hiw-connector      { display: none; }

  /* Bento — single column */
  .feature-bento      { grid-template-columns: 1fr; grid-template-rows: auto; }
  .fbc--bottom-narrow,
  .fbc--bottom-wide   { grid-column: 1; }
  .fbc__img           { height: 220px; }

  /* Pricing — single column */
  .pc-grid, .pc-grid--3 { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pc-grid--scroll {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr;
    overflow-x: visible;
    padding: 0; margin: 0;
  }
  .pc-scroll::after { display: none; }
  .pc-card--highlight { transform: none; }

  /* Footer CTA — stack */
  .ftcta__inner       { grid-template-columns: 1fr; padding: 36px 28px; gap: 32px; }
  .ftcta__form-card   { padding: 24px 20px; }

  /* Footer bottom — stack */
  .footer-main        { grid-template-columns: 1fr; gap: 40px; padding: 48px 20px 24px; }
  .footer-bar         { flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px 20px 24px; }
  .footer-big-email   { font-size: 28px; }
  .footer-nl-row      { max-width: 100%; }

  /* Section title — tighter */
  .section__title     { font-size: clamp(24px, 6vw, 32px); letter-spacing: -1px; }
  .pricing-title      { font-size: clamp(26px, 6vw, 34px); }
  .pricing-wrap       { padding: 32px 20px 60px; }
}

/* Small mobile fine-tune */
@media (max-width: 480px) {
  .hero__title        { font-size: clamp(28px, 8vw, 40px); }
  .hero__subtitle     { font-size: var(--font-size-base); }
  .ftcta__heading     { font-size: 24px; }
  .hiw-row            { max-width: 100%; }
}

/* ════════════════════════════════════════════
   ONBOARDING (multi-step wizard)
════════════════════════════════════════════ */
.onb-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-divider);
}
.onb-close {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: none;
  color: var(--color-ink-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.onb-close:hover { background: var(--color-divider); color: var(--color-ink); }

.onb-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.onb-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: 24px;
  padding: 36px 40px 32px;
  box-shadow: var(--shadow-card);
}

/* Progress bar */
.onb-progress {
  height: 6px;
  background: var(--color-surface);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.onb-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-brand), #60A5FA);
  border-radius: 999px;
  transition: width .4s ease;
}
.onb-step-count {
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-muted);
  letter-spacing: .12em;
  margin-bottom: 28px;
}

/* Step header */
.onb-title { font-size: clamp(24px, 3.4vw, 32px); font-weight: var(--font-weight-extrabold); letter-spacing: -.8px; line-height: 1.2; margin-bottom: 8px; }
.onb-sub   { font-size: var(--font-size-md); color: var(--color-muted); line-height: 1.6; margin-bottom: 28px; }

/* Body */
.onb-body { display: flex; flex-direction: column; gap: 22px; margin-bottom: 32px; }
.onb-field { display: flex; flex-direction: column; gap: 10px; }
.onb-label {
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
}
.onb-label-opt { color: var(--color-muted); font-weight: var(--font-weight-normal); }

.onb-input {
  width: 100%;
  background: var(--color-surface);
  border: 1.5px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: var(--font-size-base);
  font-family: inherit;
  color: var(--color-ink);
  transition: border-color .15s, background .15s;
}
.onb-input::placeholder { color: var(--color-subtle); }
.onb-input:focus {
  outline: none;
  border-color: var(--color-brand);
  background: var(--color-canvas);
}

/* Chips */
.onb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.onb-chip {
  padding: 10px 18px;
  background: var(--color-canvas);
  border: 1.5px solid var(--color-divider);
  border-radius: 999px;
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-ink);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.onb-chip:hover {
  border-color: var(--color-ink-soft);
  background: var(--color-surface);
}
.onb-chip--selected {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
  font-weight: var(--font-weight-bold);
}
.onb-chips--lg .onb-chip {
  padding: 14px 22px;
  font-size: var(--font-size-md);
}

/* Footer */
.onb-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-divider);
}
.onb-back-btn {
  padding: 10px 18px;
  background: transparent;
  border: 1.5px solid var(--color-divider);
  border-radius: 999px;
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink-soft);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.onb-back-btn:hover { background: var(--color-surface); color: var(--color-ink); border-color: var(--color-ink-soft); }

.onb-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--color-ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.onb-next-btn:hover { opacity: .9; }
.onb-next-btn:active { transform: scale(.98); }
.onb-next-btn span { font-size: 16px; }

/* Responsive */
@media (max-width: 640px) {
  .onb-content { padding: 24px 16px 60px; }
  .onb-card    { padding: 24px 20px; border-radius: 16px; }
  .onb-footer  { flex-direction: column-reverse; gap: 10px; }
  .onb-footer > * { width: 100%; }
  .onb-back-btn, .onb-next-btn { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════════
   STYLEGUIDE
════════════════════════════════════════════ */
.sg-page { background: var(--color-canvas); min-height: 100vh; }

.sg-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-canvas);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.92);
}
.sg-topbar__left { display: flex; align-items: center; gap: 16px; }
.sg-topbar__divider { width: 1px; height: 28px; background: var(--color-divider); }
.sg-topbar__title { font-size: var(--font-size-lg); font-weight: var(--font-weight-extrabold); }
.sg-topbar__sub   { font-size: 12px; color: var(--color-muted); margin-top: 1px; }

.sg-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

/* Sticky TOC */
.sg-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.sg-toc__head {
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-subtle);
  letter-spacing: .12em;
  padding: 14px 12px 6px;
}
.sg-toc__head:first-child { padding-top: 0; }
.sg-toc__link {
  padding: 7px 12px;
  font-size: var(--font-size-base);
  color: var(--color-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background .15s, color .15s;
}
.sg-toc__link:hover { background: var(--color-surface); color: var(--color-ink); }

/* Main content */
.sg-main { min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.sg-section {
  scroll-margin-top: 100px;
}
.sg-section__title {
  font-size: 28px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -.5px;
  margin-bottom: 6px;
}
.sg-section__sub {
  font-size: var(--font-size-md);
  color: var(--color-muted);
  margin-bottom: 24px;
}
.sg-section__sub code {
  background: var(--color-surface);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--color-ink);
}

.sg-h3 {
  font-size: 14px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 28px 0 14px;
}
.sg-h3:first-of-type { margin-top: 0; }

/* Generic row layout for inline samples */
.sg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sg-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Colors */
.sg-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.sg-color {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sg-color__swatch {
  height: 64px;
  border-radius: var(--radius-md);
}
.sg-color__token {
  font-size: 12px;
  color: var(--color-ink);
  font-weight: var(--font-weight-bold);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.sg-color__hex {
  font-size: 11px;
  color: var(--color-muted);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}

/* Typography rows */
.sg-type-list { display: flex; flex-direction: column; gap: 10px; }
.sg-type-row {
  display: grid;
  grid-template-columns: 200px 80px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.sg-type-row__token { font-size: 12px; color: var(--color-muted); font-family: 'SF Mono', Menlo, Consolas, monospace; }
.sg-type-row__px    { font-size: 12px; color: var(--color-subtle); font-variant-numeric: tabular-nums; }
.sg-type-row__sample { color: var(--color-ink); }

/* Heading-sample variant: stacked meta column + free-form sample */
.sg-type-row--head {
  grid-template-columns: 240px 1fr;
  align-items: center;
  padding: 18px 0;
}
.sg-type-row--head .sg-type-row__meta {
  display: flex; flex-direction: column; gap: 4px;
}

/* Spacing rows */
.sg-space-list { display: flex; flex-direction: column; gap: 10px; }
.sg-space-row {
  display: grid;
  grid-template-columns: 160px 60px 1fr;
  align-items: center;
  gap: 16px;
  padding: 6px 0;
}
.sg-space-row__token { font-size: 12px; color: var(--color-muted); font-family: 'SF Mono', Menlo, Consolas, monospace; }
.sg-space-row__px    { font-size: 12px; color: var(--color-subtle); font-variant-numeric: tabular-nums; }
.sg-space-row__bar   { height: 16px; background: var(--color-brand); border-radius: 4px; }

/* Radii grid */
.sg-radii-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}
.sg-radius {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}
.sg-radius__box  { width: 64px; height: 64px; background: var(--color-brand); }
.sg-radius__token { font-size: 11px; color: var(--color-ink); font-weight: var(--font-weight-bold); font-family: 'SF Mono', Menlo, Consolas, monospace; }
.sg-radius__px    { font-size: 11px; color: var(--color-muted); font-family: 'SF Mono', Menlo, Consolas, monospace; }

/* Shadows grid */
.sg-shadows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  padding: 12px 4px;
}
.sg-shadow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.sg-shadow__box {
  width: 100%;
  height: 80px;
  background: var(--color-canvas);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}
.sg-shadow__token { font-size: 11px; color: var(--color-ink); font-weight: var(--font-weight-bold); font-family: 'SF Mono', Menlo, Consolas, monospace; }
.sg-shadow__desc  { font-size: 11px; color: var(--color-muted); }

/* Form grid */
.sg-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.sg-form-grid__dark {
  background: linear-gradient(135deg, #0d1f2d, #1a2f3a);
  padding: 20px;
  border-radius: var(--radius-md);
}
.sg-label {
  display: block;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  color: var(--color-muted);
  margin-bottom: 8px;
}
.sg-label--inverted { color: rgba(255,255,255,.6); }

/* Generic preview wrapper */
.sg-preview {
  background: var(--color-surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}

/* Responsive */
@media (max-width: 900px) {
  .sg-layout { grid-template-columns: 1fr; gap: 24px; }
  .sg-toc { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .sg-toc__head { width: 100%; padding: 8px 0 4px; }
  .sg-grid-2, .sg-grid-3 { grid-template-columns: 1fr; }
  .sg-type-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .sg-type-row--head { grid-template-columns: 1fr; gap: 12px; }
}

/* ═════════════════════════════════════════════
   PRODUCTS PAGE  (prod-*)
   All paddings/margins use --space-* (4/8/12/16/20/24/32/40/48/64/80).
   ═════════════════════════════════════════════ */

.prod-section { padding: var(--space-20) 24px; }
.prod-section__inner { max-width: var(--max-width-shell); margin: 0 auto; }
.prod-section--terminal { background: #FFFFFF; padding-top: calc(var(--space-20) + var(--nav-height)); }
.prod-section--pos      { background: #FFFFFF; }

.prod-section__title {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--color-ink);
  margin: 0 0 var(--space-12);
}

.prod-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.prod-card {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: var(--space-6);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.prod-card--terminal { background: radial-gradient(120% 100% at 50% 0%, #ECF6E4 0%, #F5F9F2 100%); }
.prod-card--pos      { background: radial-gradient(120% 100% at 50% 0%, #E6F1FF 0%, #EFF6FF 100%); }

.prod-card__media {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  min-height: 360px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
}

.prod-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  z-index: 1;
}
.prod-tag {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}
.prod-tag--terminal { background: #DBF6C6; border-color: #CFF0B4; color: #1B9546; }
.prod-tag--pos      { background: #DCEDFF; border-color: #C0DEFF; color: #1534FF; }

.prod-card__device {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-device {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
}
.prod-device--wide { max-width: 480px; }

.prod-card__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}
.prod-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(13,17,23,.18);
}
.prod-dot.is-active {
  width: 18px;
  border-radius: 3px;
  background: rgba(13,17,23,.55);
}

.prod-card__body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}

.prod-card__name {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.6px;
  margin: 0 0 var(--space-1);
  color: var(--color-ink);
}
.prod-card__subtitle {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-4);
}
.prod-card__subtitle--terminal { color: var(--color-success); }
.prod-card__subtitle--pos      { color: var(--color-brand); }

.prod-card__desc {
  font-size: var(--font-size-base);
  color: var(--color-ink-soft);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
}

.prod-card__features {
  list-style: disc;
  padding-left: var(--space-5);
  margin: 0 0 var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.prod-card__features li {
  font-size: var(--font-size-base);
  color: var(--color-ink-soft);
  line-height: 1.55;
}
.prod-card__features strong {
  color: var(--color-ink);
  font-weight: var(--font-weight-bold);
}

.prod-card__rows {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 0 0 var(--space-6);
}
.prod-card__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}
.prod-card__row:last-child { border-bottom: 0; }
.prod-card__row dt {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  margin: 0;
}
.prod-card__row dd {
  font-size: var(--font-size-base);
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0;
  text-align: right;
}

/* Product card CTA: align the design-system .btn to the left of the card body */
.prod-card__cta { align-self: flex-start; text-decoration: none; }

/* ── Final CTA: dark gradient card with bokeh glows ── */
.prod-final-cta { padding: var(--space-20) 24px; background: var(--color-canvas); }
.prod-final-cta__card {
  position: relative;
  overflow: hidden;
  max-width: var(--max-width-shell);
  margin: 0 auto;
  background: linear-gradient(135deg, #0d1f2d 0%, #1a2f3a 50%, #1c2230 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10);
  color: #fff;
  text-align: center;
}
.prod-final-cta__card::before {
  content: ''; position: absolute; width: 360px; height: 360px;
  background: rgba(37,99,235,.28); border-radius: 50%; filter: blur(100px);
  top: -120px; left: 8%; pointer-events: none;
}
.prod-final-cta__card::after {
  content: ''; position: absolute; width: 320px; height: 320px;
  background: rgba(22,163,74,.22); border-radius: 50%; filter: blur(100px);
  bottom: -100px; right: 8%; pointer-events: none;
}
.prod-final-cta__inner { position: relative; z-index: 1; }
.prod-final-cta__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
  color: rgba(255,255,255,.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.prod-final-cta__title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 0 var(--space-3);
}
.prod-final-cta__sub {
  font-size: var(--font-size-md);
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto var(--space-8);
}
.prod-final-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 13px 32px;
  background: #fff;
  color: var(--color-ink);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  transition: opacity .15s, background .15s;
}
.prod-final-cta__phone:hover { opacity: .9; }
.prod-final-cta__phone svg {
  width: 18px; height: 18px;
}
.prod-final-cta__secondary {
  display: block;
  margin-top: var(--space-8);
  font-size: var(--font-size-base);
  color: rgba(255,255,255,.7);
}
.prod-final-cta__secondary a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.3);
  text-underline-offset: 3px;
}
.prod-final-cta__secondary a:hover { text-decoration-color: #fff; }
.prod-final-cta__trust {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.08);
}
.prod-final-cta__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.6);
}
.prod-final-cta__trust-item svg {
  width: 16px; height: 16px;
  color: rgba(255,255,255,.5);
}

/* Active nav link */
.landing-nav__links .nav-link { cursor: pointer; }
.landing-nav__links .nav-link.is-active { color: var(--color-ink); font-weight: var(--font-weight-bold); }

/* ── Responsive ── */
@media (max-width: 920px) {
  .prod-card { grid-template-columns: 1fr; }
  .prod-card__media { min-height: 280px; }
  .prod-card__body { padding: var(--space-6); }
  .prod-card__row { grid-template-columns: 1fr; gap: var(--space-1); }
  .prod-card__row dd { text-align: left; }
  .prod-final-cta__card { padding: var(--space-10) var(--space-6); }
  .prod-final-cta__phone { padding: 12px 24px; }
  .prod-final-cta__trust { gap: var(--space-4); }
}



/* ════════════════════════════════════════════
   DASHBOARD → REVIEWS
   Refreshed visual — larger typography hierarchy,
   bigger cards, more whitespace. Full token compliance.
════════════════════════════════════════════ */
.dr-reviews { padding: 4px 0 8px; display: flex; flex-direction: column; gap: var(--space-5); }

/* ── Header ── */
.dr-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.dr-header__title {
  font-size: var(--font-size-3xl); line-height: 1.15;
  font-weight: var(--font-weight-extrabold); color: var(--color-ink);
  margin: 0; letter-spacing: -.6px;
}
.dr-header__sparkle { color: var(--color-purple); }
.dr-header__sub { font-size: var(--font-size-base); color: var(--color-muted); margin: 8px 0 0; }
.dr-header__sub strong { color: var(--color-ink); font-weight: var(--font-weight-semibold); }
.dr-header__cta { /* matches .btn .btn-outline .btn-md */
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--color-divider); background: var(--color-canvas);
  font-family: inherit; font-size: var(--font-size-base); font-weight: var(--font-weight-bold);
  color: var(--color-ink); padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer;
  white-space: nowrap; line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}
.dr-header__cta:hover { border-color: var(--color-ink-soft); box-shadow: var(--shadow-card); }
.dr-header__actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.dr-header__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-success);
  background: var(--color-success-light);
  border: 1px solid var(--color-success-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.5;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.dr-header__status:hover { background: var(--color-canvas); border-color: var(--color-success); box-shadow: var(--shadow-card); }
.dr-header__status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px var(--color-success-light);
}
.dr-header__status-arrow {
  margin-left: 2px;
  font-weight: var(--font-weight-bold);
  transition: transform .15s;
}
.dr-header__status:hover .dr-header__status-arrow { transform: translateX(2px); }

/* ── KPI tiles ── */
.dr-kpis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.dr-kpi-tile {
  background: var(--color-canvas); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-5);
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.dr-kpi-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); border-color: var(--color-divider); }
.dr-kpi-tile--peach  { background: var(--color-peach-light); border-color: var(--color-peach-border); }
.dr-kpi-tile--blue   { background: var(--color-brand-light); border-color: var(--color-brand-border); }
.dr-kpi-tile--mint   { background: var(--color-success-light); border-color: var(--color-success-border); }
.dr-kpi-tile--cream  { background: var(--color-cream-light); border-color: var(--color-warning-border); }
.dr-kpi-tile__label {
  font-size: var(--font-size-xs); font-weight: var(--font-weight-bold);
  color: var(--color-muted); text-transform: uppercase; letter-spacing: .06em;
}
.dr-kpi-tile__value {
  font-size: var(--font-size-3xl); line-height: 1.1;
  font-weight: var(--font-weight-extrabold); color: var(--color-ink); margin-top: 12px;
}
.dr-kpi-tile__delta {
  font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold);
  color: var(--color-success); margin-top: 8px;
}
.dr-kpi-tile__sub { font-size: var(--font-size-xs); color: var(--color-muted); margin-top: 4px; }

/* ── Main grid ── */
.dr-main { display: grid; grid-template-columns: 65fr 35fr; gap: var(--space-4); }

/* ── Generic card ── */
.dr-card {
  background: var(--color-canvas); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-5);
}
.dr-card__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-4); }
.dr-card__title { font-size: var(--font-size-lg); font-weight: var(--font-weight-extrabold); color: var(--color-ink); }
.dr-card__meta { font-size: var(--font-size-xs); color: var(--color-muted); }

/* ── Review feed (LEFT) ── */
.dr-feed {
  background: var(--color-canvas); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4); min-height: 0;
  max-height: 540px;
}
.dr-feed__head { display: flex; justify-content: space-between; align-items: center; }
.dr-feed__title { font-size: var(--font-size-xl); font-weight: var(--font-weight-extrabold); color: var(--color-ink); margin: 0; }
.dr-feed__filters { display: flex; gap: 4px; background: var(--color-surface); padding: 4px; border-radius: var(--radius-sm); }
.dr-feed__filter { /* matches .btn-sm dimensions */
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: none; background: transparent; font-family: inherit;
  font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); color: var(--color-muted);
  padding: 6px 14px; border-radius: var(--radius-sm); cursor: pointer;
  line-height: 1.5; transition: color .12s;
}
.dr-feed__filter:hover { color: var(--color-ink); }
.dr-feed__filter.is-active { background: var(--color-canvas); color: var(--color-ink); box-shadow: var(--shadow-card); }
.dr-feed__list {
  display: flex; flex-direction: column; gap: var(--space-3);
  overflow-y: auto; flex: 1; min-height: 0; padding-right: 4px;
}
.dr-feed__list::-webkit-scrollbar { width: 8px; }
.dr-feed__list::-webkit-scrollbar-thumb { background: var(--color-divider); border-radius: 4px; }

.dr-review {
  border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2); background: var(--color-canvas);
  transition: border-color .12s, box-shadow .12s;
}
.dr-review:hover { border-color: var(--color-divider); box-shadow: var(--shadow-card); }
.dr-review--private { background: var(--color-cream-soft); border-color: var(--color-warning-border); }
.dr-review__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.dr-review__customer { display: flex; gap: var(--space-3); align-items: center; }
.dr-review__avatar {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: var(--color-brand-light); color: var(--color-brand);
  font-weight: var(--font-weight-bold); font-size: var(--font-size-base);
  display: flex; align-items: center; justify-content: center;
}
.dr-review__name { font-size: var(--font-size-base); font-weight: var(--font-weight-bold); color: var(--color-ink); }
.dr-review__meta { display: flex; align-items: center; gap: var(--space-2); font-size: var(--font-size-xs); color: var(--color-muted); margin-top: 4px; }
.dr-review__stars { font-size: var(--font-size-base); letter-spacing: 1px; }
.dr-review__stars--success { color: var(--color-success); }
.dr-review__stars--warning { color: var(--color-warning); }
.dr-review__stars--error   { color: var(--color-error); }
.dr-star-dim { color: var(--color-divider); }
.dr-review__source { font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); padding: 4px 8px; border-radius: var(--radius-pill); }
.dr-review__source--google  { background: var(--color-brand-border); color: var(--color-brand-text); }
.dr-review__source--private { background: var(--color-warning-border); color: var(--color-warning-text); }
.dr-review__comment { font-size: var(--font-size-sm); line-height: 1.55; color: var(--color-ink-soft); margin: 0; font-style: italic; }
.dr-review__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.dr-review__btn { /* matches .btn .btn-outline .btn-sm */
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--color-divider); background: var(--color-canvas);
  font-family: inherit; font-size: var(--font-size-xs); font-weight: var(--font-weight-bold);
  color: var(--color-ink); padding: 6px 14px; border-radius: var(--radius-sm); cursor: pointer;
  white-space: nowrap; line-height: 1.5;
  transition: background .12s, border-color .12s;
}
.dr-review__btn:hover { border-color: var(--color-ink-soft); }
.dr-review__btn--brand { background: var(--color-ink); color: var(--color-canvas); border-color: var(--color-ink); }
.dr-review__btn--brand:hover { background: var(--color-ink-mid); border-color: var(--color-ink-mid); }
.dr-review__status { font-size: var(--font-size-xs); color: var(--color-success); font-weight: var(--font-weight-bold); margin-left: auto; }
.dr-feed__view-all { font-size: var(--font-size-sm); color: var(--color-brand); font-weight: var(--font-weight-semibold); text-decoration: none; }
.dr-feed__view-all:hover { text-decoration: underline; }

/* ── Side stack (RIGHT) ── */
.dr-side { display: flex; flex-direction: column; gap: var(--space-3); min-height: 0; }
.dr-side > .dr-card:last-child { flex: 1; display: flex; flex-direction: column; }
.dr-side > .dr-card:last-child .dr-insights__cta { margin-top: auto; }

/* Sentiment */
.dr-sentiment__bar {
  display: flex; height: 12px; border-radius: var(--radius-pill); overflow: hidden;
  background: var(--color-border); margin-bottom: var(--space-3);
}
.dr-sentiment__seg { display: block; transition: width .25s; }
.dr-sentiment__seg--pos { background: var(--color-success); }
.dr-sentiment__seg--neu { background: var(--color-warning); }
.dr-sentiment__seg--neg { background: var(--color-error); }
.dr-sentiment__legend {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: var(--font-size-sm); color: var(--color-ink-soft);
}
.dr-sentiment__legend li { display: flex; align-items: center; gap: 8px; }
.dr-sentiment__legend strong { margin-left: auto; color: var(--color-ink); font-weight: var(--font-weight-bold); }
.dr-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dr-dot--pos { background: var(--color-success); }
.dr-dot--neu { background: var(--color-warning); }
.dr-dot--neg { background: var(--color-error); }

/* AI Insights */
.dr-insights__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.dr-insight { display: flex; gap: var(--space-3); align-items: flex-start; }
.dr-insight__icon {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: var(--font-size-base);
}
.dr-insight__icon--success { background: var(--color-success-light); }
.dr-insight__icon--warning { background: var(--color-warning-light); }
.dr-insight__icon--brand   { background: var(--color-brand-light); }
.dr-insight__label {
  font-size: var(--font-size-xs); font-weight: var(--font-weight-bold);
  color: var(--color-ink); text-transform: uppercase; letter-spacing: .04em;
}
.dr-insight__body { flex: 1; min-width: 0; }
.dr-insight__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.dr-insight__text { font-size: var(--font-size-sm); line-height: 1.5; color: var(--color-ink-soft); margin-top: 4px; }
.dr-insight__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1.5;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.dr-insight__action--success {
  background: var(--color-success-light);
  border-color: var(--color-success-border);
  color: var(--color-success);
}
.dr-insight__action--success:hover { background: var(--color-canvas); border-color: var(--color-success); }
.dr-insight__action--warning {
  background: var(--color-warning-light);
  border-color: var(--color-warning-border);
  color: var(--color-warning-text);
}
.dr-insight__action--warning:hover { background: var(--color-canvas); border-color: var(--color-warning); }
.dr-insight__action--brand {
  background: var(--color-brand-light);
  border-color: var(--color-brand-border);
  color: var(--color-brand-text);
}
.dr-insight__action--brand:hover { background: var(--color-canvas); border-color: var(--color-brand); }
.dr-insight__action:disabled {
  cursor: default;
  opacity: .7;
  background: var(--color-surface);
  border-color: var(--color-divider);
  color: var(--color-muted);
}
.dr-insights__cta { /* matches .btn-md dimensions, full-width dashed */
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  margin-top: 4px; border: 1px dashed var(--color-divider); background: transparent;
  font-family: inherit; font-size: var(--font-size-base); font-weight: var(--font-weight-bold);
  color: var(--color-brand); padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer; width: 100%;
  line-height: 1.5; transition: background .12s;
}
.dr-insights__cta:hover { background: var(--color-brand-light); }

/* Insight confirm modal — context strip + summary block */
.dr-insight-confirm__context {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
}
.dr-insight-confirm__context--success { background: var(--color-success-light); border-color: var(--color-success-border); }
.dr-insight-confirm__context--warning { background: var(--color-warning-light); border-color: var(--color-warning-border); }
.dr-insight-confirm__context--brand   { background: var(--color-brand-light);   border-color: var(--color-brand-border);   }
.dr-insight-confirm__context-icon { font-size: var(--font-size-lg); flex-shrink: 0; }
.dr-insight-confirm__recipients {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-ink);
  padding: 10px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.dr-insight-confirm__summary {
  font-size: var(--font-size-sm);
  line-height: 1.55;
  color: var(--color-ink-soft);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

/* ── Pipeline (Row 4) ── */
.dr-pipeline {
  background: var(--color-canvas); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6);
}
.dr-pipeline__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-5); gap: var(--space-4); }
.dr-pipeline__title { font-size: var(--font-size-xl); font-weight: var(--font-weight-extrabold); color: var(--color-ink); margin: 0; }
.dr-pipeline__sub { font-size: var(--font-size-sm); color: var(--color-muted); margin-top: 4px; }
.dr-pipeline__conversion {
  font-size: var(--font-size-sm); color: var(--color-ink-soft); background: var(--color-brand-light);
  padding: 8px 16px; border-radius: var(--radius-pill); white-space: nowrap;
}
.dr-pipeline__conversion strong { color: var(--color-brand); font-weight: var(--font-weight-extrabold); }

.dr-funnel { display: flex; align-items: center; gap: var(--space-2); }
.dr-funnel__step {
  flex: 1; min-width: 0; text-align: center;
  padding: var(--space-4) var(--space-3);
  background: var(--color-surface); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  position: relative; transition: transform .15s, box-shadow .15s;
}
.dr-funnel__step:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.dr-funnel__step:first-child { background: linear-gradient(135deg, var(--color-brand-light) 0%, var(--color-brand-border) 100%); }
.dr-funnel__step:last-child  { background: linear-gradient(135deg, var(--color-success-light) 0%, var(--color-success-border) 100%); }
.dr-funnel__icon { font-size: var(--font-size-2xl); }
.dr-funnel__value {
  font-size: var(--font-size-2xl); font-weight: var(--font-weight-extrabold);
  color: var(--color-ink); line-height: 1.1; margin-top: 4px;
}
.dr-funnel__label { font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); color: var(--color-muted); letter-spacing: .02em; }
.dr-funnel__drop {
  position: absolute; top: -8px; right: -8px;
  font-size: var(--font-size-xs); font-weight: var(--font-weight-bold);
  background: var(--color-error-light); color: var(--color-error);
  padding: 4px 8px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-error-border);
}
.dr-funnel__arrow { color: var(--color-subtle); font-size: var(--font-size-xl); flex-shrink: 0; }

/* ── Link preview (in SMS config modal) ── */
.dr-link-preview {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dr-link-preview__url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dr-link-preview__icon { font-size: var(--font-size-base); }
.dr-link-preview__url code {
  font-size: var(--font-size-xs);
  color: var(--color-ink);
  font-weight: var(--font-weight-semibold);
  background: var(--color-canvas);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-variant-numeric: tabular-nums;
}
.dr-link-preview__token {
  color: var(--color-brand);
  font-weight: var(--font-weight-bold);
}
.dr-link-preview__badge {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--color-brand-light);
  color: var(--color-brand);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.dr-link-preview__help {
  margin: 0;
  font-size: var(--font-size-xs);
  line-height: 1.55;
  color: var(--color-muted);
}
.dr-link-preview__help strong { color: var(--color-ink); font-weight: var(--font-weight-bold); }

/* ── Wide modal variant (All responses, Campaign builder, etc.) ── */
.chk-modal.chk-modal--wide { max-width: 720px; }

/* ── All-responses modal ── */
.dr-all-modal__count {
  font-weight: var(--font-weight-bold);
  color: var(--color-muted);
}
.dr-all-modal__body {
  max-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.dr-all-modal__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.dr-all-modal__shown {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}
.dr-all-modal__shown strong {
  color: var(--color-ink);
  font-weight: var(--font-weight-bold);
}
.dr-all-modal__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 4px;
}
.dr-all-modal__list::-webkit-scrollbar { width: 8px; }
.dr-all-modal__list::-webkit-scrollbar-thumb { background: var(--color-divider); border-radius: 4px; }

.dr-all-modal__filter-groups {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}
.dr-all-modal__filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dr-all-modal__filter-label .dd { min-width: 150px; }

.dr-all-modal__empty {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  padding: var(--space-6);
  border: 1px dashed var(--color-divider);
  border-radius: var(--radius-md);
}

/* ── Pagination ── */
.dr-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-1);
}
.dr-pagination__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--color-divider);
  background: var(--color-canvas);
  font-family: inherit;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1.5;
  transition: border-color .12s, color .12s;
}
.dr-pagination__nav:hover:not(:disabled) { border-color: var(--color-ink-soft); }
.dr-pagination__nav:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.dr-pagination__pages {
  display: flex;
  gap: 4px;
  align-items: center;
}
.dr-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--color-divider);
  background: var(--color-canvas);
  font-family: inherit;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.dr-pagination__page:hover { background: var(--color-surface); color: var(--color-ink); }
.dr-pagination__page.is-active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-canvas);
}
.dr-pagination__ellipsis {
  width: 24px;
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  font-weight: var(--font-weight-bold);
}

/* ── Reply composer modal — original review quote ── */
.dr-reply__quote {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.55;
  color: var(--color-ink-soft);
  font-style: italic;
  padding: 12px 14px;
  background: var(--color-surface);
  border-left: 3px solid var(--color-divider);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Flow explainer (Go Check-in → Reviews modal) ── */
.dr-flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.dr-flow__step {
  display: flex;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  align-items: flex-start;
}
.dr-flow__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  flex-shrink: 0;
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: 50%;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-ink-soft);
  margin-top: 2px;
}
.dr-flow__step-body { flex: 1; min-width: 0; }
.dr-flow__step-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  line-height: 1.4;
}
.dr-flow__step-desc {
  font-size: var(--font-size-xs);
  line-height: 1.5;
  color: var(--color-ink-soft);
  margin: 4px 0 0;
}
.dr-flow__step-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--font-size-xs);
  color: var(--color-ink-soft);
  line-height: 1.5;
}
.dr-flow__step-list li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dr-flow__step-list strong { color: var(--color-ink); font-weight: var(--font-weight-bold); }
.dr-flow__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  min-width: 44px;
}
.dr-flow__pill--brand { background: var(--color-brand-border); color: var(--color-brand-text); }
.dr-flow__pill--warn  { background: var(--color-warning-border); color: var(--color-warning-text); }
.dr-flow__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 0;
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}
.dr-flow__connector-line {
  flex: 1;
  height: 1px;
  background: var(--color-divider);
  max-width: 80px;
}
.dr-flow__connector-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-muted);
  white-space: nowrap;
}
.dr-flow__connector-arrow {
  color: var(--color-subtle);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

/* ── Toast (success confirmation) ── */
.dr-toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  z-index: 9200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-ink);
  color: var(--color-canvas);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
  max-width: calc(100vw - 32px);
}
.dr-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.dr-toast__icon {
  width: 20px; height: 20px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-success);
  color: var(--color-canvas);
  border-radius: 50%;
}
.dr-toast__icon svg { width: 12px; height: 12px; }
.dr-toast__msg { letter-spacing: -.1px; }

/* ── Weekly digest modal ── */
.dr-digest-modal__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dr-digest {
  background: var(--color-canvas);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dr-digest__hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.dr-digest__hero-eyebrow {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.dr-digest__hero-range {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-ink);
  margin-top: 4px;
  letter-spacing: -.2px;
}
.dr-digest__hero-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-cream-soft);
  border: 1px solid var(--color-cream-light);
  border-radius: var(--radius-md);
  padding: 8px 14px;
}
.dr-digest__hero-stars {
  color: var(--color-warning);
  font-size: var(--font-size-xl);
}
.dr-digest__hero-value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-black);
  color: var(--color-ink);
  letter-spacing: -.5px;
}
.dr-digest__hero-delta {
  margin-left: 6px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-success);
}

.dr-digest__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.dr-digest__stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dr-digest__stat--alert {
  background: var(--color-error-light);
  border-color: var(--color-error-border);
}
.dr-digest__stat-value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-black);
  color: var(--color-ink);
  letter-spacing: -.4px;
  line-height: 1.1;
}
.dr-digest__stat--alert .dr-digest__stat-value { color: var(--color-error); }
.dr-digest__stat-label {
  font-size: var(--font-size-xs);
  color: var(--color-ink-soft);
}

.dr-digest__section { display: flex; flex-direction: column; gap: var(--space-3); }
.dr-digest__section-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-ink);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.dr-digest__legend { flex-direction: row; gap: var(--space-4); }
.dr-digest__legend strong { margin-left: 4px; }

.dr-digest__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.dr-digest__highlight {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}
.dr-digest__highlight--success { border-left-color: var(--color-success); }
.dr-digest__highlight--warning { border-left-color: var(--color-warning); }
.dr-digest__highlight--error   { border-left-color: var(--color-error); }
.dr-digest__highlight-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.dr-digest__highlight-author {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
}
.dr-digest__highlight-stars {
  font-size: var(--font-size-sm);
  letter-spacing: 1px;
}
.dr-digest__highlight-source {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin-left: auto;
}
.dr-digest__highlight-quote {
  font-size: var(--font-size-sm);
  color: var(--color-ink-soft);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

.dr-digest__insights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.dr-digest__insight {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.dr-digest__insight-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
}
.dr-digest__insight-text {
  font-size: var(--font-size-sm);
  color: var(--color-ink-soft);
  line-height: 1.5;
  margin: 4px 0 0;
}

.dr-digest__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-divider);
  font-size: var(--font-size-xs);
}
.dr-digest__conversion {
  color: var(--color-ink-soft);
  font-weight: var(--font-weight-semibold);
}
.dr-digest__cta-note {
  color: var(--color-brand);
  font-weight: var(--font-weight-bold);
}

/* Controls section below the preview */
.dr-digest-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.dr-digest-controls__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
  background: var(--color-canvas);
  font-family: inherit;
  font-size: var(--font-size-sm);
  color: var(--color-ink);
  transition: border-color .15s, box-shadow .15s;
}
.dr-digest-controls__input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-light);
}
