/* ==========================================================================
   ScreenCandy marketing site
   Design system mirrors the "Becoming.app" reference (Framer / DM Sans):
   white canvas, weight-400 headings with tight negative tracking, dark ink
   headings over grey body copy, pill CTAs, 30px cards. Accent adapted from
   the reference green to ScreenCandy raspberry.
   ========================================================================== */
:root {
  --bg: #ffffff;
  --ink: #0d0d0d;          /* section headings */
  --ink-hero: #1f2937;     /* hero H1 (matches reference) */
  --muted: #7a7a7a;        /* body copy */
  --muted-2: #9aa0ab;
  --accent: #e0407f;       /* raspberry (reference used #05aa53 green) */
  --accent-deep: #c62f6a;
  --accent-soft: #fce4ef;
  --cream: rgba(243, 240, 231, 0.35);
  --card: #ffffff;
  --line: #ececec;
  --line-strong: #e2e2e2;
  --dark: #0d0d0d;
  --maxw: 1200px;
  --pad: 24px;
  --r-card: 30px;
  --r-band: 24px;
  --r-pill: 100px;
  --ease: cubic-bezier(0.44, 0, 0.56, 1);
  --shadow-shot: 0 40px 80px -24px rgba(17, 20, 40, 0.35);
  --shadow-float: 0 18px 44px -18px rgba(17, 20, 40, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- shared type ---------- */
h1, h2, h3, h4 { font-weight: 400; color: var(--ink); }
.eyebrow {
  font-size: 16px; line-height: 1.5; letter-spacing: -0.01em;
  color: var(--accent); font-weight: 400;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(224, 64, 127, 0.6); }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(224, 64, 127, 0.7); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.btn-sm { padding: 10px 22px; font-size: 15px; }

/* ---------- nav ---------- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 40; }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 26px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 132px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -120px; width: 900px; height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(224, 64, 127, 0.14), rgba(224, 64, 127, 0) 70%);
  z-index: -1; pointer-events: none;
}
.hero-icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 20px 40px -16px rgba(224, 64, 127, 0.55); }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 12px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line-strong);
  box-shadow: 0 6px 16px -8px rgba(17, 20, 40, 0.18);
  font-size: 13px; color: #333; margin-bottom: 26px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: 48px; line-height: 1.1667; letter-spacing: -0.03em;
  color: var(--ink-hero); max-width: 720px; margin: 0 auto 22px;
}
.hero .lede { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 46ch; margin: 0 auto 30px; }
.hero-ctas { display: inline-flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { font-size: 14px; color: var(--muted-2); margin-top: 16px; }

/* ---------- hero visual (screenshot + floating cards) ---------- */
.hero-stage { position: relative; max-width: 760px; margin: 68px auto 0; padding-bottom: 10px; }
.hero-shot {
  width: min(310px, 76vw); margin: 0 auto; border-radius: 30px;
  box-shadow: var(--shadow-shot); position: relative; z-index: 2;
}
.float {
  position: absolute; z-index: 3; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-float); padding: 14px 16px; text-align: left;
}
.float-before { top: 28px; left: max(0px, calc(50% - 372px)); width: 176px; padding: 12px; }
.float-before .mini { border-radius: 10px; width: 100%; display: block; background: #000; }
.float-before .cap { font-size: 12px; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.float-before .cap b { color: var(--ink); font-weight: 500; }
.float-flavours { bottom: 40px; left: max(6px, calc(50% - 356px)); width: 210px; }
.float-flavours .ttl { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.swatches span { aspect-ratio: 1; border-radius: 7px; }
.float-lock { top: 96px; right: max(0px, calc(50% - 368px)); width: 196px; display: flex; gap: 11px; align-items: flex-start; }
.float-lock .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.float-lock .ic svg { width: 17px; height: 17px; }
.float-lock b { font-size: 13px; font-weight: 500; display: block; color: var(--ink); }
.float-lock p { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.float-steps { bottom: 8px; right: max(10px, calc(50% - 320px)); display: flex; gap: 7px; align-items: center; padding: 11px 16px; }
.float-steps .st { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.float-steps .st.on { color: var(--accent); }
.float-steps .sep { color: var(--line-strong); }

/* ---------- section header ---------- */
.section { padding: 96px 0 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 { font-size: 44px; line-height: 1.2; letter-spacing: -0.03em; }

/* ---------- feature card grid (3-up) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 24px 24px 34px; display: flex; flex-direction: column;
}
.fcard .art {
  border-radius: 20px; background: #f6f5f2; border: 1px solid var(--line);
  aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: flex-end;
  justify-content: center; margin-bottom: 26px; position: relative;
}
.fcard .art img { width: 62%; border-radius: 16px 16px 0 0; box-shadow: 0 20px 40px -20px rgba(17, 20, 40, 0.5); }
.fcard .art.swatch-art { align-items: center; padding: 24px; }
.fcard .art.swatch-art .swatches { width: 100%; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fcard .art.swatch-art .swatches span { border-radius: 12px; }
.fcard h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.05em; padding: 0 6px; }
.fcard p { color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: 10px; padding: 0 6px; }

/* ---------- wide card row (2-up) ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.wcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
}
.wcard .copy h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.05em; }
.wcard .copy p { color: var(--muted); font-size: 16px; margin-top: 10px; }
.wcard.solo { grid-template-columns: 1fr; }

/* platform size list (mirrors reference "article list") */
.plist { display: flex; flex-direction: column; gap: 10px; }
.prow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #faf9f7; border: 1px solid var(--line); border-radius: 14px; padding: 12px 15px;
}
.prow .name { font-size: 14px; font-weight: 500; color: var(--ink); }
.prow .dim { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* privacy checklist (mirrors reference "chat" panel) */
.plock { display: flex; flex-direction: column; gap: 10px; }
.pchip {
  display: flex; align-items: center; gap: 10px;
  background: #faf9f7; border: 1px solid var(--line); border-radius: 14px; padding: 12px 15px;
  font-size: 14px; color: var(--ink); font-weight: 500;
}
.pchip .tick { width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.pchip .tick svg { width: 12px; height: 12px; }

/* ---------- free / pro row ---------- */
.grid-2.plain { margin-top: 24px; }
.mini-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 40px; }
.mini-card .k { font-size: 16px; color: var(--accent); font-weight: 500; margin-bottom: 12px; }
.mini-card h4 { font-size: 24px; letter-spacing: -0.05em; line-height: 1.2; margin-bottom: 10px; }
.mini-card p { color: var(--muted); font-size: 16px; }

/* ---------- closer ---------- */
.closer { padding: 110px 0 96px; }
.closer-inner {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-band);
  padding: 76px 40px; text-align: center;
}
.closer-inner .hero-icon { width: 72px; height: 72px; margin-bottom: 22px; }
.closer h2 { font-size: 44px; line-height: 1.1667; letter-spacing: -0.03em; color: var(--ink-hero); max-width: 680px; margin: 0 auto 20px; }
.closer p { color: var(--muted); font-size: 18px; max-width: 42ch; margin: 0 auto 30px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.footer .brand { font-size: 16px; }
.footer .brand img { width: 26px; height: 26px; }
.footer nav { display: flex; gap: 22px; font-size: 15px; }
.footer nav a { color: var(--muted); }
.footer nav a:hover { color: var(--ink); }
.footer .legal { font-size: 13px; color: var(--muted-2); width: 100%; text-align: center; margin-top: 6px; line-height: 1.6; }

/* ---------- text pages ---------- */
.page { padding: 150px var(--pad) 90px; }
.page h1 { font-size: 44px; line-height: 1.1667; letter-spacing: -0.03em; margin-bottom: 22px; color: var(--ink-hero); }
.page h2 { font-size: 24px; letter-spacing: -0.03em; margin: 40px 0 12px; }
.page h3 { font-size: 18px; letter-spacing: -0.02em; margin: 26px 0 8px; }
.page p, .page li { color: #4a4a4a; font-size: 16.5px; line-height: 1.62; }
.page p { margin-bottom: 12px; }
.page ul { padding-left: 20px; margin: 12px 0 18px; }
.page li { margin-bottom: 8px; }
.page a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- reveal motion (Framer-style: fade + rise) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .float-before, .float-lock { display: none; }
  .float-flavours { left: 2px; bottom: 24px; }
  .float-steps { right: 2px; }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .wcard { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 76px 0 0; }
  .section-head { margin-bottom: 40px; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; }
  .hero { padding: 116px 0 20px; }
  .hero h1 { font-size: 32px; line-height: 1.25; letter-spacing: -0.05em; }
  .hero .lede { font-size: 16px; }
  .section-head h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.03em; }
  .closer h2 { font-size: 30px; }
  .page h1 { font-size: 32px; }
  .float { display: none; }
  .hero-stage { margin-top: 44px; }
  .hero-shot { width: min(280px, 82vw); }
  .wcard, .mini-card, .closer-inner { padding: 30px 24px; }
  .nav-inner { padding: 20px var(--pad); }
  .nav-inner .btn { display: none; }
  .footer-inner { justify-content: center; text-align: center; }
}
