/* ============================================================
   Safe9ja Gmail Campaigner — Design System
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Hero gradient */
  --hero-bg: linear-gradient(145deg, #07091e 0%, #0d1a5c 35%, #163578 65%, #091f4d 100%);

  /* Brand gradients */
  --grad-primary: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --grad-indigo: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --grad-danger: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  --grad-surface: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);

  /* Colors */
  --bg: #f0f4fc;
  --surface: #ffffff;
  --surface-2: #f8faff;

  --border: rgba(148, 163, 184, 0.2);
  --border-strong: rgba(148, 163, 184, 0.35);

  --ink-1: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --ink-4: #94a3b8;

  --on-dark: rgba(255, 255, 255, 0.92);
  --on-dark-soft: rgba(255, 255, 255, 0.62);

  --accent: #2563eb;
  --accent-sky: #0ea5e9;
  --accent-indigo: #4f46e5;

  --success: #16a34a;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;

  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;

  --info-bg: #eff6ff;
  --info-border: #bfdbfe;
  --info: #1d4ed8;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.07), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 8px 32px rgba(37, 99, 235, 0.25);
  --shadow-sky: 0 8px 24px rgba(14, 165, 233, 0.3);
  --shadow-white: 0 16px 48px rgba(255, 255, 255, 0.08);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --t-fast: 150ms;
  --t-base: 200ms;
  --t-slow: 300ms;
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-1);
  min-height: 100vh;
  line-height: 1.6;
}

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

/* ============================================================
   SHARED UTILITIES
   ============================================================ */

.inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.hidden {
  display: none !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #60a5fa;
  border-radius: 2px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-lg);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
    background var(--t-base) var(--ease), opacity var(--t-fast);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary,
button.primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-accent);
  border: none;
  border-radius: var(--r-lg);
  padding: 12px 22px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover:not(:disabled),
button.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.35);
}

.btn-secondary,
button.secondary {
  background: var(--surface);
  color: var(--ink-2);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 12px 22px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-base) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover:not(:disabled),
button.secondary:hover:not(:disabled) {
  background: #f0f4ff;
  border-color: #a5b4fc;
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--ink-1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-dark);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.btn-danger,
button.danger {
  background: var(--grad-danger);
  color: #fff;
  border: none;
  border-radius: var(--r-lg);
  padding: 12px 22px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity var(--t-base), transform var(--t-base) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-danger:hover:not(:disabled),
button.danger:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

button.text-button {
  background: none;
  border: none;
  color: var(--accent-sky);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast), color var(--t-fast);
}

button.text-button:hover {
  background: var(--info-bg);
  color: var(--accent);
}

button.primary.large,
.btn-primary.large {
  padding: 16px 28px;
  font-size: 1rem;
  border-radius: var(--r-xl);
  width: 100%;
}

button.secondary.small {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* ============================================================
   LANDING PAGE — HERO
   ============================================================ */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero-wrap {
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
  padding-bottom: 72px;
}

/* decorative glow blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.18) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.hero-blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14) 0%, transparent 70%);
  bottom: -100px;
  left: -50px;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  top: 40%;
  left: 40%;
}

/* --- Site Header ------------------------------------------ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 0;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.brand-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--on-dark-soft);
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--on-dark-soft);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r-full);
  transition: color var(--t-fast), background var(--t-fast);
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
  font-weight: 600 !important;
  backdrop-filter: blur(8px);
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px);
}

/* --- Hero Content ----------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 0;
  position: relative;
  z-index: 2;
}

.hero-copy {
  color: var(--on-dark);
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #bfdbfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Hero Card -------------------------------------------- */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-2xl);
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--on-dark-soft);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  flex-shrink: 0;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-badge {
  margin-left: auto;
  background: rgba(74, 222, 128, 0.15);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-full);
}

.hero-card h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-list-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  overflow: hidden;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  text-align: center;
}

.hero-stat-val {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero-stat-val.sent {
  color: #4ade80;
}

.hero-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--on-dark-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ============================================================
   LANDING PAGE — CONTENT SECTIONS
   ============================================================ */

.site-body {
  background: var(--bg);
  flex: 1;
  padding: 72px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  line-height: 1.15;
}

.section-title.centered {
  text-align: center;
}

/* --- Features Section ------------------------------------- */
.features {
  margin-bottom: 72px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease),
    border-color var(--t-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--t-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.7;
}

/* --- Steps Section ---------------------------------------- */
.how-it-works {
  margin-bottom: 72px;
  text-align: center;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  position: relative;
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}

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

.step-num {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-accent);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--ink-3);
  line-height: 1.7;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex-shrink: 0;
  padding-top: 40px;
  color: var(--ink-4);
  font-size: 1.25rem;
}

.step-connector::before {
  content: '→';
}

/* --- CTA Banner ------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e3a8a 100%);
  border-radius: var(--r-2xl);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cta-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* --- Site Footer ------------------------------------------ */
.site-footer {
  background: var(--hero-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer a {
  color: #93c5fd;
  text-decoration: none;
  transition: color var(--t-fast);
}

.site-footer a:hover {
  color: #bfdbfe;
}

/* ============================================================
   APP PAGE
   ============================================================ */

.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* --- App Header ------------------------------------------- */
.app-header {
  background: var(--hero-bg);
  margin: 0 -24px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
  box-shadow: 0 8px 32px rgba(7, 9, 30, 0.4);
}

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

.app-brand .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.2;
}

.app-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.app-toolbar a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r-full);
  transition: color var(--t-fast), background var(--t-fast);
}

.app-toolbar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* --- App Main Layout -------------------------------------- */
.app-main {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  align-items: flex-start;
}

/* --- Campaign Header Tile --------------------------------- */
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.panel-header .eyebrow {
  color: var(--accent);
}

.panel-header .eyebrow::before {
  background: var(--accent);
}

.panel-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: var(--info-bg);
  color: var(--accent);
  border: 1px solid var(--info-border);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* --- Content Panel ---------------------------------------- */
.content-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

/* --- Cards ------------------------------------------------ */
.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

/* --- Auth Panel ------------------------------------------- */
.auth-panel {
  overflow: hidden;
}

.auth-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.auth-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.auth-intro h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 4px;
}

.auth-intro p {
  font-size: 0.875rem;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0;
}

/* --- Auth Status ------------------------------------------ */
.auth-status {
  padding: 12px 16px;
  border-radius: var(--r-md);
  margin-bottom: 16px;
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info);
  font-size: 0.9rem;
}

.auth-status.error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}

.auth-status.success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

/* --- Google Sign-in Button -------------------------------- */
.google-icon {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #4285f4;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* --- User Info -------------------------------------------- */
.user-info {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-indigo);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.user-details { flex: 1; }

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-1);
  margin-bottom: 2px;
}

.user-email {
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* --- Hint / Redirect --- */
.hint {
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.6;
  margin-top: 8px;
}

/* --- Step Indicator --------------------------------------- */
.step-indicator {
  display: flex;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 6px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow: auto;
}

.step-indicator button,
nav.step-indicator button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink-3);
  padding: 10px 14px;
  border-radius: var(--r-lg);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base), transform var(--t-fast);
  white-space: nowrap;
  min-width: 80px;
}

.step-indicator button.active,
nav.step-indicator button.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.step-indicator button:hover:not(.active),
nav.step-indicator button:hover:not(.active) {
  background: var(--surface-2);
  color: var(--ink-1);
}

/* --- Step Sections ---------------------------------------- */
section.step {
  display: none;
  flex-direction: column;
  gap: 20px;
}

section.step.active {
  display: flex;
}

section.step h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}

/* --- Upload Area ------------------------------------------ */
.upload-area {
  position: relative;
  border: 2px dashed rgba(37, 99, 235, 0.3);
  border-radius: var(--r-xl);
  padding: 48px 32px;
  text-align: center;
  background: linear-gradient(135deg, #f0f6ff 0%, #f8faff 100%);
  transition: border-color var(--t-base), background var(--t-base), transform var(--t-base) var(--ease);
  cursor: pointer;
}

.upload-area:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, #e0eeff 0%, #eff6ff 100%);
  transform: translateY(-2px);
}

.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  filter: grayscale(0.2);
}

.upload-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 4px;
}

.upload-hint {
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* --- Mapping Panel ---------------------------------------- */
.mapping-panel {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.mapping-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 6px;
}

/* --- Forms ------------------------------------------------ */
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
}

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

input[type="text"],
input[type="email"],
input[type="number"],
select {
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border-strong);
  padding: 11px 14px;
  background: var(--surface);
  color: var(--ink-1);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  width: 100%;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.select-input {
  width: 100%;
}

.full-width {
  width: 100%;
}

/* --- Settings Grid ---------------------------------------- */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.setting-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}

.setting-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-1);
  margin-bottom: 12px;
}

.delay-inputs {
  display: grid;
  grid-template-columns: 72px auto 72px auto;
  align-items: center;
  gap: 8px;
}

.delay-inputs input {
  width: 100%;
  text-align: center;
}

.delay-inputs .unit {
  color: var(--ink-3);
  font-size: 0.85rem;
}

/* --- Quill Editor ----------------------------------------- */
#editor {
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border-strong);
  overflow: hidden;
  min-height: 280px;
  margin-top: 8px;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

#editor:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.ql-container {
  font-size: 0.95rem;
  font-family: var(--font);
  border: none !important;
}

.ql-toolbar {
  border: none !important;
  border-bottom: 1.5px solid var(--border) !important;
  background: var(--surface-2);
}

.ql-editor {
  min-height: 230px;
  padding: 16px;
}

/* --- Preview List ----------------------------------------- */
.preview-list {
  display: grid;
  gap: 14px;
}

.preview-item {
  border-radius: var(--r-lg);
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base) var(--ease);
}

.preview-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* --- Launch Summary --------------------------------------- */
.summary-panel {
  border-radius: var(--r-xl);
  padding: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.summary-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.summary-label {
  font-size: 0.78rem;
  color: var(--ink-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.summary-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-1);
}

.launch-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Status Section --------------------------------------- */
.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.status-header h2 {
  margin-bottom: 4px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
  text-align: center;
}

.stat-card.success {
  border-color: var(--success-border);
  background: var(--success-bg);
}

.stat-card.error {
  border-color: var(--danger-border);
  background: var(--danger-bg);
}

.stat-card .label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.stat-card .value {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ink-1);
  line-height: 1;
}

.stat-card.success .value { color: var(--success); }
.stat-card.error .value { color: var(--danger); }

/* --- Activity Log ----------------------------------------- */
.log-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink-1);
}

.log {
  padding: 16px 20px;
  min-height: 200px;
  max-height: 380px;
  overflow-y: auto;
  font-size: 0.825rem;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  color: var(--ink-2);
  background: #0f172a;
  color: #94d3a2;
  line-height: 1.8;
}

.log::-webkit-scrollbar { width: 6px; }
.log::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
.log::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.log::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* --- Sidebar --------------------------------------------- */
.sidebar {
  display: grid;
  gap: 16px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 12px;
}

.sidebar-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.sidebar-card ul li {
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.sidebar-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.sidebar-card p {
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.6;
}

.sidebar-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.sidebar-card a:hover { text-decoration: underline; }

/* --- Status Card (for app sidebar) --- */
.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   LEGAL PAGES (Privacy & Terms)
   ============================================================ */

.legal-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.legal-header {
  background: var(--hero-bg);
  margin: 0 -24px;
  padding: 32px 24px 40px;
  margin-bottom: 40px;
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
}

.legal-nav {
  margin-bottom: 20px;
}

.legal-nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast);
}

.legal-nav a:hover { color: #fff; }

.legal-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.legal-header .subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin: 0;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  color: var(--ink-2);
  line-height: 1.8;
  font-size: 0.95rem;
}

.content-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-1);
  margin: 24px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.content-card h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.content-card p {
  margin-bottom: 14px;
}

.content-card p:last-child { margin-bottom: 0; }

.content-card ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 14px;
  display: grid;
  gap: 8px;
}

.content-card ul li {
  padding-left: 20px;
  position: relative;
}

.content-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.content-card a {
  color: var(--accent);
  text-decoration: none;
}

.content-card a:hover { text-decoration: underline; }

/* ============================================================
   LEGACY / COMPAT — keep these for any app.js references
   ============================================================ */

/* Redirect URI hint */
#redirectUriHint {
  font-size: 0.8rem;
  color: var(--ink-4);
  margin-top: 6px;
}

/* code inline */
code {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

/* Button row */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card {
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .app-main {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 680px) {
  .inner {
    padding: 0 16px;
  }

  .hero-wrap {
    padding-bottom: 48px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 20px;
  }

  .site-nav {
    width: 100%;
  }

  .hero {
    padding-top: 32px;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    transform: rotate(90deg);
    width: auto;
    padding-top: 0;
    font-size: 1.5rem;
  }

  .step-card {
    max-width: 100%;
  }

  .cta-banner {
    flex-direction: column;
    padding: 32px 24px;
    text-align: center;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .app-header {
    border-radius: 0 0 var(--r-xl) var(--r-xl);
  }

  .step-indicator {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .app-shell {
    padding: 0 14px 40px;
  }

  .card, .panel {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .status-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
