/* Saveet Wow — public website visual language (matches app auth/onboarding). */

:root {
  --sw-purple-950: #2e1065;
  --sw-purple-900: #4c1d95;
  --sw-purple-800: #5b0a8c;
  --sw-purple-700: #7a00b7;
  --sw-magenta: #db2777;
  --sw-cta-from: #a855f7;
  --sw-cta-to: #7a00b7;
  --sw-sheet: #ffffff;
  --sw-field: #f7f4fc;
  --sw-field-border: rgba(168, 85, 247, 0.12);
  --sw-text-title: #111827;
  --sw-text-body: #6b7280;
  --sw-text-link: #7a00b7;
  --sw-text-on-gradient: #ffffff;
  --sw-glass: rgba(255, 255, 255, 0.16);
  --sw-glass-border: rgba(255, 255, 255, 0.28);
  --sw-chip-bg: rgba(168, 85, 247, 0.08);
  --sw-chip-border: rgba(168, 85, 247, 0.18);
  --sw-radius-sheet: 2rem;
  --sw-radius-card: 1.5rem;
  --sw-radius-pill: 999px;
  --sw-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  --sw-container: 78rem;
}

html {
  scroll-behavior: smooth;
}

/* Leftover space under the footer on tall viewports is painted footer-dark
   instead of letting the page gradient bleed through. */
html {
  background: #020617;
}

body.saveet-wow {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sw-text-on-gradient);
  background: #070b16;
  overflow-x: hidden;
}

.sw-surface,
body.saveet-wow.sw-surface {
  background:
    radial-gradient(circle at 12% 8%, rgba(196, 181, 253, 0.14), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(244, 114, 182, 0.12), transparent 32%),
    linear-gradient(160deg, #4c1d95 0%, #7a00b7 48%, #db2777 100%);
}

.sw-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.14), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(244, 114, 182, 0.22), transparent 34%),
    linear-gradient(160deg, #4c1d95 0%, #7a00b7 52%, #db2777 100%);
}

.sw-hero::before,
.sw-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.35;
  background: rgba(255, 255, 255, 0.12);
}

.sw-hero::before {
  width: min(42vw, 28rem);
  height: min(42vw, 28rem);
  top: -8rem;
  left: -6rem;
}

.sw-hero::after {
  width: min(36vw, 22rem);
  height: min(36vw, 22rem);
  right: -4rem;
  bottom: -6rem;
}

.sw-container {
  width: 100%;
  max-width: var(--sw-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.sw-sheet {
  background: var(--sw-sheet);
  color: var(--sw-text-title);
  border-radius: var(--sw-radius-sheet) var(--sw-radius-sheet) 0 0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
  position: relative;
  z-index: 2;
}

.sw-sheet-card,
.sw-card {
  background: var(--sw-sheet);
  color: var(--sw-text-title);
  border-radius: var(--sw-radius-card);
  border: 1px solid rgba(168, 85, 247, 0.1);
  box-shadow: var(--sw-shadow);
}

.sw-card-soft {
  border: 1px solid rgba(196, 181, 253, 0.28);
  background: linear-gradient(180deg, rgba(109, 40, 217, 0.22), rgba(49, 23, 120, 0.34));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28);
  color: #f3e8ff;
  border-radius: var(--sw-radius-card);
}

.sw-glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--sw-radius-pill);
  border: 1px solid var(--sw-glass-border);
  background: var(--sw-glass);
  color: var(--sw-text-on-gradient);
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.sw-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--sw-radius-pill);
  border: 1px solid var(--sw-chip-border);
  background: var(--sw-chip-bg);
  color: var(--sw-text-link);
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.sw-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 1rem;
  padding: 0.85rem 1.35rem;
  font-weight: 800;
  color: #fff !important;
  background: linear-gradient(135deg, var(--sw-cta-from), var(--sw-cta-to));
  box-shadow: 0 12px 28px rgba(122, 0, 183, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

.sw-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 32px rgba(122, 0, 183, 0.42);
}

.sw-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 1rem;
  padding: 0.85rem 1.35rem;
  font-weight: 800;
  color: #fff !important;
  border: 1px solid var(--sw-glass-border);
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.sw-cta-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.sw-field {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--sw-field-border);
  background: var(--sw-field);
  color: var(--sw-text-title);
  padding: 0.85rem 1rem;
  outline: none;
}

.sw-field:focus {
  border-color: rgba(122, 0, 183, 0.45);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}

.sw-phone-frame {
  position: relative;
  border-radius: 1.75rem;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.35);
}

.sw-phone-frame img {
  display: block;
  width: 100%;
  border-radius: 1.4rem;
}

/* Shows only the top of a screenshot so feature cards stay visually balanced
   instead of stretching to the full phone height. */
.sw-phone-crop img {
  height: 18rem;
  object-fit: cover;
  object-position: top center;
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
}

@media (min-width: 768px) {
  .sw-phone-crop img {
    height: 20rem;
  }
}

.sw-section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sw-muted {
  color: rgba(243, 232, 255, 0.86);
}

.sw-body-muted {
  color: var(--sw-text-body);
}

.sw-link {
  color: var(--sw-text-link);
  font-weight: 700;
  text-decoration: none;
}

.sw-link:hover {
  text-decoration: underline;
}

.sw-nav {
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(168, 85, 247, 0.14);
  box-shadow: 0 10px 30px rgba(76, 29, 149, 0.1);
}

.sw-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.sw-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 8px 18px rgba(122, 0, 183, 0.18);
  overflow: hidden;
}

.sw-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sw-brand__word {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--sw-purple-950);
}

.sw-brand__word em {
  font-style: normal;
  color: var(--sw-purple-700);
}

.sw-brand--on-gradient .sw-brand__word {
  color: #fff;
}

/* On the dark footer gradient the brand purple would disappear, so the
   accent lifts to a light violet that still reads as the same hue. */
.sw-brand--on-gradient .sw-brand__word em {
  color: #d8b4fe;
}

.sw-nav-link {
  display: inline-flex;
  align-items: center;
  border-radius: var(--sw-radius-pill);
  padding: 0.5rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.sw-nav-link:hover {
  background: rgba(168, 85, 247, 0.1);
  color: var(--sw-text-link);
}

.sw-nav-link.is-active {
  background: var(--sw-chip-bg);
  color: var(--sw-text-link);
}

.sw-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--sw-radius-pill);
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: rgba(255, 255, 255, 0.75);
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.sw-nav-pill:hover {
  border-color: rgba(122, 0, 183, 0.4);
  background: #fff;
}

.sw-nav-menu {
  border-radius: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 40px rgba(76, 29, 149, 0.18);
  padding: 0.4rem;
}

.sw-nav-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.7rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
}

.sw-nav-menu a:hover,
.sw-nav-menu a.is-active {
  background: rgba(168, 85, 247, 0.12);
  color: var(--sw-text-link);
}

.sw-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: rgba(255, 255, 255, 0.8);
  color: var(--sw-purple-700);
}

.sw-nav-sheet {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(168, 85, 247, 0.14);
  box-shadow: 0 24px 40px rgba(76, 29, 149, 0.16);
}

.sw-cta-sm {
  padding: 0.55rem 1.1rem;
  border-radius: var(--sw-radius-pill);
  font-size: 0.875rem;
  box-shadow: 0 10px 22px rgba(122, 0, 183, 0.3);
}

.sw-nav a:focus-visible,
.sw-cta:focus-visible,
.sw-cta-outline:focus-visible,
.sw-field:focus-visible,
button:focus-visible {
  outline: 2px solid #c084fc;
  outline-offset: 2px;
}

.sw-animate {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.sw-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

.sw-delay-1 { transition-delay: 0.08s; }
.sw-delay-2 { transition-delay: 0.16s; }
.sw-delay-3 { transition-delay: 0.24s; }
.sw-delay-4 { transition-delay: 0.32s; }

.sw-legal-sheet h2 {
  color: var(--sw-text-link);
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.sw-legal-sheet p,
.sw-legal-sheet li {
  color: var(--sw-text-body);
  line-height: 1.7;
}

[dir="rtl"] .sw-phone-frame {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sw-animate,
  .sw-cta,
  .sw-cta-outline,
  .module-card,
  .guide-card-home,
  .step-card,
  .testimonial-card {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
