/* ═══════════════════════════════════════════════════════
   PELTED IO — style.css
   Dark, minimal, monospace + sans-serif studio site
   ═══════════════════════════════════════════════════════ */

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

/* ─── Design Tokens ──────────────────────────────────── */
:root {
  --bg:           #0a141e;
  --bg-panel:     #0e1c2b;
  --bg-raised:    #142130;
  --accent:       #59b8e6;
  --accent-dim:   rgba(89, 184, 230, .12);
  --green:        #3cbd6a;
  --green-dim:    rgba(60, 189, 106, .12);
  --text:         rgba(255, 255, 255, .88);
  --text-muted:   rgba(255, 255, 255, .55);
  --text-subtle:  rgba(255, 255, 255, .32);
  --border:       rgba(255, 255, 255, .08);
  --border-mid:   rgba(255, 255, 255, .13);

  --font-mono: 'Space Mono', 'SF Mono', 'Menlo', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container: 960px;
  --nav-h: 56px;

  /* z-index scale */
  --z-base:    10;
  --z-overlay: 20;
  --z-nav:     30;
  --z-modal:   50;
}

/* ─── Base ───────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  /* Subtle grid texture echoing the app's board aesthetic */
  background-image:
    linear-gradient(rgba(89, 184, 230, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 184, 230, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Respect reduced motion across the board */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ─── Layout ─────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Section Label ──────────────────────────────────── */
/* Matches the BAS app's section header aesthetic:
   uppercase mono, letter-spaced, subtle, with a rule */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 28px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity .18s ease, transform .14s ease, box-shadow .18s ease;
  border: none;
  white-space: nowrap;
}
.btn:hover  { opacity: .82; transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 1; }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 12px rgba(60, 189, 106, .25);
}
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(60, 189, 106, .35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-mid);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-mid); }

/* ─── Navigation ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  background: rgba(10, 20, 30, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--text);
  transition: opacity .15s;
}
.nav-logo:hover { opacity: .72; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .15s;
  cursor: pointer;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent); }
.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Radial glow — atmospheric, not thematic */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 65% 60% at 50% 40%,
    rgba(89, 184, 230, .07) 0%,
    transparent 68%
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.hero-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 20px;
}
.hero-heading {
  font-family: var(--font-sans);
  font-size: clamp(30px, 5.5vw, 48px);
  font-weight: 600;
  letter-spacing: -.5px;
  color: var(--text);
  line-height: 1.18;
  margin-bottom: 14px;
}
.hero-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  letter-spacing: .5px;
  line-height: 1.8;
}

/* ─── Products Section ───────────────────────────────── */
.products {
  padding: 72px 0 96px;
  border-top: 1px solid var(--border);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

/* ─── Product Card ───────────────────────────────────── */
.product-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color .2s;
}
.product-card--featured {
  border-color: rgba(89, 184, 230, .20);
}
.product-card--featured:hover {
  border-color: rgba(89, 184, 230, .38);
}
.product-card--dim {
  opacity: .72;
}

.product-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.product-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}
/* Placeholder icon for apps without an image yet */
.product-icon--placeholder {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-icon--placeholder svg {
  width: 28px;
  height: 28px;
  color: var(--text-subtle);
}

.product-meta { flex: 1; min-width: 0; }
.product-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 7px;
}
.product-badge--live {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(60, 189, 106, .22);
}
.product-badge--soon {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(89, 184, 230, .20);
}
.product-name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .3px;
  line-height: 1.3;
}
.product-platform {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-top: 3px;
}
.product-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.product-actions { margin-top: 4px; }

/* App Store button with Apple logo */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity .18s, transform .14s, box-shadow .18s;
  box-shadow: 0 2px 12px rgba(60, 189, 106, .25);
  white-space: nowrap;
}
.btn-appstore:hover {
  opacity: .85;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(60, 189, 106, .35);
}
.btn-appstore:active { transform: translateY(0); }
.btn-appstore:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-appstore svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.footer-logo {
  height: 48px;
  width: auto;
  opacity: .72;
  transition: opacity .2s;
}
.footer-logo:hover { opacity: 1; }
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: .6px;
  transition: color .15s;
  cursor: pointer;
}
.footer-link:hover { color: var(--text-muted); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .4px;
  color: var(--text-subtle);
  text-align: right;
}

/* ─── Consulting ─────────────────────────────────────── */
.consulting-body {
  max-width: 640px;
  padding: 52px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.consulting-body p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}
.consulting-cta {
  padding: 48px 0 80px;
  border-top: 1px solid var(--border);
}
.consulting-cta .contact-email {
  font-size: 16px;
}

/* ─── Support / Page header ──────────────────────────── */
.page-header {
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-family: var(--font-mono);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 10px;
}
.page-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}
.page-sub a {
  color: var(--accent);
}
.page-sub a:hover { opacity: .8; }

/* ─── Support FAQ ────────────────────────────────────── */
.support-section { padding: 52px 0 0; }
.support-section:last-of-type { padding-bottom: 80px; }

.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

details {
  border-top: 1px solid var(--border);
}
details:first-child { border-top: none; }

summary {
  padding: 15px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--bg-panel);
  transition: background .15s;
  user-select: none;
  line-height: 1.45;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--text-subtle);
  flex-shrink: 0;
  transition: color .15s;
}
details[open] summary::after { content: '−'; color: var(--accent); }
summary:hover { background: var(--bg-raised); }
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.faq-answer {
  padding: 14px 18px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.72;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}
.faq-answer p + p { margin-top: 8px; }

/* ─── Support contact block ──────────────────────────── */
.support-contact {
  padding: 52px 0 80px;
  border-top: 1px solid var(--border);
}
.contact-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.contact-email {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}
.contact-email:hover { opacity: .8; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 72px 24px 60px; }
  .products { padding: 56px 0 72px; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .footer-copy { text-align: left; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
  summary { font-size: 12px; padding: 14px 14px; }
  .faq-answer { padding: 12px 14px 16px; }
}
