/* ============================================
   TYPIQ — Global Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #6c63ff;
  --primary-dark: #5a52e0;
  --accent: #8b83ff;
  --accent-light: #a9a3ff;
  --success: #4ade80;
  --error: #f87171;
  --warning: #fbbf24;

  --bg: #faf6f1;
  --bg-alt: #f3ede5;
  --surface: #ffffff;
  --surface-alt: #f8f4ef;
  --text: #1a1a2e;
  --text-secondary: #5a5a7a;
  --text-muted: #8a8aaa;
  --border: #e8e4df;

  --shadow-sm: 0 2px 8px rgba(108, 99, 255, 0.06);
  --shadow-md: 0 4px 20px rgba(108, 99, 255, 0.1);
  --shadow-lg: 0 8px 40px rgba(108, 99, 255, 0.14);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;

  --font: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;

  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-hover: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-alt: #16162a;
  --surface: #1c1c34;
  --surface-alt: #24243e;
  --text: #e8e8f0;
  --text-secondary: #a0a0c0;
  --text-muted: #6a6a8a;
  --border: #2a2a44;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.3);
}

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

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

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-secondary);
  max-width: 680px;
}

.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header p {
  margin: 16px auto 0;
  font-size: 1.1rem;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  user-select: none;
}

.logo span {
  color: var(--primary);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

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

.lang-select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.lang-select:focus {
  border-color: var(--primary);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  background: var(--border);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-cta {
  display: inline-flex;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

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

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

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1.1rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

[data-theme="dark"] .card-icon {
  background: var(--surface-alt);
}

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

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Grid layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.hero h1 .highlight {
  color: var(--primary);
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.hero-image {
  position: relative;
}

.hero-image .placeholder-img {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-small {
  text-align: center;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
}

.hero-small h1 {
  margin-bottom: 16px;
}

.hero-small p {
  margin: 0 auto;
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* --- Steps (How It Works) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 16px;
}

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

.step-connector {
  display: none;
}

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

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--border);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

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

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
  transform: scale(1.06);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

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

.pricing-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  margin: 20px 0 8px;
  line-height: 1;
}

.pricing-price .currency {
  font-size: 1.4rem;
  vertical-align: super;
}

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

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

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

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.testimonial-stars {
  color: var(--warning);
  margin-bottom: 16px;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Download Section --- */
.download-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  border: 1px solid var(--border);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--surface-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.download-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.download-btn svg {
  width: 24px;
  height: 24px;
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

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

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

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

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

.faq-item.active .faq-answer {
  max-height: 400px;
}

/* --- Tabs (Install Page) --- */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 40px;
  width: fit-content;
  margin-inline: auto;
}

.tab-btn {
  padding: 12px 28px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
  color: var(--text);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.install-steps {
  counter-reset: step;
}

.install-step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.install-step-num {
  counter-increment: step;
  width: 36px;
  height: 36px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.install-step-content h4 {
  margin-bottom: 4px;
}

.install-step-content p {
  font-size: 0.95rem;
}

.code-block {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  margin: 12px 0;
  line-height: 1.6;
}

.requirements {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

.requirements h4 {
  margin-bottom: 12px;
  color: var(--primary);
}

.requirements li {
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.requirements li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.troubleshooting {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 28px;
}

[data-theme="dark"] .troubleshooting {
  background: #2a2218;
  border-color: #4a3a20;
}

.troubleshooting h4 {
  color: #c2410c;
  margin-bottom: 12px;
}

[data-theme="dark"] .troubleshooting h4 {
  color: #fb923c;
}

.troubleshooting p,
.troubleshooting li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

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

.form-input.error {
  border-color: var(--error);
}

.form-error {
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 4px;
  font-weight: 600;
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

thead th {
  background: var(--surface-alt);
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

tbody tr:hover {
  background: var(--surface-alt);
}

/* --- Progress Bar --- */
.progress {
  width: 100%;
  height: 8px;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient);
  transition: width 0.6s ease;
}

.progress-bar.success {
  background: var(--success);
}

.progress-bar.warning {
  background: var(--warning);
}

.progress-bar.error {
  background: var(--error);
}

/* --- Stat Cards --- */
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Guarantee Badge --- */
.guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  padding: 20px;
  background: #ecfdf5;
  border-radius: var(--radius-md);
  border: 1px solid #a7f3d0;
}

[data-theme="dark"] .guarantee {
  background: #0a2a1a;
  border-color: #166534;
}

.guarantee svg {
  width: 28px;
  height: 28px;
  color: #16a34a;
  flex-shrink: 0;
}

.guarantee p {
  font-weight: 700;
  color: #16a34a;
  font-size: 0.95rem;
}

/* --- Payment Badges Placeholder --- */
.payment-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.payment-badges .placeholder-img {
  height: 36px;
  padding: 8px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  background: #1a1a2e;
  color: #a0a0c0;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  color: #8080a0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: #8080a0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #2a2a44;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #6060a0;
}

.footer .lang-select {
  background: #24243e;
  border-color: #3a3a54;
  color: #a0a0c0;
}

/* --- Login Card --- */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 40px;
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 420px;
}

.login-card h1 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 8px;
}

.login-card > p {
  text-align: center;
  margin-bottom: 32px;
}

.login-card .btn {
  width: 100%;
  margin-top: 8px;
}

.demo-credentials {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 24px;
  text-align: center;
}

.demo-credentials p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.demo-credentials code {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Dashboard Layout --- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: fixed;
  top: var(--nav-height);
  bottom: 0;
  left: 0;
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.sidebar-nav a:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.sidebar-nav a.active {
  background: rgba(108, 99, 255, 0.08);
  color: var(--primary);
  border-right: 3px solid var(--primary);
}

.sidebar-nav a svg {
  width: 20px;
  height: 20px;
}

.sidebar-nav .sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 24px;
}

.dashboard-main {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
  min-height: calc(100vh - var(--nav-height));
}

.dashboard-header {
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.dashboard-header p {
  font-size: 0.95rem;
}

.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
}

.chart-placeholder {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- School Benefits Cards --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.steps-school {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.school-testimonial {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.school-testimonial blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

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

/* --- Placeholder Images --- */
.placeholder-img {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 80px;
}

.legal-content h1 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-content h2 {
  color: var(--text);
  font-size: 1.2rem;
  margin-top: 36px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  max-width: none;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-content .badge {
  display: inline-block;
  background: #f0fdf4;
  border: 1px solid #4ade80;
  color: #166534;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

[data-theme="dark"] .legal-content .badge {
  background: #0a2a1a;
  border-color: #166534;
}

.legal-content .note,
.legal-content .box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 18px 0;
  font-size: 0.95rem;
}

.legal-content .green {
  background: #f0fdf4;
  border-left: 4px solid #4ade80;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 18px 0;
}

[data-theme="dark"] .legal-content .green {
  background: #0a2a1a;
}

.legal-content .warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.9rem;
}

[data-theme="dark"] .legal-content .warn {
  background: #2a2218;
  border-color: #4a3a20;
}

.legal-content .highlight {
  background: var(--surface-alt);
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.legal-content td,
.legal-content th {
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 0.9rem;
  text-align: left;
}

.legal-content th {
  background: var(--surface-alt);
  font-weight: 700;
}

.legal-content code {
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Fira Code', monospace;
  font-size: 0.85em;
}

.legal-content .signature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.legal-content .sig-box {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

@media (max-width: 768px) {
  .legal-content .signature {
    grid-template-columns: 1fr;
  }
}

/* --- Utility --- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.py-1 { padding-block: 8px; }
.py-2 { padding-block: 16px; }

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero p {
    margin-inline: auto;
  }

  .btn-group {
    justify-content: center;
  }

  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-school {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }

  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .download-section {
    padding: 40px 24px;
  }

  .section {
    padding: 60px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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

  .steps-school {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-wrap: wrap;
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
  }

  /* Dashboard mobile */
  .sidebar {
    display: none;
  }

  .dashboard-main {
    margin-left: 0;
    padding: 20px 16px;
  }

  .login-card {
    padding: 32px 24px;
  }
}

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

  h1 {
    font-size: 1.8rem;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

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

/* --- Cookie Consent Banner v2 --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  padding: 24px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-banner-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.cookie-banner-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.cookie-banner-icon svg {
  width: 20px;
  height: 20px;
}

.cookie-banner-body {
  flex: 1;
}

.cookie-banner-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cookie-banner-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: none;
  line-height: 1.5;
}

.cookie-banner-body a {
  color: var(--primary);
  font-weight: 600;
}

.cookie-banner-region {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.cookie-banner-actions .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-reject {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-reject:hover {
  border-color: var(--text-muted);
  color: var(--text);
  background: var(--surface-alt);
}

@media (max-width: 640px) {
  .cookie-banner-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cookie-banner-actions {
    justify-content: center;
  }

  .cookie-banner-body p {
    font-size: 0.82rem;
  }
}
