/* =========================================================
   CalmPilot AI — Home / Front-page specific styles
   Loaded only on the front page via functions.php.
   Base styles (nav, footer, buttons, aurora) live in style.css.
   ========================================================= */

/* ---------- Store buttons ---------- */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  border-radius: 14px;
  background: oklch(0.18 0.03 270 / 0.85);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  backdrop-filter: blur(14px);
  transition: transform .15s ease, border-color .2s ease;
}
.store-btn:hover { transform: translateY(-1px); border-color: oklch(0.85 0.02 270 / 0.3); }
.store-btn.coming-soon { opacity: 0.45; cursor: default; pointer-events: none; }
.store-btn .ico { width: 26px; height: 26px; display: grid; place-items: center; color: var(--fg); }
.store-btn .lbl { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn .lbl small { font-size: 10.5px; color: var(--fg-muted); font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.store-btn .lbl span { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 60px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { font-size: clamp(44px, 6.5vw, 76px); letter-spacing: -0.035em; font-weight: 600; }
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { margin-top: 24px; color: var(--fg-dim); font-size: 19px; max-width: 520px; text-wrap: pretty; }
.hero .tag { margin-top: 14px; font-family: var(--font-mono); color: var(--fg-muted); font-size: 13px; letter-spacing: 0.04em; }
.hero-cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 32px; display: flex; gap: 28px; align-items: center; color: var(--fg-muted); font-size: 13px; }
.hero-meta .stars { color: var(--accent-2); letter-spacing: 2px; font-size: 14px; }
.hero-meta .sep { width: 1px; height: 18px; background: var(--border); }

/* Phone mockup */
.phone-stage { position: relative; display: grid; place-items: center; }
.phone-stage::before {
  content: "";
  position: absolute; inset: -10% -10%;
  background:
    radial-gradient(45% 45% at 30% 30%, oklch(0.65 0.18 200 / 0.5), transparent 70%),
    radial-gradient(45% 45% at 70% 70%, oklch(0.65 0.18 350 / 0.4), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}
.phone {
  width: 300px;
  border-radius: 46px;
  background: linear-gradient(180deg, oklch(0.30 0.03 270), oklch(0.18 0.03 270));
  padding: 8px;
  position: relative;
  box-shadow:
    0 0 0 1.5px oklch(0.45 0.04 270),
    0 50px 100px -30px oklch(0.10 0.05 270 / 0.9),
    inset 0 0 0 2px oklch(0.18 0.03 270);
  transform: rotate(-3deg);
}
.phone img { width: 100%; border-radius: 38px; display: block; }

/* Floating chips */
.float-chip {
  position: absolute;
  background: oklch(0.24 0.04 272 / 0.85);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  box-shadow: var(--shadow-card);
  z-index: 2;
}
.float-chip .ico {
  width: 28px; height: 28px; border-radius: 8px;
  background: oklch(0.85 0.13 180 / 0.18);
  display: grid; place-items: center;
  color: var(--accent-2);
}
.float-chip .ico.pink { background: oklch(0.78 0.16 350 / 0.2); color: var(--accent-3); }
.float-chip small { color: var(--fg-muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; display: block; }
.float-chip b { font-weight: 500; font-size: 13px; }
.chip-1 { top: 8%; left: -10%; transform: rotate(-3deg); }
.chip-2 { bottom: 14%; right: -10%; transform: rotate(2deg); }

/* ---------- Sections shared ---------- */
.section { padding: 100px 0; position: relative; }
.section-head {
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start;
  max-width: 720px; margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(34px, 4.5vw, 52px); font-weight: 600; letter-spacing: -0.03em; }
.section-head .lede { color: var(--fg-dim); font-size: 18px; max-width: 580px; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feature-card {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature-card.wide { grid-column: span 3; }
.feature-card.tall { grid-column: span 3; }
.feature-card .ico-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-card.cyan .ico-wrap { background: oklch(0.85 0.13 180 / 0.18); color: var(--accent-2); }
.feature-card.pink .ico-wrap { background: oklch(0.78 0.16 350 / 0.18); color: var(--accent-3); }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; font-weight: 600; }
.feature-card p { color: var(--fg-dim); font-size: 14.5px; line-height: 1.6; }
.feature-card .tag { margin-top: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--fg-muted); text-transform: uppercase; }
.feature-card.milo { background: linear-gradient(180deg, oklch(0.30 0.06 290 / 0.6), oklch(0.22 0.04 270 / 0.55)); }
.milo-preview { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.milo-bubble { font-size: 13px; padding: 10px 14px; border-radius: 14px; max-width: 80%; line-height: 1.5; }
.milo-bubble.bot { background: oklch(0.30 0.04 272 / 0.65); border-radius: 14px 14px 14px 4px; align-self: flex-start; color: var(--fg-dim); }
.milo-bubble.user { align-self: flex-end; background: linear-gradient(135deg, var(--accent-soft), oklch(0.78 0.13 290 / 0.10)); border-radius: 14px 14px 4px 14px; color: var(--fg); }
.mood-graph { margin-top: 22px; height: 120px; display: flex; align-items: end; gap: 6px; padding: 12px; border-radius: 14px; background: oklch(0.18 0.03 270 / 0.5); border: 1px solid var(--border); }
.bar { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent-2), oklch(0.50 0.10 200)); opacity: 0.85; }
.feature-card.pink .bar { background: linear-gradient(180deg, var(--accent-3), oklch(0.50 0.12 350)); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; backdrop-filter: blur(14px); }
.step-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--accent-2); margin-bottom: 18px; }
.step:nth-child(2) .step-num { color: var(--accent); }
.step:nth-child(3) .step-num { color: var(--accent-3); }
.step-ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(140deg, oklch(0.85 0.13 180 / 0.2), oklch(0.78 0.13 290 / 0.15));
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--accent-2);
  margin-bottom: 22px;
}
.step:nth-child(2) .step-ico { background: linear-gradient(140deg, oklch(0.78 0.13 290 / 0.2), oklch(0.78 0.16 350 / 0.15)); color: var(--accent); }
.step:nth-child(3) .step-ico { background: linear-gradient(140deg, oklch(0.78 0.16 350 / 0.2), oklch(0.85 0.13 180 / 0.15)); color: var(--accent-3); }
.step h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--fg-dim); font-size: 15px; line-height: 1.6; }

/* ---------- Screenshots ---------- */
.shots-track {
  display: flex; gap: 22px;
  overflow-x: auto;
  padding: 12px 0 32px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.shots-track::-webkit-scrollbar { height: 8px; }
.shots-track::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.shot {
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-radius: 36px;
  border: 2px solid oklch(0.30 0.03 270);
  background: linear-gradient(180deg, oklch(0.24 0.05 275), oklch(0.18 0.04 270));
  padding: 6px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease;
}
.shot:hover { transform: translateY(-4px); }
.shot img { width: 100%; border-radius: 30px; display: block; }
.shot-cap { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); text-align: center; }
.shot-cap b { display: block; color: var(--fg-dim); font-weight: 500; font-size: 12.5px; letter-spacing: 0.04em; margin-bottom: 4px; }

/* ---------- Games ---------- */
.games-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: oklch(0.22 0.03 270 / 0.5);
  color: var(--fg-dim);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  transition: all .2s ease;
}
.tab.active { background: oklch(0.30 0.06 290 / 0.7); color: var(--fg); border-color: oklch(0.78 0.13 290 / 0.5); }
.tab .count { margin-left: 6px; color: var(--fg-muted); font-size: 11px; }
.tab.active .count { color: var(--accent); }
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game-card {
  border-radius: var(--r-md);
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  min-height: 200px;
}
.game-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.game-card[hidden] { display: none; }
.game-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 50% at 80% 0%, var(--g-glow, oklch(0.78 0.13 290 / 0.18)), transparent 65%);
  pointer-events: none;
}
.game-vis { height: 70px; margin-bottom: 14px; display: grid; place-items: center; position: relative; z-index: 1; }
.gv-tile {
  width: 64px; height: 64px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(140deg, oklch(0.22 0.05 275), oklch(0.16 0.04 270));
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px -10px oklch(0 0 0 / 0.5);
}
.gv-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 30% 20%, var(--tile-glow, oklch(0.78 0.13 290 / 0.4)), transparent 70%);
}
.gv-tile svg { position: relative; z-index: 1; }
.game-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; position: relative; z-index: 1; letter-spacing: -0.01em; }
.game-card .cat { font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: auto; position: relative; z-index: 1; }
.game-card .meta-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; position: relative; z-index: 1; font-size: 11.5px; color: var(--fg-dim); font-family: var(--font-mono); letter-spacing: 0.04em; }
.game-card .meta-row .lvl { color: var(--accent-2); }
.game-card.cat-focus .cat { color: var(--accent); }
.game-card.cat-brain .cat { color: var(--accent-3); }
.game-card.cat-relax .cat { color: var(--accent-2); }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(14px);
}
.benefit { padding: 36px 28px; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.benefit:last-child { border-right: none; }
.benefit .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--fg-muted); margin-bottom: 32px; }
.benefit .stat { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 4px; background: linear-gradient(135deg, var(--fg) 30%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.benefit:nth-child(2) .stat { background: linear-gradient(135deg, var(--fg) 30%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.benefit:nth-child(3) .stat { background: linear-gradient(135deg, var(--fg) 30%, var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.benefit:nth-child(4) .stat { background: linear-gradient(135deg, var(--fg) 30%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.benefit h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.benefit p { color: var(--fg-dim); font-size: 13.5px; line-height: 1.6; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 18px; }
.testimonial .stars { color: var(--accent-2); letter-spacing: 3px; font-size: 14px; }
.testimonial blockquote { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--fg); letter-spacing: -0.005em; text-wrap: pretty; }
.testimonial .author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(140deg, var(--accent-2), var(--accent-3)); display: grid; place-items: center; color: oklch(0.18 0.03 270); font-weight: 600; font-size: 13px; font-family: var(--font-mono); }
.author-meta b { display: block; font-weight: 500; font-size: 14px; }
.author-meta small { color: var(--fg-muted); font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ---------- Final CTA ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--r-xl);
  padding: 72px 56px;
  background:
    radial-gradient(80% 80% at 0% 0%, oklch(0.55 0.18 200 / 0.5), transparent 60%),
    radial-gradient(80% 80% at 100% 100%, oklch(0.60 0.16 350 / 0.45), transparent 60%),
    oklch(0.22 0.05 275 / 0.6);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  text-align: center;
  backdrop-filter: blur(14px);
}
.cta-banner h2 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.035em; margin-bottom: 18px; font-weight: 600; }
.cta-banner p { color: var(--fg-dim); font-size: 18px; max-width: 540px; margin: 0 auto 36px; }
.cta-banner .stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .phone-stage { transform: scale(0.88); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card, .feature-card.wide, .feature-card.tall { grid-column: span 1; }
  .feature-card:first-child { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit:nth-child(2) { border-right: none; }
  .benefit:nth-child(1), .benefit:nth-child(2) { border-bottom: 1px solid var(--border); }
  .testimonials { grid-template-columns: 1fr; }
  .cta-banner { padding: 56px 28px; }
}
@media (max-width: 560px) {
  .hero { padding: 56px 0 40px; }
  .section { padding: 72px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card:first-child { grid-column: span 1; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit { border-right: none; border-bottom: 1px solid var(--border); }
  .benefit:last-child { border-bottom: none; }
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .hero-meta { gap: 14px; flex-wrap: wrap; }
  .phone { width: 260px; }
  .chip-1, .chip-2 { display: none; }
  .hero h1 { font-size: clamp(36px, 9vw, 48px); }
}
