@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;520;590;600&display=swap');

:root {
  --obsidian: #0B0B0D;
  --ink: #F5F5F7;
  --muted: #8E8E93;
  --muted-2: #86868B;
  --line: #232328;
  --accent: #7FB39D;
  --accent-soft: rgba(127, 179, 157, 0.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--obsidian);
  color: var(--ink);
  font-family: 'Inter', -apple-system, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem 5rem;
}

.wordmark {
  font-size: 2.75rem;
  font-weight: 520;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.accent-line {
  display: block;
  width: 5.5rem;
  height: 2px;
  background: var(--accent);
  margin: 1.1rem auto 0;
}
.tagline {
  display: block;
  color: var(--muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-top: 1.1rem;
  text-align: center;
}
.brand-block { display: flex; flex-direction: column; align-items: center; }

h1.hero {
  max-width: 640px;
  text-align: center;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 520;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 4.5rem auto 0;
}
p.sub {
  max-width: 560px;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 1.5rem auto 0;
}
.trust-line {
  max-width: 34rem;
  text-align: center;
  margin: 3rem auto 0;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

.crisis-box {
  max-width: 34rem;
  margin: 2.25rem auto 0;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  text-align: left;
}
.crisis-box p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
}
.crisis-box strong { color: var(--ink); font-weight: 590; }

.cta {
  margin-top: 3rem;
  width: 100%;
  max-width: 20rem;
}
.cta a {
  display: block;
  text-align: center;
  background: var(--ink);
  color: var(--obsidian);
  padding: 0.95rem 1.5rem;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 520;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.1s ease;
}
.cta a:hover { opacity: 0.85; }
.cta a:active { transform: scale(0.98); }

.cta-note {
  max-width: 24rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
  margin: 1rem auto 0;
}

section.steps {
  width: 100%;
  max-width: 46rem;
  margin-top: 9rem;
}
section.steps h2, section.faq h2 {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 520;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3.5rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
}
.step-num {
  display: block;
  font-size: 3.2rem;
  font-weight: 200;
  color: rgba(245,245,247,0.3);
  letter-spacing: -0.02em;
}
.step h3 {
  font-size: 0.95rem;
  font-weight: 520;
  letter-spacing: -0.01em;
  margin: 1rem 0 0.5rem;
}
.step p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

section.faq {
  width: 100%;
  max-width: 40rem;
  margin-top: 9rem;
}
details.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 300;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0.9rem 0 0;
}

.disclaimer {
  max-width: 30rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 7rem auto 0;
}
.secondary-cta { margin-top: 1.6rem; }
.secondary-cta a {
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.secondary-cta a:hover { color: var(--accent); }

footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 6rem 1.5rem 3rem;
}
footer .legal-note {
  max-width: 28rem;
  text-align: center;
  color: rgba(142,142,147,0.6);
  font-size: 0.75rem;
  line-height: 1.6;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 1.5rem;
  font-size: 0.875rem;
}
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--ink); }

/* Legal page layout */
.legal-page main { align-items: center; padding-top: 3.5rem; }
.legal-page article {
  width: 100%;
  max-width: 42rem;
}
.legal-page article h1 {
  font-size: 1.7rem;
  font-weight: 520;
  margin-bottom: 0.5rem;
}
.legal-page article .meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 3rem;
}
.legal-page article h2 {
  font-size: 1.05rem;
  font-weight: 520;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-page article h3 {
  font-size: 0.95rem;
  font-weight: 520;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.legal-page article p, .legal-page article li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}
.legal-page article a { color: var(--accent); }
.legal-page .back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.legal-page .back:hover { color: var(--ink); }

.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  padding: 2rem;
}
.login-shell p { color: var(--muted); font-size: 0.9rem; max-width: 22rem; line-height: 1.6; }

/* Mobile refinements */
@media (max-width: 640px) {
  main { padding: 2.75rem 1.25rem 4rem; }
  .wordmark { font-size: 2.2rem; }
  h1.hero { margin-top: 3rem; font-size: 1.75rem; }
  p.sub { font-size: 0.95rem; }
  .trust-line { font-size: 0.75rem; line-height: 1.7; }
  .crisis-box { padding: 1rem 1.1rem; margin-top: 1.75rem; }
  .crisis-box p { font-size: 0.8rem; }
  section.steps, section.faq { margin-top: 5.5rem; }
  section.steps h2, section.faq h2 { margin-bottom: 2.5rem; }
  .step-num { font-size: 2.6rem; }
  .disclaimer { margin-top: 4.5rem; font-size: 0.78rem; }
  footer { padding: 4rem 1.25rem 2.5rem; }
  footer nav { gap: 1rem 1.25rem; font-size: 0.82rem; }
  .legal-page article h1 { font-size: 1.4rem; }
  .legal-page main { padding-top: 2.5rem; }
  .cta, .cta-note { max-width: 100%; }
}
