/* ViceSnaps website. Colours mirror ViceSnaps/Theme.swift. */

:root {
  --night: #0d0716;
  --bg-top: #170d29;
  --bg-bottom: #08050f;
  --card: #1c1530;
  --card-hi: #241b3b;
  --line: rgba(255, 255, 255, 0.09);
  --cream: #fff1e6;
  --text: #ece3f4;
  --muted: #b3a4c7;
  --pink: #ff298c;
  --cyan: #26ebf2;
  --purple: #8c3df2;
  --sunset: #ff8533;
  --plum: #411f3c;
  --sunrise: linear-gradient(90deg, #ff5199, #ffb15d);
  --neon: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));

  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 32px);
  --radius: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--night) linear-gradient(var(--bg-top), var(--bg-bottom) 900px) no-repeat;
  color: var(--text);
  font: 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7ff4f8; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--cream); line-height: 1.15; margin: 0; text-wrap: balance; }
[id] { scroll-margin-top: 80px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--cream); color: var(--night); font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Logo ----------
   The sunset strip from the app: one image (1667x300), scaled by height. */
.logo {
  --h: 40px;
  display: inline-block;
  width: calc(var(--h) * 5.557);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1667 / 300;
  flex: none;
}
.logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--h) * 0.22);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 7, 22, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.site-header .logo { --h: 40px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--cream); }
.nav a[aria-current="page"] { color: var(--cyan); }
@media (max-width: 560px) { .nav .wide-only { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  font: 700 17px/1.1 var(--font-display);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--sunrise); color: var(--plum); box-shadow: 0 8px 30px -10px rgba(255, 81, 153, 0.7); }
.btn-primary:hover { color: var(--plum); transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(255, 81, 153, 0.9); }
.btn-outline { color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); }
.btn-outline:hover { color: var(--cream); background: rgba(255, 241, 230, 0.08); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.availability {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0; color: var(--muted); font-size: 15px; font-weight: 600;
}
.availability::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 72px) 0 0;
  background:
    radial-gradient(55% 60% at 78% 45%, rgba(255, 41, 140, 0.16), transparent 70%),
    radial-gradient(45% 55% at 12% 15%, rgba(140, 61, 242, 0.22), transparent 70%);
}
.hero::before {
  /* the faint dot grid from the welcome artwork's sky */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(#000, transparent 75%);
  mask-image: linear-gradient(#000, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  /* the flexible first and last rows soak up the artwork's extra height,
     so the text stays together and vertically centred beside it */
  grid-template-rows: 1fr repeat(5, auto) 1fr;
  grid-template-areas:
    ".    art"
    "logo art"
    "tag  art"
    "lead art"
    "cta  art"
    "note art"
    ".    art";
  column-gap: clamp(24px, 5vw, 64px);
}
.hero-logo { grid-area: logo; align-self: end; margin: 0 0 22px; }
.hero-logo .logo { --h: clamp(64px, 9vw, 96px); }
.tagline {
  grid-area: tag;
  margin: 0 0 20px;
  color: #fff;
  font: 600 clamp(12px, 1.4vw, 15px)/1.4 var(--font-body);
  letter-spacing: 0.27em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 41, 140, 0.65);
}
.lead {
  grid-area: lead;
  margin: 0 0 28px;
  max-width: 34ch;
  color: var(--text);
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.55;
}
.hero .actions { grid-area: cta; margin-bottom: 18px; }
.hero .availability { grid-area: note; align-self: start; }
.hero-art {
  grid-area: art;
  align-self: end;
  justify-self: center;
  width: 100%;
  max-width: 480px;
  /* fade the sunset's edges into the night, as on the welcome screen */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 90%, transparent);
}
.hero-art img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

/* Pink and cyan neon lines, like the boulevard at the bottom of the artwork */
.horizon {
  position: relative;
  height: 9px;
  margin-top: -2px;
  background:
    linear-gradient(var(--pink), var(--pink)) top / 100% 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom / 100% 2px no-repeat;
  filter: drop-shadow(0 0 6px rgba(255, 41, 140, 0.7)) drop-shadow(0 0 10px rgba(38, 235, 242, 0.35));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

@media (max-width: 859px) {
  .hero { text-align: center; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "logo" "tag" "art" "lead" "cta" "note";
    justify-items: center;
  }
  .hero-logo { margin-bottom: 18px; }
  .tagline { margin-bottom: 4px; }
  .hero-art { max-width: 320px; margin-bottom: 8px; }
  .lead { margin-inline: auto; }
  .hero .actions { width: 100%; max-width: 420px; flex-direction: column; }
  .hero .availability { justify-self: center; margin-bottom: 28px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 640px; margin: 0 0 clamp(32px, 5vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font: 700 13px/1.2 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-head h2, .page-head h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.01em; }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: clamp(17px, 1.7vw, 19px); }

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 959px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .features { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature h3 { margin: 18px 0 8px; font-size: 20px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.feature { transition: transform 0.2s ease, border-color 0.2s ease; }
.feature:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.16); }

.icon {
  --c: var(--cyan);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 0 22px -6px var(--c);
}
.icon svg { width: 24px; height: 24px; }
.icon.pink { --c: var(--pink); }
.icon.sunset { --c: var(--sunset); }
.icon.purple { --c: #b27dff; }

/* ---------- Screenshots ---------- */
.shots {
  display: flex;
  gap: 16px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 6px var(--gutter) 22px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { display: none; }
.shots li { flex: 0 0 min(66vw, 250px); scroll-snap-align: center; }
.shots img {
  width: 100%;
  aspect-ratio: 1284 / 2778;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 24px 50px -24px rgba(140, 61, 242, 0.7);
}
.swipe-hint { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
@media (min-width: 1100px) {
  .shots {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 6px 0 0;
    overflow: visible;
  }
  .shots li:nth-child(even) { transform: translateY(28px); }
  .swipe-hint { display: none; }
}

/* ---------- Closing call to action ---------- */
.cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(36px, 6vw, 56px) clamp(20px, 5vw, 48px);
  text-align: center;
  border-radius: 28px;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(255, 41, 140, 0.22), transparent 70%),
    linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--line);
}
.cta .app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 16px 40px -12px rgba(255, 41, 140, 0.8); }
.cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.cta p { margin: 0; color: var(--muted); max-width: 42ch; }
.cta .actions { justify-content: center; }
@media (max-width: 480px) { .cta .actions { flex-direction: column; width: 100%; } }

/* ---------- Document pages (privacy, terms, support) ---------- */
.page-head { padding: clamp(40px, 7vw, 72px) 0 clamp(24px, 4vw, 36px); }
.page-head .meta { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.page-head .intro { margin: 16px 0 0; font-size: clamp(18px, 1.9vw, 20px); color: var(--text); }

.summary { margin-bottom: 36px; }
.summary h2 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.summary li { display: flex; gap: 12px; align-items: flex-start; }
.summary li svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--cyan); }

.prose { padding-bottom: clamp(56px, 8vw, 96px); }
.prose h2 {
  margin: 2.2em 0 0.5em;
  font-size: 21px;
  font-weight: 700;
  color: var(--cream);
  scroll-margin-top: 84px;
}
.prose h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: var(--neon);
}
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--pink); }
.prose strong { color: var(--cream); }

/* Support */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-bottom: 44px;
}
.contact h2 { font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.contact p { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .contact .btn { width: 100%; } }

.faq { display: grid; gap: 12px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font: 700 17px/1.35 var(--font-display);
  color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  margin-top: -4px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details > div p { margin: 0; }
.faq summary:focus-visible { outline-offset: -2px; border-radius: var(--radius); }

.also { margin: 36px 0 0; color: var(--muted); }

/* 404 */
.lost { padding: clamp(56px, 10vw, 120px) 0; text-align: center; }
.lost .code {
  margin: 0;
  font: 800 clamp(88px, 18vw, 150px)/1 var(--font-display);
  background: var(--neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 41, 140, 0.45));
}
.lost h1 { margin: 12px 0 10px; font-size: clamp(26px, 4vw, 36px); }
.lost p { margin: 0 auto 28px; color: var(--muted); max-width: 40ch; }
.lost .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); padding: 44px 0 36px; font-size: 15px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.footer-brand { max-width: 420px; }
.footer-brand .logo { --h: 36px; margin: 4px 0 16px; }
.footer-brand p { margin: 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--cyan); }
.legal-line {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Inline line icons */
svg.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
