/* =========================================================================
   Honk Honk Punch — shared stylesheet
   Mobile-first. System fonts only. Zero external requests.
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  --bg:            #fbfaff;
  --surface:       #ffffff;
  --surface-2:     #f4f1fb;
  --text:          #1c1730;
  --text-muted:    #635d75;
  --border:        rgba(28, 23, 48, 0.09);
  --accent-coral:  #ff6f61;
  --accent-violet: #8a4dff;
  --accent:        #b14bff;
  --gradient:      linear-gradient(120deg, #ff6f61 0%, #f2528a 45%, #8a4dff 100%);
  --gradient-soft: linear-gradient(120deg, rgba(255,111,97,0.14) 0%, rgba(138,77,255,0.14) 100%);
  --star:          #ffb020;
  --radius-sm:     12px;
  --radius:        18px;
  --radius-lg:     28px;
  --shadow-sm:     0 2px 8px rgba(28, 23, 48, 0.06);
  --shadow:        0 10px 30px rgba(28, 23, 48, 0.10);
  --shadow-lift:   0 18px 44px rgba(138, 77, 255, 0.18);
  --maxw:          1100px;
  --transition:    180ms ease;
}

/* ---- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-violet); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85em 1.5em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 1.5px solid transparent; transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent-violet); }

/* App Store badge image link */
.badge-link { display: inline-block; transition: transform var(--transition); }
.badge-link:hover { transform: translateY(-2px); }
.badge-link img { width: 168px; height: auto; }

/* ---- Site header ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; gap: 16px;
}
.wordmark {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; color: var(--text);
  display: inline-flex; align-items: center; gap: 0.45em;
}
.wordmark:hover { text-decoration: none; }
.wordmark .dot {
  width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--gradient); display: inline-block;
}
.wordmark .hhp { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 0.95rem; }
.site-nav a { color: var(--text-muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* ---- Hero (home) ------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 20% 0%, rgba(255,111,97,0.18), transparent 60%),
    radial-gradient(60% 60% at 85% 15%, rgba(138,77,255,0.18), transparent 60%);
}
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--text-muted); max-width: 44ch; margin: 0 auto 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---- Stats band ------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  margin-top: clamp(32px, 5vw, 52px);
}
.stat { background: var(--surface); padding: 26px 16px; text-align: center; }
.stat .num {
  display: block; font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* ---- Section headers -------------------------------------------------- */
.section { padding: clamp(44px, 7vw, 80px) 0; }
.section-head { text-align: center; max-width: 52ch; margin: 0 auto clamp(28px, 4vw, 44px); }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-violet); margin-bottom: 0.6em;
}

/* ---- App grid --------------------------------------------------------- */
.app-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }

.app-card {
  display: flex; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  color: var(--text);
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(138,77,255,0.3); text-decoration: none; }
.app-card .icon { width: 64px; height: 64px; border-radius: 22%; flex: none; box-shadow: var(--shadow-sm); }
.app-card .body { min-width: 0; }
.app-card h3 { margin: 0 0 0.15em; font-size: 1.05rem; }
.app-card .tagline { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 0.5em; }
.meta { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.meta .stars { color: var(--star); }
.chip-new {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: var(--gradient); padding: 0.25em 0.7em; border-radius: 999px;
}

/* ---- About band ------------------------------------------------------- */
.about {
  background: var(--gradient-soft); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px); text-align: center;
}
.about p { max-width: 60ch; margin-inline: auto; color: var(--text-muted); font-size: 1.05rem; }
.about strong { color: var(--text); }

/* ---- Breadcrumb ------------------------------------------------------- */
.breadcrumb { font-size: 0.88rem; color: var(--text-muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }

/* ---- App page hero ---------------------------------------------------- */
.app-hero { padding: clamp(24px, 5vw, 48px) 0 clamp(20px, 3vw, 36px); }
.app-hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
@media (min-width: 720px) { .app-hero-inner { flex-direction: row; align-items: center; } }
.app-hero .icon-lg { width: 108px; height: 108px; border-radius: 22%; flex: none; box-shadow: var(--shadow); }
.app-hero h1 { margin-bottom: 0.25em; }
.app-hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-muted); max-width: 52ch; }
.app-hero .rating-row { display: flex; align-items: center; gap: 0.5em; font-weight: 600; margin-bottom: 1em; }
.app-hero .rating-row .stars { color: var(--star); font-size: 1.05rem; }
.app-hero .rating-row .count { color: var(--text-muted); font-weight: 500; }

/* ---- Screenshot strip ------------------------------------------------- */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 0 16px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: none; scroll-snap-align: start; }
.shot-frame {
  width: 220px; border-radius: 26px; padding: 8px; background: #14101f;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.06);
}
.shot-frame img { width: 100%; height: auto; border-radius: 18px; display: block; }
.shots figcaption { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 8px; max-width: 220px; }

/* ---- Feature / prose sections ---------------------------------------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose p { color: #33304a; }
.feature-list { display: grid; gap: 22px; }

/* ---- FAQ -------------------------------------------------------------- */
.faq { max-width: 720px; }
.faq-item { border-top: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 { margin: 0 0 0.35em; }
.faq-item p { margin: 0; color: var(--text-muted); }

/* ---- CTA block -------------------------------------------------------- */
.cta-block {
  text-align: center; background: var(--gradient-soft);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
}
.cta-block h2 { max-width: 20ch; margin-inline: auto; }
.cta-block p { color: var(--text-muted); max-width: 44ch; margin: 0 auto 1.4em; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 24px; color: var(--text-muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 22px; }

/* ---- 404 -------------------------------------------------------------- */
.notfound { text-align: center; padding: clamp(60px, 12vw, 140px) 0; }
.notfound .big { font-size: clamp(4rem, 18vw, 9rem); font-weight: 800; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .hero-cta { margin-top: 1.5em; }

/* ---- Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .app-card:hover, .badge-link:hover { transform: none; }
}

/* =========================================================================
   Guides section (added 2026-07-20) — appended, no existing rules changed.
   Covers: quick-answer callout, numbered steps, guide cards.
   ========================================================================= */

/* Quick-answer callout — the visually distinct box Google tends to excerpt */
.quick-answer {
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-violet);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 0 0 1.6em;
}
.quick-answer .qa-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-violet); margin: 0 0 0.35em;
}
.quick-answer p:last-child { margin: 0; color: var(--text); }

/* Numbered step-by-step list */
.steps {
  counter-reset: step; list-style: none; margin: 0 0 1.2em; padding: 0; max-width: 720px;
}
.steps li {
  position: relative; padding-left: 3em; margin-bottom: 1em; color: #33304a;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -0.1em;
  width: 2em; height: 2em; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; color: #fff;
  background: var(--gradient); box-shadow: var(--shadow-sm);
}

/* Guide cards — a column variant of .app-card (no icon) */
.app-card.guide-card { flex-direction: column; align-items: flex-start; gap: 4px; }
.guide-card .body { min-width: 0; }
.guide-card .uses {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent-violet); margin-top: 0.2em;
}
