/* ─── Fliq Website · Shared Styles ──────────────────────────────────────── */

:root {
  --accent:       #6366f1;
  --accent-dark:  #4338ca;
  --accent-light: #818cf8;
  --surface:      #ffffff;
  --surface-2:    #f8f9ff;
  --surface-3:    #f1f2fe;
  --border:       #e5e7f0;
  --text:         #0f172a;
  --text-2:       #475569;
  --text-3:       #94a3b8;
  --red:          #ef4444;
  --green:        #10b981;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(99,102,241,.10);
  --shadow-lg:    0 12px 48px rgba(99,102,241,.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
               'Segoe UI', system-ui, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}

.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex; align-items: center; justify-content: center;
}

.nav-logo-icon svg { width: 20px; height: 20px; fill: #fff; }

.nav-logo span {
  font-size: 18px; font-weight: 700; letter-spacing: -.3px;
}

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

.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--text-2); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px; border-radius: 20px;
  font-weight: 600 !important;
  transition: background .2s, transform .15s !important;
}
.btn-nav:hover { background: var(--accent-dark) !important; transform: translateY(-1px); }

/* ── Containers ──────────────────────────────────────────────────────────── */

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 620px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }
section:nth-child(even) { background: var(--surface-2); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,.45); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  padding: 80px 0 96px;
  background: linear-gradient(160deg, #fafaff 0%, #eef0ff 50%, #f8f4ff 100%);
  overflow: hidden; position: relative;
}

.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute; bottom: -150px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 64px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(99,102,241,.1); color: var(--accent);
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px; color: var(--text-2);
  line-height: 1.7; margin-bottom: 36px; max-width: 480px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-social-proof {
  margin-top: 36px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text-3);
}

.stars { color: #f59e0b; letter-spacing: 1px; }

/* ── Phone mockup ────────────────────────────────────────────────────────── */

.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}

.phone-frame {
  width: 260px; height: 558px;
  background: #1a1a2e;
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,.15);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(99,102,241,.08), 0 40px 80px rgba(0,0,0,.3);
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}

.phone-notch {
  width: 100px; height: 28px;
  background: #1a1a2e; border-radius: 0 0 18px 18px;
  margin: 0 auto; z-index: 2; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.06); border-top: none;
}

.phone-screen {
  flex: 1; padding: 8px;
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f23 100%);
  display: flex; flex-direction: column; gap: 8px; overflow: hidden;
}

.photo-card {
  flex: 1; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex; align-items: flex-end;
  position: relative;
}

.photo-card-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.5) 0%, transparent 60%);
}

.photo-card-inner {
  position: relative; z-index: 1; padding: 16px;
  color: white; width: 100%;
}

.photo-date { font-size: 10px; opacity: .7; margin-bottom: 2px; }
.photo-count { font-size: 13px; font-weight: 700; }

.swipe-actions {
  display: flex; justify-content: space-between; padding: 0 4px;
}

.swipe-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.swipe-btn.delete { background: rgba(239,68,68,.2); }
.swipe-btn.keep   { background: rgba(16,185,129,.2); }

.floating-card {
  position: absolute;
  background: white; border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.floating-card.left  { left: -28px; top: 30%; }
.floating-card.right { right: -24px; top: 55%; }

/* ── Feature grid ────────────────────────────────────────────────────────── */

.section-tag {
  font-size: 12px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -1px;
  color: var(--text); margin-bottom: 16px; line-height: 1.15;
}

.section-sub {
  font-size: 17px; color: var(--text-2);
  line-height: 1.7; max-width: 560px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 56px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--accent-light);
}

.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}

.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ── How it works ────────────────────────────────────────────────────────── */

.steps { display: flex; flex-direction: column; gap: 40px; margin-top: 56px; }

.step {
  display: flex; gap: 24px; align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  box-shadow: 0 4px 12px rgba(99,102,241,.3);
}

.step-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step-content p  { font-size: 15px; color: var(--text-2); line-height: 1.65; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 56px;
}

.pricing-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, #fafaff 0%, #f1f2fe 100%);
  box-shadow: 0 0 0 4px rgba(99,102,241,.07);
}

.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: 3px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  white-space: nowrap;
}

.pricing-tier { font-size: 13px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.pricing-price {
  font-size: 40px; font-weight: 800; letter-spacing: -1.5px;
  color: var(--text); margin: 10px 0 4px;
}
.pricing-price span { font-size: 15px; font-weight: 500; color: var(--text-2); }
.pricing-desc { font-size: 14px; color: var(--text-2); margin-bottom: 28px; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-features li {
  font-size: 14px; display: flex; align-items: center; gap: 8px;
}
.pricing-features li .check { color: var(--green); font-weight: 700; }
.pricing-features li .cross { color: var(--text-3); }
.pricing-features li .lock  { color: var(--text-3); font-size: 12px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer {
  background: var(--text); color: rgba(255,255,255,.6);
  padding: 48px 0;
}

.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; gap: 32px;
}

.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap;
}

.footer-brand .nav-logo { color: #fff; }
.footer-brand .nav-logo-icon { opacity: .9; }
.footer-brand p { font-size: 13px; margin-top: 10px; max-width: 280px; line-height: 1.6; }

.footer-links { display: flex; gap: 48px; }
.footer-links-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-links-col a {
  display: block; font-size: 13px; color: rgba(255,255,255,.55);
  text-decoration: none; margin-bottom: 8px;
  transition: color .2s;
}
.footer-links-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; flex-wrap: wrap; gap: 12px;
}

/* ── Legal pages ─────────────────────────────────────────────────────────── */

.legal-hero {
  background: linear-gradient(160deg, #fafaff 0%, #eef0ff 100%);
  padding: 64px 0;
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800; letter-spacing: -1px; margin-bottom: 12px;
}

.legal-hero .meta {
  font-size: 14px; color: var(--text-2);
}

.legal-hero .meta a {
  color: var(--accent); text-decoration: none; font-weight: 500;
}

.legal-body {
  padding: 64px 0 96px;
}

.legal-body h2 {
  font-size: 20px; font-weight: 700;
  color: var(--text); margin: 40px 0 12px;
  padding-top: 8px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
  font-size: 16px; font-weight: 700;
  color: var(--text); margin: 24px 0 8px;
}

.legal-body p {
  font-size: 15px; color: var(--text-2);
  line-height: 1.8; margin-bottom: 14px;
}

.legal-body ul, .legal-body ol {
  margin: 0 0 16px 20px;
}

.legal-body li {
  font-size: 15px; color: var(--text-2);
  line-height: 1.8; margin-bottom: 6px;
}

.legal-body strong { color: var(--text); font-weight: 600; }

.legal-body .highlight-box {
  background: var(--surface-3); border-left: 3px solid var(--accent);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

.legal-body .highlight-box p { margin: 0; font-size: 14px; }

/* ── App icon image (nav & footer) ──────────────────────────────────────── */

.nav-logo-img {
  width: 36px; height: 36px;
  max-width: 36px; max-height: 36px;
  min-width: 36px; min-height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

/* ── Phone screenshot fill ───────────────────────────────────────────────── */

.phone-screenshot {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  flex: 1;
}

/* ── Small phone frame ───────────────────────────────────────────────────── */

.phone-frame-sm {
  width: 185px; height: 395px;
  border-radius: 34px;
}

/* ── How it works — two-phone cluster ───────────────────────────────────── */

.how-it-works-screens {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 40px 20px;
}

.phone-tilt-left {
  transform: rotate(-5deg);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(99,102,241,.08), -16px 40px 72px rgba(0,0,0,.32);
}

.phone-tilt-right {
  transform: rotate(5deg);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(99,102,241,.08), 16px 40px 72px rgba(0,0,0,.32);
}

/* ── Screenshots strip ───────────────────────────────────────────────────── */

.screenshots-strip {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.screenshot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.screenshot-label {
  font-size: 13px; font-weight: 600;
  color: var(--text-2);
  text-align: center;
  letter-spacing: -.1px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center; gap: 48px;
  }

  .hero p { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-visual { order: -1; }

  .floating-card.left  { left: 0; }
  .floating-card.right { right: 0; }

  .pricing-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-links { display: none; }

  /* How it works — stack the two phones vertically on mobile */
  .how-it-works-screens {
    flex-direction: column;
    gap: 24px;
    margin-top: 48px;
  }
  .phone-tilt-left  { transform: rotate(-3deg); }
  .phone-tilt-right { transform: rotate(3deg); }

  /* Screenshots strip — scroll on mobile */
  .screenshots-strip {
    justify-content: flex-start;
    padding-left: 24px;
    padding-right: 24px;
  }

  .phone-frame-sm {
    width: 150px; height: 300px;
    border-radius: 28px;
  }
}
