/* ==========================================================================
   JSS License Manager - Main Stylesheet
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --success: #10b981;
  --success-dark: #047857;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-dark: #b91c1c;
  --info: #3b82f6;

  --bg: #f4f6f8;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --text: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { color: #111827; margin: 0 0 12px; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

p { margin: 0 0 12px; }
code { font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 13px; }
pre { background: #1f2937; color: #e5e7eb; padding: 16px; border-radius: 8px; overflow-x: auto; }

.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.center { text-align: center; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header / Footer
   ========================================================================== */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: #111827;
}
.brand:hover { text-decoration: none; }
.brand-icon { width: 28px; height: 28px; color: var(--primary); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}
.main-nav a:hover { color: var(--primary); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

.site-main {
  min-height: calc(100vh - 64px - 200px);
  padding: 32px 0;
}

.site-footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 40px 0;
  margin-top: 80px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: #d1d5db; }
.footer-nav a:hover { color: #fff; text-decoration: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  font-family: inherit;
  text-align: center;
}
.btn:hover { background: #f9fafb; text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

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

.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-secondary:hover { background: #f3f4f6; }

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-dark); border-color: var(--danger-dark); }

.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: var(--success-dark); }

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

.btn-copy {
  background: var(--border-light);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.btn-copy:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #374151;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.form-group input:disabled { background: #f9fafb; color: var(--text-muted); }
.form-group small { display: block; margin-top: 4px; font-size: 12px; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin-bottom: 8px;
  cursor: pointer;
}
.checkbox-label input { width: auto; }

/* ==========================================================================
   Alerts
   ========================================================================== */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 14px;
  border-left: 4px solid;
}
.alert-success { background: #ecfdf5; color: var(--success-dark); border-color: var(--success); }
.alert-error   { background: #fef2f2; color: var(--danger-dark); border-color: var(--danger); }
.alert-warning { background: #fffbeb; color: #92400e; border-color: var(--warning); }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: var(--info); }

/* ==========================================================================
   Auth pages
   ========================================================================== */

.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { text-align: center; }
.auth-card .muted { text-align: center; }
.auth-foot { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 14px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, #f5f7ff 0%, #ede9fe 100%);
  margin: 0 0 60px;
  border-radius: var(--radius-lg);
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 { font-size: 44px; line-height: 1.15; margin-bottom: 16px; }
.hero p { font-size: 17px; color: var(--text-muted); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Features
   ========================================================================== */

.features {
  padding: 60px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}
.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-radius: 12px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head p { color: var(--text-muted); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plan-name { font-size: 20px; }
.plan-desc { color: var(--text-muted); font-size: 14px; min-height: 44px; }
.plan-price {
  margin: 16px 0 24px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan-price .amount { font-size: 36px; font-weight: 700; color: #111827; }
.plan-price .period { color: var(--text-muted); font-size: 14px; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}
.plan-features svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.plan-features-small li { font-size: 13px; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { padding: 60px 0; }
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 12px 0 0; color: var(--text-muted); }

/* ==========================================================================
   Card
   ========================================================================== */

.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.card-head h2 { margin: 0; font-size: 18px; }

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.dashboard { padding: 0 0 40px; }
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.dash-header h1 { margin: 0 0 4px; font-size: 26px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-label { font-size: 13px; color: var(--text-muted); }
.stat-value { font-size: 22px; font-weight: 700; color: #111827; }

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table th {
  background: #f9fafb;
  color: #374151;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.table tbody tr:hover { background: #f9fafb; }
.table tbody tr:last-child td { border-bottom: 0; }

.key, .key-sm {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 13px;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  color: #111827;
}
.key-sm { font-size: 12px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #e5e7eb;
  color: #374151;
}
.badge-active    { background: #d1fae5; color: #065f46; }
.badge-expired   { background: #fee2e2; color: #991b1b; }
.badge-revoked   { background: #f3f4f6; color: #6b7280; }
.badge-suspended { background: #fef3c7; color: #92400e; }
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-paid      { background: #d1fae5; color: #065f46; }
.badge-failed    { background: #fee2e2; color: #991b1b; }
.badge-refunded  { background: #ede9fe; color: #6d28d9; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }
.badge-customer  { background: #dbeafe; color: #1e40af; }
.badge-admin     { background: #fee2e2; color: #991b1b; }
.badge-system    { background: #f3f4f6; color: #6b7280; }
.badge-guest     { background: #f3f4f6; color: #6b7280; }
.badge-valid     { background: #d1fae5; color: #065f46; }
.badge-invalid   { background: #fee2e2; color: #991b1b; }
.badge-limit_exceeded { background: #fef3c7; color: #92400e; }
.badge-success   { background: #d1fae5; color: #065f46; }
.badge-inactive  { background: #e5e7eb; color: #6b7280; }

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.pagination a {
  display: inline-block;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text);
}
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { text-decoration: none; background: #f3f4f6; }
.pagination a.active:hover { background: var(--primary-dark); }

.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-bar input,
.filter-bar select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  font-family: inherit;
}
.filter-bar input { min-width: 240px; }

.back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}
.back-link:hover { color: var(--primary); }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.page-head h1 { margin: 00 4px; font-size: 26px; }
.page-head .muted { font-size: 14px; }

.license-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
  text-align: center;
}
.license-box .label { font-size: 12px; color: var(--success-dark); text-transform: uppercase; letter-spacing: 0.05em; }
.license-box .license-key { display: block; font-size: 22px; margin: 12px 0; color: #064e3b; font-weight: 700; }

.lic-key-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  background: #f9fafb;
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}
.lic-key-display code { font-size: 16px; background: transparent; padding: 0; }
.lic-key-display .muted { font-size: 12px; width: 100%; }

.lic-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.lic-stats > div { background: #f9fafb; padding: 12px; border-radius: var(--radius-sm); }
.lic-stats .muted { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.lic-stats strong { display: block; margin-top: 4px; font-size: 18px; }

.lic-view { display: grid; gap: 20px; }
.lic-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}
.lic-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.activate-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.activate-form input { flex: 1; min-width: 200px; }

.action-row { display: flex; gap: 8px; flex-wrap: wrap; }

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-form input { flex: 1; }

.kv-table { width: 100%; }
.kv-table th { text-align: left; padding: 8px 12px; background: transparent; text-transform: none; font-size: 13px; color: var(--text-muted); font-weight: 500; width: 180px; border-bottom: 1px solid var(--border-light); }
.kv-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-light); }

/* ==========================================================================
   Checkout
   ========================================================================== */

.checkout-wrap { padding: 0 0 40px; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  margin-top: 24px;
}
.checkout-side .card { position: sticky; top: 84px; }
.order-summary h3 { margin-top: 0; }
.os-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.os-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  margin-top: 12px;
  border-top: 2px solid var(--border);
  font-size: 18px;
  font-weight: 700;
}
.checkout-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

/* ==========================================================================
   Success page
   ========================================================================== */

.success-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}
.success-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 540px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.success-icon svg { width: 40px; height: 40px; }
.success-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

.success-card .receipt-card {
  text-align: left;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0 4px;
}
.success-card .receipt-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.success-card .receipt-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.success-card .receipt-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.success-card .receipt-list li:last-child { border-bottom: 0; }
.success-card .receipt-list li span { color: var(--muted); }
.success-card .receipt-list li strong { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Profile
   ========================================================================== */

.profile-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}
.profile-menu {
  padding: 12px;
}
.profile-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 2px;
  text-decoration: none;
}
.profile-tab:hover { background: #f3f4f6; }
.profile-tab.active { background: var(--primary); color: #fff; }
.profile-pane h2 { margin-top: 0; }

/* ==========================================================================
   Activity list
   ========================================================================== */

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.activity-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.activity-list li:last-child { border-bottom: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .dash-grid, .checkout-grid, .profile-grid, .form-row { grid-template-columns: 1fr; }
  .checkout-side .card { position: static; }
  .hero h1 { font-size: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
  .main-nav a:last-child { border: 0; }
  .auth-card { padding: 28px 24px; }
  .admin-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  h1 { font-size: 24px; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 8px; }
  .hero h1 { font-size: 28px; }
  .hero { padding: 40px 20px; }
}

/* ==========================================================================
   Landing Page (Taste-Skill Premium Redesign)
   Anti-slop. Soft structuralism. Double-bezel cards. Asymmetric bento.
   ========================================================================== */

:root {
  --lp-bg: #fafaf9;
  --lp-bg-warm: #f6f5f1;
  --lp-surface: #ffffff;
  --lp-ink: #0c0c10;
  --lp-ink-2: #1c1c24;
  --lp-ink-3: #4a4a55;
  --lp-ink-4: #6e6e7a;
  --lp-ink-5: #9a9aa6;
  --lp-line: #e8e6e0;
  --lp-line-soft: #efedea;
  --lp-accent: #4f46e5;
  --lp-accent-2: #6366f1;
  --lp-accent-dark: #3730a3;
  --lp-accent-soft: #eef2ff;
  --lp-success: #047857;
  --lp-success-soft: #ecfdf5;
  --lp-shadow-soft: 0 1px 2px rgba(12, 12, 16, 0.04), 0 4px 12px rgba(12, 12, 16, 0.04);
  --lp-shadow-card: 0 1px 2px rgba(12, 12, 16, 0.05), 0 12px 32px rgba(12, 12, 16, 0.06);
  --lp-shadow-elev: 0 4px 8px rgba(12, 12, 16, 0.04), 0 24px 60px rgba(12, 12, 16, 0.10);
  --lp-radius-sm: 12px;
  --lp-radius-md: 18px;
  --lp-radius-lg: 28px;
  --lp-radius-xl: 36px;
  --lp-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

body { background: var(--lp-bg); }

/* Override system header background to be transparent over our page */
.site-header { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--lp-line-soft); }
.site-main { padding: 0; min-height: auto; }

/* Hero */
.lp-hero {
  position: relative;
  padding: 80px 0 96px;
  background:
    radial-gradient(900px 600px at 100% 0%, rgba(99, 102, 241, 0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(79, 70, 229, 0.06), transparent 60%),
    var(--lp-bg);
  overflow: hidden;
}
.lp-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(12, 12, 16, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 12, 16, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.lp-hero-copy { max-width: 600px; }
.lp-headline {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--lp-ink);
  margin: 18px 0 20px;
}
.lp-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--lp-ink-3);
  max-width: 56ch;
  margin: 0 0 28px;
}
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  color: var(--lp-ink-2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--lp-shadow-soft);
}
.lp-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--lp-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}
.lp-eyebrow-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}
.lp-eyebrow-light::before { background: var(--lp-accent-2); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25); }

/* Button-in-Button Island CTA */
.btn-island {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 6px 6px 6px 22px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-ink);
  text-decoration: none;
  font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
  transition: all 500ms var(--lp-ease);
  box-shadow: var(--lp-shadow-soft);
  cursor: pointer;
  white-space: nowrap;
}
.btn-island:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--lp-shadow-card); }
.btn-island:active { transform: translateY(0) scale(0.98); }
.btn-island-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(12, 12, 16, 0.05);
  border-radius: 999px;
  margin-left: 12px;
  transition: all 500ms var(--lp-ease);
}
.btn-island-icon svg { width: 16px; height: 16px; }
.btn-island:hover .btn-island-icon { transform: translateX(2px); }

.btn-island-primary {
  background: var(--lp-ink);
  border-color: var(--lp-ink);
  color: #fff;
}
.btn-island-primary .btn-island-icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-island-primary:hover { background: var(--lp-ink-2); }

.btn-island-ghost {
  background: transparent;
  color: var(--lp-ink);
}
.btn-island-ghost:hover { background: var(--lp-surface); }

.btn-island-block { display: flex; width: 100%; justify-content: center; padding: 8px 8px 8px 22px; }
.btn-island-lg { padding: 10px 10px 10px 26px; font-size: 16px; }
.btn-island-lg .btn-island-icon { width: 40px; height: 40px; }

/* Hero meta strip */
.lp-hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--lp-line-soft);
}
.lp-hero-meta-item { display: flex; flex-direction: column; gap: 2px; }
.lp-hero-meta-item strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--lp-ink);
  letter-spacing: -0.01em;
}
.lp-hero-meta-item span { font-size: 13px; color: var(--lp-ink-4); }

/* Hero visual: License key card with double bezel */
.lp-hero-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-key-shell {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(99, 102, 241, 0.04));
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 28px;
  box-shadow: var(--lp-shadow-elev);
  transform: rotate(-1.2deg);
  transition: transform 600ms var(--lp-ease);
}
.lp-key-shell:hover { transform: rotate(-0.6deg) translateY(-4px); }
.lp-key-core {
  background: var(--lp-surface);
  border-radius: 22px;
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.lp-key-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.lp-key-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--lp-ink);
}
.lp-key-brand svg { width: 18px; height: 18px; color: var(--lp-accent); }
.lp-key-pill {
  background: var(--lp-success-soft);
  color: var(--lp-success);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lp-key-pill::before { content: ""; width: 6px; height: 6px; background: var(--lp-success); border-radius: 50%; box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15); }
.lp-key-value {
  background: var(--lp-bg-warm);
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
}
.lp-key-value code {
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: 17px;
  font-weight: 500;
  color: var(--lp-ink);
  letter-spacing: 0.02em;
  background: transparent;
  padding: 0;
}
.lp-key-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--lp-line-soft);
  border-bottom: 1px solid var(--lp-line-soft);
  margin-bottom: 16px;
}
.lp-key-stats > div { display: flex; flex-direction: column; gap: 2px; }
.lp-key-stats span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lp-ink-4); font-weight: 600; }
.lp-key-stats strong { font-size: 15px; color: var(--lp-ink); font-weight: 700; font-family: "Plus Jakarta Sans", sans-serif; }
.lp-key-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--lp-ink-4);
}
.lp-key-dot {
  width: 7px; height: 7px;
  background: var(--lp-success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12);
  animation: lp-pulse 2.4s ease-in-out infinite;
}
@keyframes lp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.lp-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  padding: 12px 16px;
box-shadow: var(--lp-shadow-card);
  font-size: 13px;
  z-index: 2;
}
.lp-floating-card svg { width: 18px; height: 18px; color: var(--lp-success); }
.lp-floating-card strong { display: block; color: var(--lp-ink); font-weight: 600; font-size: 13px; }
.lp-floating-card span { color: var(--lp-ink-4); font-size: 12px; }
.lp-floating-card-a { top: 32px; left: -16px; }
.lp-floating-card-b { bottom: 40px; right: -8px; }
.lp-floating-card-b svg { color: var(--lp-accent); }

/* Generic section */
.lp-section { padding: 96px 0; position: relative; }
.lp-section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.lp-section-head-left { text-align: left; max-width: 720px; margin: 0 0 48px; }
.lp-h2 {
  font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
  margin: 16px 0 14px;
}
.lp-h2-light { color: #fff; }
.lp-sub-light { color: rgba(255, 255, 255, 0.7); }

/* Bento grid */
.lp-section-bento { background: var(--lp-bg); padding-top: 48px; }
.lp-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 20px;
}
.lp-bento-cell {
  position: relative;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-lg);
  padding: 28px;
  box-shadow: var(--lp-shadow-soft);
  transition: transform 500ms var(--lp-ease), box-shadow 500ms var(--lp-ease);
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}
.lp-bento-cell:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow-card); }
.lp-bento-wide { grid-column: span 3; }
.lp-bento-dark {
  grid-column: span 3;
  background: linear-gradient(135deg, #0c0c10 0%, #1a1a24 100%);
  border-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.lp-bento-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(99, 102, 241, 0.4), transparent 60%);
  pointer-events: none;
}
.lp-bento-dark > * { position: relative; z-index: 1; }
.lp-bento-dark h3 { color: #fff; }
.lp-bento-dark p { color: rgba(255, 255, 255, 0.7); }

.lp-bento-icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
  border-radius: 12px;
  margin-bottom: 20px;
}
.lp-bento-icon svg { width: 22px; height: 22px; }
.lp-bento-icon-light { background: rgba(99, 102, 241, 0.2); color: #c7d2fe; }
.lp-bento-feature h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--lp-ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.lp-bento-feature p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--lp-ink-4);
  margin: 0;
}
.lp-bento-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 18px;
  padding: 4px 10px;
  background: var(--lp-bg-warm);
  border: 1px solid var(--lp-line-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--lp-ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lp-bento-mini-table {
  margin-top: auto;
  background: var(--lp-bg-warm);
  border: 1px solid var(--lp-line-soft);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lp-bento-mini-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--lp-ink-2);
  font-family: "JetBrains Mono", monospace;
  border-radius: 8px;
  transition: background 200ms;
}
.lp-bento-mini-row:hover { background: rgba(99, 102, 241, 0.06); }
.lp-bento-mini-dot { width: 8px; height: 8px; background: var(--lp-ink-5); border-radius: 50%; }
.lp-bento-mini-dot-live { background: var(--lp-success); box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15); }
.lp-bento-mini-meta { color: var(--lp-ink-4); font-size: 11px; }
.lp-bento-code {
  margin-top: auto;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: inline-flex;
  align-self: flex-start;
}
.lp-bento-code code { color: #c7d2fe; font-family: "JetBrains Mono", monospace; font-size: 13px; background: transparent; padding: 0; }

/* How it works */
.lp-section-how { background: var(--lp-bg); }
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--lp-line);
}
.lp-step {
  padding: 32px 28px 32px 0;
  border-right: 1px solid var(--lp-line);
}
.lp-step:last-child { border-right: 0; padding-right: 0; }
.lp-step:not(:first-child) { padding-left: 32px; }
.lp-step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.lp-step h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--lp-ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.lp-step p { font-size: 14px; line-height: 1.6; color: var(--lp-ink-4); margin: 0; }

/* Pricing */
.lp-section-pricing { background: var(--lp-bg-warm); }
.lp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.lp-plan-shell {
  position: relative;
  padding: 2px;
  background: var(--lp-line);
  border-radius: 28px;
  box-shadow: var(--lp-shadow-soft);
  transition: transform 500ms var(--lp-ease), box-shadow 500ms var(--lp-ease);
}
.lp-plan-shell:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow-card); }
.lp-plan-shell-featured {
  background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-accent-2) 100%);
  padding: 2px;
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.20);
}
.lp-plan-core {
  background: var(--lp-surface);
  border-radius: 26px;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.lp-plan-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lp-ink);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lp-plan-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--lp-ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.lp-plan-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--lp-ink-4);
  margin: 0 0 20px;
  min-height: 42px;
}
.lp-plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px solid var(--lp-line-soft);
  border-bottom: 1px solid var(--lp-line-soft);
  margin-bottom: 24px;
}
.lp-plan-amount {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--lp-ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.lp-plan-period { font-size: 14px; color: var(--lp-ink-4); }
.lp-plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--lp-ink-2);
  line-height: 1.5;
}
.lp-plan-list svg { width: 18px; height: 18px; color: var(--lp-accent); flex-shrink: 0; margin-top: 1px; }
.lp-pricing-foot {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--lp-ink-4);
}
.lp-pricing-foot a { color: var(--lp-accent); font-weight: 600; }

/* API section (dark) */
.lp-section-api {
  background: linear-gradient(180deg, #0c0c10 0%, #14141c 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lp-section-api::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 60%);
  pointer-events: none;
}
.lp-api-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.lp-api-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lp-api-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.lp-api-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.lp-api-bullet {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--lp-accent-2);
  letter-spacing: 0.05em;
}
.lp-api-list strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.lp-api-list span { font-size: 14px; color: rgba(255, 255, 255, 0.6); line-height: 1.5; }

.lp-api-code-shell {
  padding: 2px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(99, 102, 241, 0.1));
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.lp-api-code-core {
  background: #0a0a0e;
  border-radius: 22px;
  overflow: hidden;
}
.lp-api-code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.lp-api-dot { width: 10px; height: 10px; background: #ff5f57; border-radius: 50%; }
.lp-api-dot-mid { background: #febc2e; }
.lp-api-dot-end { background: #28c840; }
.lp-api-code-name {
  margin-left: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.lp-api-code {
  margin: 0;
  padding: 24px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  overflow-x: auto;
  background: transparent;
}
.lp-api-code code { background: transparent; padding: 0; font-size: inherit; }
.lp-c-mute { color: rgba(255, 255, 255, 0.35); }
.lp-c-key { color: #c7d2fe; }
.lp-c-str { color: #a5f3d4; }

/* FAQ */
.lp-section-faq { background: var(--lp-bg); }
.lp-faq-wrap { max-width: 880px; }
.lp-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-faq-item {
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: border-color 300ms, box-shadow 300ms;
}
.lp-faq-item[open] { border-color: var(--lp-accent-soft); box-shadow: var(--lp-shadow-soft); }
.lp-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--lp-ink);
  transition: color 200ms;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary:hover { color: var(--lp-accent); }
.lp-faq-icon {
  position: relative;
  width: 20px; height: 20px;
  flex-shrink: 0;
}
.lp-faq-icon::before, .lp-faq-icon::after {
  content: "";
  position: absolute;
  background: var(--lp-ink-3);
  border-radius: 1px;
  transition: transform 400ms var(--lp-ease);
}
.lp-faq-icon::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.lp-faq-icon::after { top: 2px; left: 9px; width: 2px; height: 16px; }
.lp-faq-item[open] .lp-faq-icon::after { transform: rotate(90deg); }
.lp-faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--lp-ink-3);
  font-size: 15px;
  line-height: 1.6;
}

/* Final CTA */
.lp-section-cta { background: var(--lp-bg-warm); padding: 80px 0 120px; }
.lp-cta-shell {
  padding: 2px;
  background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-accent-2) 100%);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(79, 70, 229, 0.20);
}
.lp-cta-core {
  background: var(--lp-ink);
  border-radius: 30px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-cta-core::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 200px at 50% 0%, rgba(99, 102, 241, 0.25), transparent 60%);
  pointer-events: none;
}
.lp-cta-core > * { position: relative; z-index: 1; }
.lp-cta-core .lp-h2 { color: #fff; margin-bottom: 12px; }
.lp-cta-core .lp-sub { color: rgba(255, 255, 255, 0.7); margin: 0 auto 32px; }
.lp-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
  .lp-hero { padding: 56px 0 72px; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .lp-hero-visual { height: auto; min-height: 460px; }
  .lp-bento { grid-template-columns: repeat(2, 1fr); }
  .lp-bento-wide, .lp-bento-dark { grid-column: span 2; }
  .lp-pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .lp-api-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-step { border-right: 0; border-bottom: 1px solid var(--lp-line); padding: 24px 0; }
  .lp-step:not(:first-child) { padding-left: 0; }
  .lp-step:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  .lp-section { padding: 64px 0; }
  .lp-section-head { margin-bottom: 40px; }
  .lp-bento { grid-template-columns: 1fr; }
  .lp-bento-wide, .lp-bento-dark { grid-column: span 1; }
  .lp-headline { font-size: 38px; }
  .lp-h2 { font-size: 30px; }
  .lp-hero-meta { gap: 20px; flex-wrap: wrap; }
  .lp-cta-core { padding: 48px 24px; }
  .lp-floating-card-a { left: 0; }
  .lp-floating-card-b { right: 0; }
  .lp-api-code { font-size: 12px; padding: 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .lp-key-shell { transform: none !important; }
  .lp-key-dot { animation: none !important; }
}

/* ==========================================================================
   JSS Web Solutions - Brand Header & Footer
   Matches the main JSS site (red accent, trident mark, contact strip)
   ========================================================================== */

:root {
  --jss-red: #e11d48;
  --jss-red-dark: #be123c;
  --jss-red-soft: #fff1f3;
  --jss-red-soft-2: #ffe4e9;
  --jss-ink: #0c0c10;
  --jss-ink-2: #1c1c24;
  --jss-ink-3: #4a4a55;
  --jss-ink-4: #6e6e7a;
  --jss-ink-5: #9a9aa6;
  --jss-line: #ececec;
  --jss-line-soft: #f3f3f3;
  --jss-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ===== Header ===== */

.jss-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--jss-line);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.jss-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 78px;
}
.jss-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--jss-ink);
  flex-shrink: 0;
}
.jss-brand:hover { text-decoration: none; }
.jss-brand-mark {
  color: var(--jss-ink);
  transition: color 400ms var(--jss-ease);
}
.jss-brand:hover .jss-brand-mark { color: var(--jss-red); }
.jss-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.jss-brand-text strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--jss-ink);
}
.jss-brand-text em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--jss-ink-4);
  margin-top: 4px;
  text-transform: uppercase;
}

.jss-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.jss-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--jss-ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: color 250ms var(--jss-ease), background 250ms var(--jss-ease);
}
.jss-nav-link:hover { color: var(--jss-red); text-decoration: none; background: var(--jss-red-soft); }
.jss-nav-link.active { color: var(--jss-red); }
.jss-nav-link.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--jss-red);
  border-radius: 2px;
}

.jss-header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.jss-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--jss-red-soft);
  border: 1px solid var(--jss-red-soft-2);
  border-radius: 999px;
  text-decoration: none;
  color: var(--jss-ink);
  transition: all 300ms var(--jss-ease);
}
.jss-phone-pill:hover { background: var(--jss-red); border-color: var(--jss-red); text-decoration: none; }
.jss-phone-pill:hover .jss-phone-pill-icon { background: #fff; color: var(--jss-red); }
.jss-phone-pill:hover .jss-phone-pill-text small,
.jss-phone-pill:hover .jss-phone-pill-text strong { color: #fff; }
.jss-phone-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--jss-red);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 300ms var(--jss-ease);
}
.jss-phone-pill-icon svg { width: 15px; height: 15px; }
.jss-phone-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.jss-phone-pill-text small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jss-ink-4);
  transition: color 300ms;
}
.jss-phone-pill-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--jss-ink);
  margin-top: 2px;
  transition: color 300ms;
  white-space: nowrap;
}

.jss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 300ms var(--jss-ease);
  white-space: nowrap;
}
.jss-btn:hover { text-decoration: none; transform: translateY(-1px); }
.jss-btn:active { transform: translateY(0); }
.jss-btn-ghost {
  background: transparent;
  border-color: var(--jss-line);
  color: var(--jss-ink);
}
.jss-btn-ghost:hover { background: var(--jss-ink); border-color: var(--jss-ink); color: #fff; }
.jss-btn-primary {
  background: var(--jss-red);
  border-color: var(--jss-red);
  color: #fff;
  box-shadow: 0 1px 2px rgba(225, 29, 72, 0.15), 0 4px 14px rgba(225, 29, 72, 0.18);
}
.jss-btn-primary:hover { background: var(--jss-red-dark); border-color: var(--jss-red-dark); color: #fff; }

.jss-nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--jss-line);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}
.jss-nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--jss-ink);
  border-radius: 2px;
  transition: all 300ms var(--jss-ease);
}
.jss-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.jss-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.jss-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Footer ===== */

.jss-footer {
  background: #fff;
  border-top: 1px solid var(--jss-line);
  margin-top: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.jss-footer-contact {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--jss-line);
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}
.jss-footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.jss-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  padding: 8px 4px;
  border-radius: 12px;
  transition: background 300ms;
}
a.jss-footer-contact-item:hover { background: var(--jss-red-soft); text-decoration: none; }
a.jss-footer-contact-item:hover .jss-footer-contact-icon { transform: scale(1.06); }
.jss-footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: var(--jss-red-soft);
  color: var(--jss-red);
  border-radius: 14px;
  flex-shrink: 0;
  transition: transform 300ms var(--jss-ease);
}
.jss-footer-contact-icon svg { width: 22px; height: 22px; }
.jss-footer-contact-item div { display: flex; flex-direction: column; }
.jss-footer-contact-item small {
  font-size: 11px;
  font-weight: 600;
  color: var(--jss-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.jss-footer-contact-item strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--jss-ink);
  letter-spacing: -0.01em;
}

.jss-footer-bar {
  padding: 22px 0;
  background: #fff;
}
.jss-footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.jss-footer-bar small {
  font-size: 13px;
  color: var(--jss-ink-4);
  font-weight: 500;
}
.jss-footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.jss-footer-legal a {
  font-size: 13px;
  color: var(--jss-ink-3);
  text-decoration: none;
  transition: color 200ms;
}
.jss-footer-legal a:hover { color: var(--jss-red); text-decoration: none; }

/* ===== Back to top button ===== */
.jss-back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--jss-red);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.92);
  transition: all 350ms var(--jss-ease);
}
.jss-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.jss-back-top:hover { background: var(--jss-red-dark); transform: translateY(-3px) scale(1.04); }
.jss-back-top svg { width: 20px; height: 20px; }

/* ===== Header/Footer responsive ===== */
@media (max-width: 1024px) {
  .jss-nav { display: none; }
  .jss-nav.open {
    display: flex;
    position: absolute;
    top: 78px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--jss-line);
    padding: 12px 20px;
    box-shadow: 0 12px 24px rgba(12, 12, 16, 0.06);
  }
  .jss-nav.open .jss-nav-link {
    width: 100%;
    padding: 14px 16px;
    border-bottom: 1px solid var(--jss-line-soft);
    border-radius: 0;
  }
  .jss-nav.open .jss-nav-link:last-child { border-bottom: 0; }
  .jss-nav-link.active::after { display: none; }
  .jss-nav-toggle { display: inline-flex; }
  .jss-header-inner { grid-template-columns: auto 1fr auto; gap: 16px; }
  .jss-phone-pill-text { display: none; }
  .jss-phone-pill { padding: 4px; }
}
@media (max-width: 720px) {
  .jss-header-cta .jss-btn-ghost { display: none; }
  .jss-footer-contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .jss-footer-bar-inner { justify-content: center; text-align: center; }
  .jss-footer-legal { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .jss-back-top { transition: none; }
}
