/* Reelift — marketing site
   Design system mirrors the app (viral-app/Theme/Theme.swift):
   bg #000, flat surfaces, duotone accents — primary #FE2C55, secondary #25F4EE,
   amber #FFB84D. "cyan = good" is the identity twist. Type: Space Grotesk. */

:root {
  --bg: #000000;
  --surface: #121214;
  --surface-hi: #1c1c20;
  --sheet: #212124;

  --primary: #fe2c55; /* CTA / "needs work" */
  --secondary: #25f4ee; /* positive / links / good */
  --amber: #ffb84d; /* okay */

  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.55);
  --text-3: rgba(255, 255, 255, 0.32);
  --separator: rgba(255, 255, 255, 0.08);

  --radius-card: 14px;
  --radius-btn: 8px;
  --radius-sheet: 18px;

  --maxw: 1120px;
  --pad: 22px;

  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient duotone glow behind the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 18% 0%, rgba(254, 44, 85, 0.16), transparent 60%),
    radial-gradient(55% 45% at 90% 8%, rgba(37, 244, 238, 0.12), transparent 60%);
  pointer-events: none;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

.gradient-text {
  background: linear-gradient(100deg, #fff 0%, #ffd5dd 35%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--separator);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-cta {
  padding: 9px 18px;
  border-radius: var(--radius-btn);
  background: var(--primary);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
}
.nav-cta:hover {
  text-decoration: none !important;
  filter: brightness(1.08);
}
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 0.15s ease, transform 0.12s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--surface-hi);
  color: var(--text);
  border-color: var(--separator);
}
.btn-ghost:hover {
  background: var(--sheet);
}

/* App Store badge button */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px 13px 20px;
  border-radius: 12px;
  background: #fff;
  color: #000;
}
.appstore:hover {
  text-decoration: none;
  filter: brightness(0.94);
}
.appstore svg {
  width: 26px;
  height: 26px;
}
.appstore .as-top {
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  opacity: 0.8;
}
.appstore .as-big {
  font-size: 19px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
  position: relative;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 4.4vw, 44px);
}
.section-head p {
  color: var(--text-2);
  font-size: 18px;
  margin: 18px 0 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 68px);
}
.hero p.lede {
  color: var(--text-2);
  font-size: 20px;
  margin: 24px 0 34px;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note {
  margin: 22px 0 0;
  color: var(--text-3);
  font-size: 14px;
}
.hero-note b {
  color: var(--secondary);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero-visual {
    order: -1;
  }
}

/* ---------- Device frame (real app screenshots) ---------- */
.device {
  position: relative;
  border-radius: 42px;
  padding: 8px;
  margin: 0;
  background: linear-gradient(150deg, #313137, #15151a 45%, #050506);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 30px 70px -22px rgba(0, 0, 0, 0.85),
    0 2px 8px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.14);
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  background: #000;
}

/* Hero device: shown exactly as the source screenshot, static & crisp,
   over a soft colored glow. No motion = no rasterization softness. */
.hero-device {
  width: 312px;
  margin: 0 auto;
}
.hero-device::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(42% 38% at 50% 26%, rgba(254, 44, 85, 0.36), transparent 70%),
    radial-gradient(48% 42% at 50% 76%, rgba(37, 244, 238, 0.26), transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}

/* ---------- Showcase: a side-by-side horizontal slider ---------- */
.showcase { overflow: hidden; }
.slider-wrap {
  position: relative;
  margin-top: 30px;
}
.slider {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 22px clamp(20px, 7vw, 120px) 30px;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slide .device {
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.slide:hover .device { transform: translateY(-8px); }
.slide .cap {
  margin-top: 16px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 13.5px;
}
/* slider arrows */
.slider-btn {
  position: absolute;
  top: calc(50% - 16px);
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.82);
  border: 1px solid var(--separator);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.slider-btn:hover {
  background: var(--surface-hi);
  border-color: rgba(255, 255, 255, 0.22);
}
.slider-btn.prev { left: clamp(8px, 2.5vw, 40px); }
.slider-btn.next { right: clamp(8px, 2.5vw, 40px); }

/* ---------- Scroll-reveal helper (JS only; opacity/translate, never images) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* lead with the headline on mobile, screenshot follows */
@media (max-width: 900px) {
  .hero-visual { order: 0; }
}
@media (max-width: 860px) {
  .hero-device { width: 270px; }
  .slider { padding: 20px 20px 26px; gap: 20px; }
  .slide { width: 70vw; max-width: 260px; }
  /* on touch screens the swipe is the control; hide arrows */
  .slider-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transition: none; }
  .slide .device { transition: none; }
  .slider { scroll-behavior: auto; }
}

/* retained: used by the 404 page's big number */
.score-big {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--secondary);
}

/* ---------- Logos / dimension strip ---------- */
.strip {
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
  padding: 26px 0;
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 40px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
}
.strip-inner b {
  color: var(--text-2);
  font-weight: 600;
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius-card);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}
.card .ic {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: rgba(37, 244, 238, 0.1);
}
.card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.card p {
  color: var(--text-2);
  font-size: 15px;
  margin: 0;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 920px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  position: relative;
}
.step .num {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--primary);
  margin-bottom: 14px;
}
.step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.step p {
  color: var(--text-2);
  font-size: 14px;
  margin: 0;
}

/* The fix-loop callout */
.loop {
  background: linear-gradient(150deg, rgba(254, 44, 85, 0.1), rgba(37, 244, 238, 0.08));
  border: 1px solid var(--separator);
  border-radius: 20px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
  align-items: center;
}
@media (max-width: 820px) {
  .loop {
    grid-template-columns: 1fr;
    padding: 30px;
  }
}
.loop h2 {
  font-size: clamp(26px, 4vw, 38px);
}
.loop p {
  color: var(--text-2);
  font-size: 17px;
  margin: 16px 0 0;
}
.loop-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
}
.chip.on {
  color: var(--primary);
  border-color: rgba(254, 44, 85, 0.4);
}
.chip.up {
  color: var(--secondary);
  border-color: rgba(37, 244, 238, 0.4);
}
.arrow {
  align-self: center;
  color: var(--text-3);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
details {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius-card);
  padding: 4px 22px;
}
details[open] {
  border-color: rgba(255, 255, 255, 0.16);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  color: var(--text-3);
  font-size: 24px;
  font-weight: 400;
  transition: transform 0.2s ease;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  margin: 0 0 18px;
  color: var(--text-2);
  font-size: 15.5px;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: linear-gradient(160deg, rgba(254, 44, 85, 0.14), rgba(37, 244, 238, 0.1));
  border: 1px solid var(--separator);
  border-radius: 24px;
  padding: 64px 30px;
}
.cta-band h2 {
  font-size: clamp(28px, 4.6vw, 46px);
  max-width: 640px;
  margin: 0 auto 18px;
}
.cta-band p {
  color: var(--text-2);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto 30px;
}
.cta-band .hero-cta {
  justify-content: center;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--separator);
  padding: 56px 0 40px;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.foot-brand {
  max-width: 320px;
}
.foot-brand p {
  color: var(--text-3);
  font-size: 14px;
  margin: 14px 0 0;
}
.foot-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.foot-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin: 0 0 14px;
}
.foot-col a {
  display: block;
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 10px;
}
.foot-col a:hover {
  color: var(--text);
  text-decoration: none;
}
.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--separator);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 13.5px;
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 60px 0 90px;
}
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.legal h1 {
  font-size: clamp(32px, 5vw, 46px);
  margin-bottom: 12px;
}
.legal .updated {
  color: var(--text-3);
  font-size: 14px;
  margin: 0 0 14px;
}
.legal .toc {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  margin: 28px 0 40px;
}
.legal .toc h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 0 0 14px;
}
.legal .toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 36px;
}
@media (max-width: 620px) {
  .legal .toc ol {
    columns: 1;
  }
}
.legal .toc li {
  margin-bottom: 8px;
  font-size: 14.5px;
}
.legal .toc a {
  color: var(--text-2);
}
.legal h2 {
  font-size: 24px;
  margin: 46px 0 14px;
  scroll-margin-top: 84px;
}
.legal h3 {
  font-size: 18px;
  margin: 26px 0 10px;
}
.legal p,
.legal li {
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
}
.legal ul,
.legal ol.body {
  padding-left: 22px;
}
.legal li {
  margin-bottom: 9px;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}
.legal th,
.legal td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--separator);
  vertical-align: top;
  color: rgba(255, 255, 255, 0.74);
}
.legal th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
.legal .callout {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-left: 3px solid var(--secondary);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--text-2);
  font-size: 15px;
}
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 30px;
}
.legal strong {
  color: var(--text);
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 560px;
  margin: 22px 0 0;
  display: grid;
  gap: 18px;
}
.contact-form .field {
  display: grid;
  gap: 8px;
}
.contact-form label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius-btn);
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.15s ease;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-3);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--secondary);
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.contact-form button {
  justify-self: start;
}

/* utility */
.center {
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
