/* ========================================
   QueryLight Landing Page
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=Figtree:wght@400;500;600&display=swap');

/* --- Custom Properties --- */
:root {
  --bg: #0a1424;
  --surface: #0f1a2e;
  --elevated: #162340;
  --text: #e4e8ee;
  --text-secondary: #7e8a9a;
  --accent: #e8793a;
  --accent-glow: rgba(232, 121, 58, 0.15);
  --accent-cyan: #22d3ee;
  --accent-cyan-glow: rgba(34, 211, 238, 0.1);
  --accent-amber: #e8793a;
  --border: rgba(255, 255, 255, 0.06);
  --check: #3dd68c;
  --cross: #ef5350;
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-mono: 'SF Mono', ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  --max-width: 1120px;
  --section-gap: 120px;
  --radius: 12px;
  --radius-sm: 8px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f1ed;
    --surface: #ffffff;
    --elevated: #eae6df;
    --text: #1a1a1a;
    --text-secondary: #5e5a54;
    --accent: #c85a1e;
    --accent-glow: rgba(200, 90, 30, 0.1);
    --accent-cyan: #0891b2;
    --accent-cyan-glow: rgba(8, 145, 178, 0.08);
    --accent-amber: #c85a1e;
    --border: rgba(0, 0, 0, 0.07);
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

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

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

a:hover {
  text-decoration: underline;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 64px;
  letter-spacing: -0.02em;
}

.section-date {
  display: block;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0;
  margin-top: 4px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 20, 36, 0.8);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: light) {
  .nav {
    background: rgba(243, 241, 237, 0.8);
  }
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-icon {
  border-radius: 6px;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
  text-decoration: none !important;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* --- Hero --- */
.hero {
  padding: 140px 0 0;
  position: relative;
  overflow: visible;
}

/* Hero glow — radiates from the icon, sweeps down through social proof */
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: 5%;
  width: 800px;
  height: 1000px;
  background:
    radial-gradient(ellipse at 60% 25%, rgba(232, 121, 58, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 50%, rgba(34, 211, 238, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 40% 70%, rgba(232, 121, 58, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.hero-screenshot-wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

.badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  border: 1px solid rgba(232, 121, 58, 0.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-download {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  margin-bottom: 16px;
}

.hero-download:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
}

.hero-meta {
  margin-top: 0;
}

.hero-meta {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin-top: 12px;
}

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

a.hero-screenshot {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--border),
    0 0 80px -20px var(--accent-glow);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  cursor: zoom-in;
}

a.hero-screenshot:hover {
  transform: translateY(-4px);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--border),
    0 0 100px -20px var(--accent-glow);
  text-decoration: none;
}

a.hero-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Email Form --- */
.email-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
}

.email-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: var(--font);
  transition: border-color 0.2s;
}

.email-form input::placeholder {
  color: var(--text-secondary);
}

.email-form input:focus {
  border-color: var(--accent);
  outline: none;
}

.email-form button {
  padding: 12px 24px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.email-form button:hover {
  opacity: 0.9;
}

.email-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.email-form-success {
  color: var(--check);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 12px 0;
}

/* --- Discount Pricing --- */
.price-original {
  text-decoration: line-through;
  opacity: 0.45;
  font-weight: 400;
}

.pricing-amount .price-original {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 4px;
}

.pricing-discount {
  display: inline-block;
  background: rgba(61, 214, 140, 0.08);
  color: var(--check);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 32px;
  border: 1px solid rgba(61, 214, 140, 0.15);
}

/* --- Feedback Form --- */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.feedback-form input[type="email"],
.feedback-form textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: var(--font);
  transition: border-color 0.2s;
}

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

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

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

.feedback-form button {
  padding: 12px 24px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.2s;
}

.feedback-form button:hover {
  opacity: 0.9;
}

.feedback-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feedback-file {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
}

.feedback-file label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--accent);
  font-weight: 500;
}

.feedback-file label:hover {
  text-decoration: underline;
}

.feedback-file input[type="file"] {
  display: none;
}

.feedback-file-name {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.feedback-file-name.error {
  color: var(--cross);
}

.feedback-success {
  color: var(--check);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 12px 0;
  text-align: center;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
  animation: lightbox-in 0.2s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  text-align: center;
  margin-top: 16px;
  max-width: 600px;
  line-height: 1.5;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  line-height: 1;
  z-index: 2;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev[hidden],
.lightbox-next[hidden] {
  display: none;
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Social Proof --- */
.social-proof {
  position: relative;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, var(--surface) 100%);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat {
  padding: 0 32px;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.stat-label small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 2px;
}

/* --- Feature Showcase --- */
.features {
  padding: var(--section-gap) 0;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item--reverse {
  direction: rtl;
}

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

.feature-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 3px 10px;
  border: 1px solid rgba(232, 121, 58, 0.25);
  border-radius: 4px;
  background: var(--accent-glow);
}

.feature-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 440px;
}

.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-img--dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: none;
  background: none;
  overflow: visible;
}

.feature-img--dual .feature-screenshot {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-img--dual .feature-screenshot:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-screenshot-link {
  cursor: zoom-in;
  display: block;
}

.feature-screenshot-link img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-item:hover .feature-img {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Placeholder images */
.placeholder-img {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--elevated);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.placeholder-hero {
  aspect-ratio: 4 / 3;
}

/* --- Core Features Grid --- */
.core-features {
  padding: var(--section-gap) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.grid-feature {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.grid-feature:hover {
  border-color: rgba(232, 121, 58, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.grid-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 16px;
}

.grid-feature h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.grid-feature p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Comparison Table --- */
.comparison {
  padding: var(--section-gap) 0;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 640px;
}

thead {
  border-bottom: 1px solid var(--border);
}

th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  white-space: nowrap;
}

td {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}

.sticky-col {
  position: sticky;
  left: 0;
  background: var(--surface);
  font-weight: 500;
  z-index: 2;
}

thead .sticky-col {
  z-index: 3;
}

.highlight-col {
  background: var(--accent-glow);
}

thead .highlight-col {
  color: var(--accent);
  font-weight: 700;
}

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

.cross {
  color: var(--cross);
  opacity: 0.4;
  font-size: 1rem;
}

.price-row td {
  font-weight: 600;
}

.comparison-note {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-align: center;
  margin-top: 20px;
  font-style: italic;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Pricing --- */
.pricing {
  padding: var(--section-gap) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: 48px 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.pricing-card--supporter {
  border-color: rgba(232, 121, 58, 0.25);
}

.pricing-card--supporter .badge {
  margin-bottom: 16px;
}

.pricing-glow {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.pricing-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.pricing-term {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

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

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features .check {
  font-size: 0.875rem;
  flex-shrink: 0;
}

.pricing .email-form {
  max-width: 100%;
}

/* --- Final CTA / Feedback --- */
.final-cta {
  padding: var(--section-gap) 0;
  text-align: center;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.final-cta p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.final-cta .email-form {
  margin: 0 auto;
  justify-content: center;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.875rem;
}

.footer-brand img {
  border-radius: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal {
  color: var(--text-secondary);
  font-size: 0.75rem;
  opacity: 0.6;
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger animation for grid children */
.features-grid .grid-feature:nth-child(3n+2) { transition-delay: 0.08s; }
.features-grid .grid-feature:nth-child(3n+3) { transition-delay: 0.16s; }

/* --- Legal Pages --- */
.legal-page {
  padding: 140px 0 var(--section-gap);
}

.legal-page .container {
  max-width: 720px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-page h1 small {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  font-family: var(--font);
}

.legal-updated {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-page h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

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

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9375rem;
}

.legal-table td {
  padding: 10px 16px;
  border: 1px solid var(--border);
  white-space: normal;
}

.legal-table td:first-child {
  font-weight: 500;
  color: var(--text);
  width: 180px;
}

.legal-table td:last-child {
  color: var(--text-secondary);
}

/* --- Buy Page --- */
.buy-page {
  padding: 140px 0 var(--section-gap);
}

.buy-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.buy-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 48px;
}

.buy-button {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 24px;
}

.buy-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
}

.buy-details {
  text-align: center;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.buy-details p {
  margin-bottom: 4px;
}

/* --- Feedback Page --- */
.feedback-page {
  padding: 140px 0 var(--section-gap);
}

.feedback-page .container {
  max-width: 560px;
}

.feedback-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feedback-page-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
}

.context-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.context-bar h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.context-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-bottom: 12px;
}

.context-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
}

.context-list dt {
  color: var(--text-secondary);
}

.context-list dd {
  color: var(--text);
}

/* --- Responsive: Tablet --- */
@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
  }

  .hero {
    padding: 100px 0 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

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

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 48px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .stat {
    padding: 16px;
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .stat:nth-child(even) {
    border-right: none;
  }

  .stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .feature-item,
  .feature-item--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }

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

  .nav-cta {
    text-align: center;
    width: 100%;
    padding: 10px;
  }

  .email-form {
    flex-direction: column;
    max-width: 100%;
  }

  .email-form button {
    width: 100%;
  }

  .pricing-card {
    padding: 36px 24px;
  }

  .pricing-amount {
    font-size: 2.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 480px) {
  :root {
    --section-gap: 64px;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .feature-text h3 {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .final-cta h2 {
    font-size: 1.5rem;
  }

  .grid-feature {
    padding: 20px;
  }
}
