/* Onsu Home — Shared Static Page Styles
 * Brand: Ethereal, calming. Dark-first.
 * Palette: Sky-Indigo-Violet (#38BDF8 → #6366F1 → #A78BFA)
 * Typography: Inter (body), Lora (marketing headlines)
 */

/* Google Fonts loaded via <link> in each HTML head for performance.
   See: Inter (body), Lora (headings) */

/* — Design Tokens — */
:root {
  --bg: #0B1120;
  --surface: #151D2E;
  --surface-hover: #1C2740;
  --border: #243044;
  --text: #F1F5F9;
  --text-dim: #94A3B8;
  --accent-start: #38BDF8;
  --accent-mid: #6366F1;
  --accent-end: #A78BFA;
  --success: #34D399;
  --warning: #FBBF24;
  --hot: #FB923C;
  --danger: #F87171;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-hover: #F1F5F9;
    --border: #E2E8F0;
    --text: #0F172A;
    --text-dim: #64748B;
    --accent-start: #0EA5E9;
    --accent-mid: #6366F1;
    --accent-end: #A78BFA;
  }
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  -webkit-font-smoothing: antialiased;
}

/* — Typography — */
h1 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}

h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 17px;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--text);
}

p {
  margin-bottom: 16px;
  color: var(--text);
}

.meta {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
}

.subtitle {
  font-family: 'Inter', sans-serif;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* — Hero Section (landing pages) — */
.hero {
  text-align: center;
  padding: 48px 0 32px;
}

.hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero .subtitle {
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-gradient-text {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-mid), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* — Links — */
a {
  color: var(--accent-start);
  text-decoration: none;
  transition: color 200ms ease;
}
a:hover {
  color: var(--accent-mid);
  text-decoration: underline;
}

/* — Lists — */
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  color: var(--text);
}

/* — Tables — */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0 24px;
  font-size: 14px;
}
th, td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
td {
  color: var(--text);
}

/* — Cards — */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.card h3 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* — Feature Grid — */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.feature-card .icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 0;
}

/* — Pricing Cards — */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.pricing-card.featured {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.06), 0 0 40px rgba(56, 189, 248, 0.03);
}

.pricing-card .tier-name {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 4px;
}

.pricing-card .price {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card .billing {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.pricing-card ul {
  text-align: left;
  padding-left: 18px;
  margin-bottom: 0;
}

.pricing-card li {
  font-size: 14px;
  color: var(--text-dim);
}

/* — CTAs — */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-mid), #4F46E5);
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: box-shadow 200ms ease, transform 200ms ease;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
.cta-button:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
  text-decoration: none;
  color: #FFFFFF;
}

.cta-secondary {
  display: inline-block;
  background: var(--surface);
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  margin-left: 12px;
  transition: background 200ms ease;
}
.cta-secondary:hover {
  background: var(--surface-hover);
  text-decoration: none;
  color: var(--text);
}

/* — FAQ Styling — */
.faq-item {
  margin-bottom: 28px;
}
.faq-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--text);
}
.faq-item p {
  color: var(--text-dim);
  font-size: 15px;
}

/* — Steps List — */
.step {
  margin-bottom: 32px;
  padding-left: 48px;
  position: relative;
}
.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15));
  color: var(--accent-start);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 {
  margin-top: 4px;
}

/* — Endorsed Badge — */
.endorsed {
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.7;
}

/* — Site Footer — */
.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.site-footer nav {
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
  margin: 0 8px;
  transition: color 200ms ease;
}
.site-footer a:hover {
  color: var(--accent-start);
}

.site-footer .separator {
  color: var(--border);
  margin: 0 2px;
}

.site-footer .current {
  color: var(--text-dim);
  margin: 0 8px;
  font-weight: 500;
}

.site-footer .copyright {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.6;
}

/* — Responsive — */
@media (max-width: 640px) {
  body {
    padding: 24px 16px 48px;
  }
  
  h1, .hero h1 {
    font-size: 28px;
  }
  
  .hero {
    padding: 32px 0 24px;
  }
  
  .subtitle {
    font-size: 16px;
  }
  
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-secondary {
    margin-left: 0;
    margin-top: 10px;
    display: block;
    text-align: center;
  }
}
