/* ============================================================
   It Was Never You — marketing site
   Palette: pink #FE01AC · teal #17E0BC · navy #2233A8 · navy-deep #0E186F
   Surfaces: #1C2831 · #25353F · #2E3F4A
   Type: Bruno Ace SC (brand) · Space Grotesk (headings)
         Sora (body) · JetBrains Mono (data / kickers)
   ============================================================ */

@font-face {
  font-family: "Bruno Ace SC";
  src: url("../fonts/BrunoAceSC-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora.ttf") format("truetype-variations");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono.ttf") format("truetype-variations");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --pink: #fe01ac;
  --teal: #17e0bc;
  --navy: #2233a8;
  --navy-deep: #0e186f;

  --bg: #111a2c;
  --surface: #1c2831;
  --surface-2: #25353f;
  --surface-3: #2e3f4a;

  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  --ink: #eef3f5;
  --muted: #8b9aa6;
  --muted-2: #61707c;

  --display: "Bruno Ace SC", "Avenir Next", sans-serif;
  --heading: "Space Grotesk", "Helvetica Neue", sans-serif;
  --body: "Sora", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 20px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  /* page gradient + soft pink glow (top-center) + teal glow (bottom) */
  background-color: #0d1430;
  background-image:
    radial-gradient(58% 42% at 50% -2%, rgba(254, 1, 172, 0.16), transparent 70%),
    radial-gradient(66% 42% at 50% 102%, rgba(23, 224, 188, 0.12), transparent 70%),
    linear-gradient(180deg, #16212a 0%, #111a2c 58%, #0d1430 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection { background: var(--pink); color: #fff; }

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

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

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.nav-logo img { height: 58px; }
.nav-logo:hover { text-decoration: none; }
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--pink);
  border: none;
  border-radius: 28px;
  padding: 14px 28px;
  box-shadow: 0 12px 30px -8px rgba(254, 1, 172, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(254, 1, 172, 0.7);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 28px;
  padding: 13px 26px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-secondary:hover { text-decoration: none; border-color: var(--pink); background: rgba(255, 255, 255, 0.03); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 72px;
}
/* accent glow fields (page-level pink glow lives on body) */
.hero::before {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 51, 168, 0.42), transparent 65%);
  top: -240px; right: -180px;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 24, 111, 0.5), transparent 65%);
  bottom: -320px; left: -220px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero h1 {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -1px;
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--pink);
  white-space: nowrap;
}

.hero p.lede {
  margin: 22px 0 30px;
  font-size: 1.16rem;
  font-weight: 300;
  color: #c3d0d8;
  max-width: 34em;
}
.hero .hashtag {
  color: var(--pink);
  font-weight: 600;
}
.hero .brandname {
  font-family: var(--display);
  font-size: 0.82em;
  color: var(--ink);
}

.badge-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  padding: 10px 20px;
  color: #fff;
  line-height: 1.2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.appstore-badge:hover {
  text-decoration: none;
  border-color: var(--pink);
  box-shadow: 0 12px 30px -12px rgba(254, 1, 172, 0.6);
}
.appstore-badge .apple { font-size: 1.7rem; }
.appstore-badge small { display: block; font-size: 0.66rem; opacity: 0.75; font-family: var(--mono); letter-spacing: 0.02em; }
.appstore-badge strong { font-size: 1.02rem; font-weight: 600; }
.badge-note { font-size: 0.85rem; color: var(--muted); }

/* staggered load-in */
.hero h1, .hero .lede, .hero .badge-row, .hero-art {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero .lede { animation-delay: 0.12s; }
.hero .badge-row { animation-delay: 0.24s; }
.hero-art { animation-delay: 0.3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* hero art: polaroid swap */
.hero-art { position: relative; min-height: 440px; }
.polaroid {
  position: absolute;
  width: 240px;
  background: #f6f2ea;
  border-radius: 10px;
  padding: 12px 12px 44px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.polaroid .photo {
  height: 230px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.polaroid .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  display: block;
}
.polaroid .caption {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  text-align: center;
  font-family: "Bradley Hand", "Comic Sans MS", cursive;
  color: #444;
  font-size: 0.95rem;
}
.polaroid .caption .tm {
  font-family: var(--body);
  font-size: 0.72em;
  font-weight: 700;
  vertical-align: super;
}
.polaroid-before {
  top: 2%; left: 0;
  transform: rotate(-8deg);
}
.polaroid-before .caption { text-align: left; padding-left: 14px; }
.polaroid-before .photo { background: linear-gradient(160deg, #38464f, #232e36); }
.polaroid-after {
  top: 36%; left: 46%;
  transform: rotate(5deg);
  z-index: 2;
}
.polaroid-after .photo { background: linear-gradient(160deg, #1b2a7a, #0a1152); }
.polaroid img.mark { width: 68%; }

@media (max-width: 860px) {
  .hero-art { min-height: 340px; max-width: 460px; margin: 0 auto; }
}

/* ---------- slash divider ---------- */

.slash {
  height: 84px;
  position: relative;
  overflow: hidden;
}
.slash::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 50%;
  height: 4px;
  background: var(--teal);
  transform: rotate(-2.4deg);
  border-radius: 999px;
  opacity: 0.8;
}

/* ---------- sections ---------- */

section { padding: 72px 0; }

.kicker {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--teal);
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker--pink { color: var(--pink); }

h2 {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  letter-spacing: -0.5px;
  line-height: 1.14;
  margin-bottom: 14px;
  text-wrap: balance;
}
.section-lede { color: var(--muted); font-weight: 300; max-width: 42em; margin-bottom: 44px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* step cards */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.step:hover { transform: translateY(-5px); border-color: rgba(254, 1, 172, 0.45); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--pink);
  margin-bottom: 18px;
}
.step h3 { font-family: var(--heading); font-weight: 600; font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-weight: 300; font-size: 0.97rem; }

/* safety strip */
.safety { background: linear-gradient(180deg, transparent, rgba(34, 51, 168, 0.16) 30%, rgba(34, 51, 168, 0.16) 70%, transparent); }
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .safety-grid { grid-template-columns: 1fr; } }
.safety-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface);
}
.safety-card .icon {
  font-size: 1.4rem;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
}
.safety-card h3 { font-family: var(--heading); font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; color: var(--teal); }
.safety-card p { color: var(--muted); font-weight: 300; font-size: 0.95rem; }

/* pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 820px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  position: relative;
  transition: transform 0.25s ease;
}
.price-card:hover { transform: translateY(-5px); }
.price-card.feature { border-color: var(--pink); box-shadow: 0 0 44px rgba(254, 1, 172, 0.14); }
.price-card .tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--pink);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 4px 12px;
  text-transform: uppercase;
}
.price-card h3 { font-family: var(--heading); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.2px; margin-bottom: 10px; }
.price-card .credits { font-family: var(--heading); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.5px; }
.price-card .credits span { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; }
.price-card p { color: var(--muted); font-weight: 300; font-size: 0.92rem; margin-top: 10px; }
.free-callout {
  margin: 0 0 40px;
  border: 1px dashed rgba(23, 224, 188, 0.5);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(23, 224, 188, 0.05);
}
.free-callout .spark { font-size: 1.8rem; }
.free-callout strong { color: var(--teal); }
.free-callout p { color: var(--muted); font-weight: 300; font-size: 0.97rem; }

/* screenshots */
.shots { overflow: hidden; }
.shots-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 4px 26px;
  scroll-snap-type: x mandatory;
}
.shots-row img {
  height: 520px;
  border-radius: 28px;
  border: 1px solid var(--hairline-strong);
  scroll-snap-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.04rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--pink);
  font-size: 1.3rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-weight: 300; padding-top: 12px; max-width: 56em; }

/* ---------- inner pages (privacy / support) ---------- */

.page-head { padding: 72px 0 24px; }
.page-head h1 {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.5px;
}
.page-head .updated { color: var(--muted); font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; margin-top: 12px; }
.prose { padding-bottom: 96px; }
.prose h2 { font-family: var(--heading); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.3px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); font-weight: 300; max-width: 62em; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 0 60px;
  font-size: 0.9rem;
  color: var(--muted);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.04em; }
.foot-logo img { height: 28px; opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
