/* Swipe Mix landing — liquid glass, system fonts */
:root {
  --bg: #f5f7fb;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: rgba(15, 23, 42, 0.08);
  --glass: rgba(255, 255, 255, 0.55);
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --safe-bottom: env(safe-area-inset-bottom, 0);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1222;
    --bg-elevated: rgba(30, 41, 59, 0.65);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --border: rgba(241, 245, 249, 0.1);
    --glass: rgba(30, 41, 59, 0.5);
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

/* Liquid-style background */
.body-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(59, 130, 246, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(139, 92, 246, 0.15), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(14, 165, 233, 0.12), transparent 50%),
    var(--bg);
  pointer-events: none;
}

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

a:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--glass);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

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

.nav-desktop a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.125rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

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

.btn-ghost:hover {
  background: var(--bg-elevated);
}

.menu-toggle {
  display: flex;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}

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

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.5rem 0;
  color: var(--text);
  font-weight: 500;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(78vh, 38rem);
  padding: 2.5rem 0 3.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    min-height: min(82vh, 44rem);
    padding: 3rem 0 4.5rem;
  }
}

.hero-inner {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy {
  width: 100%;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.875rem;
  width: 100%;
  max-width: 20.5rem;
  margin: 0 0 1.5rem;
}

.btn-hero-primary {
  width: 100%;
  padding: 1.05rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
}

@media (min-width: 480px) {
  .btn-hero-primary {
    padding: 1.15rem 2rem;
    font-size: 1.1875rem;
  }
}

.btn-hero-primary:hover {
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.42);
}

.btn-hero-secondary {
  align-self: center;
  width: auto;
  padding: 0.55rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 40ch;
  margin: 0;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.section-sub {
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Features grid */
.features-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

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

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

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

/* Pricing */
.pricing-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.pricing-row:last-of-type {
  border-bottom: none;
}

.pricing-row strong {
  font-size: 1rem;
}

.pricing-row span {
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-align: right;
}

.pricing-legal {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

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

.faq-item {
  border-bottom: 1px solid var(--border);
}

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

.faq-item button svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

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

.faq-panel.is-open {
  display: block;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 calc(2rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(8px);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

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

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Legal pages */
.legal-page {
  padding: 2rem 0 4rem;
}

.legal-page article {
  max-width: 42rem;
  margin: 0 auto;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
}

.legal-page p,
.legal-page ul {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.legal-page ul {
  padding-left: 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}
