/* Magnetic Fly Screen Landing Page */

:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-accent: #0d9488;
  --color-accent-dark: #0f766e;
  --color-accent-light: #ccfbf1;
  --color-border: #e2e8f0;
  --color-badge: #fef3c7;
  --color-badge-text: #92400e;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.affiliate-disclosure {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 0 auto 2rem;
  max-width: 720px;
}

.affiliate-disclosure p {
  font-size: 0.8125rem;
  color: #78350f;
  margin: 0;
  line-height: 1.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1rem;
  position: relative;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
  z-index: 101;
}

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

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  z-index: 101;
  transition: border-color 0.15s, background 0.15s;
}

.nav-toggle:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.25rem;
  height: 1rem;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  z-index: 100;
}

.site-nav.is-open {
  display: block;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.nav-links li:last-child a {
  border-bottom: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .nav-links {
    flex-direction: row;
    gap: 1.5rem;
  }

  .nav-links a {
    display: inline;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    padding: 0;
    border-bottom: none;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: transparent;
  }
}

body.nav-open {
  overflow: hidden;
}

.hero {
  padding: 3rem 0 4rem;
  background: linear-gradient(160deg, #ecfdf5 0%, var(--color-bg) 55%);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
}

.hero h1 {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0 0 1.75rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
  color: #fff;
}

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

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.hero-visual {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

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

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--color-text-muted);
  margin: 0;
}

.trust-bar {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
  padding: 2rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.trust-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.trust-item h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.trust-item p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}

.products-section {
  background: var(--color-bg);
}

.product-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.product-card-media {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-bottom: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.05);
}

.product-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  z-index: 1;
}

.badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  box-shadow: var(--shadow-sm);
}

.badge-gold {
  background: var(--color-badge);
  color: var(--color-badge-text);
}

.product-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.product-meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.product-best-for {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.product-best-for strong {
  color: var(--color-accent-dark);
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.product-features li {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding-left: 1.125rem;
  position: relative;
  margin-bottom: 0.375rem;
}

.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
}

.product-price-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.product-card-footer {
  padding: 0 1.25rem 1.25rem;
}

.product-card-footer .btn {
  width: 100%;
}

.comparison-section {
  background: var(--color-surface);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  background: #f1f5f9;
  font-weight: 700;
  white-space: nowrap;
}

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

.comparison-table tr:hover td {
  background: #f8fafc;
}

.comparison-table .highlight {
  background: #ecfdf5;
  font-weight: 600;
}

.why-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-card {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.why-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

.guide-content {
  max-width: 720px;
  margin: 0 auto;
}

.guide-content h3 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
}

.guide-content h3:first-child {
  margin-top: 0;
}

.guide-content p,
.guide-content li {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.guide-content ul {
  padding-left: 1.25rem;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  background: var(--color-surface);
  overflow: hidden;
}

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

.faq-question:hover {
  background: #f8fafc;
}

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

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

.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.cta-band {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 0;
}

.cta-band h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  margin: 0 0 0.75rem;
}

.cta-band p {
  opacity: 0.9;
  margin: 0 0 1.5rem;
  max-width: 480px;
  margin-inline: auto;
}

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

.cta-band .btn-primary:hover {
  background: #f0fdfa;
}

.site-footer {
  background: var(--color-text);
  color: #94a3b8;
  padding: 2rem 0;
  font-size: 0.8125rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #cbd5e1;
}
