/*
 * Janitorial.Systems — Marketing Website Stylesheet
 */

/* ── CSS Variables (ported from app) ──────────────────────────────── */
:root {
  --bg-primary:   #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary:  #f1f5f9;
  --bg-input:     #e2e8f0;

  --text-primary:   #1e293b;
  --text-secondary: #475569;
  --text-muted:     #64748b;

  --border:       #cbd5e1;
  --border-light: #94a3b8;

  --accent:       #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft:  rgba(59, 130, 246, 0.15);

  --success:      #10b981;
  --success-soft: rgba(16, 185, 129, 0.15);
  --warning:      #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.15);
  --danger:       #ef4444;
  --danger-soft:  rgba(239, 68, 68, 0.15);
  --purple:       #8b5cf6;
  --purple-soft:  rgba(139, 92, 246, 0.15);
  --amber:        #d97706;

  --radius:    8px;
  --radius-lg: 12px;
  --shadow:    0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body.dark {
  --bg-primary:   #0f1419;
  --bg-secondary: #1a2028;
  --bg-tertiary:  #242d38;
  --bg-input:     #2a3441;

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --border:       #334155;
  --border-light: #475569;

  --shadow:    0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
}

html.pre-dark,
html.pre-dark body { background: #0f1419 !important; }

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

/* ── Base ─────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.2s, color 0.2s;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* ── Typography ───────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-secondary); }

.text-muted { color: var(--text-muted); }

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

.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-tertiary);
}

/* Diagonal divider on bottom */
.section-angle::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 100%);
  z-index: 1;
}

.section-angle-reverse::after {
  clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
}

/* ── Navigation ───────────────────────────────────────────────────── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.site-nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: background 0.2s, border-color 0.2s;
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Dark mode toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s;
  margin-left: 8px;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Login button */
.btn-login {
  padding: 8px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  margin-left: 8px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-login:hover {
  background: var(--accent);
  color: #fff;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .theme-toggle { margin-left: auto; }
  .btn-login { display: none; }
  .nav-hamburger { display: block; }
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(59,130,246,0.15), transparent),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(16,185,129,0.1), transparent),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(139,92,246,0.08), transparent);
  animation: heroShift 12s ease-in-out infinite alternate;
}

body.dark .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(59,130,246,0.2), transparent),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(16,185,129,0.12), transparent),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(139,92,246,0.1), transparent);
}

@keyframes heroShift {
  0%   { transform: scale(1)   translate(0, 0); }
  50%  { transform: scale(1.05) translate(-2%, 3%); }
  100% { transform: scale(1.02) translate(2%, -1%); }
}

/* Dot grid overlay */
.hero-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
}

body.dark .hero-dots { opacity: 0.15; }

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Hero – image variant (homepage) ──────────────────────────────── */
.hero.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 400px;
}

.hero-image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero.hero-image .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay-box {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  padding: 48px 56px;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 600px;
  color: #fff;
}

.hero-overlay-box h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.hero-overlay-box p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.hero-overlay-box .hero-actions {
  justify-content: center;
}

.image-banner-btn {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.image-banner-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

@media (max-width: 600px) {
  .hero.hero-image { min-height: 340px; }
  .hero-overlay-box { padding: 32px 24px; margin: 0 16px; }
}

.app-shot {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.app-shot::after {
  content: '';
  position: absolute;
  inset: 36px 0 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 18%);
}

.app-shot-toolbar {
  height: 36px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.app-shot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.app-shot-dot:nth-child(1) { background: #ef4444; }
.app-shot-dot:nth-child(2) { background: #f59e0b; }
.app-shot-dot:nth-child(3) { background: #10b981; }

.app-shot-label {
  margin-left: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.app-shot img {
  width: 100%;
  display: block;
  height: auto;
}

.app-shot-soft {
  border-color: rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  box-shadow:
    0 22px 50px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.45));
}

.app-shot-soft::after {
  inset: 36px 0 0 0;
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.28), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 24%);
}

.app-shot-soft img {
  filter: saturate(0.98) contrast(0.98);
}

body.dark .app-shot-soft {
  border-color: rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.8));
  box-shadow:
    0 24px 54px rgba(2, 6, 23, 0.42),
    0 0 0 1px rgba(255,255,255,0.05) inset;
}

/* Small hero variant for inner pages */
.hero-small {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-small h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* ── Stats Bar ────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Feature Cards ────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

.feature-card {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
  fill: none;
}

.icon-blue    { background: var(--accent-soft); color: var(--accent); }
.icon-green   { background: var(--success-soft); color: var(--success); }
.icon-orange  { background: var(--warning-soft); color: var(--warning); }
.icon-purple  { background: var(--purple-soft); color: var(--purple); }
.icon-teal    { background: rgba(20,184,166,0.15); color: #14b8a6; }

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.feature-card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.feature-card:hover .card-link { color: var(--accent-hover); }

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

/* ── How It Works ─────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  position: relative;
}

.step {
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
}

.step h3 { margin-bottom: 8px; }

.step p { font-size: 0.9rem; }

/* Connecting line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 2px;
  background: var(--border);
  z-index: 1;
}

@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
}

/* ── CTA Banner ───────────────────────────────────────────────────── */
.cta-banner {
  background: var(--accent);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.cta-banner .btn {
  background: #fff;
  color: var(--accent);
  font-weight: 700;
}

.cta-banner .btn:hover {
  background: var(--bg-tertiary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ── Feature Detail Sections (features.html) ──────────────────────── */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-detail.reverse { direction: rtl; }
.feature-detail.reverse > * { direction: ltr; }

.feature-detail-text h2 {
  margin-bottom: 16px;
}

.feature-detail-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.feature-detail-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-detail-text li {
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-detail-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* CSS UI Mockup */
.ui-mockup {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mockup-toolbar {
  height: 36px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #f59e0b; }
.mockup-dot:nth-child(3) { background: #10b981; }

.mockup-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}

.mockup-row {
  height: 14px;
  border-radius: 4px;
  background: var(--bg-tertiary);
}

.mockup-row-short { width: 60%; }
.mockup-row-med { width: 80%; }

.mockup-block {
  height: 40px;
  border-radius: 6px;
  background: var(--bg-tertiary);
}

.mockup-accent {
  background: var(--accent-soft);
  border: 1px solid rgba(59,130,246,0.2);
}

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

.mockup-grid-item {
  height: 32px;
  border-radius: 4px;
  background: var(--bg-tertiary);
}

@media (max-width: 768px) {
  .feature-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature-detail.reverse { direction: ltr; }

  .feature-detail > .app-shot,
  .feature-detail > .ui-mockup {
    order: -1;
  }
}

/* ── Pricing ──────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.badge-community { background: #f1f5f9; color: #64748b; }
.badge-starter { background: var(--success-soft); color: var(--success); }
.badge-pro     { background: var(--purple-soft); color: var(--purple); }
.badge-payg    { background: var(--warning-soft); color: var(--amber); }

body.dark .badge-free { background: var(--bg-tertiary); }

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
}

/* ── PAYG Card Internals ─────────────────────────────────────── */
.payg-price-label {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.payg-packs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding-top: 16px;
}

.payg-pack {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.payg-pack-name {
  font-weight: 600;
  color: var(--text-primary);
}

.payg-pack-price {
  font-weight: 700;
  color: var(--accent);
}

/* Negative feature marker */
.pricing-features li.feature-no::before {
  content: '\2717';
  color: var(--text-muted);
}

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question:hover { background: var(--bg-tertiary); }

.faq-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Contact Form ────────────────────────────────────────────────── */
.contact-form-card {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 600px;
  margin: 0 auto;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-form-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-form-card h2 {
  text-align: center;
  margin-bottom: 8px;
}

.contact-form-card > p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
}

.form-message.visible {
  display: block;
}

.form-message-success {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--success);
}

.form-message-error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.contact-form-card .g-recaptcha {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.contact-form-card .btn {
  width: 100%;
}

@media (max-width: 520px) {
  .contact-form-card { padding: 32px 24px; }
}

/* ── Contact Card ─────────────────────────────────────────────────── */
.contact-card {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
}

.contact-card h3 { margin-bottom: 8px; }

.contact-email {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-block;
  margin: 12px 0;
}

.contact-email:hover { color: var(--accent-hover); }

.contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 48px auto 0;
}

.info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.info-card h4 { margin-bottom: 8px; }
.info-card p { font-size: 0.9rem; }

@media (max-width: 520px) {
  .info-cards { grid-template-columns: 1fr; }
  .contact-card { padding: 32px 24px; }
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Scroll Reveal ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ── Section Headings ─────────────────────────────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 { margin-bottom: 12px; }

.section-heading p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── Status Badges ────────────────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 8px;
}

.badge-coming-soon {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-in-production {
  background: var(--success-soft);
  color: var(--success);
}

/* ── Beta Banner ─────────────────────────────────────────────────── */
.beta-banner {
  position: relative;
  background: var(--bg-secondary);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15), var(--shadow-lg);
}

body.dark .beta-banner {
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.2), var(--shadow-lg);
}

.beta-banner-glow {
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), transparent 40%, transparent 60%, rgba(16,185,129,0.08));
  pointer-events: none;
}

.beta-banner-content {
  position: relative;
  z-index: 1;
}

.beta-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.beta-banner h2 {
  margin-bottom: 12px;
}

.beta-banner p {
  max-width: 500px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
}

.beta-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.beta-price-note {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.beta-banner-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  z-index: 10;
}

.beta-banner-close:hover {
  color: var(--text-primary);
}

/* Beta Banner Minimized State */
.beta-banner-minimized {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.beta-banner-min-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.beta-banner-min-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex: 1;
}

.beta-banner-min-restore {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.beta-banner-min-restore:hover {
  background: var(--accent-hover);
}

/* ── Pricing Toggle ──────────────────────────────────────────────── */
.pricing-toggle-wrap {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-toggle:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.pricing-toggle-icon {
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.pricing-toggle.open .pricing-toggle-icon {
  transform: rotate(45deg);
}

.pricing-hidden {
  display: none !important;
}

/* ── Features Comparison Table ───────────────────────────────────── */
.comparison-grid {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -24px;
  padding: 0 24px;
}

.comparison-table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.9rem;
}

.comparison-table thead {
  background: var(--bg-tertiary);
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.comparison-feature-col {
  text-align: left;
  width: 30%;
}

.comparison-feature-name {
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--bg-tertiary);
}

.comparison-highlight {
  background: var(--accent-soft);
}

.comparison-table thead .comparison-highlight {
  color: var(--accent);
}

.cmp-yes {
  color: var(--success);
  font-weight: 700;
  font-size: 1.1rem;
}

.cmp-no {
  color: var(--text-muted);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .comparison-table {
    min-width: 560px;
  }
}

/* ── Utilities ────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
