/* SiteLine Planner — Marketing Site Styles */

:root {
  --bg: #0f172a;
  --bg-elevated: #111c33;
  --bg-card: #16223d;
  --border: #1f2c4a;
  --border-strong: #2a3a5e;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --highlight: #34d399;
  --highlight-soft: rgba(52, 211, 153, 0.12);
  --accent-soft: rgba(59, 130, 246, 0.12);
  --max-width: 1120px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(59, 130, 246, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(52, 211, 153, 0.06), transparent 60%);
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--highlight);
}

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

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

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  color: var(--text);
}

.nav-brand .logo {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: white !important;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--highlight) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white !important;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  color: white !important;
}

.btn-secondary {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text) !important;
}

/* Section common */
section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--highlight);
  background: var(--highlight-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
}

.section-head p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* What is */
.what-is {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature {
  text-align: left;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  color: var(--highlight);
}

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

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

/* App cards */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-card);
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-icon.rf {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.app-icon.dish {
  background: linear-gradient(135deg, #34d399 0%, #047857 100%);
}

.app-icon.solar {
  background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
}

.app-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.app-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
}

.app-card .app-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin: 2px 0 0;
}

.app-card p.app-desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.app-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-features li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-features li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--highlight);
  flex-shrink: 0;
}

.store-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-badge svg {
  width: 12px;
  height: 12px;
}

.app-card-cta {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.app-card-cta a {
  font-weight: 600;
  color: var(--accent);
}

.app-status {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.app-status.live {
  color: var(--highlight);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(52, 211, 153, 0.06) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 24px 0;
}

.cta-band h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-dim);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* Doc pages (privacy, support) */
.doc-page {
  padding: 64px 0 48px;
}

.doc-page .container {
  max-width: 760px;
}

.doc-page h1 {
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 700;
}

.doc-page .effective {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 40px;
}

.doc-page h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  color: var(--text);
}

.doc-page h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}

.doc-page p, .doc-page li {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.doc-page ul {
  padding-left: 22px;
}

.doc-page strong {
  color: var(--text);
  font-weight: 600;
}

.doc-page hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Contact card */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
  text-align: center;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
}

.contact-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.contact-card a.email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.contact-card a.email:hover {
  background: var(--accent);
  color: white;
}

/* Responsive */
@media (max-width: 880px) {
  .feature-grid,
  .apps-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 64px 0 48px;
  }

  section {
    padding: 48px 0;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
