/* ============================================================
   FasterNotes landing — dark-violet oklch theme
   ============================================================ */

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

:root {
  --bg:          oklch(0.10 0.015 280);
  --bg-card:     oklch(0.155 0.018 280);
  --bg-card-h:   oklch(0.18 0.020 280);
  --bg-alt:      oklch(0.13 0.016 280);
  --border:      oklch(0.24 0.022 280);
  --border-h:    oklch(0.34 0.030 280);
  --text:        oklch(0.97 0.005 280);
  --text-muted:  oklch(0.63 0.010 280);
  --text-dim:    oklch(0.44 0.008 280);
  --accent:      oklch(0.65 0.22 290);
  --accent-dim:  oklch(0.55 0.18 290);
  --accent-glow: oklch(0.65 0.22 290 / 0.12);
  --accent-text: oklch(0.74 0.17 290);
  --green:       oklch(0.62 0.17 148);
  --r:           12px;
  --r-lg:        20px;
  --nav-h:       64px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 68px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { opacity: 0.87; transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 6px 32px oklch(0.65 0.22 290 / 0.22); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-h); }

.btn-sm  { padding: 7px 16px; font-size: 0.875rem; }
.btn-lg  { padding: 14px 30px; font-size: 1rem; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: oklch(0.10 0.015 280 / 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* ── Hero ── */
.hero {
  padding: 108px 0 88px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-20%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, oklch(0.65 0.22 290 / 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 72px;
  align-items: center;
}

.hero-text { max-width: 580px; }

.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid oklch(0.65 0.22 290 / 0.32);
  background: oklch(0.65 0.22 290 / 0.07);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero-text h1 em {
  font-style: normal;
  background: linear-gradient(130deg, oklch(0.76 0.19 282), oklch(0.60 0.25 298));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.72;
  margin-bottom: 36px;
  max-width: 490px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.trust-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.8125rem;
}
.dot { opacity: 0.35; }

/* ── Phone mockup ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-wrap {
  position: relative;
  width: 280px;
}
.phone-svg {
  width: 100%;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 32px 64px oklch(0 0 0 / 0.55));
}
.phone-glow {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 50px;
  background: radial-gradient(ellipse, oklch(0.65 0.22 290 / 0.20) 0%, transparent 70%);
  animation: float 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.phone-glow { animation-delay: 0.1s; }

/* ── How it works ── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 18px var(--accent-glow);
}
.step-icon {
  width: 52px; height: 52px;
  border-radius: var(--r);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-text);
}
.step-icon svg { width: 22px; height: 22px; }
.step h3 {
  font-size: 0.975rem;
  font-weight: 600;
  margin-bottom: 9px;
}
.step p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}
.step-connector {
  flex-shrink: 0;
  width: 48px; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  margin-top: 51px;
  align-self: flex-start;
}
.step-connector:nth-child(4) {
  background: linear-gradient(90deg, transparent, var(--border));
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid oklch(0.65 0.22 290 / 0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-text);
  margin-bottom: 18px;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 {
  font-size: 0.9625rem;
  font-weight: 600;
  margin-bottom: 9px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ── Download ── */
.download-card {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 72px;
  background: var(--bg-card);
  border: 1px solid oklch(0.65 0.22 290 / 0.22);
  border-radius: var(--r-lg);
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.download-card::before {
  content: '';
  position: absolute;
  top: -100px; left: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, oklch(0.65 0.22 290 / 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 13px;
  border-radius: 100px;
  background: oklch(0.62 0.17 148 / 0.10);
  border: 1px solid oklch(0.62 0.17 148 / 0.28);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.download-left h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.download-left > p {
  color: var(--text-muted);
  margin-bottom: 30px;
}
.download-note {
  display: flex !important;
  align-items: flex-start;
  gap: 7px;
  color: var(--text-dim) !important;
  font-size: 0.8125rem !important;
  margin-top: 18px !important;
  margin-bottom: 0 !important;
  line-height: 1.55;
}
.download-note svg { flex-shrink: 0; margin-top: 1px; color: var(--text-dim); }
.download-note strong { color: var(--text-muted); }

.download-right h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.requirements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 18px;
}
.requirements li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.requirements li svg {
  width: 14px; height: 14px;
  color: var(--green);
  flex-shrink: 0;
}
.req-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq-item {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.9625rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  gap: 16px;
  text-align: left;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--bg-card-h); }
.faq-chevron {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.26s ease;
}
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-q[aria-expanded="true"] { color: var(--text); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }

.faq-a-inner {
  overflow: hidden;
}
.faq-a-inner p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.72;
}
.faq-a a {
  color: var(--accent-text);
  text-decoration: none;
}
.faq-a a:hover { text-decoration: underline; }
.faq-a code {
  font-family: ui-monospace, 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.82em;
  background: oklch(0.19 0.020 280);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: oklch(0.85 0.012 280);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 20px;
  flex: 1;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-muted); }
.footer-copy {
  color: var(--text-dim);
  font-size: 0.8125rem;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }
  .hero-text { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .trust-strip { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-wrap { width: 220px; }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .step { max-width: 340px; }
  .step-connector {
    width: 1px; height: 36px;
    background: linear-gradient(180deg, var(--border), transparent) !important;
    margin-top: 0;
    align-self: center;
  }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .download-card {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 40px 32px;
  }

  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 56px; }
  .section-header { margin-bottom: 48px; }

  .features-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  .download-card { padding: 28px 20px; }
  .download-card::before { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-direction: column; gap: 12px; }
}
