/* ============================================================
   Bookmark — marketing site
   Light & airy theme built on the app's purple brand palette.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #faf9ff;
  --bg-tint: #f3f1fb;
  --surface: #ffffff;
  --line: #e7e4f2;

  /* Ink */
  --ink: #1c1c2e;
  --muted: #6c6c80;
  --muted-soft: #9a9aac;

  /* Brand */
  --purple: #7254c5;
  --purple-deep: #523394;
  --purple-light: #ab8feb;
  --magenta: #d15cf2;

  /* Status accents (from the app) */
  --green: #2cb673;
  --blue: #2aa9d6;
  --gold: #f2a900;
  --coral: #f26b73;
  --flame: #ff7043;

  --grad: linear-gradient(135deg, #7254c5 0%, #a25ce0 52%, #d15cf2 100%);
  --grad-soft: linear-gradient(135deg, #efeafc 0%, #f7ecfb 100%);

  --shadow-sm: 0 2px 8px rgba(82, 51, 148, 0.06);
  --shadow-md: 0 12px 30px rgba(82, 51, 148, 0.1);
  --shadow-lg: 0 30px 60px rgba(82, 51, 148, 0.18);

  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1140px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
section {
  position: relative;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(250, 249, 255, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--line);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff !important;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ---------- Buttons / store badges ---------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.badge .b-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.badge .b-small {
  font-size: 0.68rem;
  opacity: 0.85;
  letter-spacing: 0.02em;
}
.badge .b-big {
  font-size: 1.05rem;
  font-weight: 700;
}

/* Social links */
.socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.socials-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 2px;
}
.social {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--purple);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease,
    background 0.2s ease;
}
.social svg {
  width: 21px;
  height: 21px;
}
.social:hover {
  transform: translateY(-3px);
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-md);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 70px 0 40px;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.blob-1 {
  width: 480px;
  height: 480px;
  background: #cdb6f7;
  top: -160px;
  left: -120px;
}
.blob-2 {
  width: 420px;
  height: 420px;
  background: #f3c4f9;
  top: 40px;
  right: -140px;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 7vw, 4.2rem);
  font-weight: 800;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 30ch;
  margin: 22px 0 30px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-deep);
  margin-bottom: 24px;
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(44, 182, 115, 0.18);
}
.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted-soft);
}

/* Fanned phone tiles in hero */
.hero-art {
  position: relative;
  height: 520px;
}
.tile {
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-art .tile {
  position: absolute;
  width: 60%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.hero-art .t-back-l {
  left: 0;
  top: 40px;
  transform: rotate(-7deg);
  width: 54%;
  opacity: 0.96;
}
.hero-art .t-back-r {
  right: 0;
  top: 30px;
  transform: rotate(7deg);
  width: 54%;
  opacity: 0.96;
}
.hero-art .t-front {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 60%;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .lede {
    margin-inline: auto;
  }
  .badges {
    justify-content: center;
  }
  .socials {
    justify-content: center;
  }
  .hero-art {
    height: 460px;
    margin-top: 10px;
  }
}
@media (max-width: 480px) {
  .hero-art {
    height: 400px;
  }
  .hero-art .tile {
    width: 58%;
  }
  .hero-art .t-front {
    width: 64%;
  }
}

/* ---------- Logo strip / trust band ---------- */
.stats-band {
  background: var(--grad);
  color: #fff;
  padding: 44px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat .lbl {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 4px;
}
@media (max-width: 620px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Section heading ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
}
.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 16px;
}

/* ---------- Feature rows ---------- */
.features {
  padding: 96px 0;
}
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 110px;
}
.frow:last-child {
  margin-bottom: 0;
}
.frow.reverse .f-media {
  order: 2;
}
.f-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}
.f-copy h3 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
}
.f-copy > p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 18px 0 24px;
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}
.checks svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

/* media — show the marketing tiles, fanned */
.f-media {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 18px;
}
.f-media .tile {
  width: 46%;
  max-width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.f-media .tile:first-child {
  transform: rotate(-4deg) translateY(8px);
}
.f-media .tile:last-child {
  transform: rotate(4deg) translateY(-8px);
}
.f-media.single .tile {
  width: 60%;
  max-width: 320px;
  transform: none;
}
.f-media:hover .tile:first-child {
  transform: rotate(-2deg) translateY(0);
}
.f-media:hover .tile:last-child {
  transform: rotate(2deg) translateY(0);
}

@media (max-width: 880px) {
  .features {
    padding: 70px 0;
  }
  .frow {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 80px;
  }
  .frow.reverse .f-media {
    order: 0;
  }
  .f-copy {
    text-align: center;
  }
  .f-copy .kicker {
    justify-content: center;
  }
  .checks {
    text-align: left;
    max-width: 420px;
    margin-inline: auto;
  }
}

/* ---------- "Everything else" grid ---------- */
.more {
  padding: 96px 0;
  background: var(--bg-tint);
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card .ic {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--grad-soft);
}
.card .ic svg {
  width: 26px;
  height: 26px;
}
.card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
}
@media (max-width: 880px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .more {
    padding: 70px 0;
  }
}
@media (max-width: 560px) {
  .grid-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Privacy ---------- */
.privacy {
  padding: 96px 0;
}
.privacy-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  align-items: start;
  overflow: hidden;
}
.privacy-box .shield {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}
.privacy-box .shield svg {
  width: 34px;
  height: 34px;
}
.privacy-box h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
}
.privacy-box p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 14px 0 0;
  max-width: 60ch;
}
@media (max-width: 620px) {
  .privacy {
    padding: 70px 0;
  }
  .privacy-box {
    padding: 36px 28px;
    grid-template-columns: 1fr;
  }
}

/* ---------- Final CTA ---------- */
.cta {
  padding: 40px 0 110px;
}
.cta-box {
  background: var(--grad);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-box::before,
.cta-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.cta-box::before {
  width: 280px;
  height: 280px;
  top: -120px;
  right: -60px;
}
.cta-box::after {
  width: 200px;
  height: 200px;
  bottom: -90px;
  left: -40px;
}
.cta-box h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  position: relative;
}
.cta-box p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin: 16px auto 32px;
  max-width: 46ch;
  position: relative;
}
.cta-box .badges {
  justify-content: center;
  position: relative;
}
.cta-box .badge {
  background: #fff;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer .brand {
  font-size: 1rem;
}
.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--purple);
}
.footer .copy {
  color: var(--muted-soft);
  font-size: 0.85rem;
  width: 100%;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
