/* Sponti design tokens — mirrored from AppTheme.swift */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./BricolageGrotesque-Variable.ttf") format("truetype-variations"),
       url("./BricolageGrotesque-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Colors — from AppTheme.Colors */
  --sp-primary: #6715FF;
  --sp-primary-dark: #5308DF;
  --sp-primary-soft: #EAD5F9;
  --sp-sheet-bg: #F9F9F8;
  --sp-page-bg: #F9F9F8;
  --sp-card: #FFFFFF;
  --sp-text-primary: #21201C;
  --sp-text-secondary: #82827C;
  --sp-text-tertiary: #8D8D86;
  --sp-grabber: #BCBBB5;
  --sp-gray-4: #E9E8E6;
  --sp-gray-5: #E2E1DE;
  --sp-joined-bg: #C3E9D7;
  --sp-joined-text: #208368;
  --sp-cancel-bg: #FFCED6;
  --sp-cancel-text: #CA244D;
  --sp-avatar-amber: #FBE577;
  --sp-avatar-purple: #EAD5F9;
  --sp-avatar-sky: #BEE7F5;
  --sp-avatar-jade: #C3E9D7;
  --sp-btn-neutral: #21201C;
  --sp-toast: #262626;

  /* Type */
  --sp-font: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Radii */
  --sp-r-card: 20px;
  --sp-r-large: 32px;
  --sp-r-sheet: 20px;
  --sp-r-chip: 64px;
  --sp-r-icon: 20px;

  /* Shadows */
  --sp-shadow-sheet: 0 5.355px 18.208px rgba(0, 0, 0, 0.18);
  --sp-shadow-icon: 0 4px 6px rgba(0, 0, 0, 0.20);
  --sp-shadow-fab: 0 5.333px 8px rgba(0, 0, 0, 0.25);
  --sp-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(33, 32, 28, 0.06);

  /* Layout */
  --sp-container: 1120px;
  --sp-gutter: 24px;
}

[data-theme="dark"] {
  --sp-page-bg: #141310;
  --sp-sheet-bg: #1C1B18;
  --sp-card: #22211D;
  --sp-text-primary: #F5F4F0;
  --sp-text-secondary: #A8A79F;
  --sp-text-tertiary: #7A7972;
  --sp-gray-4: #2E2C28;
  --sp-gray-5: #34322D;
  --sp-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sp-font);
  background: var(--sp-page-bg);
  color: var(--sp-text-primary);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.sp-container {
  max-width: var(--sp-container);
  margin: 0 auto;
  padding: 0 var(--sp-gutter);
}

/* ── Nav ─────────────────────────────────────────────── */
.sp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  background: color-mix(in srgb, var(--sp-page-bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--sp-gray-5) 60%, transparent);
}
.sp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.sp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.sp-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--sp-primary);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(103, 21, 255, 0.35);
}
.sp-logo-mark svg { width: 18px; height: 18px; }
.sp-nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--sp-text-secondary);
}
.sp-nav-links a:hover { color: var(--sp-text-primary); }
@media (max-width: 720px) {
  .sp-nav-links { display: none; }
}

/* ── Hero ────────────────────────────────────────────── */
.sp-hero {
  padding: 80px 0 80px;
  position: relative;
  overflow: hidden;
}
.sp-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .sp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .sp-hero { padding: 40px 0 24px; }
}

.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--sp-card);
  border: 1px solid var(--sp-gray-5);
  border-radius: var(--sp-r-chip);
  font-size: 13px;
  color: var(--sp-text-secondary);
  font-weight: 500;
}
.sp-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sp-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-primary) 20%, transparent);
}

.sp-headline {
  font-weight: 700;
  font-size: clamp(42px, 6.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 18px 0 20px;
  text-wrap: balance;
}
.sp-headline em {
  font-style: normal;
  color: var(--sp-primary);
  font-weight: 700;
}
.sp-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--sp-text-secondary);
  max-width: 52ch;
  text-wrap: pretty;
  margin: 0 0 28px;
  font-weight: 400;
}

/* Store badges */
.sp-badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--sp-btn-neutral);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(33, 32, 28, 0.22);
}
.sp-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(33, 32, 28, 0.28); }
.sp-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.sp-badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.sp-badge-small { font-size: 11px; opacity: 0.8; font-weight: 400; }
.sp-badge-big { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.sp-badge.soon {
  background: transparent;
  color: var(--sp-text-primary);
  border: 1.5px solid var(--sp-gray-5);
  box-shadow: none;
}
.sp-badge.soon:hover { background: var(--sp-card); }

.sp-hero-side {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Decorative pin floating near hero */
.sp-floater {
  position: absolute;
  background: var(--sp-card);
  border-radius: var(--sp-r-card);
  padding: 10px 14px;
  box-shadow: var(--sp-shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  z-index: 3;
  pointer-events: none;
}
.sp-floater .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
}
.sp-floater.a { top: 16%; left: -4%; transform: scale(0.82); transform-origin: top left; }
.sp-floater.b { bottom: 18%; right: -2%; transform: scale(0.82); transform-origin: bottom right; }
.sp-floater .meta { color: var(--sp-text-secondary); font-weight: 400; font-size: 11px; }
@media (max-width: 900px) {
  .sp-floater.a { left: 2%; }
  .sp-floater.b { right: 2%; }
}
@media (max-width: 520px) {
  .sp-floater { display: none; }
}

/* ── Section titles ─────────────────────────────────── */
.sp-section { padding: 120px 0; }
@media (max-width: 720px) { .sp-section { padding: 80px 0; } }

.sp-section-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sp-section-title {
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 18px;
  text-wrap: balance;
  max-width: 20ch;
}
.sp-section-lead {
  font-size: 18px;
  color: var(--sp-text-secondary);
  max-width: 56ch;
  margin: 0 0 48px;
}

/* ── How it works (kompakt) ─────────────────────────── */
.sp-howto {
  padding: 72px 0;
  margin-top: 40px;
}
@media (max-width: 720px) {
  .sp-howto { padding: 48px 0; margin-top: 20px; }
}
.sp-howto-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sp-howto-head h2 {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--sp-text-primary);
}
.sp-howto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
}
@media (max-width: 720px) {
  .sp-howto-list { grid-template-columns: 1fr; gap: 14px; }
  .sp-howto { padding: 36px 0; }
}
.sp-howto-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.sp-howto-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--sp-primary);
  letter-spacing: 0.08em;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.sp-howto-list li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}
.sp-howto-list strong {
  font-weight: 600;
  color: var(--sp-text-primary);
  letter-spacing: -0.005em;
}
.sp-howto-list span {
  color: var(--sp-text-secondary);
  line-height: 1.5;
}

/* ── Feature grid ───────────────────────────────────── */
.sp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .sp-feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sp-feature-grid { grid-template-columns: 1fr; } }
.sp-feature {
  background: var(--sp-card);
  border-radius: var(--sp-r-card);
  padding: 22px;
  border: 1px solid var(--sp-gray-5);
}
.sp-feature-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--sp-primary-soft);
  color: var(--sp-primary);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.sp-feature-icon svg { width: 20px; height: 20px; }
.sp-feature h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sp-feature p {
  margin: 0;
  font-size: 14px;
  color: var(--sp-text-secondary);
  line-height: 1.55;
}

/* ── Privacy band ───────────────────────────────────── */
.sp-privacy {
  background: var(--sp-text-primary);
  color: #F5F4F0;
  border-radius: var(--sp-r-large);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
[data-theme="dark"] .sp-privacy {
  background: #0C0B09;
  border: 1px solid #2E2C28;
}
@media (max-width: 820px) {
  .sp-privacy { grid-template-columns: 1fr; padding: 36px; }
}
.sp-privacy h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 16px;
  text-wrap: balance;
}
.sp-privacy p {
  color: #A8A79F;
  font-size: 16px;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0;
}
.sp-privacy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.sp-privacy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: #E9E8E6;
}
.sp-privacy-list .tick {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sp-primary);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.sp-privacy-list .tick svg { width: 12px; height: 12px; color: white; }

/* ── FAQ ────────────────────────────────────────────── */
.sp-faq { max-width: 780px; }
.sp-faq details {
  border-top: 1px solid var(--sp-gray-5);
  padding: 20px 0;
}
.sp-faq details:last-of-type { border-bottom: 1px solid var(--sp-gray-5); }
.sp-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary .plus {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--sp-gray-4);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--sp-text-primary);
  transition: transform 0.25s ease, background 0.25s ease;
}
.sp-faq details[open] summary .plus {
  transform: rotate(45deg);
  background: var(--sp-primary);
  color: #fff;
}
.sp-faq details p {
  margin: 14px 0 0;
  color: var(--sp-text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 62ch;
}

/* ── CTA block ──────────────────────────────────────── */
.sp-cta {
  text-align: center;
  padding: 140px 0;
}
@media (max-width: 720px) { .sp-cta { padding: 88px 0; } }
.sp-cta h2 {
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 14px;
  text-wrap: balance;
}
.sp-cta p {
  color: var(--sp-text-secondary);
  font-size: 18px;
  margin: 0 auto 32px;
  max-width: 48ch;
}
.sp-cta .sp-badges { justify-content: center; }

/* ── Footer ─────────────────────────────────────────── */
.sp-footer {
  border-top: 1px solid var(--sp-gray-5);
  padding: 56px 0 32px;
  background: var(--sp-sheet-bg);
}
.sp-footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 820px) {
  .sp-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .sp-footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
.sp-footer h4 {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-text-tertiary);
  font-weight: 600;
  margin: 0 0 16px;
}
.sp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sp-footer a {
  font-size: 15px;
  color: var(--sp-text-secondary);
  transition: color 0.15s ease;
}
.sp-footer a:hover { color: var(--sp-text-primary); }
.sp-footer-brand p {
  color: var(--sp-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  max-width: 36ch;
  margin: 12px 0 0;
}
.sp-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid var(--sp-gray-5);
  font-size: 13px;
  color: var(--sp-text-tertiary);
  flex-wrap: wrap;
}
.sp-footer-bottom .made {
  display: inline-flex; align-items: center; gap: 6px;
}

/* ── Tweaks panel ───────────────────────────────────── */
.sp-tweaks {
  position: fixed;
  right: 16px; bottom: 16px;
  background: var(--sp-card);
  border-radius: var(--sp-r-card);
  box-shadow: var(--sp-shadow-sheet);
  border: 1px solid var(--sp-gray-5);
  padding: 16px;
  z-index: 100;
  width: 260px;
  display: none;
  font-size: 13px;
}
.sp-tweaks.visible { display: block; }
.sp-tweaks h5 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-text-tertiary);
}
.sp-tweak-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--sp-gray-5);
}
.sp-tweak-row:first-of-type { border-top: none; }
.sp-tweak-row label { font-weight: 500; color: var(--sp-text-primary); }
.sp-swatches { display: flex; gap: 6px; }
.sp-swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}
.sp-swatch[aria-selected="true"] { border-color: var(--sp-text-primary); }
.sp-toggle {
  width: 36px; height: 20px; border-radius: 999px;
  background: var(--sp-gray-4);
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}
.sp-toggle::after {
  content: ""; position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: white; border-radius: 50%;
  transition: left 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.sp-toggle[aria-checked="true"] { background: var(--sp-primary); }
.sp-toggle[aria-checked="true"]::after { left: 18px; }
