/* Icondex landing page — shared styles */

:root {
  --bg: #fafbff;
  --surface: #ffffff;
  --text: #0e1a2b;
  --muted: #5a6473;
  --border: #e6e8ef;
  --primary: #4a3aff;
  --primary-hover: #3a29e0;
  --accent: #1ab5ff;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.06), 0 1px 3px rgba(14, 26, 43, 0.08);
  --shadow-lg: 0 10px 30px rgba(74, 58, 255, 0.12);
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img {
  width: 28px; height: 28px;
}
.nav-btn {
  padding: 9px 18px;
  font-size: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 80ms ease, background 120ms ease, box-shadow 120ms ease, border-color 120ms ease, color 120ms ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

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

/* Hero */
.hero {
  text-align: center;
  padding: 56px 0 80px;
}
.hero-icon {
  width: 168px;
  height: 168px;
  margin: 0 auto 28px;
  display: block;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 700;
}
.hero p.subhead {
  font-size: 20px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* Section base */
.section {
  padding: 72px 0;
}
.section h2 {
  font-size: 36px;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-align: center;
  font-weight: 700;
}
.section p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
  line-height: 1.55;
}
.section-tint { background: var(--surface); }

/* Problem */
.problem {
  background: linear-gradient(180deg, transparent 0%, rgba(74, 58, 255, 0.04) 100%);
}
.problem p.statement {
  font-size: 22px;
  color: var(--text);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}
.problem p.resolution {
  font-size: 18px;
  color: var(--muted);
  text-align: center;
  max-width: 720px;
  margin: 24px auto 0;
}
.problem strong { color: var(--primary); }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
.feature:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.feature h3 {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 600;
}
.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Pricing */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.pricing-card .tag {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price {
  font-size: 64px;
  font-weight: 700;
  color: var(--primary);
  margin: 12px 0 4px;
  letter-spacing: -0.02em;
}
.price small {
  font-size: 18px;
  color: var(--muted);
  font-weight: 500;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  text-align: left;
}
.pricing-card li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--text);
}
.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.pricing-card .ctas {
  flex-direction: column;
}

/* FAQ */
.faq {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}
.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.footer a { color: var(--muted); margin: 0 12px; }
.footer a:hover { color: var(--primary); }
.footer-credit { margin-top: 12px; }

/* Prose (used by privacy.html and eula.html) */
.prose {
  max-width: 720px;
  margin: 32px auto 64px;
  padding: 0 24px;
}
.prose h1 {
  font-size: 36px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  font-weight: 700;
}
.prose .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}
.prose h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  font-weight: 600;
}
.prose p {
  margin: 0 0 16px;
  color: var(--text);
}
.prose ul {
  margin: 0 0 16px;
  padding-left: 24px;
  color: var(--text);
}
.prose li { margin-bottom: 8px; }
.prose code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 14px;
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  background: rgba(26, 181, 255, 0.06);
  margin: 16px 0;
  padding: 12px 16px;
  color: var(--text);
  border-radius: 4px;
}

/* Mobile */
@media (max-width: 720px) {
  .hero { padding: 32px 0 56px; }
  .hero h1 { font-size: 40px; }
  .hero p.subhead { font-size: 18px; }
  .hero-icon { width: 128px; height: 128px; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 28px; }
  .features { grid-template-columns: 1fr; }
  .pricing-card { padding: 28px; }
  .price { font-size: 52px; }
  .problem p.statement { font-size: 19px; }
  .prose h1 { font-size: 30px; }
}
