/* Vibio / myvibi — design tokens from app_theme.dart */
:root {
  --logo: #7a5cff;
  --bg: #f7f5ff;
  --surface: rgba(255, 255, 255, 0.72);
  --text-primary: #1b1b1e;
  --text-secondary: #6f6c78;
  --error: #ff4d6d;
  --grad-1: #311b92;
  --grad-2: #00e5ff;
  --grad-3: #ffa000;
  --morning: #ff5722;
  --day: #00ced1;
  --evening: #7c4dff;
  --radius-card: 28px;
  --radius-pill: 45px;
  --radius-input: 18px;
  --blur: 18px;
  --shadow-glow: 0 8px 40px rgba(122, 92, 255, 0.18);
  --font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #0f0b18;
  --surface: rgba(26, 21, 38, 0.75);
  --text-primary: #efeaf6;
  --text-secondary: #a39bb2;
  --shadow-glow: 0 8px 40px rgba(124, 77, 255, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
}

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-decor::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vmin;
  height: 60vmin;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12), transparent 70%);
}

.bg-decor::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -15%;
  width: 70vmin;
  height: 70vmin;
  background: radial-gradient(circle, rgba(49, 27, 146, 0.14), transparent 65%);
}

.bg-icons {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  font-size: 2rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4rem;
  padding: 2rem;
  align-content: space-around;
  color: var(--grad-1);
}

[data-theme="dark"] .bg-icons {
  opacity: 0.08;
  color: var(--grad-2);
}

.gradient-text {
  background: linear-gradient(
    90deg,
    var(--grad-1),
    var(--grad-2),
    var(--grad-3)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glow);
}

[data-theme="dark"] .glass {
  border-color: rgba(255, 255, 255, 0.08);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122, 92, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--logo);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--grad-1), var(--evening));
  color: #fff;
  box-shadow: 0 4px 20px rgba(49, 27, 146, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--logo);
  border: 2px solid var(--logo);
}

.btn-ghost {
  background: rgba(122, 92, 255, 0.12);
  color: var(--logo);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(122, 92, 255, 0.25);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.1rem;
}

.hero {
  padding: 4rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(122, 92, 255, 0.15);
  color: var(--logo);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

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

@media (max-width: 900px) {
  .hero-cta {
    justify-content: center;
  }
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 14px;
  background: var(--text-primary);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
}

.store-badge span {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  opacity: 0.85;
}

.phone-mock {
  padding: 1.5rem;
  position: relative;
}

.phone-frame {
  border-radius: 32px;
  padding: 12px;
  background: linear-gradient(145deg, #2a2a35, #0f0f14);
  box-shadow: 0 24px 60px rgba(49, 27, 146, 0.35);
}

.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
  min-height: 420px;
  padding: 1rem;
}

.mock-card {
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  border-radius: 16px;
  background: rgba(122, 92, 255, 0.08);
  border: 1px solid rgba(122, 92, 255, 0.15);
  font-size: 0.85rem;
}

.mock-card strong {
  display: block;
  margin-bottom: 0.2rem;
}

.section {
  padding: 3.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.section-title p {
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 auto;
}

.tabs-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background: rgba(122, 92, 255, 0.1);
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.tab-btn.active {
  border-color: var(--logo);
  background: linear-gradient(135deg, rgba(49, 27, 146, 0.15), rgba(0, 229, 255, 0.1));
  color: var(--logo);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
}

.feature-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

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

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

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.step {
  padding: 1.25rem;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.callout {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--logo);
  margin: 1.5rem 0;
  background: rgba(122, 92, 255, 0.08);
  border-radius: 0 var(--radius-input) var(--radius-input) 0;
}

.faq details {
  padding: 1rem 1.25rem;
  margin-bottom: 0.65rem;
  border-radius: var(--radius-input);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  color: var(--text-secondary);
  margin: 0.75rem 0 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-input);
  border: none;
  background: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 1rem;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea,
[data-theme="dark"] .contact-form select {
  background: rgba(26, 21, 38, 0.9);
  color: var(--text-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--logo);
}

.legal-doc {
  padding: 2rem;
  max-width: 820px;
  margin: 0 auto;
}

.legal-doc h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-doc h3 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-secondary);
}

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

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.site-footer {
  padding: 2.5rem 0 6rem;
  border-top: 1px solid rgba(122, 92, 255, 0.15);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--logo);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  flex: 1;
  min-width: 240px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.visible {
  display: flex;
}

.modal {
  max-width: 440px;
  width: 100%;
  padding: 1.5rem;
}

.modal label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
  font-weight: 600;
}

.hidden {
  display: none !important;
}
