/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0d0f;
  --surface:   #141417;
  --border:    #222228;
  --text:      #f0f0f2;
  --muted:     #888898;
  --green:     #34d058;
  --yellow:    #f9c74f;
  --orange:    #f76c2f;
  --red:       #e0302a;
  --accent:    #34d058;
  --radius:    14px;
  --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ── Shared Layout ────────────────────────────────────── */
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ──────────────────────────────────────────────── */
nav {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.wordmark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}
.wordmark span { color: var(--accent); }
nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}
nav ul a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}
nav ul a:hover { color: var(--text); }

/* ── Footer ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ── Index: Hero ──────────────────────────────────────── */
.index-hero {
  text-align: center;
  padding: 100px 24px 60px;
}
.index-hero .pickle-logo {
  font-size: 48px;
  margin-bottom: 20px;
}
.index-hero h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.index-hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 440px;
  margin: 0 auto;
}

/* ── Index: App Grid ──────────────────────────────────── */
.apps-section { padding: 20px 0 100px; }
.apps-section h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.app-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.app-card {
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.app-card:hover {
  border-color: #444;
  transform: translateY(-2px);
}
.app-card .icon {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.app-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.app-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.app-card .icon img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 14px;
}
.app-card .icon img.icon-perimeter {
  width: 75%;
}
.app-card .badge {
  display: inline-block;
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(52,208,88,0.12);
  color: var(--green);
  border: 1px solid rgba(52,208,88,0.25);
}
.app-card .badge.coming-soon {
  background: rgba(136,136,152,0.10);
  color: var(--muted);
  border-color: rgba(136,136,152,0.2);
}
div.app-card {
  cursor: default;
}
div.app-card:hover {
  border-color: var(--border);
  transform: none;
}

/* ── Perimeter: Hero ──────────────────────────────────── */
.p-hero {
  text-align: center;
  padding: 80px 24px 64px;
  position: relative;
}
.p-hero .app-icon {
  font-size: 72px;
  margin-bottom: 24px;
  line-height: 1;
}
.glow-ring {
  display: inline-block;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(52,208,88,0.15), rgba(247,108,47,0.15));
  box-shadow: 0 0 40px rgba(52,208,88,0.2), 0 0 80px rgba(247,108,47,0.1);
  margin-bottom: 28px;
}
.p-hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.p-hero .tagline {
  font-size: 18px;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 10px;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: #555; }

/* ── Perimeter: How It Works ──────────────────────────── */
.how-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.how-section h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}
.glow-stages {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stage {
  flex: 1;
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stage:last-child { border-right: none; }
.stage .dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 auto 14px;
}
.stage h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.stage p { font-size: 12px; color: var(--muted); line-height: 1.4; }

.stage-1 { background: rgba(52,208,88,0.04); }
.stage-1 .dot { background: var(--green); box-shadow: 0 0 12px var(--green); }
.stage-2 { background: rgba(249,199,79,0.04); }
.stage-2 .dot { background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }
.stage-3 { background: rgba(247,108,47,0.06); }
.stage-3 .dot { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.stage-4 { background: rgba(224,48,42,0.06); }
.stage-4 .dot { background: var(--red); box-shadow: 0 0 12px var(--red); }

/* ── Perimeter: Features ──────────────────────────────── */
.features-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.features-section h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-card .fi { font-size: 26px; margin-bottom: 12px; }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── Perimeter: Pricing ───────────────────────────────── */
.pricing-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border);
}
.pricing-section h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 580px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.price-card.pro {
  border-color: rgba(52,208,88,0.4);
  background: rgba(52,208,88,0.04);
}
.price-card .tier {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.price-card.pro .tier { color: var(--green); }
.price-card .amount {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.price-card .amount span { font-size: 14px; font-weight: 400; color: var(--muted); }
.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-card ul li {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.price-card ul li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
.trial-note {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .glow-stages { flex-direction: column; }
  .stage { border-right: none; border-bottom: 1px solid var(--border); }
  .stage:last-child { border-bottom: none; }
  .pricing-grid { grid-template-columns: 1fr; }
}
