/* PackBuddy marketing site — shared dark/glass stylesheet.
 *
 * Matches the in-app aesthetic: dark canvas, near-black panels with a
 * subtle border, amber/yellow accent. System font stack so we don't
 * pay a font download on landing.
 *
 * Pages that consume this file:
 *   /                     (landing)
 *   /privacy              (privacy policy)
 *   /terms                (terms of service)
 *   /auth/reset-password  (universal-link fallback)
 *
 * Each page links this via:
 *   <link rel="stylesheet" href="/styles.css">
 *
 * Cloudflare Pages serves the file as text/css automatically (filename
 * has the right extension — no `_headers` override needed).
 */

:root {
  --bg:          #0b0c10;
  --panel:      #15161c;
  --panel-2:    #1a1b22;
  --border:     #2a2c36;
  --accent:     #ffcc00;
  --accent-soft: rgba(255, 204, 0, 0.14);
  --text:       #f4f4f6;
  --muted:      #9aa0a6;
  --dim:        #6b7180;
  --success:    #4ade80;
  --error:      #f87171;
  --max-w:      1100px;
  --radius:     14px;
  --radius-sm:  10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ── Header ────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.site-brand:hover { text-decoration: none; }

.site-brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #ffaa00);
  box-shadow: 0 4px 14px rgba(255, 204, 0, 0.25);
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav .button {
  padding: 8px 16px;
  background: var(--accent);
  color: #000;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.site-nav .button:hover { text-decoration: none; opacity: 0.92; }

@media (max-width: 640px) {
  .site-nav a:not(.button) { display: none; }
}

/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 20px 60px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 56px 20px 40px;
    gap: 36px;
  }
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 900;
}

.hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(255, 204, 0, 0.35);
}

.hero p.lead {
  margin: 0 0 28px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 540px;
}

.hero__cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #000;
  border: 1px solid #2a2a30;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.app-store-badge:hover { text-decoration: none; border-color: var(--accent); }

.app-store-badge__apple {
  width: 22px;
  height: 22px;
}

.app-store-badge__text { display: flex; flex-direction: column; line-height: 1.1; }
.app-store-badge__small { font-size: 10px; color: #c7c7d1; letter-spacing: 0.5px; text-transform: uppercase; }
.app-store-badge__big { font-size: 17px; font-weight: 800; }

.hero__visual {
  position: relative;
  aspect-ratio: 9 / 19.5;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 36px;
  background: linear-gradient(160deg, #1d1f29, #0b0c10);
  border: 1px solid var(--border);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 8px rgba(255, 204, 0, 0.04);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual__placeholder {
  text-align: center;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Sections ──────────────────────────────────────────────────── */

section.band {
  padding: 80px 20px;
}

section.band.dark { background: var(--panel); border-block: 1px solid var(--border); }

.band__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.band h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.6px;
  font-weight: 800;
}

.band p.intro {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 17px;
  max-width: 680px;
}

/* Feature grid ── 4 cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.feature:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Pricing ── 2 plan cards side by side */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 740px;
  margin: 0 auto;
}

.plan {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  position: relative;
}

.plan.featured::before {
  content: "BEST VALUE";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.plan__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.plan__price {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1.2px;
  margin: 0 0 4px;
}

.plan__price .unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}

.plan__note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.plan li {
  padding: 8px 0;
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.plan li::before {
  content: "•";
  color: var(--accent);
  font-weight: 800;
}

/* ── Footer ────────────────────────────────────────────────────── */

.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 36px 20px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}

.site-footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer__links a { color: var(--muted); }
.site-footer__links a:hover { color: var(--text); }

.site-footer__tm {
  font-size: 11px;
  color: var(--dim);
  max-width: 720px;
  margin-top: 16px;
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ── Legal / long-form text pages ──────────────────────────────── */

.legal {
  max-width: 740px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.legal h1 {
  font-size: clamp(30px, 4vw, 40px);
  margin: 0 0 8px;
  letter-spacing: -0.8px;
  font-weight: 900;
}

.legal .effective {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 36px;
}

.legal h2 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  font-weight: 800;
  color: var(--accent);
}

.legal h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text);
}

.legal p,
.legal li {
  color: #d4d6dd;
  font-size: 15px;
  line-height: 1.7;
}

.legal ul,
.legal ol {
  padding-left: 24px;
}

.legal li { padding: 4px 0; }

.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }

.legal blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  background: var(--panel);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}

/* ── Reset-password fallback ───────────────────────────────────── */

.fallback {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

.fallback h1 {
  font-size: 32px;
  letter-spacing: -0.5px;
  font-weight: 900;
  margin: 0 0 18px;
}

.fallback p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.fallback .button-row {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
