/* HabitQuest public site — pixel art direction of the app (ADR 011). */
:root {
  --bg: #0D0D1A; --surface: #1A1A2E; --surface-2: #22223A; --border: #2D2D4E;
  --primary: #6C63FF; --primary-dark: #4A44B3; --accent: #FFD700;
  --text: #E8E8FF; --text-2: #9999CC; --muted: #6E6E9A; --px: 4px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; image-rendering: auto; }
.pixel { font-family: 'Jersey 10', monospace; font-weight: 400; letter-spacing: .02em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(13,13,26,.92); backdrop-filter: blur(6px); border-bottom: var(--px) solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 30px; }
.brand img { width: 40px; height: 40px; border: 3px solid var(--border); image-rendering: pixelated; }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }
.lang { border: 3px solid var(--border); padding: 2px 10px; color: var(--text) !important; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.badge { display: inline-block; font-size: 22px; color: var(--accent); border: var(--px) solid var(--accent); padding: 0 12px; background: rgba(255,215,0,.08); }
.hero h1 { font-size: clamp(52px, 6.4vw, 84px); line-height: .92; margin: 22px 0 18px; }
.hero h1 em, h2 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 20px; color: var(--text-2); max-width: 520px; }
.stores { display: flex; flex-wrap: wrap; gap: 30px 16px; align-items: center; margin-top: 44px; }
.store { position: relative; display: block; height: 56px; }
.store img { height: 56px; width: auto; }
.store.gp img { height: 82px; margin: -13px 0; } /* the Google badge ships with padding */
.store.soon { pointer-events: none; }
.store.soon img { opacity: .55; filter: grayscale(.4); }
.store.soon::after {
  content: attr(data-soon); position: absolute; top: -26px; left: 0; font-family: 'Jersey 10', monospace; font-size: 17px;
  background: var(--accent); color: #1A1A2E; padding: 0 7px; border: 2px solid #000;
}
.web { margin-top: 16px; font-size: 15px; color: var(--muted); }
.web a { color: var(--text-2); }

/* Phones */
.phone { background: var(--surface); border: var(--px) solid var(--border); box-shadow: 0 0 0 var(--px) #000, 10px 10px 0 4px var(--primary-dark); overflow: hidden; }
.phone img { width: 100%; }
.hero .phone { max-width: 340px; justify-self: center; }

/* Sections */
section { padding: 64px 0; }
h2 { font-size: clamp(40px, 5vw, 60px); line-height: 1; margin-bottom: 14px; }
.sub { color: var(--text-2); max-width: 620px; margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: var(--px) solid var(--border); padding: 22px; box-shadow: 6px 6px 0 #000; }
.card .icon { font-size: 34px; line-height: 1; }
.card h3 { font-family: 'Jersey 10', monospace; font-weight: 400; font-size: 30px; line-height: 1; margin: 12px 0 8px; }
.card p { color: var(--text-2); font-size: 15.5px; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 14px; text-align: center; font-family: 'Jersey 10', monospace; font-size: 24px; color: var(--text-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { border-left: var(--px) solid var(--primary); padding: 6px 0 6px 18px; }
.step b { display: block; font-family: 'Jersey 10', monospace; font-weight: 400; font-size: 28px; line-height: 1.1; }
.step b::before { counter-increment: step; content: counter(step) ". "; color: var(--accent); }
.step span { color: var(--text-2); font-size: 15.5px; }
.premium { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.premium ul { padding-left: 20px; color: var(--text-2); }
.premium li { margin: 6px 0; }
details { background: var(--surface); border: var(--px) solid var(--border); padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--text-2); margin-top: 10px; }
.cta { text-align: center; border: var(--px) solid var(--primary); background: linear-gradient(180deg, rgba(108,99,255,.14), transparent); padding: 48px 24px; }
.cta .stores { justify-content: center; }

/* Footer */
footer { border-top: var(--px) solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Text pages (support, privacy, terms) */
.page { max-width: 820px; margin: 0 auto; padding: 48px 24px 72px; }
.page h1 { font-family: 'Jersey 10', monospace; font-weight: 400; font-size: 54px; line-height: 1; margin: 8px 0 18px; }
.page h2 { font-size: 36px; margin: 34px 0 10px; }
.page h1 + p em, .page > p > em:only-child { color: var(--muted); }
.page p, .page li { color: #C9C9EE; margin-bottom: 12px; }
.page ul, .page ol { padding-left: 22px; }
.page hr { border: 0; border-top: var(--px) solid var(--border); margin: 44px 0; }
.page table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.page th, .page td { border: 2px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.page th { background: var(--surface-2); }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .phone { max-width: 280px; }
  .grid, .steps, .premium { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .nav a:not(.lang) { display: none; }
}
