/* ============================================================
   Seek Master: Pixel Patrol — landing page styles
   Style: Cozy Pixel Explorer Warmth (mobile-first)
   Palette: Marigold + Forest Green on warm cream
   ============================================================ */

:root {
  --cream: #fbf4e6;
  --surface: #fffdf7;
  --ink: #2e2717;
  --ink-soft: #5f5233;
  --green: #17643a;
  --green-dark: #114d2d;
  --marigold: #e8a01f;
  --marigold-deep: #c9781a;
  --border: #e6d8bb;
  --shadow: 0 6px 0 rgba(46, 39, 23, 0.08), 0 10px 24px rgba(46, 39, 23, 0.10);
  --radius: 14px;
  --maxw: 1080px;

  --font-display: "Trebuchet MS", "Verdana", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---- Base (mobile-first) ---- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* room for mobile sticky CTA */
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.2px;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--marigold-deep);
  margin: 0 0 8px;
}

/* ---- Sticky Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 244, 230, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--border);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  image-rendering: pixelated;
  border: 2px solid var(--border);
}

.brand-name { font-size: 16px; }

.nav-links { display: none; }

.nav-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0 12px;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.nav-cta:active { background: var(--green-dark); }
.nav-cta-text { display: none; }
.nav-cta-icon { font-size: 18px; }

/* ---- Hero ---- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 16px 8px;
  text-align: center;
}

.hero-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 20px;
  image-rendering: pixelated;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 34px;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 auto 24px;
}

.hero-banner {
  margin: 24px auto 0;
  max-width: 720px;
}
.hero-banner img {
  width: 100%;
  border-radius: var(--radius);
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  image-rendering: auto;
}

/* ---- Store buttons ---- */
.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.hero-store { max-width: 340px; margin: 0 auto; }

.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 0;
  text-decoration: none;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: left;
}

.store-btn-icon { font-size: 22px; line-height: 1; }

.store-btn-copy { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn-top { font-size: 12px; opacity: 0.9; }
.store-btn-name { font-size: 18px; font-weight: 700; }

.store-btn--play {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 0 var(--green-dark);
}
.store-btn--play:hover { background: #17703f; }
.store-btn--play:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-dark); }

/* App Store — disabled "Coming Soon" */
.store-btn--soon {
  background: #2a2a2a;
  color: #d8d8d8;
  opacity: 0.55;
  filter: grayscale(0.6);
  cursor: not-allowed;
}
.store-btn-badge {
  position: absolute;
  top: -9px;
  right: -6px;
  background: var(--marigold);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  filter: grayscale(0);
}

/* ---- Section heads ---- */
.section-head { text-align: center; margin: 0 auto 28px; max-width: 40ch; }
.section-head h2 { font-size: 27px; color: var(--ink); }

/* ---- Features ---- */
.features {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 16px;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 4px 0 rgba(46, 39, 23, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.feature-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 26px;
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---- Download CTA ---- */
.download {
  background: linear-gradient(160deg, #17643a 0%, #114d2d 100%);
  color: #fff;
  padding: 56px 16px;
  text-align: center;
}
.download-inner { max-width: 560px; margin: 0 auto; }
.download-icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 18px; image-rendering: pixelated;
  border: 3px solid rgba(255, 255, 255, 0.25);
}
.download h2 { font-size: 29px; margin-bottom: 10px; }
.download-copy { color: rgba(255, 255, 255, 0.9); font-size: 17px; margin: 0 auto 26px; max-width: 42ch; }
.download-store { max-width: 340px; margin: 0 auto; }
.download-store .store-btn--play {
  background: var(--marigold);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--marigold-deep);
}
.download-store .store-btn--play:hover { background: #f0ab2e; }
.download-store .store-btn--play:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--marigold-deep); }

/* ---- About ---- */
.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 16px;
}
.about-inner { text-align: center; }
.about h2 { font-size: 27px; color: var(--ink); margin-bottom: 16px; }
.about p { color: var(--ink-soft); margin: 0 auto 14px; max-width: 60ch; }
.about-contact a { font-weight: 700; }

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #e9e0cc;
  padding: 36px 16px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.footer-brand img { border-radius: 9px; image-rendering: pixelated; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.footer-contact { margin: 0 0 12px; }
.footer-contact a, .footer-legal a { color: var(--marigold); }
.footer-legal { display: flex; gap: 20px; justify-content: center; margin-bottom: 14px; }
.footer-legal a { text-decoration: none; font-size: 14px; }
.footer-legal a:hover { text-decoration: underline; }
.footer-copy { font-size: 13px; color: #a89e86; margin: 0; }

/* ---- Mobile sticky bottom CTA ---- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 244, 230, 0.97);
  border-top: 3px solid var(--border);
  transform: translateY(120%);
  transition: transform 0.28s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  background: var(--green);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 0 var(--green-dark);
}
.sticky-cta-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-dark); }

/* ============================================================
   Tablet / Desktop progressive enhancement
   ============================================================ */
@media (min-width: 768px) {
  .nav { height: 64px; }
  .nav-links { display: flex; gap: 26px; margin-left: 28px; }
  .nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 15px; }
  .nav-links a:hover { color: var(--green); }
  .nav-cta { margin-left: auto; }
  .nav-cta-text { display: inline; }
  .nav-cta-icon { display: none; }

  .hero { padding: 56px 24px 16px; }
  .hero h1 { font-size: 46px; }
  .hero-tagline { font-size: 19px; }
  .hero-store { flex-direction: row; max-width: none; justify-content: center; }
  .store-btn { flex: 0 1 240px; }

  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .section-head h2, .download h2, .about h2 { font-size: 34px; }

  .download-store { flex-direction: row; max-width: none; justify-content: center; }

  /* sticky mobile CTA hidden on larger screens */
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 54px; }
  .hero-banner { max-width: 860px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card, .store-btn--play, .sticky-cta, .sticky-cta-btn { transition: none; }
}
