/* LastBought — marketing site
   Brand carried over from marketing/social/brand.css so the site, the app
   icon and the social carousel all read as one thing. */

:root {
  --bg: #0a0a0a;
  --bg-raised: #141414;
  --border: #262626;
  --green: #22c55e;
  --green-dim: #16a34a;
  --text: #ededed;
  --text-dim: #b8bdc4;
  --text-faint: #6b7280;
  --radius: 16px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-weight: 800; font-size: 18px; letter-spacing: -0.3px; }
.brand span b { color: #fff; }
.brand span i { color: var(--green); font-style: normal; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
/* Canvas sits behind everything; if WebGL fails we still have this gradient. */
#hero-canvas {
  position: absolute; inset: 0;
  z-index: 0;
  background:
    radial-gradient(1000px 600px at 75% 15%, rgba(34, 197, 94, 0.14), transparent 60%),
    radial-gradient(800px 500px at 15% 85%, rgba(34, 197, 94, 0.07), transparent 60%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -2px;
  font-weight: 800;
  color: #fff;
}
h1 .accent { color: var(--green); }
/* The hard breaks in the headline are a desktop typesetting choice; on narrow
   screens they force awkward short lines, so let the text wrap naturally. */
@media (max-width: 560px) {
  h1 br { display: none; }
}
.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-dim);
  margin-top: 22px;
  max-width: 34ch;
}
.cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--green); color: #06210f; }
.btn-primary:hover { background: #2ee06a; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--bg-raised); }
.btn-ghost:hover { border-color: var(--green); }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-faint); }

/* ---------- phone frame + screenshot placeholders ---------- */
.phone {
  position: relative;
  width: 100%; max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  background: #050505;
  border: 10px solid #1c1c1c;
  border-radius: 38px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
}
.phone::before { /* speaker notch */
  content: "";
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 5px; border-radius: 100px;
  background: #2a2a2a; z-index: 3;
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Shown until a real screenshot is dropped in — see docs/screenshots/README.md */
.shot-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center;
  background:
    repeating-linear-gradient(45deg, #101010 0 12px, #141414 12px 24px);
  color: var(--text-faint);
}
.shot-placeholder .ph-icon { font-size: 30px; opacity: 0.5; }
.shot-placeholder .ph-label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.shot-placeholder .ph-hint { font-size: 11px; opacity: 0.7; }

/* ---------- gemini key steps ---------- */
.key-steps { display: flex; flex-direction: column; gap: 0; margin-top: 40px; }
.key-step {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--border);
}
.key-step:last-child { border-bottom: 1px solid var(--border); }
.key-step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: #06210f;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.key-step h3 { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.key-step p { color: var(--text-dim); font-size: 16px; }
.key-step code {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 7px; font-size: 14px; color: var(--green);
}
.assure {
  margin-top: 36px; padding: 20px 24px;
  border-left: 3px solid var(--green);
  background: rgba(34, 197, 94, 0.06);
  border-radius: 0 12px 12px 0;
}
.assure b { color: #fff; }

/* ---------- sections ---------- */
section { padding: 100px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.12; letter-spacing: -1.2px; font-weight: 800; color: #fff;
}
h2 + p { margin-top: 18px; color: var(--text-dim); font-size: 18px; }

/* problem section — the "aisle moment" */
.problem { background: var(--bg-raised); border-block: 1px solid var(--border); }
.quote {
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.3; font-weight: 700; color: #fff;
  letter-spacing: -0.8px;
  max-width: 20ch;
}
.quote .accent { color: var(--green); }
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 820px) { .problem-grid { grid-template-columns: 1fr; gap: 32px; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 40px; } }
.step { }
.step .num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green); color: #06210f;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; margin-bottom: 18px;
}
.step h3 { font-size: 21px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 16px; }
.step .phone { margin-top: 26px; max-width: 240px; }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: rgba(34, 197, 94, 0.45); transform: translateY(-4px); }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* retailers */
.retailers {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px;
}
.chip {
  border: 1px solid var(--border); background: var(--bg-raised);
  border-radius: 100px; padding: 8px 18px;
  font-size: 15px; color: var(--text-dim);
}

/* privacy */
.privacy { background: var(--bg-raised); border-block: 1px solid var(--border); }
.privacy-list { list-style: none; display: grid; gap: 18px; margin-top: 8px; }
.privacy-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 17px; color: var(--text-dim);
}
.privacy-list .tick {
  color: var(--green); font-weight: 800; flex: none; margin-top: 2px;
}
.privacy-list b { color: #fff; font-weight: 600; }
.privacy-note {
  margin-top: 30px; padding: 18px 22px;
  border-left: 3px solid var(--green);
  background: rgba(34, 197, 94, 0.06);
  border-radius: 0 12px 12px 0;
  font-size: 15px; color: var(--text-dim);
}

/* cta band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 16ch; margin: 0 auto; }
.cta-band .cta-row { justify-content: center; margin-top: 32px; }

/* footer */
footer {
  border-top: 1px solid var(--border);
  padding: 54px 0 40px;
  color: var(--text-faint); font-size: 14px;
}
.footer-grid {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  margin-bottom: 30px;
}
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); }
.credits { border-top: 1px solid var(--border); padding-top: 24px; line-height: 1.7; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
