/* =========================================================================
   Crosshair Lab: base tokens and landing page styles.
   Palette mirrors the app (Assets.xcassets/Colors): appOffBlack page,
   appOffWhite ink, appAccent teal. The app is dark appearance only, so the
   site has one theme. Font is Avenir, the app's Constants.fontName.
   ========================================================================= */

:root {
  color-scheme: dark;
  --bg: #000000;                          /* appOffBlack */
  --surface: rgba(0, 0, 0, 0.82);
  --surface-strong: #07090A;
  --card: #0C1012;
  --ink: #FEFFFF;                         /* appOffWhite */
  --ink-70: rgba(254, 255, 255, 0.74);
  --ink-50: rgba(254, 255, 255, 0.56);
  --ink-35: rgba(254, 255, 255, 0.42);
  --accent: #12CBC9;                      /* appAccent */
  --accent-glow: rgba(18, 203, 201, 0.28);
  --line: rgba(254, 255, 255, 0.1);
  --frost: rgba(254, 255, 255, 0.05);
  --frost-strong: rgba(254, 255, 255, 0.1);
  --display: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: var(--display);
  --ease: cubic-bezier(0.25, 0.8, 0.35, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); }

/* ------------------------------ Landing ------------------------------- */
/* landing main: fill viewport height so the footer pins to the bottom */
.page-main { flex: 1 0 auto; }

/* Hero: the promise on the left, two App Store screenshots on the right.
   A soft teal glow behind the phones echoes the app icon. */
.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 40px 72px;
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 64px; padding: 96px 64px 104px; }
}
@media (max-width: 600px) {
  .hero { padding: 40px 20px 48px; gap: 36px; }
}
.hero-text { text-align: left; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero .tagline {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--ink-70);
  font-size: 19px;
  text-wrap: pretty;
}
/* Apple's official black badge (toolbox.marketingtools.apple.com), unaltered.
   Apple asks for at least 40px height on screen and clear space of a quarter
   of the badge height around it. */
.store-badge {
  display: inline-block;
  margin: 15px 15px 15px 0;
  line-height: 0;
  transition: transform 0.2s var(--ease);
}
.store-badge img { display: block; width: 180px; height: 60px; }
.store-badge:hover { transform: translateY(-2px); }

.screens {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
}
.screens::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  filter: blur(30px);
  z-index: 0;
}
.screen {
  position: relative;
  z-index: 1;
  margin: 0;
}
.screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.screen-right { transform: translateY(36px); }
@media (max-width: 600px) {
  .screens { gap: 12px; }
  .screen img { border-radius: 14px; }
  .screen-right { transform: translateY(20px); }
}

.features {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 40px 56px;
  display: grid;
  gap: 18px;
}
@media (min-width: 760px) {
  .features { grid-template-columns: repeat(3, 1fr); padding: 24px 64px 64px; }
}
@media (max-width: 600px) {
  .features { padding: 0 20px 48px; }
}
.feature {
  padding: 26px 24px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: left;
}
.feature h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent);
  text-wrap: balance;
}
.feature p {
  margin: 0;
  font-size: 16px;
  color: var(--ink-70);
  text-wrap: pretty;
}

.honest-note {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 72px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-50);
}

/* Large desktop screens: scale the hero and cards up with the room. */
@media (min-width: 1800px) {
  .hero { max-width: 1680px; gap: 96px; padding: 120px 80px 128px; }
  .hero h1 { font-size: 80px; }
  .hero .tagline { max-width: 660px; font-size: 22px; }
  .screens { max-width: 680px; gap: 28px; }
  .features { max-width: 1680px; padding: 24px 80px 72px; gap: 24px; }
  .feature { padding: 32px 30px; }
  .feature h3 { font-size: 25px; }
  .feature p { font-size: 18px; }
  .honest-note { max-width: 820px; font-size: 16px; }
}
