/* ===== Olik Split — Light theme (matches app LightColorScheme) ===== */

:root {
  /* Primary (Green) */
  --primary: #3DA45D;
  --primary-light: #2A8A47;
  --primary-dark: #1A5C2E;
  --primary-container: #B8E6C8;
  --on-primary: #FFFFFF;
  --on-primary-container: #1A5C2E;

  /* Secondary (Orange accent) */
  --secondary: #E88D67;
  --secondary-light: #F0A882;
  --secondary-container: #FDD8C7;
  --on-secondary-container: #7A3A1A;

  /* Tertiary (Teal) */
  --tertiary: #00695C;
  --tertiary-container: #80CBC4;

  /* Backgrounds & Surfaces — cream palette */
  --bg: #FFF8F0;
  --surface: #FFFFFF;
  --surface-variant: #FFF2E8;
  --surface-elevated: #FFFFFF;

  /* Text */
  --on-bg: #334155;
  --on-surface: #0F172A;
  --on-surface-variant: #64748B;

  /* Outlines */
  --outline: #CBD5E1;
  --outline-variant: #E2E8F0;

  /* Error */
  --error: #D32F2F;

  /* Radii */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --max-w: 1120px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--on-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

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

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 72px 0; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--outline-variant);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--on-surface);
}

.nav-logo:hover { text-decoration: none; }

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

.nav-logo-text span { color: var(--primary); }

.nav-links { display: flex; gap: 28px; list-style: none; }

.nav-links a {
  color: var(--on-surface-variant);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-links a:hover::after { width: 100%; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}

/* Decorative gradient blob behind logo */
.hero::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(61, 164, 93, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  margin-bottom: 32px;
  position: relative;
}

.hero-logo-img {
  width: 128px;
  height: 128px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(61, 164, 93, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--on-surface);
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--primary);
  position: relative;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary-container);
  border-radius: 3px;
  z-index: -1;
}

.hero .tagline {
  font-size: 1.18rem;
  color: var(--on-surface-variant);
  max-width: 520px;
  margin: 0 auto 40px;
}

.cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

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

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 14px rgba(61, 164, 93, 0.25);
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 8px 28px rgba(61, 164, 93, 0.35);
}

.btn-outline {
  background: var(--surface);
  color: var(--on-surface);
  border: 1.5px solid var(--outline);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ===== Section titles ===== */
.section-title {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--on-surface);
  letter-spacing: -0.01em;
}

.section-subtitle {
  text-align: center;
  color: var(--on-surface-variant);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ===== Features ===== */
.features {
  background: var(--surface);
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--outline-variant);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: var(--primary-container);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(61, 164, 93, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-container);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--on-primary-container);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--on-surface);
}

.feature-card p {
  color: var(--on-surface-variant);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ===== How it works ===== */
.how-section { position: relative; }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* Connector line (desktop only) */
@media (min-width: 640px) {
  .steps-grid {
    position: relative;
  }
  .steps-grid::before {
    content: "";
    position: absolute;
    top: 48px;
    left: calc(16.67% + 32px);
    right: calc(16.67% + 32px);
    height: 2px;
    background: var(--outline-variant);
    z-index: 0;
  }
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border: 2px solid var(--primary-container);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
  transition: background var(--transition), border-color var(--transition);
}

.step:hover .step-icon {
  background: var(--primary-container);
  border-color: var(--primary);
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.step-number {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  margin-bottom: 8px;
  color: var(--on-surface);
  font-weight: 600;
}

.step p {
  color: var(--on-surface-variant);
  font-size: 0.94rem;
  max-width: 280px;
  margin: 0 auto;
}

/* ===== Extra features strip ===== */
.extras {
  background: var(--surface);
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
  padding: 56px 0;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}

.extra-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.extra-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--surface-variant);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.extra-icon svg { width: 18px; height: 18px; }

.extra-item span {
  font-size: 0.92rem;
  color: var(--on-surface);
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  background: var(--on-surface);
  padding: 48px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* ===== Legal / Support pages ===== */
.legal {
  padding: 40px 0 80px;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--on-surface);
}

.legal .updated {
  color: var(--on-surface-variant);
  font-size: 0.92rem;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 1.2rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 600;
}

.legal p, .legal li {
  color: var(--on-surface-variant);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.legal ul, .legal ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal a { color: var(--primary); }
.legal a:hover { color: var(--primary-dark); }

/* FAQ */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-container);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--on-surface);
}

.faq-item p {
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .extras-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .hero h1 { font-size: 3.5rem; }
  .hero-logo-img { width: 148px; height: 148px; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .extras-grid { grid-template-columns: repeat(4, 1fr); }
  section { padding: 88px 0; }
}

@media (max-width: 639px) {
  .extras-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.85rem; }
}
