/* ============================================================
   NoteBip — landing styles (static, no build step / no plugins)
   Warm "Soft Gold" theme matched to the app background & login.
   ============================================================ */

:root {
  /* Warm cream surfaces (sampled from the app background + login) */
  --bg-1: #F4EDDB;
  --bg-2: #EDE4CF;
  --bg-3: #E8DEC6;
  --surface: #FCFAF4;     /* main cards */
  --surface-2: #FFFFFF;   /* feature tiles */
  --surface-inset: #F4EEE0;

  /* Ink + gold */
  --ink: #221C14;         /* headings / "Note" */
  --body: #6E6658;        /* body text */
  --muted: #978D7C;       /* captions */
  --gold: #D9A52A;        /* "Bip" + accents */
  --gold-strong: #C28E18;
  --gold-soft: #F0C361;
  --gold-tint: rgba(217, 165, 42, 0.12);

  /* Lines + radii */
  --line: rgba(96, 74, 28, 0.12);
  --line-soft: rgba(96, 74, 28, 0.08);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  /* Soft, warm neumorphic shadows */
  --shadow-card: 0 2px 3px rgba(120, 95, 40, 0.05), 0 24px 50px -26px rgba(120, 92, 36, 0.32), inset 0 1px 0 rgba(255,255,255,0.9);
  --shadow-card-hover: 0 4px 6px rgba(120, 95, 40, 0.07), 0 32px 60px -24px rgba(120, 92, 36, 0.40), inset 0 1px 0 rgba(255,255,255,0.95);
  --shadow-tile: 0 1px 2px rgba(120, 95, 40, 0.05), 0 14px 28px -16px rgba(120, 92, 36, 0.34), inset 0 1px 0 #fff;
  --shadow-btn: 0 1px 2px rgba(120, 95, 40, 0.06), 0 14px 26px -14px rgba(120, 92, 36, 0.45), inset 0 1px 0 rgba(255,255,255,0.85);

  --maxw: 1120px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--body);
  background-color: var(--bg-2);
  background-image:
    radial-gradient(900px 620px at 72% -6%, rgba(233, 203, 130, 0.60), transparent 60%),
    radial-gradient(720px 520px at 12% 4%, rgba(242, 226, 184, 0.50), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 42%, var(--bg-3) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(217,165,42,0.28); color: var(--ink); }

h1, h2, h3, .wordmark { font-family: "Plus Jakarta Sans", "Inter", sans-serif; color: var(--ink); }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.center { text-align: center; }
.eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-strong); margin: 0 0 14px;
}
.section-head { max-width: 640px; margin-inline: auto; }
.h2 { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.12; }
.lead { color: var(--body); margin: 16px 0 0; font-size: 1.02rem; }
.gold { color: var(--gold); }

/* divider with center dot (echoes the login screen) */
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0 0; }
.divider span { height: 1px; width: 44px; }
.divider span:first-child { background: linear-gradient(90deg, transparent, rgba(217,165,42,0.7)); }
.divider span:last-child  { background: linear-gradient(90deg, rgba(217,165,42,0.7), transparent); }
.divider .dot { width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); border-radius: 2px; flex: none; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.nav-bar {
  background: rgba(247, 241, 227, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; }
.logo-tile {
  width: 38px; height: 38px; border-radius: 11px; overflow: hidden;
  background: #fff; flex: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 6px 16px -8px rgba(120,92,36,0.5);
  border: 1px solid var(--line-soft);
}
.logo-tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.wordmark { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.wordmark .b { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--body); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-btn);
}
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }
.mobile-menu-inner {
  background: rgba(247, 241, 227, 0.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 0 18px; display: flex; flex-direction: column;
}
.mobile-menu-inner a { padding: 11px 0; color: var(--body); font-weight: 500; }
.mobile-menu-inner a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 600; font-size: 0.92rem; border-radius: 999px; padding: 11px 20px;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: #fff; box-shadow: var(--shadow-btn); }
.btn-gold:hover { background: var(--gold-strong); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface); color: var(--ink); border-color: var(--line);
  box-shadow: var(--shadow-btn); padding: 15px 24px; border-radius: 16px;
}
.btn-ghost:hover { border-color: rgba(217,165,42,0.5); transform: translateY(-1px); }

/* Google Play button */
.play-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 13px 26px 13px 18px;
  box-shadow: var(--shadow-btn);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.play-btn:hover { transform: translateY(-2px); border-color: rgba(217,165,42,0.5); box-shadow: var(--shadow-card-hover); }
.play-btn .pb-text { text-align: left; line-height: 1; }
.play-btn .pb-top { display: block; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.play-btn .pb-main { display: block; margin-top: 5px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 1.18rem; color: var(--ink); }

/* "Coming soon" (pre-launch) variant — non-interactive */
.play-btn-soon { cursor: default; }
.play-btn-soon:hover { transform: none; border-color: var(--line); box-shadow: var(--shadow-btn); }
.pb-soon {
  align-self: center; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: var(--gold); padding: 4px 9px; border-radius: 999px; box-shadow: var(--shadow-tile);
}
.soon-note { font-size: 0.82rem; color: var(--muted); margin: 16px 0 0; max-width: 460px; }
.hero .soon-note { max-width: 540px; }

/* ---------- hero ---------- */
.hero { padding-top: 132px; padding-bottom: 84px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: 0.78rem; font-weight: 500; color: var(--body);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  box-shadow: var(--shadow-tile);
}
.badge .ping { width: 7px; height: 7px; border-radius: 999px; background: var(--gold); flex: none; }
.hero h1 { font-size: clamp(2.3rem, 1.2rem + 4.4vw, 3.7rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; margin: 22px 0 0; }
.hero p.sub { font-size: clamp(1rem, 0.95rem + 0.4vw, 1.16rem); color: var(--body); margin: 22px 0 0; max-width: 540px; }
.hero p.sub strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.assurance { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); margin-top: 24px; }

/* phone mockup */
.phone-wrap { position: relative; display: flex; justify-content: flex-end; }
.phone-glow { position: absolute; inset: -10% -6% -6% -6%; background: radial-gradient(closest-side, rgba(224,169,46,0.30), transparent 70%); filter: blur(28px); }
.phone {
  position: relative; width: 300px; max-width: 80vw; padding: 10px; border-radius: 44px;
  background: linear-gradient(160deg, #fffdf7, #efe7d6);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 50px 90px -42px rgba(120,92,36,0.55), 0 0 0 1px var(--line-soft);
}
.phone-screen { border-radius: 34px; overflow: hidden; border: 1px solid var(--line); }

/* ---------- features grid (app card replica) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.feature-card { padding: 30px; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: rgba(217,165,42,0.4); }
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 15px; margin-bottom: 22px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-tile); color: var(--gold);
}
.feature-card h3 { font-size: 1.22rem; font-weight: 700; margin: 0; }
.feature-card p { font-size: 0.92rem; color: var(--body); margin: 12px 0 0; }

/* ---------- showcase carousel ---------- */
.showcase { border-top: 1px solid var(--line-soft); }
.carousel { position: relative; margin-top: 52px; }

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  min-height: 640px;            /* reserves space → no layout shift before/while images load */
  outline: none;
  /* soft fade on the side edges as slides pass through */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.carousel-track { display: flex; margin: 0; padding: 0; list-style: none; will-change: transform; }
.carousel-slide { flex: 0 0 100%; display: flex; justify-content: center; padding: 18px 12px 28px; }

/* phone frame reuses the hero .phone styling for brand consistency */
.show-phone-frame { position: relative; width: 274px; max-width: 72vw; }
.show-phone-glow {
  position: absolute; inset: -10% -8% 0; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(224,169,46,0.32), transparent 70%);
  filter: blur(30px);
}
.carousel .phone-screen { position: relative; z-index: 1; aspect-ratio: 852 / 1847; background: var(--surface-inset); }
.carousel .phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* navigation arrows (desktop) */
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow-btn);
  transition: transform .2s, box-shadow .2s, border-color .2s, color .2s;
}
.carousel-arrow:hover {
  color: var(--gold-strong); border-color: rgba(217,165,42,0.5);
  box-shadow: var(--shadow-card-hover); transform: translateY(-50%) scale(1.06);
}
.carousel-arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }

/* dots */
.carousel-dots { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; }
.carousel-dot {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 999px; cursor: pointer;
  background: rgba(96,74,28,0.22); transition: background .25s, width .25s;
}
.carousel-dot:hover { background: rgba(217,165,42,0.6); }
.carousel-dot.is-active { background: var(--gold); width: 26px; }
.carousel-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* visually-hidden live region */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- how it works ---------- */
.how { border-top: 1px solid var(--line-soft); }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps { margin: 34px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 26px; }
.step { display: flex; gap: 16px; }
.step-num {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; color: var(--gold-strong);
  background: var(--surface-2); border: 1px solid var(--line-soft); box-shadow: var(--shadow-tile);
}
.step h3 { font-size: 1.02rem; font-weight: 600; margin: 4px 0 0; font-family: "Inter", sans-serif; color: var(--ink); }
.step p { font-size: 0.9rem; margin: 6px 0 0; color: var(--body); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { padding: 26px; }
.stat-card .num { font-family: "Plus Jakarta Sans", sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--ink); line-height: 1; }
.stat-card p { font-size: 0.9rem; margin: 12px 0 0; color: var(--body); }
.stat-card.wide { grid-column: 1 / -1; }
.stat-row { display: flex; align-items: center; gap: 14px; }
.stat-row h3 { font-size: 1rem; font-weight: 600; margin: 0; font-family: "Inter", sans-serif; color: var(--ink); }
.stat-row p { margin: 5px 0 0; }

/* ---------- CTA ---------- */
.cta-card { position: relative; overflow: hidden; text-align: center; padding: 60px 28px; }
.cta-glow { position: absolute; top: -90px; left: 50%; transform: translateX(-50%); width: 300px; height: 300px; background: radial-gradient(closest-side, rgba(224,169,46,0.30), transparent 70%); filter: blur(30px); }
.cta-card .logo-tile { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto; }
.cta-card h2 { position: relative; margin: 26px 0 0; }
.cta-card p { position: relative; max-width: 480px; margin: 16px auto 0; }
.cta-actions { position: relative; margin-top: 34px; display: flex; justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 46px 0 0; flex-wrap: wrap; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 0.9rem; color: var(--body); transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 30px; padding: 26px 0 46px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--muted);
}

/* ---------- legal prose ---------- */
.legal-main { max-width: 760px; margin-inline: auto; padding: 124px 22px 90px; }
.legal-head { text-align: center; }
.legal-head h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 0; }
.legal-head .updated { font-size: 0.84rem; color: var(--muted); margin-top: 14px; }
.summary-card { padding: 26px; margin-top: 38px; }
.summary-card .row { display: flex; gap: 14px; align-items: flex-start; }
.summary-card .row svg { flex: none; margin-top: 2px; }
.summary-card p { margin: 0; font-size: 0.94rem; color: var(--body); }
.summary-card strong { color: var(--ink); }

.prose-legal { margin-top: 8px; }
.prose-legal h2 { font-size: 1.4rem; font-weight: 700; margin: 44px 0 12px; scroll-margin-top: 84px; }
.prose-legal h3 { font-size: 1.08rem; font-weight: 600; margin: 28px 0 8px; }
.prose-legal p { color: var(--body); margin: 0 0 16px; }
.prose-legal strong { color: var(--ink); font-weight: 600; }
.prose-legal a { color: var(--gold-strong); text-decoration: underline; text-underline-offset: 3px; }
.prose-legal ul { list-style: none; padding-left: 6px; margin: 8px 0 20px; color: var(--body); }
.prose-legal ul li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.prose-legal ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 999px; background: var(--gold); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero p.sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .phone-wrap { justify-content: center; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: 1fr; }
  .carousel-viewport { min-height: 600px; }
}
@media (max-width: 760px) {
  .nav-links, .nav .btn-gold { display: none; }
  .menu-btn { display: inline-flex; }
  .section { padding: 64px 0; }
  .hero { padding-top: 112px; }
  .stat-grid { grid-template-columns: 1fr; }
  .carousel-arrow { display: none; }            /* arrows on desktop; swipe on mobile */
  .carousel-viewport { min-height: 540px; -webkit-mask-image: none; mask-image: none; }
  .show-phone-frame { width: 230px; max-width: 78vw; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none !important; }
}
