:root {
  --green-600: #059669;
  --green-500: #10b981;
  --green-400: #34d399;
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-100: #f1f5f9;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --gradient: linear-gradient(135deg, #059669 0%, #10b981 55%, #34d399 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-100);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-tile {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-tile img { width: 100%; height: 100%; object-fit: contain; }

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand-logo-sm { height: 24px; }

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink-900);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-500);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink-900); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border: 1px solid var(--ink-300);
}

.btn-ghost:hover { border-color: var(--ink-500); background: var(--ink-100); }

.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% -10%, rgba(52, 211, 153, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 10% 0%, rgba(5, 150, 105, 0.10), transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-50);
  color: var(--green-600);
  border: 1px solid var(--green-100);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.sub {
  font-size: 17.5px;
  color: var(--ink-500);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-badge svg { flex-shrink: 0; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }

.hero-cta-note {
  font-size: 13px;
  color: var(--ink-400, #94a3b8);
  margin-bottom: 30px;
}

.hero-points { display: flex; gap: 22px; flex-wrap: wrap; }

.hero-point {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-500);
  font-weight: 500;
}

.hero-point svg { flex-shrink: 0; }

/* Hero visual: chat mockup */
.hero-visual { position: relative; }

.chat-mock {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat-mock-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #064e3b, #059669);
  color: var(--white);
}

.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}

.chat-mock-head .meta { line-height: 1.3; }
.chat-mock-head .meta .n { font-size: 14.5px; font-weight: 600; }
.chat-mock-head .meta .s { font-size: 11.5px; opacity: 0.85; }

.chat-body {
  padding: 20px 18px 24px;
  background: #f6faf8;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
}

.bubble {
  max-width: 78%;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  animation: pop 0.5s ease both;
}

.bubble.in { background: var(--white); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--green-100); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble .tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; color: var(--green-600);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin-bottom: 3px;
}

.bubble:nth-child(1) { animation-delay: 0.15s; }
.bubble:nth-child(2) { animation-delay: 0.5s; }
.bubble:nth-child(3) { animation-delay: 0.9s; }
.bubble:nth-child(4) { animation-delay: 1.3s; }

@keyframes pop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.float-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floaty 5s ease-in-out infinite;
}

.float-card .ic {
  width: 32px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-50); color: var(--green-600);
}

.float-card.fc1 { top: -18px; right: -14px; }
.float-card.fc2 { bottom: -16px; left: -18px; animation-delay: 2.2s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============ SECTIONS ============ */
section { padding: 84px 0; }

.sec-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }

.sec-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 12px;
}

.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}

.sec-head p { color: var(--ink-500); font-size: 16px; }

/* ============ FEATURES ============ */
.features { background: #fafcfb; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feat-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all 0.25s ease;
}

.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-100);
}

.feat-ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.25s ease;
}

.feat-card:hover .feat-ic {
  transform: scale(1.05);
}

.feat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: var(--ink-500); }

/* ============ STEPS ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
}

.step-ic {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.25s ease;
}

.step-card:hover .step-ic {
  transform: scale(1.05);
}

.step-n {
  position: absolute;
  top: -6px; right: -6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-weight: 700;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
  border: 2px solid var(--white);
}

.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--ink-500); }

.byok-note {
  margin-top: 34px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-700);
}

.byok-note .ic {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--white); color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}

.byok-note strong { color: var(--ink-900); }

/* ============ INTEGRATIONS & API ============ */
.integ-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 940px;
  margin: 0 auto;
}

.integ-grid > * { min-width: 0; }

.integ-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.integ-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-100);
}

.integ-card:hover .feat-ic {
  transform: scale(1.05);
}

.integ-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.integ-card p { font-size: 14px; color: var(--ink-500); }

.integ-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.integ-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 999px;
  padding: 6px 13px;
}

.integ-code {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  background: #0f172a;
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 0;
}

.integ-code-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.integ-code code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: #a7f3d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.integ-code code span { color: #64748b; }

@media (max-width: 900px) {
  .integ-grid { grid-template-columns: 1fr; }
}

/* ============ PRICING ============ */
.pricing { background: #fafcfb; }

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 44px;
}

.billing-toggle .opt {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border: 1px solid var(--ink-300);
  background: var(--white);
  color: var(--ink-500);
  cursor: pointer;
  transition: all 0.2s;
}

.billing-toggle .opt:first-child { border-radius: 12px 0 0 12px; }
.billing-toggle .opt:last-child { border-radius: 0 12px 12px 0; border-left: none; }

.billing-toggle .opt.active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--white);
}

.billing-toggle .save-pill {
  margin-left: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-600);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 4px 10px;
  border-radius: 100px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.plan-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.plan-card.popular {
  border: 2px solid var(--green-500);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
}

.popular-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-emp-num {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--green-600);
}

.plan-emp-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-500);
  margin: 4px 0 20px;
}

.plan-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 6px; }
.plan-price .cur { font-size: 18px; font-weight: 700; color: var(--ink-700); }
.plan-price .amt { font-size: 38px; font-weight: 800; letter-spacing: -1.2px; line-height: 1; }
.plan-price .per { font-size: 13px; font-weight: 500; color: var(--ink-500); margin-left: 4px; }

.plan-alt { font-size: 12px; color: var(--ink-500); margin-bottom: 20px; min-height: 18px; white-space: nowrap; }

.plan-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-700);
  padding: 14px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--ink-100);
  flex: 1;
}

.plan-meta svg { flex-shrink: 0; }

.plan-picker-wrap { max-width: 720px; margin: 0 auto; }

.plan-picker {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.08);
}

.plan-picker-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900, #0f172a);
  margin-bottom: 12px;
}

.select-wrap {
  position: relative;
  margin-bottom: 20px;
}

.select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  border: 1.5px solid var(--ink-200, #e2e8f0);
  border-radius: 12px;
  padding: 13px 44px 13px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900, #0f172a);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select-wrap select:hover { border-color: var(--green-500); }

.select-wrap select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.select-wrap svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink-500);
}

.plan-picker-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-700);
  margin-bottom: 8px;
}

.plan-picker-meta svg { flex-shrink: 0; }

.plan-picker-right {
  text-align: center;
  min-width: 220px;
  padding-left: 36px;
  border-left: 1px solid var(--ink-100);
}

.plan-picker-right .plan-price { justify-content: center; }

.plan-picker-right .plan-price .amt { font-size: 46px; }

.plan-picker-right .plan-alt { white-space: normal; }

.plan-picker-note {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 12px;
}

@media (max-width: 640px) {
  .plan-picker {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 22px;
  }
  .plan-picker-right {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--ink-100);
    padding-top: 24px;
  }
}

/* ============ PRODUCT TOUR ============ */
.tour { background: var(--white); }

.tour-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 90px;
}

.tour-row:last-child { margin-bottom: 0; }

.tour-row.reverse .tour-text { order: 2; }
.tour-row.reverse .tour-shot { order: 1; }

.tour-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-600);
  background: rgba(16, 185, 129, 0.1);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.tour-text h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.tour-text > p {
  font-size: 15.5px;
  color: var(--ink-500);
  line-height: 1.65;
  margin-bottom: 18px;
}

.tour-list { list-style: none; padding: 0; margin: 0; }

.tour-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink-700);
  margin-bottom: 10px;
}

.tour-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.tour-shot {
  position: relative;
  border-radius: 16px;
  padding: 40px 12px 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  border: 1px solid var(--ink-100);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 18px 30px -22px rgba(15, 23, 42, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 24px 36px -22px rgba(15, 23, 42, 0.32);
}

.tour-shot::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fda4af;
  box-shadow: 18px 0 0 #fcd34d, 36px 0 0 #86efac;
}

.tour-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

@media (max-width: 900px) {
  .tour-row {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 64px;
  }
  .tour-row.reverse .tour-text { order: 1; }
  .tour-row.reverse .tour-shot { order: 2; }
}

.plans-includes {
  margin-top: 36px;
  text-align: center;
}

.plans-includes-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-500);
  margin-bottom: 14px;
}

.plans-includes-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
}

.plans-includes-items span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--ink-700);
}

.plans-loading {
  text-align: center;
  color: var(--ink-500);
  padding: 40px 0;
  font-size: 14px;
}

/* ============ FAQ ============ */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  font-family: inherit;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.faq-q .chev { transition: transform 0.25s; flex-shrink: 0; color: var(--ink-500); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 14px;
  color: var(--ink-500);
}

.faq-item.open .faq-a { max-height: 220px; }
.faq-a-inner { padding: 0 20px 18px; }

/* ============ CTA ============ */
.cta-band {
  background: linear-gradient(135deg, #064e3b 0%, #059669 60%, #10b981 100%);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 85% 20%, rgba(255,255,255,0.12), transparent);
}

.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 12px; position: relative; }
.cta-band p { font-size: 16px; opacity: 0.9; margin-bottom: 30px; position: relative; }

.cta-band .btn {
  background: var(--white);
  color: var(--green-600);
  position: relative;
}

.cta-band .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.cta-band-note {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 16px;
  position: relative;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--ink-100);
  padding: 36px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer .brand-name { font-size: 16px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13.5px; color: var(--ink-500); }
.footer-links a:hover { color: var(--ink-900); }
.footer .copy { font-size: 13px; color: var(--ink-500); }

/* ============ SIGNUP WIZARD ============ */
.wizard-page {
  min-height: 100vh;
  background: #fafcfb;
  display: flex;
  flex-direction: column;
}

.wizard-wrap {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.wstep {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-500);
}

.wstep .dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--ink-300);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-500);
  transition: all 0.25s;
}

.wstep.active { color: var(--ink-900); }
.wstep.active .dot { border-color: var(--green-500); background: var(--green-500); color: var(--white); }
.wstep.done .dot { border-color: var(--green-500); background: var(--green-50); color: var(--green-600); }

.wstep-line { width: 56px; height: 2px; background: var(--ink-300); margin: 0 14px; }

.wcard {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.wcard h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.3px; }
.wcard .wsub { font-size: 14.5px; color: var(--ink-500); margin-bottom: 30px; }

/* plan selection inside wizard */
.wplans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.wplan {
  border: 2px solid var(--ink-100);
  border-radius: 14px;
  padding: 18px 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.wplan:hover { border-color: var(--green-100); }

.wplan.selected {
  border-color: var(--green-500);
  background: var(--green-50);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.wplan .emp { font-size: 13px; font-weight: 700; color: var(--green-600); margin-bottom: 6px; }
.wplan .pr { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.wplan .pr small { font-size: 12px; font-weight: 500; color: var(--ink-500); }
.wplan .yr { font-size: 11.5px; color: var(--ink-500); margin-top: 3px; }

/* form fields */
.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink-700);
}

.field input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border: 1.5px solid var(--ink-300);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
  color: var(--ink-900);
}

.field input:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.field .hint { font-size: 12px; color: var(--ink-500); margin-top: 6px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* slug input group */
.slug-group {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--ink-300);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.slug-group:focus-within {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.slug-group input {
  flex: 1;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  min-width: 0;
}

.slug-group .suffix {
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--ink-100);
  color: var(--ink-500);
  font-size: 14px;
  font-weight: 600;
  border-left: 1.5px solid var(--ink-300);
}

.slug-status { font-size: 13px; font-weight: 600; margin-top: 8px; min-height: 20px; }
.slug-status.ok { color: var(--green-600); }
.slug-status.bad { color: #dc2626; }
.slug-status.checking { color: var(--ink-500); }

.werr {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13.5px;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: none;
}

.werr.show { display: block; }
.werr:not(:empty) { display: block; }

/* Workspace setup progress modal */
.prog-card { text-align: center; }
.prog-visual { position: relative; width: 96px; height: 96px; margin: 6px auto 16px; }
.prog-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 4px solid #e6efe9; border-top-color: #10b981;
  animation: progSpin 1.1s linear infinite;
}
.prog-visual.prog-done .prog-ring { animation: none; border-color: #10b981; }
.prog-pct {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; color: #0b3d2e;
}
.prog-visual.prog-done .prog-pct { color: #10b981; font-size: 34px; }
.prog-title { font-size: 20px; margin: 0 0 4px; }
.prog-phase { color: #10b981; font-weight: 600; font-size: 15px; margin: 0 0 14px; min-height: 20px; }
.prog-track { height: 8px; border-radius: 99px; background: #eef3f0; overflow: hidden; margin: 0 auto 14px; max-width: 340px; }
.prog-fill {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width .8s ease;
}
.prog-hint { max-width: 360px; margin: 0 auto 6px; }
@keyframes progSpin { to { transform: rotate(360deg); } }

.wnav { display: flex; justify-content: space-between; gap: 14px; margin-top: 10px; }

/* success */
.success-box { text-align: center; padding: 20px 0; }

.success-ic {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-500);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}

.success-box h2 { margin-bottom: 10px; }
.success-box p { color: var(--ink-500); font-size: 14.5px; margin-bottom: 8px; }

.tenant-link {
  display: inline-block;
  background: var(--ink-100);
  border: 1px dashed var(--ink-300);
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--green-600);
  margin: 16px 0 26px;
  word-break: break-all;
}

/* review summary */
.review-box {
  background: #fafcfb;
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 6px 0;
}

.review-row .k { color: var(--ink-500); }
.review-row .v { font-weight: 600; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
  .feat-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  section { padding: 60px 0; }
  .hero { padding: 56px 0 48px; }
  .feat-grid, .steps-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 24px; }
  .wcard { padding: 28px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .wstep .lbl { display: none; }
  .wstep-line { width: 32px; }
  .float-card { display: none; }
}

/* provisioning progress spinner */
.prog-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #d1d5db;
  border-top-color: #16a34a;
  border-radius: 50%;
  animation: progspin 0.8s linear infinite;
}
@keyframes progspin { to { transform: rotate(360deg); } }

/* signup terms of use */
.terms-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0 4px;
}
.terms-title {
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  margin-bottom: 8px;
}
.terms-list {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #111827;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
}
.terms-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #16a34a;
  flex-shrink: 0;
  cursor: pointer;
}

/* ---- Client account & dashboard ---- */
.acct-tabs { display: flex; gap: 6px; background: #f3f4f6; border-radius: 12px; padding: 5px; margin-bottom: 18px; }
.acct-tab { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px; font-family: inherit; font-size: 14px; font-weight: 600; color: #6b7280; cursor: pointer; }
.acct-tab.active { background: #fff; color: #111827; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.wok { color: #16a34a; font-size: 13.5px; font-weight: 600; min-height: 0; margin-bottom: 10px; }
.acct-hint { font-size: 13px; color: #6b7280; margin-top: 12px; text-align: center; }
.acct-hint a { color: #16a34a; font-weight: 600; }
.acct-user { font-size: 13.5px; font-weight: 600; color: #374151; margin-right: 10px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.proj-card { display: flex; flex-direction: column; gap: 8px; }
.proj-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.proj-link { font-size: 13.5px; color: #16a34a; font-weight: 600; word-break: break-all; }
.proj-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #6b7280; }
.pbadge { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pbadge-green { background: #dcfce7; color: #15803d; }
.pbadge-orange { background: #ffedd5; color: #c2410c; }
.pbadge-red { background: #fee2e2; color: #b91c1c; }
.pbadge-blue { background: #dbeafe; color: #1d4ed8; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.inv-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; padding: 8px 10px; border-bottom: 1px solid #e5e7eb; }
.inv-table td { padding: 10px; border-bottom: 1px solid #f3f4f6; color: #111827; }

/* ---- Client invoice history ---- */
.invoice-history-page { max-width: 1160px; }
.invoice-history-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.invoice-history-table-wrap { overflow-x: auto; }
.invoice-history-table { min-width: 860px; }
.invoice-history-table td { vertical-align: middle; }
.invoice-history-actions { white-space: nowrap; text-align: right; }
.invoice-history-empty { padding: 30px 20px; text-align: center; color: var(--ink-500); }
@media (max-width: 700px) {
  .invoice-history-stats { grid-template-columns: 1fr; }
  .invoice-history-page .dash-hero { align-items: flex-start; gap: 18px; }
}
.acct-modal { position: fixed; inset: 0; background: rgba(17,24,39,.55); display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 200; overflow-y: auto; }
.acct-modal-card { width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; }

/* ===== Account / Auth page ===== */
.auth-page { min-height: 100vh; background: #fafcfb; }

.auth-split {
  display: grid;
  grid-template-columns: 460px 1fr;
  min-height: 100vh;
}

.auth-brand {
  background: linear-gradient(160deg, #052e21 0%, #064e3b 55%, #065f46 100%);
  color: #ecfdf5;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
}

.auth-brand-logo {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.auth-brand-main { margin: auto 0; padding: 40px 0; }

.auth-brand-main h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.auth-brand-main h1 span { color: #34d399; }

.auth-brand-main > p {
  font-size: 15px;
  color: #a7f3d0;
  margin-bottom: 34px;
  max-width: 320px;
  line-height: 1.6;
}

.auth-points { list-style: none; display: flex; flex-direction: column; gap: 22px; }

.auth-points li { display: flex; gap: 14px; align-items: flex-start; }

.auth-points .pt-ic {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
  display: flex; align-items: center; justify-content: center;
}

.auth-points b { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
.auth-points small { font-size: 13px; color: #a7f3d0; line-height: 1.55; }

.auth-brand-foot { font-size: 12.5px; color: #6ee7b7; opacity: 0.7; }

.auth-main {
  display: flex;
  flex-direction: column;
  padding: 28px 48px 60px;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.auth-mobile-brand { display: none; margin-right: auto; }

.auth-card {
  width: 100%;
  max-width: 440px;
  margin: auto;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.auth-pane h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--ink-500); margin-bottom: 24px; }

.field-label-row { display: flex; align-items: center; justify-content: space-between; }
.field-link { font-size: 12.5px; font-weight: 600; color: var(--green-600); }
.field-link:hover { text-decoration: underline; }

.inv-page-inner { max-width: 760px; margin: 0 auto; }

/* Invoice page: centered column instead of full-width dashboard layout */
.inv-wrap { max-width: 800px; margin: 0 auto; }
.inv-wrap .dash-hero { max-width: 760px; margin-left: auto; margin-right: auto; margin-bottom: 24px; }

/* Dashboard splash screen */
.splash { position: fixed; inset: 0; z-index: 500; background: #0b1f17; display: flex; align-items: center; justify-content: center; opacity: 1; transition: opacity .5s ease; }
.splash::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(16,185,129,.16), transparent 55%); }
.splash-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: splashUp .6s ease both; }
.splash-logo-wrap { position: relative; width: 92px; height: 92px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.splash-logo { width: 58px; height: 58px; animation: splashPulse 1.6s ease-in-out infinite; filter: drop-shadow(0 6px 24px rgba(16,185,129,.45)); }
.splash-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(16,185,129,.25); border-top-color: #10b981; animation: splashSpin 1.1s linear infinite; }
.splash-brand { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: #fff; }
.splash-sub { font-size: 13.5px; color: rgba(255,255,255,.55); }
.splash-bar { width: 150px; height: 3px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 16px; }
.splash-bar span { display: block; height: 100%; width: 40%; border-radius: 99px; background: #10b981; animation: splashBar 1.2s ease-in-out infinite; }
.splash-out { opacity: 0; pointer-events: none; }
@keyframes splashSpin { to { transform: rotate(360deg); } }
@keyframes splashPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes splashBar { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
@keyframes splashUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Quick guides (dashboard help) */
.guide-card { padding: 8px 18px !important; }
.guide { border-bottom: 1px solid var(--ink-100); }
.guide:last-of-type { border-bottom: none; }
.guide summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: #1f2937; padding: 13px 2px; list-style: none; display: flex; align-items: center; gap: 6px; user-select: none; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: '▾'; margin-left: auto; color: #9ca3af; font-size: 12px; transition: transform .18s ease; }
.guide[open] summary::after { transform: rotate(180deg); }
.guide summary:hover { color: #0ea15f; }
.guide-steps { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.guide-steps li { font-size: 13px; line-height: 1.65; color: #4b5563; }
.guide-steps li b { color: #1f2937; }
.guide-steps a { color: #0ea15f; font-weight: 600; }
.guide-steps a:hover { text-decoration: underline; }
.guide-steps code { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 5px; padding: 1px 6px; font-size: 12px; }
.guide-note { font-size: 12.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; margin: 4px 0 14px; line-height: 1.6; }

/* Workspace live monitor */
.ws-monitor { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #f8faf9; border: 1px solid var(--ink-100); font-size: 13px; }
.ws-mon-text { font-weight: 600; color: #374151; }
.ws-mon-ms { margin-left: auto; font-size: 12px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.ws-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.ws-dot.online { background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: wsPulse 2s infinite; }
.ws-dot.offline { background: #ef4444; }
.ws-dot.checking { background: #d1d5db; animation: wsBlink 1.2s infinite; }
@keyframes wsPulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.45); } 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
@keyframes wsBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ===== Dashboard premium (enterprise feel) ===== */
body.dash-page {
  background:
    radial-gradient(900px 420px at 85% -80px, rgba(16,185,129,.07), transparent 60%),
    radial-gradient(700px 380px at 0% -60px, rgba(59,130,246,.05), transparent 55%),
    #f7faf8;
}
body.dash-page .nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.dash-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); margin-bottom: 6px; }
body.dash-page .dash-hero { margin-bottom: 26px; }
body.dash-page .dash-hero h1 { font-size: 32px; letter-spacing: -0.8px; }
body.dash-page .dash-hero .dash-sub { font-size: 14.5px; color: #64748b; margin-top: 7px; }
body.dash-page .dash-stats { gap: 16px; margin-bottom: 26px; }
body.dash-page .dash-stat {
  padding: 22px 24px; border-radius: 18px; gap: 15px;
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -18px rgba(15,23,42,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
body.dash-page .dash-stat:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 16px 32px -18px rgba(15,23,42,.22); }
body.dash-page .dash-stat-ic { width: 46px; height: 46px; border-radius: 13px; }
body.dash-page .dash-stat-ic svg { width: 22px; height: 22px; }
body.dash-page .dash-stat-ic.green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #047857; }
body.dash-page .dash-stat-ic.blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
body.dash-page .dash-stat-ic.orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #c2410c; }
body.dash-page .dash-stat b { font-size: 26px; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
body.dash-page .dash-stat span { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; }
body.dash-page .dash-sec-head h2 { font-size: 18px; letter-spacing: -0.3px; }
body.dash-page .sec-ic { border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(22,163,74,.12); }
body.dash-page .proj-card2 {
  border-radius: 20px; padding: 24px;
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 28px -20px rgba(15,23,42,.16);
}
body.dash-page .proj-card2:hover { box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 20px 40px -20px rgba(15,23,42,.24); transform: translateY(-3px); }
body.dash-page .proj-av {
  width: 46px; height: 46px; border-radius: 13px; font-size: 18px;
  box-shadow: 0 6px 14px -6px rgba(5,150,105,.5);
}
body.dash-page .proj-name { font-size: 16px; letter-spacing: -0.2px; }
body.dash-page .dash-card {
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 28px -20px rgba(15,23,42,.14);
}
body.dash-page .ws-monitor { background: rgba(248,250,249,.9); border-radius: 12px; }
body.dash-page .dash-alert { border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
body.dash-page .dash-empty { border-radius: 20px; }
@media (max-width: 560px) {
  body.dash-page .dash-hero h1 { font-size: 25px; }
  body.dash-page .dash-stat { padding: 18px 20px; }
  body.dash-page .dash-stat b { font-size: 22px; }
}
.dash-foot {
  text-align: center;
  margin: 48px 0 10px; padding-top: 24px;
  border-top: 1px solid rgba(15,23,42,.06);
}
.dash-foot-trust { font-size: 12.5px; color: #94a3b8; letter-spacing: .01em; }
.dash-foot-copy { font-size: 12px; color: #cbd5e1; margin-top: 8px; }

/* ===== Create-workspace modal (premium SaaS) ===== */
.cm-card { width: 80%; max-width: 80vw; border-radius: 22px; padding: 0 !important; overflow: hidden; }
.cm-grid { display: grid; grid-template-columns: 340px 1fr; min-height: 100%; }
.cm-side {
  background: linear-gradient(160deg, #052e22 0%, #064e3b 55%, #065f46 100%);
  color: #fff; padding: 38px 32px;
  display: flex; flex-direction: column; gap: 0;
  position: relative; overflow: hidden;
}
.cm-side::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.25), transparent 70%);
  pointer-events: none;
}
.cm-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6ee7b7; margin-bottom: 12px; }
.cm-side h2 { font-size: 24px !important; font-weight: 800; letter-spacing: -0.4px; margin: 0 0 10px; color: #fff; line-height: 1.25; }
.cm-sub { font-size: 13.5px; color: rgba(255,255,255,.72); line-height: 1.6; margin-bottom: 26px; }
.cm-perks { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cm-perks li {
  font-size: 13px; color: rgba(255,255,255,.88); line-height: 1.45;
  padding-left: 26px; position: relative;
}
.cm-perks li::before {
  content: ''; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(110,231,183,.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 9px; background-position: center; background-repeat: no-repeat;
}
.cm-form { padding: 34px 38px; max-height: 92vh; overflow-y: auto; background: #fff; }
.cm-sec {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8;
  margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid rgba(15,23,42,.06);
}
.cm-sec-first { margin-top: 6px; padding-top: 0; border-top: none; }
.cm-step {
  width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto;
  background: var(--green-50); color: var(--green-600);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0;
}
.cm-select {
  width: 100%; padding: 11px 12px; border: 1px solid #d8ded9; border-radius: 10px;
  font: inherit; font-size: 14px; background: #fff; color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cm-select:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(16,185,129,.12); }
.cm-summary {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(110,231,183,.28); border-radius: 14px;
  padding: 15px 17px; margin-top: auto;
  backdrop-filter: blur(4px);
}
.cm-summary-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6ee7b7; margin-bottom: 8px; }
.cm-summary-main { display: flex; flex-direction: column; gap: 4px; }
.cm-summary-main span { font-size: 14.5px; font-weight: 700; color: #fff; word-break: break-all; }
.cm-summary-main b { font-size: 13px; font-weight: 700; color: #a7f3d0; }
.cm-card .terms-box { margin-top: 18px; }

/* premium field boxes inside the modal */
.cm-form .field label { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 8px; }
.cm-form .field input, .cm-form .cm-select {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 14.5px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.cm-form .field input:hover, .cm-form .cm-select:hover { border-color: #cbd5e1; }
.cm-form .field input:focus, .cm-form .cm-select:focus {
  background: #fff;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(16,185,129,.10);
}
.cm-form .slug-group {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.cm-form .slug-group:hover { border-color: #cbd5e1; }
.cm-form .slug-group:focus-within {
  background: #fff;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(16,185,129,.10);
}
.cm-form .slug-group input { background: transparent; padding: 12px 15px; font-size: 14.5px; }
.cm-form .slug-group .suffix {
  background: var(--green-50);
  color: var(--green-600);
  font-weight: 700;
  border-left: 1.5px solid #e2e8f0;
}
.cm-form .terms-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
}
.cm-form .terms-title { display: flex; align-items: center; gap: 8px; }
.cm-form .terms-title::before {
  content: ''; width: 16px; height: 16px; flex: 0 0 auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.cm-form .terms-check {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .18s ease, background .18s ease;
}
.cm-form .terms-check:hover { border-color: #cbd5e1; }
.cm-form .terms-check:has(input:checked) {
  border-color: var(--green-500);
  background: var(--green-50);
}
.cm-form .terms-check input { width: 17px; height: 17px; accent-color: var(--green-600); }

@media (max-width: 860px) {
  .cm-card { width: 100%; max-width: 100%; max-height: none; }
  .cm-grid { grid-template-columns: 1fr; }
  .cm-side { padding: 26px 24px; }
  .cm-perks { display: none; }
  .cm-sub { margin-bottom: 0; }
  .cm-summary { margin-top: 18px; }
  .cm-form { padding: 24px 20px; max-height: none; overflow: visible; }
}

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }

.pw-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  border: 0; background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-400, #94a3b8);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.pw-toggle:hover { color: var(--ink-700, #334155); background: var(--green-50, #ecfdf5); }
.pw-toggle.on { color: var(--green-600, #059669); }
.pw-toggle .ic-off { display: none; }
.pw-toggle.on .ic-eye { display: none; }
.pw-toggle.on .ic-off { display: block; }

.pw-meter {
  height: 4px;
  background: var(--ink-100);
  border-radius: 100px;
  margin-top: 8px;
  overflow: hidden;
}
.pw-meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 100px;
  transition: width 0.25s ease, background 0.25s ease;
}
.pw-meter span.weak { background: #ef4444; }
.pw-meter span.fair { background: #f59e0b; }
.pw-meter span.good { background: #10b981; }
.pw-meter span.strong { background: #059669; }

.auth-switch {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-100);
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-500);
}
.auth-switch a { color: var(--green-600); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-main { padding: 20px 20px 48px; }
  .auth-topbar { justify-content: space-between; }
  .auth-mobile-brand { display: block; }
  .auth-card { padding: 28px 22px; }
}

/* ===== Minimal account page ===== */
.acct-min-page {
  min-height: 100vh;
  background: #fafcfb;
  background-image: radial-gradient(circle at 50% -20%, rgba(34, 197, 94, 0.07), transparent 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.acct-min-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.acct-min-logo {
  display: block;
  margin-bottom: 22px;
  transition: transform 0.2s;
}
.acct-min-logo:hover { transform: scale(1.06); }
.acct-min-logo img { height: 44px; width: 44px; display: block; }

.acct-min-card {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(13, 31, 23, 0.04), 0 12px 32px rgba(13, 31, 23, 0.07);
  padding: 36px 34px;
}

.acct-min-card h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  text-align: center;
}

.acct-min-card .auth-sub {
  text-align: center;
  margin-bottom: 24px;
}

.acct-min-foot {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink-400, #9ca3af);
}
.acct-min-foot a { color: var(--green-600); font-weight: 600; }
.acct-min-foot a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .acct-min-card { padding: 28px 20px; border-radius: 16px; }
}

/* ===== Client dashboard v2 ===== */
.dash-wide { max-width: none; padding-left: 40px; padding-right: 40px; }
@media (max-width: 640px) { .dash-wide { padding-left: 20px; padding-right: 20px; } }
.nav-wide { max-width: none; padding-left: 40px; padding-right: 40px; }
@media (max-width: 640px) { .nav-wide { padding-left: 20px; padding-right: 20px; } }
.dash-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.dash-side { position: sticky; top: 88px; }
.dash-side .dash-sec-head { margin-bottom: 12px; }
@media (max-width: 1024px) {
  .dash-cols { grid-template-columns: 1fr; }
  .dash-side { position: static; }
}
.dash-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-hero h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.4px; margin: 0; }
.dash-hero .dash-sub { font-size: 14px; color: #6b7280; margin-top: 5px; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.dash-stat { background: #fff; border: 1px solid var(--ink-100); border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.dash-stat-ic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.dash-stat-ic svg { width: 20px; height: 20px; display: block; }
.dash-stat-ic.green { background: #dcfce7; color: #16a34a; }
.dash-stat-ic.blue { background: #dbeafe; color: #2563eb; }
.dash-stat-ic.orange { background: #ffedd5; color: #ea580c; }
.dash-stat b { font-size: 19px; font-weight: 800; display: block; line-height: 1.15; color: #111827; }
.dash-stat span { font-size: 12px; color: #6b7280; font-weight: 600; }
.dash-alert { display: none; align-items: center; gap: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 12px 16px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.dash-alert.show { display: flex; }
.dash-alert.red { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.dash-sec { margin-top: 26px; }
.dash-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dash-sec-head h2 { font-size: 17px; font-weight: 800; margin: 0; letter-spacing: -0.2px; display: flex; align-items: center; gap: 9px; }
.sec-ic { width: 30px; height: 30px; border-radius: 9px; background: #f0fdf4; color: #16a34a; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.sec-ic svg { width: 16px; height: 16px; display: block; }
.dash-sec-hint { font-size: 13px; color: #6b7280; margin: -6px 0 12px; }
.proj-card2 { background: #fff; border: 1px solid var(--ink-100); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .2s ease, transform .2s ease; }
.proj-card2:hover { box-shadow: 0 8px 24px rgba(0,0,0,.07); transform: translateY(-2px); }
.proj-row { display: flex; align-items: center; gap: 12px; }
.proj-av { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.proj-name { font-size: 15.5px; font-weight: 800; color: #111827; }
.proj-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.proj-meta2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; border-top: 1px solid #f3f4f6; padding-top: 12px; }
.proj-meta2 div span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; font-weight: 700; margin-bottom: 2px; }
.proj-meta2 div b { font-size: 13.5px; font-weight: 700; color: #111827; }
.dash-empty { text-align: center; padding: 42px 20px; background: #fff; border: 1px dashed #d1d5db; border-radius: 16px; color: #6b7280; }
.dash-empty p { margin: 0 0 14px; }
.dash-card { background: #fff; border: 1px solid var(--ink-100); border-radius: 16px; padding: 22px 24px; }
@media (max-width: 560px) {
  .proj-meta2 { grid-template-columns: 1fr 1fr; }
  .dash-hero h1 { font-size: 22px; }
}
.dash-alert.green { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }

/* ---- Invoice sheet (branded invoice + checkout) ---- */
.inv-sheet { background: #fff; border: 1px solid var(--ink-100); border-radius: 16px; padding: 32px; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.inv-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--ink-100); }
.inv-brand { display: flex; align-items: center; gap: 12px; }
.inv-brand img { width: 42px; height: 42px; border-radius: 10px; }
.inv-brand b { display: block; font-size: 17px; color: var(--ink-900); }
.inv-brand span { font-size: 12px; color: var(--ink-500); }
.inv-meta { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.inv-num { font-weight: 800; font-size: 16px; color: var(--ink-900); letter-spacing: .3px; }
.inv-sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; padding: 20px 0; }
.inv-sheet-grid span { display: block; font-size: 11.5px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.inv-sheet-grid b { font-size: 14px; color: var(--ink-900); font-weight: 600; }
.inv-lines { width: 100%; border-collapse: collapse; margin: 6px 0 0; font-size: 13.5px; }
.inv-lines th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-500); font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--ink-100); }
.inv-lines td { padding: 14px 0; border-bottom: 1px solid var(--ink-100); color: var(--ink-700); }
.inv-total-row { display: flex; justify-content: flex-end; align-items: baseline; gap: 18px; padding: 16px 0; }
.inv-total-row span { font-size: 13px; color: var(--ink-500); font-weight: 600; }
.inv-total-row b { font-size: 22px; color: var(--ink-900); font-weight: 800; }
.inv-pay-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 12px; padding: 16px 20px; margin-top: 6px; }
.inv-pay-box b { display: block; font-size: 14.5px; color: var(--ink-900); margin-bottom: 2px; }
.inv-pay-box span { font-size: 12.5px; color: var(--ink-500); line-height: 1.5; }
.inv-paid-note { background: var(--green-50); border: 1px solid var(--green-100); color: #15803d; border-radius: 12px; padding: 14px 18px; font-size: 14px; font-weight: 600; margin-top: 6px; }
.inv-actions { margin-top: 18px; display: flex; justify-content: flex-end; }
@media (max-width: 560px) {
  .inv-sheet { padding: 20px; }
  .inv-sheet-grid { grid-template-columns: 1fr; }
  .inv-pay-box { flex-direction: column; align-items: stretch; text-align: center; }
}
@media print {
  .no-print { display: none !important; }
  body.wizard-page { background: #fff; }
  .inv-sheet { border: none; box-shadow: none; padding: 0; }
}

/* ---------- Embedded payment modal ---------- */
.payframe-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.payframe-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    width: 100%; max-width: 520px; height: min(860px, 94vh);
    display: flex; flex-direction: column;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35);
}
.payframe-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid #e2e8f0; flex-shrink: 0;
}
.payframe-title { display: flex; align-items: center; gap: 12px; }
.payframe-title img { width: 32px; height: 32px; border-radius: 8px; }
.payframe-title b { display: block; font-size: 15px; color: #0f172a; }
.payframe-title span { display: block; font-size: 12px; color: #64748b; }
.payframe-close {
    background: #f1f5f9; border: none; border-radius: 10px;
    width: 36px; height: 36px; font-size: 20px; line-height: 1;
    color: #475569; cursor: pointer; transition: background .15s;
}
.payframe-close:hover { background: #e2e8f0; }
.payframe-body { flex: 1; position: relative; background: #f8fafc; overflow-y: auto; }
/* Fixed iframe height + scrolling="no" crops the gateway's footer badges
   (they sit below the Pay button and past this height). Body scrolls instead. */
.payframe-body iframe { width: 100%; height: 830px; border: 0; display: block; }
@media (max-width: 480px) {
    .payframe-body iframe { height: 890px; }
}
.payframe-body .plans-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
@media (max-width: 560px) {
    .payframe-overlay { padding: 0; }
    .payframe-card { max-width: none; height: 100%; border-radius: 0; }
}
.payframe-newtab { font-size: 12.5px; font-weight: 600; color: #0ea15f; text-decoration: none; white-space: nowrap; }
.payframe-newtab:hover { text-decoration: underline; }
.payframe-title span svg { color: #0ea15f; }
.payframe-summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 18px; flex-shrink: 0;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border-bottom: 1px solid #d1fae5;
}
.payframe-summary-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.payframe-summary-info span { font-size: 12px; font-weight: 600; color: #047857; letter-spacing: .02em; }
.payframe-summary-info b { font-size: 13.5px; color: #0f172a; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payframe-summary-amount {
    font-size: 20px; font-weight: 800; color: #065f46; white-space: nowrap;
    letter-spacing: -0.01em;
}
.payframe-trust {
    display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
    padding: 10px 18px; border-top: 1px solid #e2e8f0; background: #fff; flex-shrink: 0;
}
.payframe-trust-item {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; font-weight: 600; color: #64748b;
}
.payframe-trust-item svg { color: #0ea15f; flex-shrink: 0; }
.payframe-trust-brands { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.payframe-brand {
    display: inline-flex; align-items: center; justify-content: center;
    height: 22px; padding: 0 8px; border: 1px solid #e2e8f0; border-radius: 5px;
    font-size: 10px; font-weight: 800; color: #1e3a8a; letter-spacing: .04em; background: #fff;
}
.payframe-brand-mc { gap: 0; }
.payframe-brand-mc i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.payframe-brand-mc i:first-child { background: #eb001b; }
.payframe-brand-mc i:last-child { background: #f79e1b; opacity: .9; margin-left: -5px; }
@media (max-width: 480px) {
    .payframe-trust { gap: 10px; padding: 8px 12px; }
    .payframe-trust-brands { margin-inline-start: 0; }
    .payframe-summary-amount { font-size: 17px; }
    .payframe-summary { padding: 10px 14px; }
    .payframe-head { padding: 12px 14px; gap: 8px; }
    .payframe-title { min-width: 0; gap: 9px; }
    .payframe-title b { font-size: 14px; }
    .payframe-title span { display: none; }
    .payframe-newtab { font-size: 11.5px; }
}

/* ---- Workspace backup (snapshot) row ---- */
.snap-box {
    border-top: 1px solid #eef2f6; padding-top: 12px; margin-top: 2px;
    display: flex; flex-direction: column; gap: 8px;
}
.snap-info { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.snap-muted { color: #94a3b8; }
.snap-ok { color: #334155; font-weight: 600; }
.snap-busy { color: #b45309; font-weight: 600; }
.snap-err { color: #dc2626; font-size: 12.5px; }
.snap-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-ico { width: 14px; height: 14px; flex: 0 0 auto; vertical-align: -2px; }
.btn .btn-ico { margin-right: 2px; }
.snap-ico { width: 14px; height: 14px; flex: 0 0 auto; vertical-align: -2px; color: #64748b; }
.snap-ok .snap-ico { color: #0ea15f; }
.snap-busy .snap-ico { color: #b45309; }
.snap-ok, .snap-busy, .snap-muted { display: inline-flex; align-items: center; gap: 6px; }
.snap-spin { animation: splashSpin 1s linear infinite; }
