/* Game Caddie marketing site — plain CSS, no build step, no frameworks. */

:root {
  --green: #0e8a43;
  --green-dark: #086b34;
  --green-darker: #064a24;
  --green-light: #e8f7ef;
  --gold: #dba11d;
  --gold-light: #f6e8b4;

  --ink: #1b1d21;
  --ink-secondary: #6f7785;
  --ink-tertiary: #9ca3af;

  --surface: #f8f9fa;
  --white: #ffffff;
  --line: #e7e9ec;
  --line-divider: #eceef1;

  --radius-btn: 12px;
  --radius-card: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(27, 29, 33, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 29, 33, 0.08);
  --shadow-lg: 0 24px 60px rgba(6, 74, 36, 0.16);

  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 6px 14px;
  border-radius: 999px;
}

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

h2 {
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  font-size: 19px;
}

p {
  margin: 0;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.section {
  padding: 108px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.section-head p {
  font-size: 17px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-btn);
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(14, 138, 67, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-darker) 100%);
  box-shadow: 0 16px 32px rgba(14, 138, 67, 0.36);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-btn);
  padding: 10px 18px;
  font-weight: 600;
  opacity: 0.55;
  cursor: default;
}

.btn-store .store-icon {
  flex-shrink: 0;
}

.btn-store .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.btn-store .store-text small {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.btn-store .store-text strong {
  font-size: 14.5px;
  font-weight: 700;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-divider);
}

.nav .wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}

.brand-mark {
  flex-shrink: 0;
  border-radius: 22%;
}

.brand strong {
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.nav-links a {
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transition: right 0.22s ease;
}

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

.nav-links a:hover::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta {
  padding: 11px 20px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
  background: linear-gradient(180deg, var(--green-light) 0%, #fbfdfc 58%, var(--white) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(14, 138, 67, 0.24), transparent 70%);
  top: -200px;
  right: -160px;
}

.hero::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(219, 161, 29, 0.2), transparent 70%);
  bottom: -160px;
  left: -140px;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  align-items: center;
  gap: 32px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-copy h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 900;
}

.hero-copy h1 span {
  color: var(--green);
}

.hero-copy .lede {
  font-size: 18px;
  max-width: 460px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.hero-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  padding-top: 2px;
}

.hero-stats .stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  font-weight: 600;
  padding-right: 18px;
}

.hero-stats .stat + .stat {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.hero-stats .stat strong {
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 56px;
}

.hero-art .art-shadow {
  position: absolute;
  bottom: 26px;
  left: 50%;
  width: 60%;
  height: 56px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(6, 74, 36, 0.38), transparent 75%);
  filter: blur(22px);
  z-index: 0;
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-width: 700px;
}

/* ---------- logo strip / games ---------- */

.games-strip {
  padding: 48px 0;
  border-top: 1px solid var(--line-divider);
  border-bottom: 1px solid var(--line-divider);
  overflow: hidden;
}

.games-strip .strip-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 24px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.pill {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-light);
  border: 1px solid rgba(14, 138, 67, 0.14);
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
}

.pill.pill-gold {
  color: #8a6410;
  background: var(--gold-light);
  border-color: rgba(219, 161, 29, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ---------- feature cards ---------- */

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: transparent;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  box-shadow: 0 12px 24px -10px rgba(14, 138, 67, 0.5);
}

.feature-icon.gold {
  background: var(--gold-light);
  box-shadow: 0 12px 24px -10px rgba(219, 161, 29, 0.5);
}

.feature-card p {
  font-size: 14.5px;
}

/* ---------- alternating showcase rows ---------- */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.showcase.reverse .showcase-art {
  order: 2;
}

.showcase.reverse .showcase-copy {
  order: 1;
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.showcase-copy .lede {
  font-size: 16.5px;
}

.showcase-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}

.showcase-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.showcase-list li span {
  font-weight: 400;
  color: var(--ink-secondary);
}

.showcase-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
}

.showcase-art .art-bg {
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgba(14, 138, 67, 0.16), transparent 68%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

.showcase-art .art-shadow {
  position: absolute;
  bottom: 14px;
  left: 50%;
  width: 55%;
  height: 42px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(6, 74, 36, 0.34), transparent 75%);
  filter: blur(18px);
  z-index: 0;
}

.showcase-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-width: 480px;
}

/* phoneprofile.png has wide transparent padding either side of the phone in
   its source canvas, plus a faint low-alpha edge artifact right at the canvas
   border — crop tight to the phone itself rather than filtering the raw PNG
   (a CSS drop-shadow filter traces that faint edge and shows up as a muddy
   halo, which is why this uses a synthetic shadow div instead). */
.phone-crop {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 270px;
  aspect-ratio: 776 / 1354;
  overflow: hidden;
}

.phone-crop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* ---------- how it works ---------- */

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

.step {
  position: relative;
  padding: 32px 26px 26px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
  background: var(--white);
}

.step .step-number {
  font-size: 42px;
  font-weight: 800;
  color: rgba(14, 138, 67, 0.18);
  line-height: 1;
}

.step h3 {
  margin-top: 4px;
}

.step p {
  font-size: 14.5px;
}

/* ---------- final CTA ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-darker) 0%, var(--green) 100%);
  border-radius: var(--radius-xl);
  margin: 0 24px;
  padding: 72px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  top: -220px;
  right: -160px;
}

.cta-band h2,
.cta-band p {
  position: relative;
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 460px;
  font-size: 16px;
}

.cta-band .hero-stores {
  position: relative;
  justify-content: center;
  margin-top: 6px;
}

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

.site-footer {
  padding: 64px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--ink-secondary);
  font-weight: 500;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid var(--line-divider);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--ink-tertiary);
}

.footer-legal-note {
  font-size: 13px;
  color: var(--ink-tertiary);
}

/* ---------- legal pages (terms / privacy) ---------- */

.legal-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line-divider);
  background: var(--surface);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 18px;
}

.legal-header h1 {
  font-size: clamp(28px, 4vw, 38px);
}

.legal-header .updated {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-tertiary);
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal-body h2 {
  font-size: 21px;
  margin-top: 44px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

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

.legal-body h3 {
  font-size: 16.5px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-body p {
  color: var(--ink);
  font-size: 15.5px;
  margin-bottom: 14px;
}

.legal-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--ink);
}

.legal-body li {
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(14, 138, 67, 0.35);
}

.legal-body strong {
  color: var(--ink);
}

.legal-body hr {
  border: none;
  border-top: 1px solid var(--line-divider);
  margin: 32px 0;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-body th,
.legal-body td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-divider);
  vertical-align: top;
}

.legal-body th {
  background: var(--surface);
  font-weight: 700;
  color: var(--ink);
}

.legal-body tr:last-child td {
  border-bottom: none;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-copy .lede {
    max-width: 100%;
  }

  .hero-ctas,
  .hero-stores,
  .hero-stats {
    justify-content: center;
  }

  .hero-art {
    order: -1;
    margin-bottom: 8px;
  }

  .hero-art img {
    max-width: 460px;
  }

  .showcase,
  .showcase.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .showcase.reverse .showcase-art,
  .showcase.reverse .showcase-copy,
  .showcase-art,
  .showcase-copy {
    order: initial;
  }

  .showcase-copy {
    align-items: center;
  }

  .showcase-list li {
    text-align: left;
  }

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

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
  }

  .cta-band {
    margin: 0 16px;
    padding: 52px 24px;
  }
}
