/* Smart Balance — SEO landing (matches app dark glass aesthetic) */
:root {
  --bg: #0f172a;
  --bg-2: #111827;
  --surface: #1e293b;
  --surface-2: rgba(30, 41, 59, 0.72);
  --text: #ffffff;
  --muted: #94a3b8;
  --neon: #8b5cf6;
  --neon-2: #a78bfa;
  --income: #10b981;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(700px 420px at 90% 8%, rgba(16, 185, 129, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(15, 23, 42, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
  /* Fallback tint while the icon loads or if it is missing. */
  background: linear-gradient(145deg, #8b5cf6, #6366f1 55%, #14b8a6);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.35);
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lang-switch a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
}

.lang-switch a[aria-current="page"] {
  color: var(--text);
  border-color: var(--border);
  background: rgba(139, 92, 246, 0.18);
}

.hero {
  padding: 4.5rem 0 3.25rem;
}

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

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
}

.eyebrow {
  display: inline-block;
  color: var(--neon-2);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  max-width: 38rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
}

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

.hero-visual {
  position: relative;
  min-height: 280px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(139, 92, 246, 0.25), transparent 50%),
    linear-gradient(20deg, rgba(16, 185, 129, 0.15), transparent 45%),
    var(--surface);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 18% 12% auto;
  height: 58%;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.35));
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.hero-chip {
  position: absolute;
  z-index: 2;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 16rem;
}

.section {
  padding: 3.25rem 0;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 40rem;
}

.features {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .features {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.feature {
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  background: rgba(139, 92, 246, 0.16);
  color: var(--neon-2);
  font-size: 1.25rem;
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

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

.compare {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-col {
  padding: 1.35rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.45);
}

.compare-col.good {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.1);
}

.compare-col h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.compare-col ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.compare-col li + li {
  margin-top: 0.45rem;
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.45);
  -webkit-overflow-scrolling: touch;
}

.cmp-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.cmp-table th,
.cmp-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td {
  border-bottom: 0;
}

.cmp-table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.7);
  white-space: nowrap;
}

.cmp-table tbody th {
  color: var(--text);
  font-weight: 600;
  width: 22%;
}

.cmp-table td {
  color: var(--muted);
}

.cmp-table .own {
  color: var(--text);
  background: rgba(139, 92, 246, 0.1);
}

.cmp-table thead th.own {
  color: var(--neon-2);
  background: rgba(139, 92, 246, 0.18);
}

.note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.vs-cards {
  display: grid;
  gap: 1rem;
}

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

.vs-card {
  padding: 1.35rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.45);
}

.vs-card.own {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.1);
}

.vs-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.vs-tagline {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.vs-label {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.vs-label.good {
  color: var(--income);
}

.vs-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.vs-list li + li {
  margin-top: 0.35rem;
}

.vs-price {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.92rem;
}

.vs-price span {
  color: var(--muted);
  font-weight: 600;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.55);
  padding: 0.15rem 1rem;
  overflow: hidden;
}

.faq details + details {
  margin-top: 0.65rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 650;
  letter-spacing: -0.01em;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--neon-2);
  font-weight: 700;
  flex: 0 0 auto;
  line-height: 1.2;
}

.faq details[open] summary::after {
  content: "–";
}

.faq .answer {
  color: var(--muted);
  padding: 0 0 1rem;
  margin: 0;
}

.final-cta {
  display: block;
  width: min(100% - 2rem, var(--max));
  margin: 1rem auto 4rem;
  padding: 1.75rem 1.4rem;
  border-radius: 24px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background:
    radial-gradient(500px 180px at 20% 0%, rgba(139, 92, 246, 0.25), transparent 70%),
    rgba(30, 41, 59, 0.65);
  text-align: center;
  clear: both;
}

.final-cta h2 {
  margin: 0 0 0.55rem;
}

.final-cta p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.final-cta .cta-row {
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 1rem);
  max-width: min(92vw, 30rem);
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}
