/* ============================================================
   SignCast.pro — Shared Stylesheet
   Dark theme SaaS marketing site
   ============================================================ */

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

:root {
  --bg:          #0f1117;
  --panel:       #161a23;
  --panel-2:     #1c2130;
  --border:      #2a3140;
  --border-2:    #364050;
  --text:        #e8ebf2;
  --muted:       #8b93a7;
  --primary:     #6366f1;
  --primary-h:   #7c7ff2;
  --primary-10:  rgba(99,102,241,0.10);
  --primary-20:  rgba(99,102,241,0.20);
  --amber:       #f59e0b;
  --amber-10:    rgba(245,158,11,0.12);
  --success:     #22c55e;
  --danger:      #ef4444;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  24px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow:      0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.25);
  --transition:  0.2s ease;
  --font:        "Segoe UI", system-ui, -apple-system, Inter, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-h); }
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg, video { display: block; max-width: 100%; }

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

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { color: var(--muted); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-10);
  border: 1px solid var(--primary-20);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 1.1rem;
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header p {
  max-width: 560px;
  margin-inline: auto;
  margin-top: 0.75rem;
  font-size: 1.1rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border-width: 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(99,102,241,0.4);
}
.btn-primary:hover {
  background: var(--primary-h);
  color: #fff;
  box-shadow: 0 6px 24px rgba(99,102,241,0.55);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: var(--panel);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-amber {
  background: var(--amber);
  color: #0f1117;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(245,158,11,0.35);
}
.btn-amber:hover {
  background: #fbbf24;
  color: #0f1117;
  box-shadow: 0 6px 24px rgba(245,158,11,0.5);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,17,23,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.85rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--panel);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.5rem;
}
.nav-login {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-login:hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Video background */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

/* CSS Fallback TV */
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none; /* shown via JS when video unavailable */
  overflow: hidden;
}
.hero-fallback.active { display: block; }

/* Glow orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 420px; height: 420px;
  background: rgba(99,102,241,0.35);
  top: -120px; left: -80px;
  animation-delay: 0s;
}
.orb-2 {
  width: 320px; height: 320px;
  background: rgba(245,158,11,0.22);
  bottom: -60px; right: 10%;
  animation-delay: 2.5s;
}
.orb-3 {
  width: 260px; height: 260px;
  background: rgba(139,92,246,0.3);
  top: 40%; left: 55%;
  animation-delay: 5s;
}
@keyframes orbFloat {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: 1; }
  50%  { transform: translateY(-30px) scale(1.08); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(0) scale(1); }
}

/* CSS TV frame */
.css-tv-wrap {
  position: absolute;
  top: 50%;
  left: 57%;
  right: 3%;
  width: auto;
  max-width: 620px;
  transform: translateY(-50%);
  aspect-ratio: 16/10;
}
/* below this width the text needs the full hero — hide the TV mock entirely */
@media (max-width: 1180px) {
  .css-tv-wrap { display: none; }
}
.css-tv-frame {
  width: 100%; height: 100%;
  background: #0d0f18;
  border-radius: 18px;
  border: 3px solid #2a3140;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(99,102,241,0.18), 0 24px 60px rgba(0,0,0,0.7);
  position: relative;
}
.css-tv-status {
  position: absolute;
  top: 10px; right: 14px;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--success); text-transform: uppercase; z-index: 5;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: 0.3; }
}

/* Ad slides */
.ad-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  opacity: 0;
  animation: slideShow 12s ease-in-out infinite;
}
.ad-slide:nth-child(2) { animation-delay: 4s; }
.ad-slide:nth-child(3) { animation-delay: 8s; }

@keyframes slideShow {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  28%  { opacity: 1; }
  33%  { opacity: 0; }
  100% { opacity: 0; }
}

.ad-slide-1 { background: linear-gradient(135deg, #1a1060 0%, #2d1a8a 50%, #0f1a40 100%); }
.ad-slide-2 { background: linear-gradient(135deg, #1a0a00 0%, #7c2d00 50%, #1a0a00 100%); }
.ad-slide-3 { background: linear-gradient(135deg, #001a15 0%, #004d35 50%, #001a15 100%); }

.ad-eyebrow {
  font-size: clamp(0.6rem, 1.5vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}
.ad-headline {
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.ad-slide-1 .ad-headline { color: #fff; }
.ad-slide-2 .ad-headline { color: var(--amber); }
.ad-slide-3 .ad-headline { color: #4ade80; }

.ad-sub {
  font-size: clamp(0.7rem, 2vw, 1rem);
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-top: 0.25rem;
}
.ad-badge {
  margin-top: 1.2rem;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.ad-slide-1 .ad-badge { background: rgba(99,102,241,0.4); color: #c7d2fe; border: 1px solid rgba(99,102,241,0.5); }
.ad-slide-2 .ad-badge { background: rgba(245,158,11,0.25); color: var(--amber); border: 1px solid rgba(245,158,11,0.4); }
.ad-slide-3 .ad-badge { background: rgba(74,222,128,0.15); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }

/* Overlay gradient over video / fallback */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(99,102,241,0.08) 0%, transparent 70%),
    linear-gradient(to right, rgba(15,17,23,0.9) 0%, rgba(15,17,23,0.55) 42%, rgba(15,17,23,0.12) 75%),
    linear-gradient(to bottom, rgba(15,17,23,0.55) 0%, rgba(15,17,23,0.3) 40%, rgba(15,17,23,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: clamp(3rem, 6vw, 5rem);
  max-width: 760px;
}
.hero-content h1 {
  margin-bottom: 1.1rem;
}
.hero-content h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--primary), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subhead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  max-width: 580px;
  margin-bottom: 2.2rem;
  color: rgba(232,235,242,0.75);
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.hero-trust {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-trust::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

/* ── Features ────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-10) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow), var(--shadow);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--primary-10);
  border: 1px solid var(--primary-20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}
.feature-card h3 {
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ── How It Works ─────────────────────────────────────────── */
.how-bg {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  position: relative;
}

/* connector line between steps */
.steps-grid::before {
  content: "";
  position: absolute;
  top: 60px;
  left: calc(33.33% - 30px);
  right: calc(33.33% - 30px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--amber));
  opacity: 0.3;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}

.step-number {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(99,102,241,0.4);
  position: relative;
  z-index: 1;
}

.step-illustration {
  width: 100%;
  max-width: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.step p { font-size: 0.9rem; }

/* Step illustration: canvas mock */
.illus-canvas {
  padding: 14px;
  background: #1c2130;
  min-height: 120px;
  position: relative;
}
.illus-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.illus-tool {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--border);
}
.illus-tool.active { background: var(--primary); }
.illus-canvas-area {
  background: #0f1117;
  border-radius: 8px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
}
.illus-canvas-text-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.illus-line { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.15); }
.illus-line.primary { background: var(--primary); opacity: 0.7; width: 80%; }
.illus-line.short { width: 55%; }
.illus-btn-mock {
  width: 28px; height: 10px;
  border-radius: 5px;
  background: var(--amber);
  opacity: 0.8;
}

/* Step illustration: schedule grid */
.illus-schedule {
  padding: 12px;
  background: #1c2130;
}
.illus-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.illus-day-label {
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.illus-slots {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.illus-slot {
  height: 22px;
  border-radius: 4px;
  background: var(--border);
}
.illus-slot.filled { background: linear-gradient(135deg, var(--primary), #8b5cf6); opacity: 0.8; }
.illus-slot.filled-2 { background: linear-gradient(135deg, var(--amber), #f97316); opacity: 0.7; }

/* Step illustration: TV */
.illus-tv {
  padding: 14px;
  background: #1c2130;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.illus-tv-frame {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  border: 2px solid var(--border-2);
  background: linear-gradient(135deg, #1a1060, #2d1a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.illus-tv-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.illus-tv-line { height: 5px; border-radius: 3px; }
.illus-tv-line.w1 { width: 70px; background: #fff; opacity: 0.8; }
.illus-tv-line.w2 { width: 50px; background: rgba(255,255,255,0.4); }
.illus-tv-dot {
  position: absolute;
  top: 4px; right: 5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 5px var(--success);
}
.illus-tv-stand {
  width: 20px; height: 6px;
  background: var(--border-2);
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}
.illus-tv-base {
  width: 50px; height: 4px;
  background: var(--border-2);
  border-radius: 2px;
}
.illus-signal {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-top: 2px;
}
.illus-bar {
  width: 5px;
  background: var(--success);
  border-radius: 1px;
  opacity: 0.8;
}
.illus-bar:nth-child(1) { height: 6px; }
.illus-bar:nth-child(2) { height: 9px; }
.illus-bar:nth-child(3) { height: 12px; }
.illus-bar:nth-child(4) { height: 15px; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition);
}
.toggle-label.active { color: var(--text); }

.toggle-switch {
  position: relative;
  width: 52px; height: 28px;
  cursor: pointer;
}
.toggle-switch input {
  opacity: 0; width: 0; height: 0;
  position: absolute;
}
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border-2);
  border-radius: 999px;
  transition: background var(--transition);
}
.toggle-switch input:checked + .toggle-track { background: var(--primary); }
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.toggle-switch input:checked ~ .toggle-thumb { transform: translateX(24px); }

.yearly-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--amber-10);
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.pricing-card-wrap {
  display: flex;
  justify-content: center;
}

.pricing-card {
  background: var(--panel);
  border: 1px solid var(--primary);
  border-radius: var(--radius-2xl);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #a78bfa, var(--amber));
}

.pricing-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-10);
  border: 1px solid var(--primary-20);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 0.8rem;
}

.pricing-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}
.price-amount {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.04em;
}
.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.price-period {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.price-yearly-note {
  font-size: 0.82rem;
  color: var(--amber);
  margin-bottom: 1.5rem;
  min-height: 1.2em;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text);
}
.feature-list li::before {
  content: "";
  display: block;
  width: 18px; height: 18px;
  flex-shrink: 0;
  background: var(--success);
  border-radius: 50%;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.58l7.3-7.28a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.58l7.3-7.28a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E");
  mask-size: 14px;
  -webkit-mask-size: 14px;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.checkout-btn-wrap { width: 100%; }
.checkout-btn-wrap .btn { width: 100%; justify-content: center; }

.pricing-footnote {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.pricing-footnote span { color: var(--text); font-weight: 600; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list {
  max-width: 700px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
details[open] {
  border-color: var(--primary);
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  transition: background var(--transition);
}
summary:hover { background: var(--panel-2); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 20px; height: 20px;
  flex-shrink: 0;
  background: var(--muted);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.293 7.293a1 1 0 0 1 1.414 0L10 10.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 0-1.414z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.293 7.293a1 1 0 0 1 1.414 0L10 10.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 0-1.414z'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  transition: transform var(--transition), background var(--transition);
}
details[open] summary::after {
  transform: rotate(180deg);
  background: var(--primary);
}
.faq-answer {
  padding: 0 1.4rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── CTA Band ────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #161a23 0%, #1c2130 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.cta-inner h2 { max-width: 540px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand img { width: 36px; height: 36px; }
.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.footer-links a:hover { color: var(--text); background: var(--panel); }

/* ── Scroll-fade-up animation ────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.08s; }
.fade-up-delay-2 { transition-delay: 0.16s; }
.fade-up-delay-3 { transition-delay: 0.24s; }
.fade-up-delay-4 { transition-delay: 0.32s; }
.fade-up-delay-5 { transition-delay: 0.40s; }
.fade-up-delay-6 { transition-delay: 0.48s; }

/* ── Login page ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.18) 0%, transparent 65%),
    var(--bg);
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 5vw, 2.75rem);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #a78bfa);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.auth-logo img { width: 56px; height: 56px; }

.auth-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.auth-subtitle {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.form-input {
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0.7rem 0.95rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}
.form-input::placeholder { color: var(--muted); }

.auth-error {
  display: none;
  font-size: 0.84rem;
  color: var(--danger);
  text-align: center;
  padding: 0.6rem;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}
.auth-error.visible { display: block; }

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.demo-hint {
  background: rgba(99,102,241,0.07);
  border: 1px solid var(--primary-20);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.demo-hint strong { color: var(--text); font-weight: 700; }

.auth-back {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  15%      { transform: translateX(-6px); }
  30%      { transform: translateX(5px); }
  45%      { transform: translateX(-4px); }
  60%      { transform: translateX(3px); }
  75%      { transform: translateX(-2px); }
}
.shake { animation: shake 0.4s ease-in-out; }

/* ── Portal page ─────────────────────────────────────────── */
.portal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding-block: 0.8rem;
}
.portal-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.portal-topbar img { height: 30px; width: auto; }

.portal-main {
  flex: 1;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.portal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
}
.portal-card h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
}

.portal-welcome {
  background: linear-gradient(135deg, var(--primary-10) 0%, var(--amber-10) 100%);
  border-color: var(--primary);
}
.portal-welcome h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.4rem;
}
.portal-welcome p { font-size: 0.95rem; }

.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.75rem;
}
.sub-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: blink 2s ease-in-out infinite;
}

.license-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.95rem;
}
.license-key {
  flex: 1;
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
}
.copy-btn {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
}
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.copy-btn.copied { color: var(--success); border-color: var(--success); }

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text);
}
.check-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary-10);
  border: 1px solid var(--primary-20);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .steps-grid { gap: 1.5rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .nav-actions .btn-primary { display: none; }
}

@media (min-width: 900px) {
  .portal-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portal-welcome { grid-column: 1 / -1; }
  .portal-download { grid-column: 1 / -1; }
}
