/* styles.css
   Base layout and components. Reads only the variables in brand.css.
   Do not put client-specific values here. Skin through brand.css. */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
  font-size: 1.0625rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }

p { margin: 0 0 1rem; }

a { color: var(--color-primary); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* Layout */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.site-header {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 0.5rem;
}
.site-header img { max-height: 48px; width: auto; }
.site-header .wordmark {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: 1.25rem;
  color: var(--color-text);
}

.hero { text-align: center; margin: 1.5rem 0 var(--section-gap); }
.hero .subhead {
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: 34ch;
  margin: 0 auto;
}
.hero-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.75rem auto 0;
  border-radius: var(--radius-surface);
}

/* Benefits */
.benefits {
  list-style: none;
  padding: 0;
  margin: 0 auto var(--section-gap);
  max-width: 34rem;
}
.benefits li {
  position: relative;
  padding: 0.35rem 0 0.35rem 2rem;
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Form panel */
.form-panel {
  background: var(--color-surface);
  border-radius: var(--radius-surface);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  max-width: 34rem;
  margin: 0 auto var(--section-gap);
}
.form-panel h2 { text-align: center; }
.form-panel label {
  display: block;
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0.75rem 0 0.25rem;
}
.form-panel input[type="email"],
.form-panel input[type="text"] {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
  border: 1px solid var(--color-muted);
  border-radius: var(--button-radius);
  background: var(--color-background);
  color: var(--color-text);
}
.privacy {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--color-primary);
  border-radius: var(--button-radius);
  padding: 0.85rem 1.6rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn--solid, .btn--pill {
  background: var(--color-primary);
  color: var(--color-surface);
}
.btn--solid:hover, .btn--pill:hover { background: var(--color-secondary); border-color: var(--color-secondary); }
.btn--pill { border-radius: 999px; }
.btn--outline {
  background: transparent;
  color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: var(--color-surface); }
.btn--block { display: block; width: 100%; margin-top: 1rem; }

/* Social proof */
.social-proof {
  text-align: center;
  font-style: italic;
  color: var(--color-muted);
  max-width: 40ch;
  margin: 0 auto var(--section-gap);
}

/* Centered single-purpose blocks (thank-you, download) */
.centered {
  text-align: center;
  max-width: 36rem;
  margin: 2rem auto var(--section-gap);
}
.centered .lead { font-size: 1.15rem; color: var(--color-muted); }

.next-step {
  background: var(--color-panel, transparent);
  border-radius: var(--radius-surface);
  padding: 1.75rem 1.5rem;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  padding: 2rem 1rem 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: var(--section-gap);
}
.site-footer a { color: var(--color-muted); }

@media (max-width: 400px) {
  .page { padding: 1rem 1rem 2.5rem; }
  .form-panel { padding: 1.35rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
