/* Super Cat Match — supercatmatch.com
   Palette mirrors the app's AppColors.swift so the site reads as the same product. */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900&display=swap');

:root {
  --ground-top:   #2A1240;
  --ground-mid:   #1C0C2E;
  --ground-end:   #0E0619;
  --glow:         #8530B8;

  --cream:        #FDF3E3;
  --muted:        #BCA9D4;
  --dim:          #8E7CA8;

  --gold-top:     #FFD98A;
  --gold-bottom:  #E8A83C;
  --gold-ink:     #3A1C08;

  --orange-start: #FF9900;
  --orange-end:   #FF6600;

  --glass:        rgba(255, 238, 214, 0.085);
  --glass-strong: rgba(255, 238, 214, 0.13);
  --rim:          rgba(255, 232, 200, 0.20);
  --rim-strong:   rgba(255, 232, 200, 0.34);

  --radius:  20px;
  --wrap:    1120px;
}

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

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--cream);
  background: var(--ground-end);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* The app ground: a violet ramp under one soft bloom near the top.
   Fixed so the bloom stays put while the page scrolls past it. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120vw 90vh at 50% -12%,
      rgba(133, 48, 184, 0.55), rgba(133, 48, 184, 0.12) 45%, transparent 70%),
    linear-gradient(var(--ground-top), var(--ground-mid) 55%, var(--ground-end));
  background-color: var(--ground-end);
}

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

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

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

::selection { background: rgba(255, 217, 138, 0.3); }

:focus-visible {
  outline: 3px solid var(--gold-top);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(20, 9, 34, 0.72);
  border-bottom: 1px solid rgba(255, 232, 200, 0.10);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--cream); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
.brand span { font-size: 1.05rem; letter-spacing: -0.01em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
/* :not(.btn) so the header CTA keeps its own white — a bare `.nav a` rule
   outranks `.btn-app` and was tinting the button text muted lavender. */
.nav a:not(.btn) { color: var(--muted); font-weight: 700; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--cream); text-decoration: none; }

@media (max-width: 760px) {
  .nav .hide-sm { display: none; }
  .site-header .wrap { height: 62px; }
}

/* At 375px the wordmark plus the CTA overruns the bar and clips the button,
   so both give up a little room rather than one of them disappearing. */
@media (max-width: 520px) {
  .site-header .wrap { gap: 10px; padding: 0 16px; }
  .brand img { width: 30px; height: 30px; }
  .brand span { font-size: 0.95rem; }
  .nav { gap: 12px; }
  .btn-sm { padding: 9px 14px; font-size: 0.86rem; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-app {
  background: linear-gradient(90deg, var(--orange-start), var(--orange-end));
  color: #fff;
  box-shadow: 0 6px 26px rgba(255, 122, 0, 0.42);
}
.btn-app:hover { box-shadow: 0 10px 34px rgba(255, 122, 0, 0.58); }
.btn-app svg { width: 20px; height: 20px; fill: currentColor; }

.btn-ghost {
  background: var(--glass-strong);
  color: var(--cream);
  border: 1px solid var(--rim);
}
.btn-ghost:hover { background: rgba(255, 238, 214, 0.18); }

.btn-sm { padding: 10px 18px; font-size: 0.92rem; }

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

.hero { padding: 76px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 64px;
  align-items: center;
}

/* The wordmark, rebuilt from the app's home screen: a gold ribbon
   carrying "Super", tilted, sitting above the cream title. */
.wordmark { margin-bottom: 22px; }

.ribbon {
  display: inline-block;
  background: linear-gradient(var(--gold-top), var(--gold-bottom));
  color: var(--gold-ink);
  font-weight: 900;
  font-size: clamp(1.5rem, 4.2vw, 2.1rem);
  letter-spacing: 0.01em;
  padding: 6px 30px;
  border-radius: 999px;
  transform: rotate(-2.6deg);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.42);
  margin-left: 6px;
}

.wordmark h1 {
  font-size: clamp(3.1rem, 9vw, 5.2rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.028em;
  margin-top: -2px;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.5);
}

.tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--muted);
  max-width: 30ch;
  margin-bottom: 30px;
}
.tagline strong { color: var(--cream); font-weight: 800; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.trust {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--dim);
  font-size: 0.93rem;
  font-weight: 700;
}
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 15px; height: 15px; fill: none; stroke: var(--gold-bottom); stroke-width: 2.6; }

@media (max-width: 900px) {
  .hero { padding: 48px 0 24px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .tagline { margin-left: auto; margin-right: auto; }
  .hero-cta, .trust { justify-content: center; }
  .hero-phone { max-width: 290px; margin: 0 auto; }
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(160deg, #4a4055, #14101c 40%, #241d30);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.09) inset;
}
.phone img {
  border-radius: 34px;
  width: 100%;
  /* height:auto is load-bearing — the markup carries width/height attributes, and the
     height hint would otherwise win over aspect-ratio and stretch the frame. */
  height: auto;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  object-position: top;
  background: var(--ground-mid);
}

/* ---------- Section furniture ---------- */

section { padding: 68px 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold-bottom);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 14px;
}

.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 58ch;
  margin-bottom: 40px;
}

.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(var(--glass-strong), var(--glass));
  border: 1px solid var(--rim);
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(var(--gold-top), var(--gold-bottom));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
}

/* ---------- Cards ---------- */

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

.card {
  background: linear-gradient(var(--glass-strong), var(--glass));
  border: 1px solid var(--rim);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--rim-strong); }
.card .ico { font-size: 1.7rem; line-height: 1; margin-bottom: 14px; }
.card h3 { font-size: 1.17rem; font-weight: 800; margin-bottom: 7px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Modes ---------- */

.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
/* Five across on desktop — auto-fit lands on four and orphans Timed on its own row. */
@media (min-width: 1040px) { .modes { grid-template-columns: repeat(5, 1fr); } }

.mode {
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--rim);
  background: linear-gradient(var(--glass-strong), var(--glass));
}
.mode .pip {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.25rem;
  margin-bottom: 13px;
}
.mode h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 5px; }
.mode p { color: var(--muted); font-size: 0.93rem; }

.pip-classic { background: linear-gradient(135deg, #FF9900, #FF6600); }
.pip-zen     { background: linear-gradient(135deg, #80B3F2, #4073D9); }
.pip-cafe    { background: linear-gradient(135deg, #33B3B3, #1A8099); }
.pip-nap     { background: linear-gradient(135deg, #9950CC, #6633E6); }
.pip-timed   { background: linear-gradient(135deg, #F2648C, #C43B75); }

/* ---------- Screenshot rail ---------- */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 236px;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 24px 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 232, 200, 0.28) transparent;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: rgba(255, 232, 200, 0.28); border-radius: 99px; }
.shots figure { scroll-snap-align: center; }
.shots figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
.shots .phone { border-radius: 34px; padding: 7px; }
.shots .phone img { border-radius: 27px; }

/* Full-bleed rail so it can run off the edge of the viewport */
.bleed { max-width: none; padding: 0; }
@media (min-width: 1600px) {
  .shots { justify-content: center; }
}

/* ---------- Price ---------- */

.price {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
}
.price-card {
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--rim);
  background: linear-gradient(var(--glass-strong), var(--glass));
  text-align: center;
}
.price-card.feature {
  border-color: rgba(255, 217, 138, 0.5);
  background: linear-gradient(rgba(255, 217, 138, 0.15), rgba(255, 217, 138, 0.05));
}
.price-card .amount {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(var(--gold-top), var(--gold-bottom));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-card h3 { font-size: 1.1rem; font-weight: 800; margin: 6px 0 8px; }
.price-card p { color: var(--muted); font-size: 0.95rem; }

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

.cta-band {
  border-radius: 26px;
  padding: 52px 32px;
  text-align: center;
  border: 1px solid var(--rim-strong);
  background:
    radial-gradient(80% 130% at 50% 0%, rgba(133, 48, 184, 0.5), transparent 65%),
    linear-gradient(var(--glass-strong), var(--glass));
}
.cta-band img { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 10px 34px rgba(0,0,0,.5); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin: 0 auto 28px; max-width: 44ch; }

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

.site-footer {
  border-top: 1px solid rgba(255, 232, 200, 0.10);
  padding: 40px 0 52px;
  margin-top: 30px;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-left: auto; }
.footer-row nav a { color: var(--muted); font-weight: 700; font-size: 0.93rem; }
.footer-row nav a:hover { color: var(--cream); text-decoration: none; }
.copyright { color: var(--dim); font-size: 0.88rem; }
@media (max-width: 700px) {
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-row nav { margin-left: 0; }
}

/* ---------- Long-form pages (privacy / support) ---------- */

.doc { padding: 56px 0 20px; max-width: 760px; }
.doc h1 { font-size: clamp(2.1rem, 5.5vw, 3rem); font-weight: 900; letter-spacing: -0.024em; margin-bottom: 10px; }
.doc .updated { color: var(--dim); font-size: 0.92rem; font-weight: 700; margin-bottom: 34px; }
.doc h2 { font-size: 1.42rem; margin: 38px 0 12px; }
.doc h3 { font-size: 1.1rem; font-weight: 800; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--muted); font-size: 1.02rem; }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 18px 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--cream); font-weight: 800; }

.callout {
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 8px 0 28px;
  border: 1px solid rgba(255, 217, 138, 0.42);
  background: linear-gradient(rgba(255, 217, 138, 0.13), rgba(255, 217, 138, 0.04));
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--gold-top); }

.faq {
  border: 1px solid var(--rim);
  border-radius: var(--radius);
  background: linear-gradient(var(--glass-strong), var(--glass));
  padding: 4px 24px;
  margin-bottom: 14px;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--cream);
  padding: 18px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: '+';
  color: var(--gold-bottom);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq[open] summary::before { transform: rotate(45deg); }
.faq .body { padding: 0 0 18px 28px; }
.faq .body p:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */

.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound img { width: 116px; height: 116px; border-radius: 28px; margin: 0 auto 26px; }
.notfound h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 900; margin-bottom: 10px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
