/* Vibeboard — website design system. Matches the iOS app: dark, deep-purple
   theme with a purple→pink brand gradient and a pro-yellow accent.
   Fully self-contained (no shared styles.css, no external fonts/CDNs). */

:root {
  --bg:        #1a1825;   /* app background (flat) */
  --bg-top:    #2d2640;   /* gradient top */
  --surface:   #2d2640;   /* cards / panels */
  --inset:     #1a1825;   /* inset wells */
  --chip:      #252233;   /* chips */
  --purple:    #8B5CF6;
  --purple-br: #A855F7;   /* bright accent */
  --pink:      #EC4899;
  --sticky:    #FFB3D9;   /* pink sticky note */
  --pro:       #EAB308;   /* pro yellow */
  --pro-br:    #FACC15;
  --text:      #FFFFFF;   /* primary text */
  --text2:     #C4B5FD;   /* secondary text (light purple) */
  --text3:     #DDD6FE;   /* soft light purple */
  --muted:     #9d90c4;   /* muted purple-grey */
  --border:    rgba(196,181,253,.16);
  --border-str:rgba(168,85,247,.5);
  --grad-a:    #8B5CF6;
  --grad-b:    #A855F7;
  --logo-a:    #A855F7;
  --logo-b:    #EC4899;
  --radius:    16px;      /* elements */
  --radius-lg: 24px;      /* cards */
  --wrap:      1100px;
  --shadow:    0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(139,92,246,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
/* Ambient brand glows behind everything. */
body::before, body::after {
  content: ""; position: fixed; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; border-radius: 50%;
  filter: blur(140px); opacity: 0.35;
}
body::before { top: -20vw; left: -16vw; background: radial-gradient(circle, var(--purple-br), transparent 62%); }
body::after  { bottom: -24vw; right: -18vw; background: radial-gradient(circle, var(--pink), transparent 62%); }

.container, .wrap { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

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

/* ---------- Brand / nav ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__home { display: inline-flex; }
.brand__icon { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 18px rgba(168,85,247,.4); }
.brand__icon--sm { width: 34px; height: 34px; }
.brand__lines { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand__name--light { color: var(--text2); font-weight: 600; }
.brand__by { font-size: .82rem; color: var(--muted); transition: color .15s ease; }
.brand__by:hover { color: var(--purple-br); }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.nav__actions { display: flex; align-items: center; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn .ico { width: 18px; height: 18px; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  box-shadow: 0 8px 26px rgba(139,92,246,.45);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(168,85,247,.6); }
.btn--ghost { color: var(--text2); border-color: var(--border); background: var(--surface); }
.btn--ghost:hover { background: var(--chip); color: var(--text); border-color: var(--border-str); }
.btn--white { background: #fff; color: var(--purple); }
.btn--white:hover { transform: translateY(-2px); }
.btn--glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--glass:hover { background: rgba(255,255,255,.24); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--center { align-self: center; }

/* App Store button (self-contained, no external badge image) */
.appstore-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px; border-radius: 14px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff; box-shadow: 0 10px 30px rgba(139,92,246,.45);
  transition: transform .15s ease, box-shadow .2s ease;
}
.appstore-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(168,85,247,.6); }
.appstore-btn .ico { width: 26px; height: 26px; fill: #fff; }
.appstore-btn__lines { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.appstore-btn__small { font-size: .7rem; opacity: .9; }
.appstore-btn__big { font-size: 1.15rem; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-bottom: 30px; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--bg-top), var(--bg) 70%); opacity: .9; }
.hero__content { max-width: 860px; margin: 54px auto 0; text-align: center; }
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 700; line-height: 1.04; margin: 0 0 18px;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--logo-a), var(--logo-b));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__subtitle { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--text2); margin: 0 auto 30px; max-width: 640px; }
.hero__cta-row { display: flex; justify-content: center; }

/* Chip row under the hero subtitle */
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 26px 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; border: 1px solid var(--border); background: var(--chip);
  color: var(--text3); box-shadow: var(--shadow);
}
.chip__dot { width: 10px; height: 10px; border-radius: 50%; }
.chip--purple .chip__dot { background: var(--purple-br); }
.chip--pink .chip__dot { background: var(--pink); }
.chip--yellow .chip__dot { background: var(--pro-br); }

/* Hero device shot */
.hero__shot { margin: 44px auto 0; max-width: 300px; }
.hero__shot img { width: 100%; border-radius: 28px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }

/* ---------- Sections ---------- */
.section { padding: 66px 0; position: relative; z-index: 1; }
.section--tight { padding: 44px 0; }
.prose-center, .section__head { max-width: 720px; margin: 0 auto; text-align: center; }
.h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; color: var(--text); }
.lead { font-size: 1.1rem; color: var(--text2); margin: 0 auto; }
.lead--narrow { max-width: 560px; }
.muted { color: var(--muted); }

/* ---------- Features grid ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 44px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-str); box-shadow: var(--shadow-lg); }
.feature-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--purple), var(--purple-br));
  box-shadow: 0 8px 22px rgba(139,92,246,.4);
}
.feature-ico--pink { background: linear-gradient(135deg, var(--purple-br), var(--pink)); }
.feature-ico .ico { width: 26px; height: 26px; stroke: #fff; fill: none; }
.feature__title { font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; color: var(--text); }
.feature__title em { font-style: normal; color: var(--pro-br); font-weight: 600; font-size: .9em; }
.feature p { color: var(--text2); margin: 0; font-size: .98rem; }

/* ---------- Screenshots showcase (scroll strip) ---------- */
.shots-strip {
  display: flex; gap: 20px; margin-top: 44px; padding: 6px 4px 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots-strip::-webkit-scrollbar { height: 8px; }
.shots-strip::-webkit-scrollbar-thumb { background: var(--chip); border-radius: 999px; }
.shot {
  flex: 0 0 auto; width: 230px; scroll-snap-align: center; text-align: center;
}
.shot img {
  width: 100%; border-radius: 24px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.shot__cap { display: block; margin-top: 12px; font-size: .9rem; color: var(--text2); }

/* ---------- Pricing / Pro teaser ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 44px; max-width: 820px; margin-left: auto; margin-right: auto; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow); position: relative;
}
.plan--pro {
  border-color: rgba(234,179,8,.5);
  background: linear-gradient(180deg, rgba(168,85,247,.10), var(--surface) 55%);
  box-shadow: var(--shadow-lg);
}
.plan__badge {
  position: absolute; top: 20px; right: 20px;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; color: #2a2100;
  background: linear-gradient(135deg, var(--pro), var(--pro-br));
}
.plan__name { font-size: 1.35rem; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.plan__price { font-size: 1rem; color: var(--muted); margin: 0 0 18px; }
.plan__list { list-style: none; padding: 0; margin: 0; }
.plan__list li { position: relative; padding-left: 28px; margin: 12px 0; color: var(--text2); font-size: 1rem; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-br));
}
.plan--pro .plan__list li::before { background: linear-gradient(135deg, var(--pro), var(--pro-br)); }
.plan__list li strong { color: var(--text); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 44px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow); text-align: left; }
.step__num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--purple), var(--pink));
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 6px; color: var(--text); }
.step p { color: var(--text2); margin: 0; font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta { position: relative; z-index: 1; margin: 30px auto 80px; max-width: var(--wrap); padding: 0 24px; }
.cta__inner {
  text-align: center; padding: 56px 28px; border-radius: 28px;
  background: linear-gradient(120deg, var(--purple), var(--pink));
  box-shadow: 0 24px 70px rgba(168,85,247,.45);
}
.cta__title { color: #fff; margin: 0 0 10px; }
.cta__sub { color: rgba(255,255,255,.94); margin: 0 0 26px; }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 20px; background: var(--surface); position: relative; z-index: 1; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer__copy { color: var(--muted); font-size: .9rem; margin: 0; }
.footer__copy a { color: var(--muted); text-decoration: underline; }
.footer__copy a:hover { color: var(--purple-br); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: var(--text2); font-size: .92rem; }
.footer__links a:hover { color: var(--purple-br); }

/* ---------- Legal pages (privacy.html / terms.html) ---------- */
.legal__top { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; gap: 12px; flex-wrap: wrap; }
.legal__back { color: var(--text2); font-size: .92rem; }
.legal__back:hover { color: var(--purple-br); }
.legal { padding: 10px 0 70px; position: relative; z-index: 1; }
.legal .container { max-width: 760px; }
.legal__doc { color: var(--text2); }
.legal__doc h1 { color: var(--text); font-size: 2.2rem; letter-spacing: -0.02em; margin: 6px 0 4px; }
.legal__doc h2 { color: var(--text); font-size: 1.3rem; margin: 34px 0 10px; }
.legal__doc h3 { color: var(--text); font-size: 1.05rem; margin: 22px 0 6px; }
.legal__doc p, .legal__doc li { color: var(--text2); font-size: 1rem; }
.legal__doc ul { padding-left: 20px; }
.legal__doc li { margin: 6px 0; }
.legal__doc a { color: var(--purple-br); text-decoration: underline; }
.legal__doc a:hover { color: var(--pink); }
.legal__doc strong { color: var(--text); }
.legal__updated { color: var(--muted) !important; font-size: .9rem; margin-top: 0; }
.legal__note {
  background: rgba(168,85,247,.12); border: 1px solid var(--border-str);
  border-radius: 14px; padding: 16px 18px; margin: 20px 0; color: var(--text2); font-size: .95rem;
}
.legal__note strong { color: var(--text); }

@media (max-width: 640px) {
  .nav { flex-wrap: wrap; gap: 10px; }
  .section { padding: 52px 0; }
  .nav__actions .btn--ghost { display: none; }
}
