/* ==========================================================================
   Stepify — Homepage
   Complete styles for the landing page at /.
   Requires base.css loaded first for brand tokens and font variables.
   ========================================================================== */

/* ---- Body override ---- */
body { line-height: 1.7; background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-heading); letter-spacing: -0.01em; }
a { color: #0E7490; text-decoration: underline; text-decoration-color: rgba(14,116,144,0.3); text-underline-offset: 2px; }
a:hover { text-decoration-color: rgba(14,116,144,1); }
.nav-logo, .btn, .example-card { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Layout ---- */
.container { padding: 0 1.5rem; }
section { padding: 5rem 0; }
section + section { border-top: 1px solid #e2e8f0; }

/* ---- Nav ---- */
.nav { background: #0f172a; padding: 0.75rem 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-text {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem;
  color: #f1f5f9; letter-spacing: -0.02em;
}
.nav-tag {
  font-size: 0.65rem; font-weight: 600; color: #67E8F9; background: #0c4a6e;
  padding: 0.15rem 0.5rem; border-radius: 3px; letter-spacing: 0.04em;
  text-transform: uppercase; margin-left: 0.25rem;
}

/* ---- Hero ---- */
.hero {
  background: #0f172a; padding: 6rem 0 5rem; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -15%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(8,145,178,0.12) 0%, transparent 70%); pointer-events: none;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; color: #f1f5f9; margin-bottom: 1rem; line-height: 1.15; }
.hero h1 em { font-style: normal; color: #22D3EE; }
.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem); color: #94a3b8; max-width: 560px;
  margin: 0 auto 2.5rem; line-height: 1.6;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.75rem 1.75rem; border-radius: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: opacity 0.15s;
}
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn-primary { background: #0E7490; color: white; }
.btn-secondary { background: transparent; color: #94a3b8; border: 1px solid #475569; }
.btn-secondary:hover { color: #f1f5f9; border-color: #94a3b8; }

/* ---- How it works ---- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }
.steps-grid .step-card { text-align: center; }
.step-icon { width: 3.5rem; height: 3.5rem; margin: 0 auto 1.25rem; position: relative; }
.step-icon .block { position: absolute; border-radius: 4px; background: #0891B2; }
.step-icon .b1 { width: 14px; height: 14px; bottom: 0; left: 4px; opacity: 0.3; }
.step-icon .b2 { width: 14px; height: 14px; bottom: 12px; left: 18px; opacity: 0.6; }
.step-icon .b3 { width: 14px; height: 14px; bottom: 24px; left: 32px; opacity: 1; }
.step-num {
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600;
  color: #0E7490; margin-bottom: 0.5rem;
}
.step-card h3 { font-size: 1.15rem; font-weight: 600; color: #0f172a; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.95rem; color: #475569; line-height: 1.6; }
@media (max-width: 640px) { .steps-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- Section headings ---- */
.section-label {
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600;
  color: #0E7490; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.section-heading {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; color: #0f172a;
  margin-bottom: 1rem; line-height: 1.2;
}
.section-intro { font-size: 1.05rem; color: #475569; max-width: 560px; margin-bottom: 2rem; }

/* ---- Example cards ---- */
.examples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.example-card {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  overflow: hidden; transition: border-color 0.15s;
}
.example-card:hover { border-color: #0891B2; text-decoration: none; }
.example-card .platform {
  font-size: 0.75rem; font-weight: 600; color: #0E7490; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 0.5rem;
}
.example-card h3 { font-size: 1rem; font-weight: 600; color: #0f172a; margin-bottom: 0.5rem; line-height: 1.4; }
.example-card .meta { font-size: 0.8rem; color: #64748b; }
.example-card .platform, .example-card h3, .example-card .meta { padding: 0 1.25rem; }
.example-card .platform { padding-top: 1rem; }
.example-card .meta { padding-bottom: 1.25rem; }
.examples-note { margin-top: 1.25rem; font-size: 0.85rem; color: #64748b; font-style: italic; }
.example-preview { aspect-ratio: 16/10; background: #e2e8f0; }
.example-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .examples-grid { grid-template-columns: 1fr; } }

/* ---- Audience cards ---- */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.audience-card {
  border-left: 3px solid #0891B2; padding: 1.25rem 1.5rem;
  background: #f8fafc; border-radius: 0 8px 8px 0;
}
.audience-card h3 { font-size: 1rem; font-weight: 600; color: #0f172a; margin-bottom: 0.35rem; }
.audience-card p { font-size: 0.9rem; color: #475569; line-height: 1.5; }
@media (max-width: 640px) { .audience-grid { grid-template-columns: 1fr; } }

/* ---- Differentiators ---- */
.diff-list { list-style: none; margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2.5rem; }
.diff-list li { padding-left: 1.5rem; position: relative; font-size: 0.95rem; color: #334155; line-height: 1.6; }
.diff-list li::before {
  content: ''; position: absolute; left: 0; top: 0.55rem;
  width: 8px; height: 8px; border-radius: 2px; background: #0891B2;
}
.diff-list li strong { color: #0f172a; font-weight: 600; }
@media (max-width: 640px) { .diff-list { grid-template-columns: 1fr; } }

/* ---- Beta CTA ---- */
.cta-section { background: #0f172a; text-align: center; border-top: none; }
.cta-section .section-heading { color: #f1f5f9; }
.cta-section p { color: #94a3b8; max-width: 480px; margin: 0 auto 2rem; }

/* ---- Footer override ---- */
footer { padding: 2.5rem 1rem; border-top: 1px solid #e2e8f0; color: #475569; }
footer a { color: #64748b; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---- Dark mode — [data-theme] ---- */
[data-theme="dark"] body { background: #0f172a; color: #f1f5f9; }
[data-theme="dark"] section + section { border-color: #1e293b; }
[data-theme="dark"] .hero { background: #020617; }
[data-theme="dark"] .section-heading { color: #f1f5f9; }
[data-theme="dark"] .section-intro { color: #94a3b8; }
[data-theme="dark"] .step-card h3,
[data-theme="dark"] .audience-card h3,
[data-theme="dark"] .example-card h3 { color: #f1f5f9; }
[data-theme="dark"] .step-card p,
[data-theme="dark"] .audience-card p { color: #94a3b8; }
[data-theme="dark"] .example-preview { background: #334155; }
[data-theme="dark"] .example-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .example-card:hover { border-color: #0891B2; }
[data-theme="dark"] .example-card .meta { color: #94A3B8; }
[data-theme="dark"] .audience-card { background: #1e293b; }
[data-theme="dark"] .diff-list li { color: #cbd5e1; }
[data-theme="dark"] .diff-list li strong { color: #f1f5f9; }
[data-theme="dark"] .cta-section { background: #020617; }
[data-theme="dark"] footer { border-color: #1e293b; color: #94A3B8; }
[data-theme="dark"] footer a { color: #94a3b8; }
[data-theme="dark"] a:focus-visible { outline-color: #22D3EE; }

/* ---- Dark mode — @media fallback (no JS) ---- */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) body { background: #0f172a; color: #f1f5f9; }
  html:not([data-theme]) section + section { border-color: #1e293b; }
  html:not([data-theme]) .hero { background: #020617; }
  html:not([data-theme]) .section-heading { color: #f1f5f9; }
  html:not([data-theme]) .section-intro { color: #94a3b8; }
  html:not([data-theme]) .step-card h3,
  html:not([data-theme]) .audience-card h3,
  html:not([data-theme]) .example-card h3 { color: #f1f5f9; }
  html:not([data-theme]) .step-card p,
  html:not([data-theme]) .audience-card p { color: #94a3b8; }
  html:not([data-theme]) .example-card { background: #1e293b; border-color: #334155; }
  html:not([data-theme]) .example-card:hover { border-color: #0891B2; }
  html:not([data-theme]) .example-card .meta { color: #94A3B8; }
  html:not([data-theme]) .audience-card { background: #1e293b; }
  html:not([data-theme]) .diff-list li { color: #cbd5e1; }
  html:not([data-theme]) .diff-list li strong { color: #f1f5f9; }
  html:not([data-theme]) .cta-section { background: #020617; }
  html:not([data-theme]) footer { border-color: #1e293b; color: #94A3B8; }
  html:not([data-theme]) footer a { color: #94a3b8; }
  html:not([data-theme]) a:focus-visible { outline-color: #22D3EE; }
}
