/* StreakParty marketing site — palette mirrors frontend/tailwind.config.ts */

:root {
  --primary-100: #ffedd5;
  --primary-200: #fed7aa;
  --primary-300: #fdba74;
  --primary-400: #fb923c;
  --primary-500: #f97316;
  --primary-600: #ea580c;
  --primary-700: #c2410c;
  --primary-900: #7c2d12;
  --primary-950: #431407;

  --neutral-50: #fafaf9;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-400: #a8a29e;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --neutral-950: #0c0a09;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--neutral-950);
  color: var(--neutral-200);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary-400);
  text-decoration: none;
}

a:hover {
  color: var(--primary-300);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 9, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-800);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 800;
  font-size: 20px;
  color: var(--neutral-50);
}

.brand:hover {
  color: var(--neutral-50);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--neutral-300);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--neutral-50);
}

/* Sized here rather than inline on each page, so the nav can be tuned for narrow
   screens in one place. `flex-shrink: 0` keeps the label on one line — the button
   is the last thing that should give way when the row runs out of room. */
.nav-links a.btn {
  flex-shrink: 0;
  padding: 8px 18px;
  font-size: 14px;
  color: #fff;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  color: #fff;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(249, 115, 22, 0.5);
}

.btn-outline {
  border: 1px solid var(--neutral-700);
  color: var(--neutral-200);
  background: rgba(41, 37, 36, 0.5);
}

.btn-outline:hover {
  border-color: var(--primary-500);
  color: var(--neutral-50);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(249, 115, 22, 0.35), transparent),
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(194, 65, 12, 0.25), transparent),
    var(--neutral-950);
  padding: 88px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  color: var(--neutral-50);
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--primary-300), var(--primary-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  margin: 20px 0 32px;
  font-size: 19px;
  color: var(--neutral-300);
  max-width: 46ch;
}

/* ---------- Store badges ---------- */

.badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.badges.center {
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 10, 9, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.15;
  text-align: left;
  backdrop-filter: blur(4px);
}

.badge small {
  display: block;
  font-weight: 400;
  font-size: 11.5px;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.badge-logo {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

/* ---------- Phone mockup ---------- */

.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone-shot {
  display: block;
  width: clamp(340px, 40vw, 520px);
  max-width: 100%;
  height: auto;
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--neutral-900);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  color: var(--primary-400);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--neutral-50);
  font-weight: 800;
  margin: 10px 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--neutral-400);
  font-size: 17px;
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--neutral-900);
  border: 1px solid var(--neutral-800);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.section.alt .feature {
  background: var(--neutral-950);
}

.feature:hover {
  border-color: var(--primary-700);
  transform: translateY(-2px);
}

.feature .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature h3 {
  color: var(--neutral-50);
  font-size: 18px;
  margin-bottom: 8px;
}

.feature p {
  color: var(--neutral-400);
  font-size: 15px;
}

/* ---------- Screenshot showcase ---------- */

/* Each showcase row carries its own headline, so the section only needs a
   marker at the top — not a full head with a standfirst under it. */
.section-head.tight {
  margin-bottom: 40px;
}

/* One claim per screen, alternating sides. Deliberately three rows, not a
   gallery: the screenshots are evidence for a sales line, not an exhibit. */
.showcase {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.showcase:last-child {
  margin-bottom: 0;
}

.showcase.flip .showcase-media {
  order: 2;
}

.showcase-media {
  display: flex;
  justify-content: center;
}

/* The glow sits behind the phone so a near-black screenshot doesn't read as a
   hole punched in a near-black page. */
.showcase-media img {
  width: 292px;
  max-width: 100%;
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--neutral-800);
  background: var(--neutral-950);
  box-shadow:
    0 0 70px -10px rgba(249, 115, 22, 0.28),
    0 22px 54px rgba(0, 0, 0, 0.6);
}

.showcase-copy h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--neutral-50);
  letter-spacing: -0.015em;
  margin: 10px 0 14px;
}

.showcase-copy > p {
  color: var(--neutral-300);
  font-size: 17px;
  max-width: 48ch;
}

.showcase-copy .eyebrow {
  color: var(--primary-400);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.ticks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--neutral-400);
  font-size: 15.5px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--primary-500);
  border-bottom: 2.5px solid var(--primary-500);
  transform: rotate(-45deg);
}

.ticks strong {
  color: var(--neutral-200);
  font-weight: 600;
}

/* Stops a headline breaking after the hyphen in "47-day". */
.nowrap {
  white-space: nowrap;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 0 12px;
}

.step .num {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}

.step h3 {
  color: var(--neutral-50);
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  color: var(--neutral-400);
  font-size: 15px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-900));
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin-bottom: 28px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary-600);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.cta-band .btn-primary:hover {
  color: var(--primary-700);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--neutral-800);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer .brand {
  font-size: 17px;
}

.footer .brand img {
  width: 26px;
  height: 26px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--neutral-400);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--neutral-50);
}

.footer .copyright {
  color: var(--neutral-600);
  font-size: 13px;
  width: 100%;
  margin-top: 8px;
}

/* ---------- Legal / prose pages ---------- */

.page-hero {
  background:
    radial-gradient(ellipse 70% 90% at 50% -30%, rgba(249, 115, 22, 0.25), transparent),
    var(--neutral-950);
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--neutral-800);
}

.page-hero h1 {
  color: var(--neutral-50);
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-hero .updated {
  color: var(--neutral-500);
  font-size: 14px;
  margin-top: 10px;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 88px;
}

.prose h2 {
  color: var(--neutral-50);
  font-size: 22px;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  color: var(--neutral-100, #f5f5f4);
  font-size: 17px;
  margin: 26px 0 8px;
}

.prose p {
  margin-bottom: 14px;
  color: var(--neutral-300);
  font-size: 16px;
}

.prose ul {
  margin: 0 0 14px 22px;
  color: var(--neutral-300);
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--neutral-50);
}

.callout {
  background: var(--neutral-900);
  border: 1px solid var(--neutral-800);
  border-left: 3px solid var(--primary-500);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
}

.callout p {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero {
    padding: 56px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 18px;
  }

  /* The nav is a single 64px row with no hamburger, so links don't get to wrap —
     anything marked hide-sm is carried by the footer on every page instead. */
  .nav-links a.hide-sm {
    display: none;
  }

  /* Stacked: the phone leads, the copy follows — and `flip` stops applying,
     so every row reads top-to-bottom in the same order. */
  .showcase {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 72px;
  }

  .showcase.flip .showcase-media {
    order: 0;
  }

  .showcase-media img {
    width: min(76vw, 300px);
  }
}

/* A 360px phone leaves ~312px between the container's padding — brand + one link
   + the button only fit once all three are trimmed. */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .brand {
    font-size: 17px;
    gap: 8px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .nav-links a.btn {
    padding: 8px 14px;
  }
}

/* Below ~400px (SE, fold covers) even one text link plus the button overruns the
   row — the brand is the link home and the footer carries the rest. */
@media (max-width: 400px) {
  .nav-links a:not(.btn) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .feature {
    transition: none;
  }

  .feature:hover {
    transform: none;
  }
}
