/* SportMirror site — viewfinder minimal.
   Palette from Design/app-icon.svg: bg gradient #1E2128→#0A0C0F,
   ink white, ghost white @ .3, record red #FF4A3D. */

:root {
  --bg-hi: #1e2128;
  --bg-lo: #0a0c0f;
  --ink: #f4f5f7;
  --ink-dim: rgba(244, 245, 247, 0.55);
  --ink-ghost: rgba(244, 245, 247, 0.3);
  --hairline: rgba(244, 245, 247, 0.12);
  --red: #ff4a3d;
  --wide: 125%;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Archivo", "Helvetica Neue", sans-serif;
  font-stretch: 100%;
  background: linear-gradient(140deg, var(--bg-hi), var(--bg-lo) 72%) fixed;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* faint film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  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)'/%3E%3C/svg%3E");
}

a { color: inherit; }

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

.shell {
  width: min(68rem, 100% - 3rem);
  margin-inline: auto;
}

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

.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1.6rem;
}

.wordmark {
  font-stretch: var(--wide);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.wordmark b { font-weight: 800; }
.wordmark span { font-weight: 300; color: var(--ink-dim); }

.nav-links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-dim);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--red); }

/* ---- hero (landing) ---- */

.hero {
  position: relative;
  padding: clamp(3rem, 9vh, 6rem) clamp(1.4rem, 5vw, 3.5rem);
  margin-block: clamp(1rem, 4vh, 3rem);
}

/* viewfinder corner brackets */
.hero::before,
.hero::after,
.hero .vf::before,
.hero .vf::after {
  content: "";
  position: absolute;
  width: 2.2rem;
  height: 2.2rem;
  border: 3px solid var(--ink);
  border-radius: 2px;
  animation: bracket-in 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.hero::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero::after { top: 0; right: 0; border-left: 0; border-bottom: 0; animation-delay: 0.08s; }
.hero .vf::before { bottom: 0; left: 0; border-right: 0; border-top: 0; animation-delay: 0.16s; }
.hero .vf::after { bottom: 0; right: 0; border-left: 0; border-top: 0; animation-delay: 0.24s; }

@keyframes bracket-in {
  from { opacity: 0; transform: scale(1.25); }
  to { opacity: 1; transform: scale(1); }
}

.hero h1 {
  font-stretch: var(--wide);
  font-weight: 800;
  font-size: clamp(2.4rem, 7.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 14ch;
  animation: rise 0.8s 0.15s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.hero h1 em {
  font-style: normal;
  font-weight: 300;
  color: var(--ink-dim);
  display: block;
}
.hero h1 .tick { color: var(--red); }

.hero .sub {
  margin-top: 1.6rem;
  max-width: 44ch;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  animation: rise 0.8s 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.badge {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  animation: rise 0.8s 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.badge::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.7em;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- hero grid: copy left, phone right ---- */

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* ---- iPhone frame ---- */

.phone {
  --pw: min(320px, 68vw);
  width: var(--pw);
  justify-self: center;
  padding: calc(var(--pw) * 0.028);
  background: #0d0e11;
  border: 3px solid #4a4d55;
  border-radius: calc(var(--pw) * 0.17);
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-3.5deg);
  animation: rise 0.9s 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.phone .screen {
  position: relative;
  border-radius: calc(var(--pw) * 0.145);
  overflow: hidden;
  background: #000;
}
.phone img { display: block; width: 100%; height: auto; }
.phone .island {
  position: absolute;
  top: calc(var(--pw) * 0.032);
  left: 50%;
  translate: -50% 0;
  width: calc(var(--pw) * 0.3);
  height: calc(var(--pw) * 0.077);
  border-radius: 999px;
  background: #000;
}

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone { margin-top: 2.5rem; transform: rotate(0deg); }
}

/* ---- features ---- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--hairline);
  border-block: 1px solid var(--hairline);
  margin-block: clamp(2rem, 6vh, 4rem);
}
.features article {
  background: linear-gradient(140deg, var(--bg-hi), var(--bg-lo) 72%);
  padding: 2rem 1.6rem 2.2rem;
}
.features .num {
  font-stretch: var(--wide);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--red);
}
.features h2 {
  font-stretch: var(--wide);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0.8rem 0 0.6rem;
}
.features p { color: var(--ink-dim); font-size: 0.95rem; }

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

.page {
  padding-block: clamp(2rem, 6vh, 4rem);
  max-width: 46rem;
}
.page > .kicker {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}
.page h1 {
  font-stretch: var(--wide);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0.6rem 0 0.4rem;
}
.page .meta { color: var(--ink-dim); font-size: 0.9rem; }

.page h2 {
  font-stretch: var(--wide);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 2.6rem 0 0.7rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}
.page p, .page li { color: var(--ink-dim); }
.page p + p { margin-top: 0.9rem; }
.page ul { margin: 0.6rem 0 0 1.2rem; }
.page li { margin-block: 0.35rem; }
.page strong { color: var(--ink); font-weight: 600; }
.page a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
.page a:hover { color: var(--red); }

.callout {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  padding: 1.1rem 1.3rem;
  margin-top: 1.4rem;
}
.callout p { color: var(--ink); }

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

footer {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  padding-block: 1.6rem 2rem;
  font-size: 0.82rem;
  color: var(--ink-dim);
}
footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.8rem;
  justify-content: space-between;
}
footer nav { display: flex; gap: 1.6rem; }
footer a { color: var(--ink-dim); text-decoration: none; }
footer a:hover { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
