/* Bobz website — colors match the app (frontend/Bobz/Design/Theme.swift) and the icon */
:root {
  --orange: #E07033;
  --orange-soft: #FBE7DB;
  --green: #0A9E57;
  --green-dark: #057340;
  --green-soft: #DDF3E7;
  --blue: #2F7BE0;
  --blue-soft: #DEEBFB;
  --brown: #4E2C17;
  --cream: #FAF7F2;
  --card: #FFFFFF;
  --text: #1E1712;
  --muted: #6B625A;
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 68px; }

body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-weight: 900; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 16px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(78, 44, 23, 0.06);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.4rem; color: var(--brown); }
.brand img { border-radius: 11px; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 700; color: var(--muted); }
.nav a:hover { color: var(--orange); }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { font-weight: 800; color: var(--orange); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
.accent { color: var(--orange); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff;
  padding: 10px 22px 10px 18px; border-radius: 14px;
  line-height: 1.1; font-weight: 800; font-size: 1.2rem;
}
.store-badge small { display: block; font-size: 0.7rem; font-weight: 600; opacity: 0.85; }
.link-arrow { font-weight: 800; color: var(--green); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.hero-phone { position: relative; display: flex; justify-content: center; }
.hero-phone::before {
  content: ""; position: absolute; inset: 8% -10% 8% -10%;
  background: radial-gradient(circle at 50% 45%, var(--orange-soft), transparent 68%);
  z-index: -1;
}

.phone {
  width: min(320px, 78vw);
  border-radius: 46px;
  padding: 10px;
  background: #111;
  box-shadow: 0 30px 60px -20px rgba(78, 44, 23, 0.35), 0 10px 20px -10px rgba(0, 0, 0, 0.2);
}
.phone img { border-radius: 37px; width: 100%; height: auto; }
.phone-sm { width: min(290px, 72vw); }

.bubble {
  position: absolute;
  background: var(--card);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  box-shadow: 0 12px 30px -10px rgba(78, 44, 23, 0.3);
  white-space: nowrap;
  animation: float 5s ease-in-out infinite;
}
.bubble-1 { top: 22%; left: -4%; color: var(--green-dark); }
.bubble-2 { bottom: 18%; right: -6%; color: var(--orange); animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Features */
.features { padding: 64px 0; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 48px 0;
}
.feature.reverse .feature-text { order: 2; }
.feature-text p { font-size: 1.1rem; color: var(--muted); }
.feature-media { display: flex; justify-content: center; }

.tag {
  display: inline-block; font-weight: 800; font-size: 0.85rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.tag-green { background: var(--green-soft); color: var(--green-dark); }
.tag-orange { background: var(--orange-soft); color: #B4501A; }
.tag-blue { background: var(--blue-soft); color: #1F5BAE; }
.tag-light { background: rgba(255, 255, 255, 0.18); color: #fff; }

.checks { list-style: none; padding: 0; margin: 8px 0 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; font-weight: 700; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 0.75rem;
  display: grid; place-items: center;
}

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.mini {
  background: var(--card); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: 0 8px 24px -16px rgba(78, 44, 23, 0.25);
}
.mini-icon { font-size: 2rem; margin-bottom: 12px; }
.mini p { color: var(--muted); margin: 0; }

/* Privacy */
.privacy {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  padding: 88px 0;
}
.privacy-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.lead-light { font-size: 1.2rem; opacity: 0.9; }
.privacy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.privacy-list li {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px; padding: 18px 22px;
  color: rgba(255, 255, 255, 0.9);
}
.privacy-list strong { display: block; color: #fff; font-size: 1.05rem; }

/* FAQ */
.faq { padding: 88px 0; }
.faq-inner { max-width: 760px; }
.faq h2 { text-align: center; margin-bottom: 32px; }
details {
  background: var(--card); border-radius: 18px; margin-bottom: 12px;
  box-shadow: 0 6px 18px -14px rgba(78, 44, 23, 0.3);
}
summary {
  cursor: pointer; list-style: none;
  padding: 20px 56px 20px 24px; font-weight: 800; font-size: 1.08rem; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 700; color: var(--orange); transition: transform 0.2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* Final CTA */
.final { padding: 24px 0 96px; }
.final-inner {
  background: var(--orange); color: #fff; border-radius: 32px;
  padding: 56px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.final-inner img { border-radius: 22px; margin-bottom: 20px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35); border: 3px solid rgba(255, 255, 255, 0.6); }
.final-inner p { font-size: 1.15rem; opacity: 0.95; margin: 0; }

/* Footer */
.footer { border-top: 1px solid rgba(78, 44, 23, 0.08); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.brand-footer { font-size: 1.1rem; }
.brand-footer img { border-radius: 8px; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; color: var(--muted); font-weight: 700; }
.footer nav a:hover { color: var(--orange); }
.copyright { color: var(--muted); margin: 0; font-size: 0.9rem; }

/* Legal pages (privacy, terms) */
.legal { padding-top: 40px; padding-bottom: 72px; }
.legal-card {
  max-width: 760px; margin: 0 auto;
  background: var(--card); border-radius: 32px; padding: 48px 56px;
  box-shadow: 0 8px 24px -16px rgba(78, 44, 23, 0.25);
}
.legal-card h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.legal-card h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal-card .muted { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }
.legal-card ul { padding-left: 22px; }
.legal-card li { margin-bottom: 8px; }
.legal-card a { color: var(--green); font-weight: 700; }
.nav-legal { display: flex !important; }

/* Tablet and phone */
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-inner, .feature, .privacy-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .feature { padding: 32px 0; }
  .feature.reverse .feature-text { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .bubble { font-size: 0.85rem; padding: 8px 14px; }
  .bubble-1 { left: 0; }
  .bubble-2 { right: 0; }
  .grid { grid-template-columns: 1fr; }
  .privacy, .faq { padding: 64px 0; }
  .legal { padding-top: 24px; }
  .legal-card { padding: 28px 20px; border-radius: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer nav { justify-content: center; gap: 8px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; }
  html { scroll-behavior: auto; }
}
