/* Saving Throw — Marketing site styles
   Cool blue/slate palette. System fonts. Fully responsive. */

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

:root {
  --blue-900: #0d1b2a;
  --blue-800: #1a2d42;
  --blue-700: #1e3a5f;
  --blue-600: #1d4ed8;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-700: #334155;
  --white: #ffffff;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius: 8px;
  --max-width: 1100px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--blue-900);
  color: var(--slate-100);
  line-height: 1.6;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--blue-800);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  padding: 6rem 0 5rem;
  text-align: center;
  border-bottom: 1px solid var(--blue-600);
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.tagline {
  font-size: 1.125rem;
  color: var(--blue-300);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--blue-500);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--blue-600);
}

/* ---------- Sections ---------- */
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.section p {
  color: var(--slate-200);
  max-width: 680px;
  margin-bottom: 1rem;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--blue-800);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-300);
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--slate-200);
  max-width: none;
  margin-bottom: 0;
}

.card p em {
  color: var(--blue-400);
  font-style: normal;
}

/* ---------- How grid ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.how-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-300);
  margin-bottom: 0.75rem;
}

.how-item p {
  max-width: none;
  margin-bottom: 0.5rem;
}

.how-item code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--blue-900);
  color: var(--blue-400);
  border: 1px solid var(--blue-600);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  word-break: break-all;
}

/* ---------- CTA section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 0.75rem;
}

.cta-section p {
  margin: 0 auto 2rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--blue-900);
  border-top: 1px solid var(--slate-700);
  padding: 1.5rem 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-400);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--blue-300);
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 4rem 0 6rem;
}

.legal-page .back-link {
  display: inline-block;
  color: var(--blue-400);
  text-decoration: none;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.legal-page .back-link:hover {
  color: var(--blue-300);
}

.legal-page h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.legal-page .updated {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-bottom: 2rem;
}

.legal-page p {
  color: var(--slate-200);
  max-width: 680px;
  margin-bottom: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero {
    padding: 4rem 0 3.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
