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

body {
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #111;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; }

/* ── Top bar: the way home on a product page, sign-in on the home page ── */
.topbar {
  display: flex;
  max-width: 880px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  font-size: .85rem;
}
.topbar--end { justify-content: flex-end; }
.topbar a { color: #555; text-decoration: none; }
.topbar a:hover { color: #111; }

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem;
}
main.page { max-width: 640px; padding-top: 3rem; }

.wordmark {
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 2.5rem;
  text-align: center;
}

h1 {
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1rem;
}
main.page h1 { margin-bottom: 3rem; }

.hero { margin-bottom: 4rem; }
.lede {
  color: #555;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.65;
  text-align: center;
}
.lede + .lede { margin-top: 1rem; }

/* ── Home: groups of product cards ── */
section.products {
  padding-top: 3rem;
  border-top: 1px solid #e5e5e5;
  margin-bottom: 4rem;
}
section.products > h2 {
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 500;
}
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.product-card {
  display: block;
  flex: 0 1 190px;
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  transition: border-color .15s ease;
}
.product-grid--featured .product-card { flex-basis: 320px; }
.product-card:hover { border-color: #111; }
.product-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.product-card p {
  font-size: .9rem;
  color: #555;
  line-height: 1.5;
}
.comes-with {
  max-width: 36rem;
  margin: 2rem auto 0;
  text-align: center;
  color: #555;
  font-size: .95rem;
  line-height: 1.65;
}
@media (max-width: 480px) {
  .product-card,
  .product-grid--featured .product-card { flex-basis: 100%; }
}

/* ── Product pages ── */
section.content { margin-bottom: 3rem; }
section.content p {
  color: #333;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
section.content h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2rem 0 .4rem;
}
section.content h2 + p { margin-top: 0; }

.note {
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
  margin-bottom: 4rem;
  text-align: center;
  color: #555;
  font-size: .95rem;
}

.cta,
.success {
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
  margin-bottom: 4rem;
  text-align: center;
}
.cta h2,
.success h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.cta .lead { color: #555; margin-bottom: 1.5rem; }
.cta form { display: flex; flex-direction: column; gap: .9rem; text-align: left; }
.cta label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .85rem;
  color: #555;
}
.cta input,
.cta textarea {
  font: inherit;
  color: #111;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  padding: .55rem .7rem;
  width: 100%;
}
.cta textarea { resize: vertical; min-height: 5.5rem; }
.cta input:focus,
.cta textarea:focus { outline: 2px solid #111; outline-offset: -1px; border-color: #111; }
.cta .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.cta .primary {
  align-self: center;
  display: inline-block;
  background: #111;
  color: #fff;
  border: none;
  padding: .75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s ease;
  margin-top: .5rem;
}
.cta .primary:hover { opacity: .85; }
.cta .primary:disabled { opacity: .5; cursor: default; }
.cta .error {
  color: #a00;
  font-size: .9rem;
  text-align: center;
}
.success p { color: #333; margin-bottom: .75rem; }

footer {
  text-align: center;
  color: #888;
  font-size: .85rem;
  padding-bottom: 2rem;
}
footer a { color: #888; text-decoration: none; }
footer a:hover { color: #555; }
footer p + p { margin-top: .35rem; }
