/* PicklePass site. Palette and fonts follow the app (src/constants/theme.ts in the app repo).
   Fonts are self-hosted (fonts/, SIL OFL), so no page loads anything from a third party. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/Barlow_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/Barlow_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/Barlow_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("fonts/Barlow_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("fonts/BarlowCondensed_800ExtraBold.ttf") format("truetype"); }

:root {
  --court: #173E32;
  --court-strong: #0F2C23;
  --court-raised: #285344;
  --court-soft: #EAF0E9;
  /* Brand accent: mango since release 10 (was lime #D5F36A), same as colors.lime in the app. Fills and text on green only. */
  --lime: #FFC93C;
  --ink: #17231E;
  --ink-soft: #5F6D66;
  --line: #E2E8E0;
  --surface: #FFFFFF;
  --surface-alt: #F5F5EF;
  --on-court: #D0DDD5;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  --text-sm: .9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --text-3xl: clamp(2rem, 1.5rem + 2.2vw, 2.75rem);
  --text-4xl: clamp(2.75rem, 1.9rem + 4vw, 4.5rem);

  --radius-sm: .5rem;
  --radius: .875rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 1px 2px rgba(23, 35, 30, .06);
  --shadow-md: 0 4px 12px rgba(23, 35, 30, .08);
  --shadow-lg: 0 28px 56px -16px rgba(23, 35, 30, .28);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--court); text-underline-offset: 3px; }
a:hover { color: var(--court-raised); }
:focus-visible { outline: 3px solid var(--court); outline-offset: 2px; border-radius: 4px; }
/* On the dark green sections the ring is mango (green would vanish there). */
.stats :focus-visible, .cta :focus-visible, .site-footer :focus-visible, .phone-head :focus-visible { outline-color: var(--lime); }

.wrapper { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--court); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--court); padding: 5px; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; letter-spacing: .06em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: var(--text-sm); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--court); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--court); color: #fff; font-weight: 600; font-size: var(--text-sm);
  text-decoration: none; transition: background .2s ease;
}
.button:hover { background: var(--court-raised); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--court-soft); color: var(--court); font-size: .8125rem; font-weight: 600;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--court); box-shadow: 0 0 0 3px var(--lime); }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: var(--text-4xl); line-height: .98; letter-spacing: -.005em;
  margin: 22px 0 20px; color: var(--court);
}
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--lime) 62%); padding: 0 .06em; }
.hero-lead { font-size: var(--text-lg); color: var(--ink-soft); max-width: 34rem; margin: 0 0 28px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 18px; border-radius: var(--radius);
  background: var(--ink); color: #fff; text-decoration: none;
}
.store-button svg { width: 24px; height: 24px; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-text small { font-size: .6875rem; opacity: .8; }
.store-text strong { font-size: 1.0625rem; font-weight: 600; }
.store-button.soon { cursor: default; }
.store-button.outline { background: transparent; color: var(--court); border: 1.5px solid var(--court); }
.hero-meta { margin-top: 18px; font-size: var(--text-sm); color: var(--ink-soft); }

/* ---------- Phone mockups (drawn in HTML; replace with real screenshots later) ---------- */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage::before {
  content: ""; position: absolute; inset: 8% 4%;
  background: radial-gradient(closest-side, rgba(255, 201, 60, .45), transparent);
  filter: blur(10px);
}
.phone {
  position: relative; width: 300px; aspect-ratio: 9 / 18;
  border-radius: 44px; padding: 12px; background: #0d1512;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  height: 100%; border-radius: 34px; overflow: hidden;
  background: var(--surface-alt); display: flex; flex-direction: column;
  font-size: 13px; line-height: 1.35;
}
.phone-status { display: flex; justify-content: space-between; padding: 10px 22px 4px; font-size: 11px; font-weight: 600; color: #fff; background: var(--court); }
.phone-head { background: var(--court); color: #fff; padding: 10px 18px 18px; }
.phone-head small { display: block; color: var(--lime); font-weight: 600; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.phone-head strong { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }

.pass { margin: -8px 14px 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow-md); overflow: hidden; }
.pass-top { padding: 14px 16px 12px; }
.pass-court { font-weight: 700; font-size: 15px; color: var(--court); }
.pass-when { color: var(--ink-soft); font-size: 12px; }
.chip { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--court-soft); color: var(--court); font-size: 11px; font-weight: 600; }
.chip.lime { background: var(--lime); }
.pass-tear { border-top: 2px dashed var(--line); margin: 0 12px; position: relative; }
.pass-tear::before, .pass-tear::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-alt); }
.pass-tear::before { left: -20px; } .pass-tear::after { right: -20px; }
.pass-qr { padding: 14px 16px 16px; display: flex; gap: 14px; align-items: center; }
.pass-qr svg { width: 84px; height: 84px; flex: none; }
.pass-code { min-width: 0; white-space: nowrap; }
.pass-code small { display: block; color: var(--ink-soft); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.pass-code b { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.1; margin-bottom: 4px; color: var(--court); letter-spacing: .08em; }
.phone-note { margin: 12px 18px 0; color: var(--ink-soft); font-size: 11.5px; }
.mini-card { margin: 10px 14px 0; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-sm); }
.mini-card b { display: block; color: var(--court); font-size: 12px; }
.mini-card span { color: var(--ink-soft); font-size: 11px; }
.phone-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 6px 14px; background: #fff; border-top: 1px solid var(--line); font-size: 10px; color: var(--ink-soft); }
.phone-tabs span.on { color: var(--court); font-weight: 700; }

.slot-list { padding: 10px 14px; display: grid; gap: 8px; }
.slot { background: #fff; border-radius: 14px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); }
.slot b { display: block; color: var(--court); font-size: 13px; }
.slot span { color: var(--ink-soft); font-size: 11px; }
.slot .chip { margin: 0; }
.chip.wait { background: #FFF2D8; color: #815B13; }

/* ---------- Stats band ---------- */
.stats { background: var(--court); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.75rem; line-height: 1; color: var(--lime); }
.stat span { color: var(--on-court); font-size: var(--text-sm); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.eyebrow { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--court-raised); margin-bottom: 10px; }
.section h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--text-3xl); line-height: 1.02; color: var(--court); margin: 0 0 14px; }
.section-head p { color: var(--ink-soft); font-size: var(--text-lg); margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--court-soft); color: var(--court); display: grid; place-items: center; margin-bottom: 18px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 6px; font-size: var(--text-lg); color: var(--court); }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: var(--text-sm); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { text-align: center; padding: 0 12px; }
.step-number { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: var(--court); color: var(--lime); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; }
.step h3 { margin: 0 0 6px; font-size: var(--text-xl); color: var(--court); }
.step p { margin: 0; color: var(--ink-soft); font-size: var(--text-sm); }

.showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.showcase h2 { text-align: left; }
.showcase p { color: var(--ink-soft); font-size: var(--text-lg); }
.check-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173E32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; color: var(--court); display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--court-raised); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); }

.cta { background: var(--court); color: #fff; text-align: center; padding: 88px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; border: 60px solid rgba(255, 201, 60, .12); }
.cta h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--text-3xl); margin: 0 0 12px; color: #fff; }
.cta p { color: var(--on-court); font-size: var(--text-lg); margin: 0 0 28px; }
.cta .store-buttons { justify-content: center; }
.cta .store-button { background: var(--lime); color: var(--court); }

/* ---------- Footer ---------- */
.site-footer { background: var(--court-strong); color: var(--on-court); padding: 56px 0 28px; font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: var(--court-raised); }
.footer-tagline { margin: 14px 0 0; max-width: 18rem; }
.footer-col h4 { margin: 4px 0 12px; color: #fff; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-court); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Legal pages ---------- */
.doc-hero { background: var(--surface-alt); border-bottom: 1px solid var(--line); padding: 64px 0 40px; }
.doc-hero h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--text-3xl); line-height: 1; color: var(--court); margin: 14px 0 8px; }
.doc-hero p { margin: 0; color: var(--ink-soft); }
.doc-hero .wrapper { max-width: 800px; }
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 88px; }
.doc .lead { font-size: var(--text-lg); }
.doc h2 { font-size: var(--text-xl); color: var(--court); margin: 40px 0 8px; }
.doc h3 { font-size: var(--text-lg); color: var(--court); margin: 24px 0 6px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 5px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; margin: 20px 0; box-shadow: var(--shadow-sm); }
.card.highlight { border: 2px solid var(--court); }
.card h2 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--court-soft); color: var(--court); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid, .showcase { grid-template-columns: 1fr; gap: 48px; }
  .showcase-visual { order: 2; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .section { padding: 68px 0; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; padding: 32px 20px; }
  .phone { width: 270px; }
  .pass-qr { gap: 10px; padding: 12px; }
  .pass-qr svg { width: 72px; height: 72px; }
  .pass-code b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card, .faq-item summary::after { transition: none; }
}
