/* Refectum – Cloudflare/Dropbox-tier design */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --primary: #1a56db;
  --primary-hover: #1648b8;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --bg-subtle: #f9fafb;
  --bg-warm: #f5f5f4;
  --success: #059669;
  --error: #dc2626;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lift: 0 8px 24px rgba(0,0,0,0.08);
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Solway', Georgia, serif;
  font-size: 16px;
  background: #fff;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 640px; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 480px) {
  .container, .container-narrow { padding-left: 1rem; padding-right: 1rem; }
}

/* Header – sticky, blurred */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { color: var(--primary); }
nav { display: flex; gap: 2rem; align-items: center; }
nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav a:hover { color: var(--text); border-bottom-color: var(--text); }
nav a:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
nav span { color: var(--text-muted); font-size: 0.9375rem; font-weight: 500; }
@media (max-width: 600px) { nav { gap: 1rem; } }

main { padding: 3rem 0 3rem; }
main.main-inner { padding: 5rem 0 6rem; }
@media (max-width: 768px) {
  main { padding: 2rem 0; }
  main.main-inner { padding: 3.5rem 0 4rem; }
}

/* Hero */
.hero { text-align: center; margin-bottom: 6rem; }
.hero h1 {
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero h1 .promise { font-weight: 700; }
.hero h1 .hero-timeline {
  display: block;
  font-size: 0.65em;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
  margin-top: 0.4rem;
}
.hero-lead {
  display: inline-block;
  background: #f0f5ff;
  color: var(--primary);
  border-radius: 999px;
  padding: 0.25rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  margin: 0 0 1rem;
  text-transform: none;
  letter-spacing: 0;
}
.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}
.cta-reassurance { font-size: 0.8125rem; color: var(--text-muted); margin: 0.75rem 0 0; }
.promise-strip {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 1rem 0 2.5rem;
  padding: 0;
  width: 100%;
}
.promise-strip span { white-space: nowrap; }
@media (max-width: 480px) { .promise-strip span { white-space: normal; } }

/* Quote block */
.quote-block {
  text-align: center;
  padding: 2.5rem 1.5rem;
  max-width: 36em;
  margin: 0 auto;
}
.quote-block p {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

/* Social proof – dark band */
.social-proof {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #111827;
  color: #fff;
}
.social-proof p { margin: 0; font-size: 1.0625rem; font-weight: 500; }
.social-proof .social-proof-sub { margin-top: 0.5rem; opacity: 0.9; font-weight: 400; }

/* Benefits */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-align: center;
}
.benefits { padding: 5rem 0; background: #fff; }
.benefits .container-wide { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.benefits h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-align: center;
  color: var(--text);
  letter-spacing: -0.02em;
}
.benefits-tagline {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 0 2rem;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
}
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (min-width: 600px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .benefits-grid { grid-template-columns: 1fr; } }
.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.benefit-card:hover {
  box-shadow: var(--shadow-lift);
  border-color: #d1d5db;
}
.benefit-card .icon-wrap {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f5ff;
  border-radius: 10px;
}
.benefit-card .icon-wrap svg { width: 24px; height: 24px; }
.benefit-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.35rem; color: var(--text); letter-spacing: -0.01em; }
.benefit-card p { font-size: 0.875rem; color: var(--text-secondary); margin: 0; line-height: 1.45; }

/* How it works */
.how-it-works { padding: 4rem 0; background: var(--bg-subtle); }
.how-it-works .container-wide { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.how-it-works h2 { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.35rem; text-align: center; color: var(--text); letter-spacing: -0.02em; }
.how-it-works-sub { font-size: 0.9375rem; color: var(--text-secondary); margin: 0 0 1.5rem; text-align: center; }
.how-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; align-items: center; }
.how-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.how-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  flex-shrink: 0;
}
.how-step .step-icon { width: 24px; height: 24px; color: var(--text); flex-shrink: 0; }
.how-step .step-icon svg { width: 100%; height: 100%; }
.how-step-arrow { color: #d1d5db; flex-shrink: 0; }
.how-step-arrow svg { width: 20px; height: 20px; }
@media (max-width: 500px) { .how-steps { flex-direction: column; } .how-step-arrow { display: none; } }

/* CTA */
.cta {
  display: inline-block;
  padding: 0.875rem 2rem;
  min-width: 200px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: background 0.2s, box-shadow 0.2s;
}
.cta:hover { background: var(--primary-hover); box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.cta:focus, a.cta:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.cta-secondary {
  display: inline-block;
  padding: 0.875rem 2rem;
  min-width: 200px;
  text-align: center;
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
  transition: background 0.2s, color 0.2s;
}
.cta-secondary:hover { background: #f0f5ff; }
.cta-secondary:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Pricing */
#pricing { padding: 4rem 0; }
.pricing-box {
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  background: #fff;
  transition: box-shadow 0.2s;
}
.pricing-box:hover { box-shadow: var(--shadow-lift); }
.pricing-box h2 { font-size: 1.125rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--text); letter-spacing: -0.02em; }
.price-tagline { font-size: 0.9375rem; color: var(--text-secondary); margin: 0 0 0.5rem; }
.price { font-size: 2.25rem; font-weight: 600; color: var(--primary); margin: 0 0 0.25rem; }
.price .price-unit { font-weight: 400; font-size: 1rem; color: var(--text-secondary); }
.price-note { font-size: 0.875rem; color: var(--text-muted); margin: 0 0 1rem; }
.pricing-box .cta { margin-top: 0.5rem; }
@media (max-width: 480px) { .pricing-box .cta, .cta { width: 100%; min-width: 0; } }

/* FAQ */
.faq { padding: 4rem 0; background: #fff; }
.faq h2 { font-size: 1.25rem; font-weight: 600; margin: 0 0 1.25rem; text-align: center; color: var(--text); letter-spacing: -0.02em; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-list details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #fff;
}
.faq-list details[open] { box-shadow: var(--shadow); }
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  outline: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { margin: 0.75rem 0 0; color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.55; }

/* Auth cards */
.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.auth-card:hover { box-shadow: var(--shadow-lift); }
.auth-card h1 { font-size: 1.375rem; font-weight: 600; margin: 0 0 1.5rem; color: var(--text); text-align: center; letter-spacing: -0.02em; }
.auth-card label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text); margin-bottom: 0.35rem; }
.auth-card input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.auth-card input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15); }
.auth-card .field-hint { font-size: 0.8125rem; color: var(--text-muted); margin: -0.5rem 0 1rem; }
.auth-card .cta {
  display: block;
  width: 100%;
  padding: 0.875rem 2rem;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow);
}
.auth-card .cta:hover { background: var(--primary-hover); }
.auth-card .signup-link { text-align: center; margin-top: 1.25rem; font-size: 0.875rem; }
.auth-card .signup-link a { color: var(--primary); text-decoration: none; font-weight: 500; }
.auth-card .signup-link a:hover { text-decoration: underline; }
.auth-card .legal { margin-top: 1.25rem; font-size: 0.8125rem; color: var(--text-muted); text-align: center; }
.auth-card .legal a { color: var(--text-secondary); text-decoration: none; }
.auth-card .legal a:hover { color: var(--text); text-decoration: underline; }
.auth-card .login-link { text-align: center; margin-top: 1rem; font-size: 0.875rem; }
.auth-card .login-link a { color: var(--primary); text-decoration: none; font-weight: 500; }
.auth-card .login-link a:hover { text-decoration: underline; }

/* Signup success / waiting list / error */
.signup-success {
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.5rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  font-size: 0.9375rem;
  color: var(--success);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.signup-success .check { flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; }
.signup-waiting {
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.5rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  font-size: 0.9375rem;
  color: var(--primary);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.signup-waiting .check { flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; }
.signup-error {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  font-size: 0.9375rem;
  color: var(--error);
}
.signup-intro { text-align: center; margin-bottom: 2rem; }
.signup-intro h1 { font-size: 1.5rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--text); letter-spacing: -0.02em; }
.signup-intro .tagline { font-size: 0.9375rem; color: var(--text-secondary); margin: 0; }

/* Legal / content pages */
main.content-page h1 { font-size: 1.75rem; font-weight: 600; margin: 0 0 2rem; color: var(--text); letter-spacing: -0.02em; }
main.content-page h2 { font-size: 1.0625rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--text); }
main.content-page p { margin: 0 0 1rem; font-size: 0.9375rem; color: var(--text-secondary); }
main.content-page p:first-of-type { margin-top: 0; }

/* Footer */
footer {
  padding: 3rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 480px) {
  footer .container { justify-content: center; text-align: center; }
}
footer p { margin: 0; font-size: 0.875rem; color: var(--text-secondary); }
footer a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; }
footer a:hover { color: var(--text); }
footer a:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
