/* ============================================================
   IoT Parrot marketing site — shared styles
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0f1923;
  --bg-elevated: #162330;
  --accent: #f0a500;
  --link: #4ea8de;
  --text: #ffffff;
  --text-body: #ccd6e0;
  --text-muted: #aab8c5;
  --text-subtle: #8899aa;
  --border: #1f2d3a;
  --max-content: 1080px;
  --max-prose: 720px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
}

/* Layout containers */
.container { max-width: var(--max-content); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--max-prose); margin: 0 auto; padding: 48px 24px; }
.prose h1 { font-size: 2rem; margin-bottom: 8px; }
.prose h2 { font-size: 1.25rem; }

/* Typography */
h1, h2, h3 { color: var(--text); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 1.5rem; margin-top: 32px; margin-bottom: 12px; }
h3 { font-size: 1.125rem; margin-bottom: 8px; }
p { margin-bottom: 12px; color: var(--text-body); }
ul { margin-bottom: 12px; padding-left: 24px; }
li { margin-bottom: 8px; color: var(--text-body); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; color: var(--text-muted); }

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(15, 25, 35, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a:not(.btn-primary) {
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.site-nav a:not(.btn-primary):hover {
  color: var(--text);
  text-decoration: none;
}

/* Logo */
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.logo-text span { color: var(--accent); }
.logo-text a { color: inherit; }
.logo-text a:hover { text-decoration: none; }

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #0f1923; }
.btn-primary:hover { opacity: 0.9; text-decoration: none; }
.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-secondary:hover { background: var(--bg-elevated); text-decoration: none; }

/* Site footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.site-footer .footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 80px 0;
}
.hero-content h1 { font-size: 3rem; }
.hero-content .tagline {
  font-size: 1.125rem;
  color: var(--text-subtle);
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero-content .description {
  color: var(--text-body);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-content .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, var(--bg) 95%);
  pointer-events: none;
}

/* Generic section spacing */
.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 48px; }

/* Feature grid (3-col on landing) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

/* Steps (numbered) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; padding: 24px; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.pricing-card .tier-name { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.pricing-card .tier-tagline { font-size: 0.875rem; color: var(--text-subtle); margin-bottom: 16px; }
.pricing-card .price { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pricing-card .price-cadence { font-size: 0.875rem; color: var(--text-subtle); margin-bottom: 24px; }
.pricing-card .tier-cta { margin-bottom: 24px; }
.tier-features { list-style: none; padding: 0; margin: 0; font-size: 0.9375rem; }
.tier-features li { padding: 6px 0; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.tier-features li:last-child { border-bottom: none; }
.tier-features li.unavailable { color: var(--text-subtle); }

/* Custom plans link */
.custom-plans { text-align: center; margin: 24px 0 64px; font-size: 1rem; }

/* FAQ — native <details> accordion */
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary {
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  margin-right: 12px;
  color: var(--accent);
  font-weight: 700;
  width: 16px;
}
.faq details[open] summary::before { content: "−"; }
.faq details > p,
.faq details > ul { margin-top: 12px; color: var(--text-body); }

/* Contact channels */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.contact-channel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.contact-channel .channel-label { font-size: 0.875rem; color: var(--text-subtle); margin-bottom: 4px; }
.contact-channel .channel-value { font-size: 1rem; color: var(--text); }
.contact-channel .channel-value a { color: var(--text); }

/* Screenshot placeholder slot */
.screenshot-slot {
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
  padding: 24px;
}
.screenshot-slot.aspect-wide { aspect-ratio: 16 / 10; }
.screenshot-slot.aspect-tall { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; }

/* Page meta (last-updated date on legal/policy pages) */
.updated {
  font-size: 0.875rem;
  color: var(--text-subtle);
  margin-bottom: 32px;
}

/* Logo block (used inside privacy/terms top of prose) */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0; }
  .hero-image { order: -1; max-height: 360px; }
  .hero-content h1 { font-size: 2.25rem; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .contact-channels { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header .container { flex-direction: column; gap: 12px; }
  .site-nav { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .hero-content h1 { font-size: 1.875rem; }
}
